/* ---------------------------------- */
/* 🌐 ROOT CSS VARIABLES (Global Use) */
/* ---------------------------------- */
:root {
  --topbar-height: calc(0.5vw + 22px);
  --navbar-height: calc(1.4vw + 44px);
  --nav-font-size: calc(0.45vw + 8px);
  --brand-font-size: calc(0.5vw + 12px);
  --nav-font-weight: 600;
  --brand-font-weight: 700;

  /* 🎨 Color Variables */
  --nav-dark-bg: #292929;
}

/* ------------------------ */
/* 🧱 COMMON / UTIL CLASSES */
/* ------------------------ */
.bg-nav-dark {
  background-color: var(--nav-dark-bg) !important;
}

.max-w-80 {
  max-width: 80% !important;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-item {
  font-size: inherit;
  font-weight: var(--nav-font-weight);
  color: #000;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  /* background-color: #f8f9fa; */
  background-color: #ffffff;
}

/* --------------------- */
/* 🖥️ DESKTOP NAVIGATION */
/* --------------------- */
.topbar {
  height: var(--topbar-height);
  font-size: var(--nav-font-size);
}

.custom-navbar {
  height: var(--navbar-height);
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  display: flex;
  align-items: center;
}

.custom-navbar .nav-link,
.nav-link {
  font-size: inherit;
  font-weight: var(--nav-font-weight);
  color: #000 !important;
  transition: 0.3s ease-in-out;
}

.custom-navbar .nav-link:hover,
.nav-link:hover {
  color: red !important;
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.navbar-brand {
  font-size: var(--brand-font-size);
  font-weight: var(--brand-font-weight);
  color: #000 !important;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  margin-top: 0;
  border-radius: 0;
  padding: 0.5rem 0;
  min-width: 200px;
  border: 0;
  border-top: 3px red solid;
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  pointer-events: none;
}

.custom-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.9);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  top: 0;
  margin-top: -0.5rem;
  left: 100%;
  /* Default: show to the right */
}

/* If the parent also has 'open-left' class, show to the left instead */
.dropdown-submenu.open-left:hover > .dropdown-menu {
  left: auto;
  right: 100%;
}

ul li a.active,
ul li.active a,
.navbar-nav li a.active,
.navbar-nav li.active a,
.navbar-nav .nav-item .nav-link.active,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .level-3-item.active {
  color: red !important;
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* All dropdown links under ABOUT */
ul.navbar-nav.ms-auto.mb-2.mb-lg-0.text-center
  > li.nav-item.dropdown.custom-dropdown
  > ul.dropdown-menu.shadow
  > li
  > a.dropdown-item {
  font-weight: normal;
}

/* ---------------------- */
/* 📱 MOBILE NAVIGATION   */
/* ---------------------- */
.nav-link-mobile {
  display: block;
  padding: 0.5rem 1rem;
  color: #000000;
  text-decoration: none;
  background-color: transparent;
  border: 0;
}

.nav-link-mobile:hover,
.nav-link-mobile:focus {
  color: red;
  text-decoration: none;
}

.nav-link-mobile.disabled {
  color: #6c757d;
  pointer-events: none;
  cursor: default;
}

#mobileNavbar {
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* background-color: #fff; */
}

#mobileNavbar .nav-item {
  position: relative;
}

#mobileNavbar .nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100vw;
  height: 1px;
  background-color: #dee2e6;
  bottom: 0;
  transform: translateX(-16px);
}

#mobileNavbar .nav-item:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 1px;
  background-color: #dee2e6;
  transform: translateX(-16px);
}

#mobileNavbar .nav-item:last-child::after {
  display: block;
}

/* Mobile submenu toggle */
.submenu {
  max-height: 0;
  overflow: auto;
  transition: max-height 0.4s ease-in-out;
  padding-left: 1rem;
}

.toggle-icon {
  font-weight: bold;
}

/* ---------------------- */
/* 📐 RESPONSIVE TWEAKS   */
/* ---------------------- */
@media (max-width: 1200px) {
  :root {
    --topbar-height: 28px;
    --navbar-height: 60px;
    --nav-font-size: 10px;
    --brand-font-size: 13px;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 24px;
    --navbar-height: 54px;
    --nav-font-size: 11px;
    --brand-font-size: 12px;
  }

  .topbar small {
    font-size: 11px;
  }

  .custom-navbar .nav-link {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .topbar {
    /* height: var(--topbar-height); */
    padding: 5px 0px;
    height: auto;
    font-size: var(--nav-font-size);
  }
}

/* BELOW Hero Section CSS  //////////////////////////////////////////////////////////////////////////////////////////////////////// */
.hero-image {
  aspect-ratio: 16 / 6;
  /* wide banner ratio */
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero-image {
    aspect-ratio: 16 / 8;
  }
}
/* ABOVE  Hero Section CSS  //////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW 3 Button CSS  virtual, download, admission //////////////////////////////////////////////////////////////////////////////// */
.hover-danger {
  transition: 0.3s ease-in-out;
}

.hover-danger:hover {
  background-color: #dc3545;
}

.hero-bottom {
  background: #000;
  width: 100%;
}

/* Icon and text size scale with screen */
.hero-bottom i {
  font-size: clamp(1rem, 5vw, 2rem);
}

.hero-bottom span {
  display: block;
  font-size: clamp(0.6rem, 3vw, 1rem);
}

/* Make sure columns never wrap */
.hero-bottom .row {
  flex-wrap: nowrap;
}

/* Give some padding to touch targets */
.hero-bottom .col {
  padding: 0.5rem 0;
  flex: 1;
  text-align: center;
}

@media (max-width: 400px) {
  .hero-bottom .col {
    padding: 0.25rem 0;
  }
}
/* ABOVE 3 Button CSS  virtual, download, admission //////////////////////////////////////////////////////////////////////////////// */

/* BELOW program offered, daily post, latest update //////////////////////////////////////////////////////////////////////////////// */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.row-equal-height > [class*="col-"] {
  display: flex;
}

.equal-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
/* ABOVE program offered, daily post, latest update //////////////////////////////////////////////////////////////////////////////// */

/* BELOW Program Section /////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.btn-group .btn {
  border-radius: 0 !important;
  border-left: 1px solid #dc3545;
  border-right: 1px solid #dc3545;
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.375rem !important;
  border-bottom-left-radius: 0.375rem !important;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
}

.tab-btn.active {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
  position: relative;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 50%;
  left: -10px;
  transform: translateY(50%) rotate(90deg);
  border-width: 6px;
  border-style: solid;
  border-color: #dc3545 transparent transparent transparent;
}

.btn-group .btn:not(:first-child) {
  border-bottom: none !important;
}

.btn-group .btn:not(:last-child) {
  border-top: none !important;
}

.vertical-btn {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-align: center;
  padding: 1rem 0.5rem;
  height: 100px;
  min-width: 48px;
  font-weight: bold;
}

.faculty-card {
  transition: 0.2s ease-in-out;
}

.faculty-card:hover {
  background-color: #dc354570;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-group .btn {
    margin: 4px !important;
    width: calc(50% - 8px);
  }

  .vertical-btn {
    writing-mode: initial;
    transform: none;
    height: auto;
    min-width: auto;
    width: 100% !important;
    padding: 0.5rem 1rem;
    text-align: center;
    flex: 0 0 calc(50% - 8px);
    /* This is the key to make 2 side-by-side */
    max-width: calc(50% - 8px);
  }

  .tab-btn.active::after {
    display: none;
  }

  .btn-group .btn:not(:first-child),
  .btn-group .btn:not(:last-child) {
    border: 1px solid #dc3545 !important;
  }
}
/* ABOVE Program Section /////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW WHY GMIU CARDS //////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Hover effects */
.why-gmiu-card {
  transition: 0.3s ease;
}

.why-gmiu-card:hover {
  transform: scale(1.04);
}

.border-dashed {
  border-style: dashed !important;
}
/* ABOVE WHY GMIU CARDS //////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW GMIU NUMBERS ////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.number-card {
  transition: 0.3s ease-in-out;
}

.number-card:hover {
  transform: scale(1.1);
}
/* ABOVE GMIU NUMBERS ////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW Placement Excellent /////////////////////////////////////////////////////////////////////////////////////////////////////// */
#branchTabButtons .btn:hover:not(.active) {
  background-color: #f8f9fa;
  /* soft gray */
}
/* ABOVE Placement Excellent /////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW plaement associates /////////////////////////////////////////////////////////////////////////////////////////////////////// */
.logoSwiper .swiper-slide img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
/* ABOVE plaement associates /////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW GMIU TOUR ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.image-hover-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.image-hover-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hover-text {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  padding: 10px 20px;
  font-size: 3.5rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  white-space: nowrap;
}

.image-hover-wrapper:hover .hover-text {
  opacity: 1;
}

.mobile-text {
  display: none;
}

/* 📱 Responsive Adjustments */
@media (max-width: 767.98px) {
  .hover-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }
}

@media (max-width: 480px) {
  .hover-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }
}
/* ABOVE GMIU TOUR ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW TESTIMONIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.test-card {
  transition: transform 0.3s ease !important;
}

.test-card:hover {
  transform: scale(1.02) !important;
}

/* Hide gradient background on mobile */
@media (max-width: 767.98px) {
  .testimonial-gradient {
    display: none !important;
  }

  .test-card p {
    font-size: 0.95rem !important;
    /* reduce paragraph text */
  }

  .test-card h5 {
    font-size: 1rem !important;
  }

  .test-card small {
    font-size: 0.8rem !important;
  }
}
/* ABOVE TESTIMONIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW media shorts of the gmiu ////////////////////////////////////////////////////////////////////////////////////////////////// */
.image-frame {
  height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ABOVE media shorts of the gmiu ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* BELOW Footer css //////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Placeholder color */
#subscribeEmail::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.footer-link {
  transition: 0.2s ease-in-out;
  color: #ffffff;
  display: inline-block;
}

.footer-link:hover {
  color: #dc3545;
  transform: translateX(7px);
}

.footer-logo {
  transition: 0.3s ease-in-out;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.9);
}

.footer-logo:hover {
  /* transform: scale(1.03); */
  box-shadow: 0px 0px 25px rgba(255, 255, 255, 0.9);
}

.footer-social {
  transition: 0.3s ease-in-out;
  color: #ffffff;
  display: inline-block;
}

.footer-social:hover {
  color: #dc3545;
}
/* ABOVE Footer css //////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* CSS FOR THE SCROLLBAR IN THE WEBSITE  */
/* Width and Height of the scrollbar */
::-webkit-scrollbar {
  width: 4px; /* Thin vertical scrollbar */
  height: 6px; /* Thin horizontal scrollbar */
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

/* Handle (the part you grab) */
::-webkit-scrollbar-thumb {
  background: #d32f2f; /* Your theme red */
  border-radius: 10px;
  transition: background 0.5s ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #d32f2fc9;
  width: 8px;
}
/* CSS FOR THE SCROLLBAR IN THE WEBSITE  */
