@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
  --gov-blue: #1a3a6b;
  --gov-blue-mid: #1E4D8C;
  --gov-blue-light: #EBF2FF;
  --saffron: #f97316;
  --saffron-light: #fff7ed;
  --green-goa: #16a34a;
  --green-light: #f0fdf4;
  --white: #FFFFFF;
  --gray-bg: #f8fafc;
  --gray-soft: #EEF1F5;
  --text-dark: #0F1F3D;
  --text-muted: #5A6A80;
}

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Merriweather', serif;
}

/* ── Heading Underline ── */
.heading-underline {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--saffron);
}
.heading-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ── Textures ── */
.texture-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 30px
  );
}

/* ── Utility Color Classes ── */
.bg-gov-blue { background-color: var(--gov-blue); }
.bg-gov-blue-mid { background-color: var(--gov-blue-mid); }
.bg-gov-blue-light { background-color: var(--gov-blue-light); }
.bg-saffron { background-color: var(--saffron); }
.bg-saffron-light { background-color: var(--saffron-light); }
.bg-green-goa { background-color: var(--green-goa); }
.bg-green-light { background-color: var(--green-light); }
.bg-gray-bg { background-color: var(--gray-bg); }
.text-gov-blue { color: var(--gov-blue); }
.text-gov-blue-mid { color: var(--gov-blue-mid); }
.text-saffron { color: var(--saffron); }
.text-green-goa { color: var(--green-goa); }
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--saffron);
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-primary:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.btn-outline-saffron {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--saffron);
  color: var(--saffron);
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-saffron:hover {
  background-color: var(--saffron);
  color: var(--white);
}

/* ── Inner Page Hero ── */
.inner-hero {
  height: 220px;
  background: linear-gradient(90deg, var(--gov-blue) 0%, var(--gov-blue-mid) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.inner-hero-content {
  position: relative;
  z-index: 10;
}
.emblem-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  width: 180px;
  pointer-events: none;
}

/* ── Photo Placeholder ── */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e2e8f0;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  color: #64748b;
  font-style: italic;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  min-height: 200px;
  transition: background-color 0.3s ease;
}
.photo-placeholder:hover {
  background-color: #cbd5e1;
}
.photo-placeholder-sm {
  min-height: 120px;
  font-size: 0.75rem;
}
.photo-placeholder-lg {
  min-height: 300px;
}
.photo-placeholder-round {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  min-height: unset;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 31, 61, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #64748b;
  font-style: italic;
  min-width: 300px;
  min-height: 200px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.2);
}

/* ── Enrollment Bar Chart ── */
.enrollment-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.enrollment-bar .bar {
  width: 80px;
  border-radius: 6px 6px 0 0;
  transition: height 0.8s ease, background-color 0.3s ease;
}

/* ── Swiper Customization ── */
.swiper-pagination-bullet { background: white; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--saffron); opacity: 1; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--gov-blue-mid); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gov-blue); }

/* ── Toast Notification ── */
.toast {
  position: fixed;
  top: 20px;
  right: -400px;
  background: var(--green-goa);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  max-width: 400px;
}
.toast.show { right: 20px; }

/* ── Tricolor Accent ── */
.tricolor-top {
  position: relative;
}
.tricolor-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316 0%, #f97316 33%, white 33%, white 66%, #16a34a 66%, #16a34a 100%);
}

/* ── Pill Badge ── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.pill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
