:root {
  --red: #ed1c24;
  --black: #252525;
  --white: #fff;
  --gray: #f6f6f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

/* ============================================================
   TOP RED BAR – EXACT
============================================================ */
.top-navber {
  display: flex;
  height: 42px;
  align-items: center;

  position: relative;
  overflow: hidden;
  background: var(--red);
}

/* Left 50% */
.top-left-part {
  flex: 0 0 50%;

  display: flex;
  justify-content: center;
}

/* Right 50% */
.top-right-part {
  flex: 0 0 50%;
  background: var(--black);

  display: flex;
  height: 60px;
  justify-content: center;
  align-items: center;
  color: #fff;

  /* position: relative; */
}

.top-right-part {
  clip-path: polygon(57px 0, 100% 0, 100% 100%, 0 100%);
}

/* Menus */
.top-left-part ul,
.top-right-part ul {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 200;
}

/* .top-left-part */

.top-left-part ul li a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding: 6px 2px;

  /* smoothness */
  transition: color 0.35s ease;
}

.top-left-part ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--black);
  border-radius: 2px;

  transition:
    width 0.4s ease,
    left 0.4s ease;
}

/* hover effect */
.top-left-part ul li a:hover {
  color: var(--black);
}

.top-left-part ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* top right part  */

.top-right-part ul li a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding: 6px 2px;

  /* smoothness */
  transition: color 0.35s ease;
}

/* animated underline */
.top-right-part ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;

  transition:
    width 0.4s ease,
    left 0.4s ease;
}

/* hover effect */
.top-right-part ul li a:hover {
  color: var(--red);
}

.top-right-part ul li a:hover::after {
  width: 100%;
  left: 0;
}
#hoverList {
  font-size: 15px;
 
}

/* ============================================================
   WHITE NAVBAR – EXACT
============================================================ */
.middle-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
  /* background: var(--white); */
  background: #ffffff;
  box-shadow: var(--shadow);
  max-width: 1800px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

#loyola-logo {
  height: 50px;
  width: 50px;
}
.logo-area img {
  height: 48px;
}

.logo-area h2 {
  font-family: "EB Garamond", serif;
  font-size: 32px;
  font-weight: 400;
}

.right-info {
  display: flex;
  gap: 30px;
}

.info-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

.info-card img {
  height: 30px;
}

.info-card {
  position: relative;
  perspective: 1200px;
}

.info-card img {
  animation: glassFlip 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes glassFlip {
  0% {
    transform: rotateY(0deg);
  }
  40% {
    transform: rotateY(0deg);
  }
  60% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.title {
  font-size: 14px;
  font-weight: 600;
}

.bannar-subtitle {
  font-family: Outfit;
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;

  letter-spacing: 1%;
}

/* ================= TABLET & MOBILE ================= */
@media (max-width: 1370px) {
  .logo-area h2 {
    font-size: 22px;
  }
  .title {
    font-size: 12px;
    font-weight: 700;
  }
  .bannar-subtitle {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .middle-navbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 30px;
    gap: 22px;
  }

  .logo-area {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .logo-area h2 {
    font-size: 26px;
  }

  .info-card {
    justify-content: center;
    align-items: center;
    /* text-align: center; */
    gap: 10px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .middle-navbar {
    padding: 20px;
    gap: 18px;
  }

  .logo-area {
    flex-direction: row;
    gap: 8px;
  }

  .logo-area img {
    height: 44px;
  }

  .logo-area h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  .info-card {
    flex-direction: row;
    gap: 6px;
  }

  .info-card img {
    height: 28px;
  }

  .title {
    font-size: 13px;
  }

  .subtitle {
    font-size: 12px;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
  .logo-area h2 {
    font-size: 22px;
  }
}

/* ================= BLACK MENU BAR ================= */
.bottom-navbar {
  position: relative;
  background: var(--gray);
  color: var(--black);

  display: flex;

  align-items: center;
  height: 45px;
}
.bottom-black-menu {
  flex: 0 0 60%;
}

.bottom-black-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 18px 70px;
}

.bottom-black-menu li {
  color: #e12d2d;
  cursor: pointer;
  position: relative;
  font-size: 15px;
}

/* underline base */
.bottom-black-menu li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

/* hover underline */
.bottom-black-menu li:hover::after {
  width: 100%;
}

/* ACTIVE STATE */
.bottom-black-menu li.active::after {
  width: 100%;
}

/* optional: active text emphasis */
.bottom-black-menu li.active {
  color: var(--red);
  font-weight: 500;
}

/* =======================rregister strip ======================== */
.register-strip {
  flex: 0 0 40%;
  background: var(--red);
  /* padding: 19px 0; */
  border-radius: 4px;
  font-size: 14px;
  overflow: hidden;
  position: relative;
  color: #fff;

  clip-path: polygon(47px 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
}

/* scrolling text */
.scroll-text {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 12s linear infinite;
  font-weight: 500;
}

@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ================= HOVER CARD ================= */
.hover-card {
  position: absolute;
  top: 29px;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 9999;
}

/* show card */
/* .bottom-navbar:hover .hover-card,
      .hover-card:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      } */

/* card layout */
/* ================= MAIN CARD ================= */
.hover-card-inner {
  max-width: 950px;
  margin: 22px auto;
  max-height: 470px;

  display: grid;
  grid-template-columns: 350px 1fr;

  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);

  animation: modernDrop 0.32s ease-out;
}

@keyframes modernDrop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LEFT PANEL ================= */
.hover-left {
  padding: 18px 34px;
  background: #ffffff;
  border-right: 1px solid #ececec;
}

/* ================= HOVER CARD LINK COLORS ================= */
.hover-left a {
  color: #252525; /* black */
  text-decoration: none;
  position: relative;
  display: inline-block;

  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 0px;
}

/* underline */
.hover-left a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 3px;
  background: #ed1c24;
  border-radius: 2px;

  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* visited stays same */
.hover-left a:visited {
  color: #252525;
}

/* hover animation */
.hover-left a:hover {
  color: #ed1c24; /* red */
  transform: translateX(6px); /* smooth slide */
}

.hover-left a:hover::after {
  width: 100%;
}

/* focus / active */
.hover-left a:active,
.hover-left a:focus {
  color: #ed1c24;
}

/* ================= ACTIVE ITEM IN HOVER CARD ================= */
.hover-left li.active a {
  color: #ed1c24; /* red */
  font-weight: 600;

}

.hover-left li.active a::after {
  width: 100%; /* underline full */
}

#hoverList li{
  font-size: 14px;

}

/* ================= RIGHT PANEL ================= */
.hover-right {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(225, 27, 34));
}
.hover-img {
   background: url("../../clg-img/bcom-bannar.JPG")
    right center / cover no-repeat;
  width: 100%;
  height: 370px;
}

/* ================= CONTENT ================= */
.overlay {
  position: relative;
  /* z-index: 2; */
  padding: 20px 20px;
  max-width: 100%; /* max-height: 50%; */
  height: 30%;
  color: #ffffff;
  /* animation: fadeSlide 0.4s ease-out; */
  /* background: linear-gradient(
    135deg,
    rgba(225, 27, 34, 0.9),
    rgba(160, 0, 10, 0.7)
  ); */
  /* backdrop-filter: blur(12px); */
}

/* @keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.overlay h3 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.overlay p {
  font-size: 17px;
  /* line-height: 1.65; */
  opacity: 0.95;
  /* max-width: 480px; */
}

/* ================= TABLET ================= */
@media (max-width: 992px) {
  .hover-card {
    z-index: 9999;
  }
  .hover-card-inner {
    max-width: 94%;
    grid-template-columns: 1fr;
  }

  .hover-left {
    border-right: none;
    border-bottom: 1px solid #ececec;
    padding: 30px 26px;
  }

  .hover-right {
    flex-direction: column;
  }

  .overlay {
    max-width: 100%;
    padding: 40px 32px;
  }

  .hover-img {
    height: 220px;
    background-position: center;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .hover-left a {
    padding: 2px;
  }
  .hover-card-inner {
    margin: 16px auto;
    border-radius: 12px;
  }

  .hover-left {
    padding: 9px 22px;
  }

  .hover-left li {
    font-size: 14px;
    padding: 5px 0;
  }

  .overlay {
    padding: 4px 22px;
  }

  .overlay h3 {
    font-size: 22px;
  }

  .overlay p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .hover-img {
    height: 0px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {
  /* .hover-card {
          display: none;
        } */
  .bottom-black-menu ul {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }
}

/* ============================================================
   BANNER IMAGE AREA – EXACT
============================================================ */

.banner-image-area {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #252525;
}

/* OVERLAY */

.banner-wrapper {
  perspective: 1200px;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* BASE IMAGE */
.banner-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  perspective: 1600px;
  overflow: hidden;
  background: #000;
}

/* base image */
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: rotateY(90deg) scale(0.96);
  transform-origin: center;
  backface-visibility: hidden;

  transition:
    transform 1.9s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.2s ease;
}

/* active image */
.banner-img.active {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  z-index: 2;
}

/* outgoing image */
.banner-img.exit {
  opacity: 0;
  transform: rotateY(-90deg) scale(0.96);
  z-index: 1;
}

.banner-center-content {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;

  width: 70%;
  z-index: 3; /* always above the images */
}

.banner-center-content h1 {
  font-family: EB Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 48px;
  color: white;

  letter-spacing: 1%;

  margin-bottom: 15px;
}

.banner-center-content h3 {
  margin-top: 10px;
  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 24px;
  color: white;

  letter-spacing: 1%;
  text-align: center;
}

.naac-badge {
  margin: 20px 0;
  height: 110px;
}

.banner-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.btn {
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #ed1c24;
}

.btn.filled {
  background: #ed1c24;
  color: white;
}
.btn.outline {
  background: transparent;
  color: #ed1c24;
}

.mobile-menu-btn {
  display: none;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .banner-image-area {
    height: 500px;
  }

  .banner-wrapper {
    height: 80vh;
  }

  .banner-center-content {
    width: 85%;
    top: 40%;
  }

  .banner-center-content h1 {
    font-size: 40px;
  }

  .banner-center-content h3 {
    font-size: 20px;
  }

  .naac-badge {
    height: 90px;
  }

  .banner-buttons {
    gap: 18px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .banner-image-area {
    height: 420px;
  }

  .banner-wrapper {
    height: 70vh;
  }

  .banner-center-content {
    width: 92%;
    top: 45%;
  }

  .banner-center-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .banner-center-content h3 {
    font-size: 18px;
  }

  .naac-badge {
    height: 70px;
    margin: 16px 0;
  }

  .banner-buttons {
    flex-wrap: wrap;
    gap: 14px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 15px;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
  .banner-image-area {
    height: 360px;
  }

  .banner-wrapper {
    height: 60vh;
  }

  .banner-center-content {
    width: 95%;
    top: 48%;
  }

  .banner-center-content h1 {
    font-size: 26px;
  }

  .banner-center-content h3 {
    font-size: 16px;
  }

  .naac-badge {
    height: 60px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }
}

/* ================= MOBILE SIDEBAR FIX (MINIMAL) ================= */
/* =========================================================
   TOP MENU – RESPONSIVE (RIGHT SIDEBAR)
   ========================================================= */
/* =========================================================
   TOP MENU – RESPONSIVE (SINGLE RIGHT SIDEBAR)
   ========================================================= */
@media (max-width: 1400px) {
  .bottom-black-menu li {
    font-size: 14px;
  }
  .bottom-black-menu ul {
    gap: 25px;
  }
}

@media (max-width: 1300px) {
  .bottom-black-menu li {
    font-size: 13px;
  }
}
@media (max-width: 1100px) {
    .top-left-part ul, .top-right-part ul {
    font-size: 12px;
  }
  .bottom-black-menu li {
    font-size: 13px;
  }
  .bottom-black-menu ul {
    gap: 20px;
  }
}
@media (max-width: 992px) {
  .middle-navbar {
    flex-direction: column;
    gap: 28px;
    justify-content: center;
    align-items: center;
  }
  /* hamburger button */
  .top-menu-btn {
    position: absolute;
    right: 6px;
    top: 5%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #252525;
    color: #fff;
    font-size: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
  }

  /* ===== SINGLE SIDEBAR ===== */
  .top-navber {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;

    background: linear-gradient(
      135deg,
      rgba(37, 37, 37, 0.99),
      rgba(237, 28, 36, 0.9),
      rgba(237, 28, 36, 0.9),
      rgba(37, 37, 37, 0.99)
    );

    transition: right 0.4s ease;
    z-index: 10000;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  /* open state */
  .top-navber.active {
    right: 0;
  }

  /* RESET 50–50 SPLIT */
  .top-left-part,
  .top-right-part {
    flex: none;
    width: 100%;
    height: auto;

    background: transparent;
    clip-path: none; /* 🔑 VERY IMPORTANT */
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  /* vertical menu */
  .top-left-part ul,
  .top-right-part ul {
    flex-direction: column;
    gap: 18px;
    /* padding-left: 30px; */
  }

  .top-left-part li,
  .top-right-part li {
    font-size: 16px;
    color: #fff;
  }

  /* .top-left-part */

  .top-left-part ul li a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    padding: 6px 2px;

    /* smoothness */
    transition: color 0.35s ease;
  }

  .top-left-part ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--black);
    border-radius: 2px;

    transition:
      width 0.4s ease,
      left 0.4s ease;
  }

  /* hover effect */
  .top-left-part ul li a:hover {
    color: var(--black);
  }

  .top-left-part ul li a:hover::after {
    width: 100%;
    left: 0;
  }

  /* top right part  */

  .top-right-part ul li a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    padding: 6px 2px;

    /* smoothness */
    transition: color 0.35s ease;
  }

  /* animated underline */
  .top-right-part ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--black);
    border-radius: 2px;

    transition:
      width 0.4s ease,
      left 0.4s ease;
  }

  /* hover effect */
  .top-right-part ul li a:hover {
    color: var(--black);
  }

  .top-right-part ul li a:hover::after {
    width: 100%;
    left: 0;
  }
}

/* hide button on desktop */
@media (min-width: 993px) {
  .top-menu-btn {
    display: none;
  }
}

/* =========================================================
   BOTTOM NAVBAR – SLIDING DRAWER (MOBILE / TABLET)
   ========================================================= */

@media (max-width: 992px) {
  /* -------------------------------
     Bottom navbar anchor
     ------------------------------- */
  .bottom-navbar {
    position: relative;
    overflow: visible; /* 🔑 allow drawer to expand */
  }

  /* -------------------------------
     Drawer toggle button
     ------------------------------- */
  .bottom-drawer-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #252525;
    color: #fff;
    font-size: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }

  /* -------------------------------
     Drawer panel (CLOSED STATE)
     ------------------------------- */
  .bottom-black-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: linear-gradient(
      180deg,
      rgb(28 26 26 / 95%),
      rgb(22 17 17 / 96%),
      rgb(37 17 18 / 74%)
    );

    max-height: 0; /* 🔑 closed */
    overflow: hidden;
    transition: max-height 0.45s ease;
    z-index: 9;
  }
  .register-strip {
    clip-path: none; /* 🔑 VERY IMPORTANT */
    flex: 0 0 100%;
  }

  /* -------------------------------
     Drawer panel (OPEN STATE)
     ------------------------------- */
  .bottom-black-menu.active {
    max-height: 600px; /* adjust if menu grows */
  }

  /* -------------------------------
     Drawer menu layout
     ------------------------------- */
  .bottom-black-menu ul {
    display: flex;
    flex-direction: column;
    padding: 22px;
    gap: 18px;
  }

  .bottom-black-menu li {
    color: #fff;
    font-size: 16px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* -------------------------------
     Disable desktop hover logic
     ------------------------------- */
  /* enable click show */
  .hover-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hover-close {
    display: flex;
  }
}

.hover-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ed1c24;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}
/* Hide drawer button on desktop */
@media (min-width: 993px) {
  .bottom-drawer-btn {
    display: none;
  }
}

/* Desktop: JS controlled only */
@media (min-width: 993px) {
  .hover-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hover-close {
    display: none;
  }
}

@media (max-width: 992px) {
  .hover-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* =========================================================
   MOBILE: ENABLE HOVER CARD VIA CLICK
   ========================================================= */
