/* =====================
   Common Header / Navbar
   ===================== */
.logo-img {
  height: 60px;
  flex-shrink: 0;
}

/* Override Bootstrap navbar-expand-lg flex behaviour — use 1024px */
@media (max-width: 1023px) {
  .navbar-expand-lg {
    flex-wrap: wrap !important;
  }
  .navbar-expand-lg > .container,
  .navbar-expand-lg > .container-fluid {
    flex-wrap: wrap !important;
  }
}

.navbar-toggler {
  outline: none !important;
  box-shadow: none !important;
}

/* Override Bootstrap navbar-expand-lg toggler visibility — use 1024px threshold */
.navbar-expand-lg .navbar-toggler {
  display: flex !important;
}
@media (min-width: 1024px) {
  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }
}

.bg-shad-3 {
  background: #01829a !important;
}

.footer-bg {
  background: #00305e !important;
}

.footParaColor {
  color: #d1e3f8 !important;
}

.color-8 {
  color: #66b2ff !important;
}

.bg-shad-11 {
  background: #66b2ff !important;
}

.menu {
  gap: 32px;
}

.menu li,
.btnExpCourse,
.foothead,
.headbanner {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  font-style: normal;
}

.btnExpCourse {
  padding: 10px 24px;
  border-radius: 33554400px;
  background: #014c88;
  box-shadow:
    0 10px 15px 0 rgba(59, 130, 246, 0.3),
    0 4px 6px 0 rgba(59, 130, 246, 0.3);
}

.nav-link.dropdown-toggle::after {
  display: none !important;
}

.nav-link.dropdown-toggle .arrow-icon {
  display: inline-block;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.nav-link.dropdown-toggle[aria-expanded='true'] .arrow-icon {
  transform: rotate(180deg);
}

.bannerbtn {
  font-size: 14px;
  white-space: nowrap;
}

.custom-dropdown-menu {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 0 !important;
  overflow: visible;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
  pointer-events: none;
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s;
  pointer-events: auto;
}

.custom-dropdown-menu .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #393939 !important;
  padding: 6px 0px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.15s ease;
}

.custom-dropdown-menu.show .dropdown-item,
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item {
  opacity: 1;
  transform: translateX(0);
}

.custom-dropdown-menu.show .dropdown-item:nth-child(1),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(1) {
  transition-delay: 0.03s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(2),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(2) {
  transition-delay: 0.06s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(3),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(3) {
  transition-delay: 0.09s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(4),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(4) {
  transition-delay: 0.12s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(5),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(5) {
  transition-delay: 0.15s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(6),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(6) {
  transition-delay: 0.18s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(7),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(7) {
  transition-delay: 0.21s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(8),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(8) {
  transition-delay: 0.24s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(9),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(9) {
  transition-delay: 0.27s;
}
.custom-dropdown-menu.show .dropdown-item:nth-child(10),
.desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu .dropdown-item:nth-child(10) {
  transition-delay: 0.3s;
}

.custom-dropdown-menu {
  padding: 0px !important;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
  background: #ffffff !important;
  color: #1d114f !important;
  transform: translateX(4px);
  transition: all 0.2s ease;
}

#navbarSupportedContent .nav-link,
.d-none.d-md-flex .nav-link {
  padding: 8px 0 !important;
}

/* =====================
   Common Footer
   ===================== */
.social-icon {
  width: 40px;
  height: 40px;
  aspect-ratio: 1/1;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.fpara p,
.footlinks,
.copyrightPara,
.iconBthPara {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.footerContainer {
  padding: 64px 0 24px 0;
}

.copyrightBorder {
  border-top: 0.8px solid rgba(255, 255, 255, 0.4);
  opacity: 0.6;
}

.faqbutton button {
  padding: 15px 24px;
}

.faqbutton button:last-child {
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.footheadCont span {
  width: 40px;
  height: 2px;
}

.dropdown-toggle::after {
  display: none !important;
}

.menu-title,
.d-none.d-md-flex .nav-link {
  padding: 8px 0 !important;
  text-decoration: none !important;
}

.menu-item li {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  font-style: normal;
}

.arrow-icon {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

/* Desktop: open nav dropdowns on hover with animation */
@media (min-width: 1024px) {
  .desktop-nav-menu .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0s linear 0.2s;
    pointer-events: none;
  }

  .desktop-nav-menu .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0s linear 0s;
    pointer-events: auto;
  }

  .desktop-nav-menu .nav-item.dropdown:hover > .nav-link .arrow-icon {
    transform: rotate(180deg);
  }
}

/* =====================
   Flyout Submenu (Desktop hover)
   ===================== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .collapse-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 96%;
  min-width: 240px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 16px !important;
  list-style: none;
  z-index: 10001;
  margin: 0;
  margin-left: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
  pointer-events: none;
}

/* Show flyout on hover (desktop only) */
@media (min-width: 1024px) {
  .dropdown-submenu:hover > .collapse-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0s linear 0s;
    pointer-events: auto;
  }

  .dropdown-submenu:hover > a {
    background: #f0f7ff !important;
    color: #393939 !important;
  }
}

/* Flyout submenu items styling */
.dropdown-submenu .collapse-menu .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #393939 !important;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  white-space: normal;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.15s ease;
}

.dropdown-submenu:hover .collapse-menu .dropdown-item {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(1) {
  transition-delay: 0.03s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(2) {
  transition-delay: 0.06s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(3) {
  transition-delay: 0.09s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(4) {
  transition-delay: 0.12s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(5) {
  transition-delay: 0.15s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(6) {
  transition-delay: 0.18s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(7) {
  transition-delay: 0.21s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(8) {
  transition-delay: 0.24s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(9) {
  transition-delay: 0.27s;
}
.dropdown-submenu:hover .collapse-menu .dropdown-item:nth-child(10) {
  transition-delay: 0.3s;
}

.dropdown-submenu .collapse-menu .dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-submenu .collapse-menu .dropdown-item:hover {
  background: #f0f7ff !important;
  transform: translateX(4px);
}

/* Mobile: collapse toggle */
@media (max-width: 1023px) {
  .dropdown-submenu.open .collapse-menu {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding-left: 10px !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* Arrow transition */
.submenu-arrow-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  /* Point right by default for flyout */
  transform: rotate(-90deg);
}

/* Mobile open state: point down */
.dropdown-submenu.open > a .submenu-arrow-icon {
  transform: rotate(0deg);
}

/* =====================
   OPTIONAL: Flip Animation Variant for Dropdowns
   Add class "flip-animation" to dropdown-menu for flip effect
   ===================== */
@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(-15deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
  }
}

.custom-dropdown-menu.flip-animation {
  animation: flipIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}

.custom-dropdown-menu.flip-animation .dropdown-item {
  animation: none;
  opacity: 1;
  transform: translateX(0);
}

/* Flip animation for submenu */
.dropdown-submenu .collapse-menu.flip-animation {
  animation: flipIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.dropdown-submenu .collapse-menu.flip-animation .dropdown-item {
  animation: none;
  opacity: 1;
  transform: translateX(0);
}

/* =====================
   OPTIONAL: Scale Animation Variant for Dropdowns
   Add class "scale-animation" to dropdown-menu for scale effect
   ===================== */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-dropdown-menu.scale-animation {
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}

.custom-dropdown-menu.scale-animation .dropdown-item {
  animation: none;
  opacity: 1;
  transform: translateX(0);
}

/* =====================
   OPTIONAL: Bounce Animation Variant for Mobile Menu Items
   Add class "bounce-animation" to mob-menu-list for bounce effect
   ===================== */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  60% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

.mob-menu-list.bounce-animation .mob-menu-row {
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.nav-item.dropdown.show .arrow-icon {
  transform: rotate(180deg);
}

.dropdown > .show .arrow-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
}

.custom-dropdown-menu .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #0f172a;
  padding: 8px 20px;
}

.custom-dropdown-menu .dropdown-item:hover {
  background-color: #eff6ff;
  color: #393939;
}

.nav-link {
  font-size: 12px;
  line-height: 20px;
}

/* =====================
   Common Navbar Responsive
   ===================== */

/* Hide toggler on desktop (≥1024px), show desktop menu */
@media (min-width: 1024px) {
  .mob-toggler-btn {
    display: none !important;
  }
  .desktop-nav-menu {
    display: flex !important;
  }
  /* Hide mobile drawer on desktop */
  .mob-menu-drawer,
  .mob-menu-overlay {
    display: none !important;
  }
}

/* Show toggler + hide desktop menu below 1024px */
@media (max-width: 1023px) {
  .desktop-nav-menu {
    display: none !important;
  }
  .mob-toggler-btn {
    display: flex !important;
  }
}

/* Desktop menu sizing: 1024px–1280px — tighten gaps & font */
@media (min-width: 1024px) and (max-width: 1280px) {
  .menu {
    gap: 14px !important;
  }
  .nav-link {
    font-size: 11px !important;
  }
  .logo-img {
    height: 50px;
  }
}

/* Desktop menu sizing: 1280px+ */
@media (min-width: 1280px) {
  .menu {
    gap: 24px;
  }
  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 769px) {
  .footerContainer {
    padding: 40px 10px !important;
  }
  .headbanner {
    font-size: 13px;
  }
  .copyrightPara,
  .headbanner {
    font-size: 12px;
  }
}

/* =====================
   Mobile Sliding Drawer Menu
   ===================== */

/* Overlay */
.mob-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}
.mob-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* Drawer */
.mob-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 90vw;
  max-width: 390px;
  height: 100%;
  background: #fff;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.mob-menu-drawer.open {
  transform: translateX(0);
}

/* Panels wrapper */
.mob-menu-panels {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each panel */
.mob-panel {
  min-width: 100%;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}
.mob-panel.active {
  /* Active state handled by parent transform */
}

/* Panel header */
.mob-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  min-height: 56px;
  flex-shrink: 0;
}

.mob-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  text-align: center;
}
/* When back btn present, offset title to center */
.mob-panel-header .mob-back-btn ~ .mob-panel-title {
  text-align: center;
}

/* Back button */
.mob-back-btn {
  background: none;
  border: none;
  padding: 4px 8px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mob-back-btn:hover {
  transform: translateX(-4px);
}

.mob-back-btn:active {
  transform: scale(0.95);
}

/* Close button */
.mob-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
  cursor: pointer;
  padding: 0 0 0 8px;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.mob-close-btn:hover {
  transform: rotate(90deg);
  color: #dc2626;
}

.mob-close-btn:active {
  transform: rotate(90deg) scale(0.9);
}

/* Menu list */
.mob-menu-list {
  padding: 0;
  margin: 0;
}

/* Each row */
.mob-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.mob-menu-row:hover {
  background: #f8fafc;
  transform: translateX(4px);
}
.mob-menu-row a {
  color: #0f172a;
  text-decoration: none;
  flex: 1;
}
.mob-menu-row a:hover {
  color: #014c88;
}
.mob-menu-row span {
  flex: 1;
}
.mob-menu-row svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.mob-menu-row:hover svg {
  transform: translateX(4px);
}
