/**
 * CSI Bain Kodungaiyur — header (dark bar + gold accent, unified sticky on all pages)
 */

/* Full header sticks as one block on every page */
#header.site-header-edu {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1a1a1a;
}

/* Theme uses absolute nav on home — override so layout matches inner pages */
.site-header-edu .header-bottom {
  position: relative !important;
  left: auto !important;
  width: 100%;
  background-color: #ffc107;
  padding: 5px 20px;
}

/* --- Dark header shell — top bar collapses on scroll (see .header-top-collapsed) --- */
.site-header-edu .header-top {
  background-color: #fc9928;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease,
    padding 0.3s ease,
    border-width 0.3s ease;
  padding: 8px 20px;
}

#header.site-header-edu.header-top-collapsed .header-top {
  max-height: 0;
  opacity: 0;

  border-bottom-width: 0;
  pointer-events: none;
  padding: 0 20px; 
}

@media (prefers-reduced-motion: reduce) {
  .site-header-edu .header-top {
    transition: none;
  }
}

.site-header-edu .ht-address ul li {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 16px;
}

.site-header-edu .ht-address ul li a { 
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-header-edu .ht-social ul li a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.site-header-edu .ht-social ul li a:hover {
  color: #f39c12;
}

.site-header-edu .header-bottom-inner {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Scrolled: subtle depth (same header chrome, all pages) */
#header.site-header-edu.header-is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#header.site-header-edu.header-is-scrolled .header-bottom-inner {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Home: hero sat under absolute header before — reduce extra top padding */
body.site-home .slider-area .slider_item {
  padding-top: 48px;
}

/* Logo + nav: space-between on large screens */
.header-main-bar {
  width: 100%;
}

@media (min-width: 992px) {
  .header-main-bar {
    flex-wrap: nowrap;
  }
}

/* Nav links — default slate #374562; active: bg #374562 + white text */
.site-header-edu .main-menu nav ul li > a {
  color: #374562;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}

.site-header-edu .main-menu nav ul li > a:hover {
  color: #374562 !important;
  background: rgba(55, 69, 98, 0.12) !important;
  box-shadow: none;
}

.site-header-edu .main-menu nav ul li.active > a {
  color: #ffffff !important;
  background: #374562 !important;
  box-shadow: none;
  border-radius: 10px;
}

.site-header-edu .main-menu nav ul li.active > a:hover {
  color: #ffffff !important;
  background: #374562 !important;
}

.site-header-edu .main-menu nav .submenu li a {
  color: #374562;
  text-transform: none;
  font-weight: bold;
  border-radius: 4px;
}

.site-header-edu .main-menu nav .submenu li > a:hover {
  color: #374562 !important;
  background-color: rgba(55, 69, 98, 0.08) !important;
}

.site-header-edu .main-menu nav .submenu li.active > a {
  color: #ffffff !important;
  background-color: #374562 !important;
  font-weight: 700;
}

/* Mobile SlickNav — match desktop active treatment */
.site-header-edu .slicknav_nav a {
  color: rgba(255, 255, 255, 0.95);
}

.site-header-edu .slicknav_nav a:hover {
  background: rgba(55, 69, 98, 0.35);
  color: #ffffff;
}

.site-header-edu .slicknav_nav li.active > a {
  color: #ffffff !important;
  background-color: #374562 !important;
}

.header-bottom-row {
  align-items: center;
}

.header-site-brand a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 24px;
}
.header-site-brand {
  flex: 0 0 auto;
}

.header-site-brand .logo img {
  max-height: 100px;
  width: auto;
}

@media (min-width: 1200px) {
  .header-site-brand .logo img {
    max-height: 100px;
  }
}

.header-site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

/* Desktop: flex nav — same vertical rhythm on all pages (scrolled or not) */
@media (min-width: 992px) {
  .header-bottom-row {
    flex-wrap: nowrap;
  }

  .main-menu {
    width: 100%;
    text-align: right;
  }

  .main-menu nav > ul#m_menu_active {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
    row-gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    gap: 0;
  }

  .main-menu nav ul li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .site-header-edu .main-menu nav ul li > a {
    white-space: nowrap;
    padding: 10px 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
    font-weight: 700;
  }
}

@media (min-width: 1200px) {
  .main-menu nav > ul#m_menu_active {
    flex-wrap: nowrap;
  }

  .site-header-edu .main-menu nav ul li > a {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (min-width: 1366px) {
  .site-header-edu .main-menu nav ul li > a {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (min-width: 1600px) {
  .site-header-edu .main-menu nav ul li > a {
    padding: 10px 20px;
  }
}
