/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary-brown: #0b1e6d;
    --secondary-brown: #081652;
    --accent-gold: #d4a574;
    --accent-gold-soft: #f5e6d3;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(11, 30, 109, 0.15);
    --shadow-lg: 0 12px 40px rgba(11, 30, 109, 0.25);
    --transition: all 0.35s ease;
}

/* ============================================
   BASE & CONTAINERS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   STICKY HEADER & NAVIGATION (HOMEPAGE DESIGN)
   ============================================ */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.sticky-header-wrapper.scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.15);
}

/* Top Bar */
.top-bar {
  background: var(--primary-brown);
  color: var(--white);
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.top-bar-info i {
  font-size: 11px;
  color: var(--accent-gold);
}

.top-bar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-bar-right a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  padding: 3px 0;
  position: relative;
  text-decoration: none;
}

.top-bar-right a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.top-bar-right a:hover::after { width: 100%; }

.top-bar-right a i {
  font-size: 11px;
  color: var(--accent-gold);
}

/* Header */
.header {
  background: var(--white);
  padding: 10px 0;
  border-bottom: 3px solid var(--primary-brown);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 36, 114, 0.15));
  transition: var(--transition);
}

.header-logo img:hover {
  transform: scale(1.03);
}

.header-text {
  flex-grow: 1;
}

.header-text h1 {
  font-family: 'Cooper Black', 'Georgia', serif;
  font-size: 25px;
  color: var(--primary-brown);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.header-subtitle {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.header-info {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 2px;
}

.header-accreditation {
  font-size: 13px;
  color: var(--text-light);
}

.header-accreditation strong {
  color: var(--text-dark);
  font-weight: 600;
}

.header-accreditation-logos {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-shrink: 0;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: var(--transition);
}

.logo-card:hover {
  transform: translateY(-2px);
}

.naac-card {
  position: relative;
  top: 0px;
  left: 0px;
}

.naac-card img {
  height: 94px;
  width: auto;
  object-fit: contain;
}

.nba-card {
  position: relative;
  top: -3px;
}

.nba-card img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nba-subtext {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--secondary-brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Navbar */
.navbar {
  background: var(--secondary-brown);
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-item a {
  display: block;
  padding: 16px 20px;
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-item a:hover,
.nav-item a.active {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: var(--transition);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb .current {
    color: var(--primary-brown);
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: white;
    padding: 90px 0 70px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.92;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: var(--accent-gold);
    margin: 25px auto;
    border-radius: 2px;
}

/* ============================================
   ORGANOGRAM DISPLAY & GRID
   ============================================ */
.organogram-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--primary-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.gold-divider {
    width: 70px;
    height: 4px;
    background: var(--accent-gold);
    margin: 15px auto;
    border-radius: 2px;
}

.section-intro {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.organogram-display {
    margin: 50px 0;
}

.organogram-frame {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.organogram-large {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.organogram-frame:hover .organogram-large {
    transform: scale(1.012);
}

.image-caption {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
}

.key-positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.position-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-brown);
}

.position-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.level-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: #f5ede5;
    color: var(--primary-brown);
}

.level-badge.top {
    background: var(--primary-brown);
    color: white;
}

.level-badge.support {
    background: #e8f0ff;
    color: #1e40af;
}

/* ============================================
   RESPONSIBILITIES SECTION
   ============================================ */
.responsibilities-section {
    padding: 90px 0;
    background: white;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resp-card {
    background: rgba(124, 40, 9, 0.03);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(124, 40, 9, 0.08);
}

.resp-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.resp-card i {
    font-size: 2.6rem;
    color: var(--primary-brown);
    margin-bottom: 18px;
}

.resp-card h3 {
    color: var(--primary-brown);
    margin-bottom: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-brown);
    color: white;
    padding: 30px 0;
}

.gold-text {
    color: var(--accent-gold);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-top:hover {
    background: var(--secondary-brown);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN & MOBILE OVERRIDES
   ============================================ */
@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .header {
    padding: 8px 0;
  }

  .header-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .header-logo img {
    width: 70px;
  }

  .header-text h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .header-subtitle {
    font-size: 13.5px;
  }

  .header-info,
  .header-accreditation {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .header-accreditation-logos {
    justify-content: center;
    gap: 32px;
    margin-top: 4px;
  }

  .naac-card {
    top: 0;
    left: 0;
  }

  .naac-card img {
    height: 80px;
  }

  .nba-card img {
    height: 50px;
  }

  .nba-subtext {
    font-size: 9px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #001d72;
    flex-direction: column;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 99999;
    padding-top: 80px;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .organogram-section,
  .responsibilities-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .organogram-display {
    margin: 40px 0;
  }

  .key-positions-grid,
  .responsibilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    width: 52px;
  }

  .header-text h1 {
    font-size: 13px;
  }

  .header-subtitle {
    font-size: 10.5px;
  }

  .header-info {
    font-size: 9.5px;
  }

  .naac-card img {
    height: 60px;
  }

  .nba-card img {
    height: 40px;
  }

  .nba-subtext {
    font-size: 8px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .position-card,
  .resp-card {
    padding: 25px 20px;
  }
}