/* Formal Academic Theme - Deep Navy & Gold - Vertical Sidebar Layout */
:root {
  /* Palette */
  --bg-body: #ffffff;
  --bg-alt: #f4f7f9;
  --bg-dark: #0f1c2e;
  /* Deep Navy */

  --primary: #0f1c2e;
  /* Navy */
  --primary-light: #243b55;
  --gold: #c5a059;
  /* Metallic Gold */
  --gold-light: #e6c88b;

  --text-main: #0f1c2e;
  --text-body: #4a5568;
  --text-light: #a0aec0;
  --text-white: #ffffff;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 28, 46, 0.08), 0 4px 6px -2px rgba(15, 28, 46, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 28, 46, 0.1), 0 10px 10px -5px rgba(15, 28, 46, 0.04);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --shadow-lg: 0 20px 25px -5px rgba(15, 28, 46, 0.1), 0 10px 10px -5px rgba(15, 28, 46, 0.04);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --sidebar-width: 280px;
}

/* Logo Image Styling */
/* Logo Image Styling */
.logo-img {
  width: 55px;
  height: auto;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--sidebar-width);
  /* Push content right */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Sidebar Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--primary);
  color: white;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  /* Allow auto height for flex stacked */
  gap: 3rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
  line-height: 1.2;
}

/* Navigation Vertical */
.site-nav {
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Remove gap, use padding instead */
}

.site-nav a {
  display: block;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.site-nav a::after {
  display: none;
  /* Remove horizontal underline */
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  padding-left: 10px;
  /* Indent on hover */
}

.site-nav .btn {
  margin-top: 2rem;
  width: 100%;
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.site-nav .btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  /* Hidden on Desktop */
}


/* --- Main Content Admustments --- */
main {
  flex-grow: 1;
  width: 100%;
}

.hero {
  border-radius: 0;
  /* Remove rounded bottom if previously present */
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--text-white);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 6px rgba(15, 28, 46, 0.2);
}

.btn.primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(15, 28, 46, 0.25);
}

.btn.ghost {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.ghost:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn.small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn.inline {
  margin-top: 1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 28, 46, 0.95), rgba(15, 28, 46, 0.85)),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  z-index: 1;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 3rem;
  font-weight: 300;
  max-width: 700px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-ctas .btn.primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
}

.hero-ctas .btn.primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--primary);
}

.hero-ctas .btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.hero-ctas .btn.ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

/* --- Sections Common --- */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin: 1.5rem auto 0;
}

/* --- Grid & Cards --- */
.grid {
  display: grid;
  gap: 3rem;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.about-card {
  background-color: var(--bg-alt);
  border-left: 4px solid var(--primary);
  position: relative;
}

.highlights {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
}

.highlights li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Stats */
.stats-card {
  background-color: var(--primary);
  color: var(--text-white);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* --- Programs --- */
#programs {
  background-color: var(--bg-alt);
}

.program {
  background: var(--bg-body);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}

.prog-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--bg-alt);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
}

.program h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.program p {
  flex-grow: 1;
  margin-bottom: 2rem;
  color: var(--text-body);
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--gold);
  gap: 0.75rem;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
}

.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* --- Admissions --- */
.apply-card {
  background-color: var(--primary);
  color: white;
}

.apply-card h3 {
  color: var(--gold);
}

.apply-card p {
  color: rgba(255, 255, 255, 0.8);
}

.apply-card ul {
  margin: 2rem 0;
}

.apply-card li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.apply-card li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.apply-card .btn.primary {
  background-color: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
  width: auto;
  /* reset just in case */
}

/* Form */
.form-card {
  background: white;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 28, 46, 0.1);
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Contact & Footer --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.contact-grid>div {
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-grid strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socials a {
  color: white;
  margin-left: 1.5rem;
}

.socials a:hover {
  color: var(--gold);
}


/* --- Responsive & Mobile Drawer --- */
@media (max-width: 900px) {

  /* Reset Body Padding */
  body {
    padding-left: 0;
  }

  /* Mobile Sidebar (Drawer) */
  .site-header {
    transform: translateX(-100%);
    /* Hide by default */
    width: 280px;
    /* Fixed width drawer */
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  }

  /* Open State */
  .site-header.open {
    transform: translateX(0);
  }

  /* Toggle Button (Hamburger) */
  .nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    /* Above drawer */
    background: var(--primary);
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  /* Toggle Animation */
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Grid Stack */
  .grid.two-col,
  .grid.three-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .socials a {
    margin: 0 0.75rem;
  }
}


/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}