/* ==========================================================================
   EMERALD JUNIOR SCHOOL DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Brand Custom Properties (HSL) --- */
:root {
  --primary: hsl(158, 64%, 22%);            /* Deep Emerald Green */
  --primary-rgb: 9, 77, 51;
  --primary-foreground: #ffffff;
  --secondary: hsl(152, 40%, 96%);          /* Soft Mint Gray Background */
  --accent: hsl(45, 96%, 53%);              /* Warm Gold/Yellow Highlight */
  --accent-foreground: hsl(158, 64%, 12%);
  --muted: hsl(152, 20%, 92%);
  --muted-foreground: hsl(158, 15%, 40%);
  --text: hsl(158, 45%, 12%);
  --border: hsl(158, 20%, 90%);
  --background: #ffffff;
  
  --radius-lg: 2rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(9, 77, 51, 0.1), 0 4px 6px -4px rgba(9, 77, 51, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(9, 77, 51, 0.15), 0 8px 10px -6px rgba(9, 77, 51, 0.15);
  --shadow-2xl: 0 25px 50px -12px rgba(9, 77, 51, 0.25);
  
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* --- Basic Resets --- */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: transparent;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

.section-py {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-py {
    padding: 7.5rem 0;
  }
}

/* --- Navigation Header --- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-b: 1px solid rgba(9, 77, 51, 0.1);
  height: 5rem;
  transition: var(--transition-all);
}

header.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 4.5rem;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: var(--shadow-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Navigation Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(9, 77, 51, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  filter: brightness(0.95);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid rgba(9, 77, 51, 0.2);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(9, 77, 51, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Mobile Navigation Dropdown */
.mobile-menu {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid rgba(9, 77, 51, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-item {
  font-size: 1.1rem;
  padding: 0.25rem 0;
}

.mobile-menu .btn {
  justify-content: center;
  width: 100%;
}

/* --- Motto Scrolling Marquee --- */
.marquee-container {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-top: 1px solid rgba(250, 188, 30, 0.3);
  border-bottom: 1px solid rgba(250, 188, 30, 0.3);
  overflow: hidden;
  padding: 0.6rem 0;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .marquee-item {
    font-size: 0.875rem;
    gap: 2rem;
  }
}

.marquee-dot {
  color: var(--accent);
  font-size: 1.25rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: linear-gradient(to bottom, var(--secondary) 0%, #ffffff 80%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg-accent-1 {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background-color: rgba(250, 188, 30, 0.15);
  filter: blur(64px);
  pointer-events: none;
}

.hero-bg-accent-2 {
  position: absolute;
  top: 33%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background-color: rgba(9, 77, 51, 0.08);
  filter: blur(64px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(250, 188, 30, 0.15);
  border: 1px solid rgba(250, 188, 30, 0.3);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-tag svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent-foreground);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.25rem;
  }
}

.hero-motto {
  position: relative;
  display: inline-block;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent-foreground);
  margin-bottom: 1.5rem;
}

.hero-motto svg {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.75rem;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background-color: var(--border);
}

/* Angled Image Styling */
.hero-image-wrapper {
  position: relative;
}

.hero-img-card {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid #ffffff;
  transform: rotate(1.5deg);
  transition: var(--transition-all);
}

.hero-img-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img-card img {
  width: 100%;
  height: 24rem;
}

@media (min-width: 768px) {
  .hero-img-card img {
    height: 30rem;
  }
}

.hero-badge-overlay {
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(9, 77, 51, 0.05);
  transform: rotate(-2deg);
}

.hero-badge-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-badge-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

.hero-badge-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* --- About Preview / Pillars Section --- */
.about-section {
  background-color: #ffffff;
}

.about-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-header-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-foreground);
  background-color: rgba(250, 188, 30, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.about-heading {
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about-heading {
    font-size: 3rem;
  }
}

.about-text {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-grid-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-1 {
  border-radius: 1rem;
  height: 16rem;
  box-shadow: var(--shadow-md);
}

.about-img-2 {
  border-radius: 1rem;
  height: 16rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(9, 77, 51, 0.08);
  background-color: rgba(152, 40, 96, 0.1); /* HSL Light green tint */
  padding: 1.75rem;
  transition: var(--transition-all);
}

.pillar-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-lg);
  background-color: #ffffff;
  border-color: rgba(9, 77, 51, 0.15);
}

.pillar-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pillar-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* --- Admissions Section --- */
.admissions-section {
  position: relative;
  background-color: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
}

.admissions-section h2 {
  color: var(--primary-foreground);
}

.admissions-bg-blur {
  position: absolute;
  bottom: -8rem;
  right: -5rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background-color: rgba(250, 188, 30, 0.1);
  filter: blur(64px);
  pointer-events: none;
}

.admissions-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent) 0%, #ffffff 50%, var(--accent) 100%);
}

.admissions-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.admissions-header .section-tag {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.admissions-heading {
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .admissions-heading {
    font-size: 3.5rem;
  }
}

.admissions-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition-all);
}

.step-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-0.15rem);
}

.step-num {
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 3.75rem;
  color: rgba(250, 188, 30, 0.35);
  pointer-events: none;
}

.step-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.step-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.step-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  position: relative;
  z-index: 10;
}

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

/* --- Contact & Footer Section --- */
.site-footer {
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 20rem;
}

.footer-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: rgba(9, 77, 51, 0.9);
}

.footer-contact-item:hover {
  color: var(--primary);
}

.footer-contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(250, 188, 30, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 1rem;
  height: 1rem;
}

.footer-loc-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-loc-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  border-top: 1px solid rgba(9, 77, 51, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-motto-text {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(9, 77, 51, 0.7);
}

/* Social media icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-0.15rem);
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: #ffffff;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: var(--transition-all);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- Form Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-card-info {
  background-color: var(--secondary);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-info-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-form-container {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background-color: var(--secondary);
  color: var(--text);
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(9, 77, 51, 0.1);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

/* --- About Page Details & Gallery Grid --- */
.about-hero {
  background-color: var(--secondary);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.about-hero-title {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .about-hero-title {
    font-size: 3.5rem;
  }
}

.about-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .about-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.details-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.details-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.details-image-box {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 22rem;
}

.details-image-box img {
  width: 100%;
  height: 100%;
}

/* Gallery Section styling */
.gallery-section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  cursor: pointer;
  background-color: #ffffff;
  transition: var(--transition-all);
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-img-box {
  height: 15rem;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  transition: var(--transition-all);
}

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

.gallery-info-box {
  padding: 1.25rem;
}

.gallery-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* --- Lightbox Overlay --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 77, 51, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.75rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid #ffffff;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Resources Hub Page --- */
.resources-hero {
  background-color: var(--secondary);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition-all);
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(9, 77, 51, 0.15);
  transform: translateY(-0.15rem);
}

.resource-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.resource-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: rgba(250, 188, 30, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
}

.resource-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Dynamic displaying filename text styling */
.resource-filename {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background-color: var(--secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  word-break: break-all;
  display: inline-block;
}

.resource-download-btn {
  justify-content: center;
  width: 100%;
}
