/* ==========================================================================
   Import Modern Typography from Google Fonts (Outfit & Inter)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap");

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* HSL Tailored Modern Palette (Indigo Base, Peach/Gold Accent) */
  --bg-cream: hsl(210, 20%, 98%);
  --bg-white: hsl(0, 0%, 100%);
  --text-dark: hsl(248, 20%, 15%);
  --text-muted: hsl(248, 10%, 45%);

  --primary-indigo: hsl(248, 79%, 28%); /* #1E0F80 */
  --primary-light: hsl(248, 65%, 45%);
  --primary-bg-light: hsl(248, 50%, 97%);

  --accent-peach: hsl(17, 88%, 65%); /* #F38358 */
  --accent-peach-light: hsl(17, 75%, 78%);
  --accent-peach-bg: hsl(17, 85%, 97%);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(30, 15, 128, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(30, 15, 128, 0.06);

  /* Fonts */
  --font-serif: "Outfit", "Inter", sans-serif;
  --font-sans: "Inter", sans-serif;

  /* Border Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 12px rgba(30, 15, 128, 0.02);
  --shadow-md: 0 12px 36px rgba(30, 15, 128, 0.04);
  --shadow-lg: 0 24px 48px rgba(30, 15, 128, 0.08);

  /* Animations */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-peach);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-indigo);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

h2.decorated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-peach);
  border-radius: 2px;
}

h2.decorated.center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-light);
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.section {
  padding: 4.5rem 0;
}

.section-dark {
  background-color: var(--primary-bg-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-indigo);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 15, 128, 0.2);
}

.btn-accent {
  background-color: var(--accent-peach);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: hsl(17, 88%, 58%);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 131, 88, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-indigo);
  border: 2px solid var(--primary-indigo);
}

.btn-outline:hover {
  background-color: var(--primary-indigo);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sticky Header & Menu
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-indigo);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-peach);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-peach);
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-bg-light);
  color: var(--primary-indigo);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-indigo);
  margin-bottom: 5px;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.8rem 0;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  .dropdown.active .dropdown-menu {
    max-height: 150px;
  }
}

/* ==========================================================================
   Hero and Sections
   ========================================================================= */
.hero-banner {
  margin-top: var(--header-height);
  position: relative;
  height: 60vh;
  min-height: 450px;
  background-size: cover;
  background-position: center right; /* keeps Mother's face on the right visible */
  display: flex;
  align-items: flex-end; /* Position at the bottom-left */
  justify-content: flex-start;
  color: var(--bg-white);
  text-align: left;
  padding-bottom: 1.5rem; /* padding from bottom on desktop */
}

.hero-banner::before {
  display: none; /* remove background color/tint overlay completely */
}

.hero-content {
  position: relative;
  z-index: 10;
  width: fit-content;
  max-width: 650px;
  padding: 1.25rem 1.75rem; /* decreased padding */
  background: rgba(20, 10, 80, 0.45); /* translucent dark brand blue */
  backdrop-filter: blur(12px); /* premium glassmorphism blur */
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  margin-left: 1.5rem; /* fallback for tablet/desktop below 1200px (matches container padding) */
}

@media (min-width: 1200px) {
  .hero-content {
    margin-left: calc((100% - 1200px) / 2 + 1.5rem); /* Align exactly with container left edge */
  }
}

.hero-content h1 {
  background: linear-gradient(135deg, #ffffff 30%, #ffeaa7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 1.75rem; /* decreased font-size */
  line-height: 1.25;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem; /* decreased font-size */
  line-height: 1.5;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-banner {
    height: 50vh;
    min-height: 350px;
    align-items: flex-end;
    padding-bottom: 1rem; /* space from bottom on mobile (no touching) */
    background-position: 70% center;
  }
  .hero-content {
    margin-left: 1rem;
    margin-right: 1rem;
    width: calc(100% - 2rem);
    padding: 0.85rem 1.25rem; /* decreased padding */
  }
  .hero-content h1 {
    font-size: 1.2rem; /* decreased font-size */
  }
  .hero-content p {
    font-size: 0.8rem; /* decreased font-size */
  }
}

/* ==========================================================================
   Premium Cards
   ========================================================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-peach);
  background-color: var(--accent-peach-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.2rem;
  color: var(--primary-indigo);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Carousel/Slider within card */
.card-slider {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
  min-width: 100%;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-indigo);
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--bg-white);
  color: var(--accent-peach);
}

.slider-btn-prev {
  left: 10px;
}

.slider-btn-next {
  right: 10px;
}

/* ==========================================================================
   Center Locator Widget custom wrapper
   ========================================================================== */
.syc-container {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  margin: 0 auto;
}

/* ==========================================================================
   Timelines
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-bg-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-peach);
  border: 4px solid var(--bg-cream);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-left::after {
  right: -10px;
}

.timeline-right {
  left: 50%;
  text-align: left;
}

.timeline-right::after {
  left: -10px;
}

.timeline-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-peach);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0;
    padding: 1.5rem 1rem 1.5rem 3.5rem;
    text-align: left;
  }
  .timeline-left::after, .timeline-right::after {
    left: 10px;
  }
}

/* ==========================================================================
   Accordions (Circulars / Districts)
   ========================================================================== */
.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-indigo);
  user-select: none;
  background-color: var(--bg-white);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--primary-bg-light);
  color: var(--primary-light);
}

.accordion-icon {
  font-size: 0.9rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.5rem;
}

.accordion-content-inner {
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.accordion-content-inner h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.accordion-content-inner p {
  margin-bottom: 0.75rem;
}

.accordion-item.active .accordion-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-peach);
}

/* ==========================================================================
   Grid Accordions / Tab Panels
   ========================================================================== */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-white);
  border: 1px solid var(--glass-border);
  color: var(--primary-indigo);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary-indigo);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-indigo);
  color: var(--bg-white);
  padding: 4rem 0 2rem 0;
  border-top: 4px solid var(--accent-peach);
}

.footer h3, .footer h4 {
  color: var(--bg-white);
}

.footer p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--accent-peach);
  color: var(--bg-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   Video Lightbox / Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-close:hover {
  color: var(--accent-peach);
}

/* ==========================================================================
   Custom Video Overlay Card
   ========================================================================== */
.video-card-overlay {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.video-card-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card-overlay:hover img {
  transform: scale(1.05);
}

.video-card-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 15, 128, 0.2);
  transition: var(--transition);
}

.video-card-overlay:hover::before {
  background: rgba(30, 15, 128, 0.4);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-peach);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(243, 131, 88, 0.4);
  transition: var(--transition);
}

.video-card-overlay:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--bg-white);
  color: var(--accent-peach);
}
