/* ==========================================================================
   CHERRY BLOSSOM NURSERY - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* CSS Variables & Tokens */
:root {
  --font-primary: 'Fredoka', sans-serif;

  /* Colors */
  --color-bg-light: #FFF8F8;
  --color-bg-warm: #FFF5F2;
  --color-white: #FFFFFF;
  --color-text: #240D0D;
  --color-heading: #522121;
  --color-brand: #F7A1B2;
  --color-brand-hover: #FF8A9F;
  --color-brand-light: #FFECEF;
  
  --color-peach: #FFEBE6;
  --color-peach-light: #FFF2EF;
  --color-yellow: #FFE082;
  --color-yellow-light: #FFF9E6;
  --color-green: #A5D6A7;
  --color-green-light: #E8F5E9;
  --color-blue: #90CAF9;
  --color-blue-light: #E3F2FD;
  --color-shadow: rgba(82, 33, 33, 0.08);
  --color-shadow-hover: rgba(82, 33, 33, 0.15);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.25;
}

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

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

/* Common Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* Sticky Glassmorphic Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 248, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(247, 161, 178, 0.3);
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(255, 248, 248, 0.95);
  box-shadow: 0 4px 30px var(--color-shadow-hover);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--spacing-md);
}

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

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

.logo-link:hover .logo-img {
  transform: scale(1.05) rotate(-2deg);
}

/* Navigation menu */
nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  background-color: var(--color-peach-light);
  padding: 6px;
  border-radius: 40px;
  border: 1.5px dashed rgba(247, 161, 178, 0.5);
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading);
  white-space: nowrap;
}

.nav-item a:hover {
  background-color: var(--color-brand-light);
  color: var(--color-brand-hover);
}

.nav-item.active a {
  background-color: var(--color-brand);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(247, 161, 178, 0.4);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-heading);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Home / Hero Section */
.hero-section {
  padding-top: var(--spacing-xl);
  padding-bottom: calc(var(--spacing-xl) * 1.5);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.flower-badge-decor {
  width: 70px;
  height: 70px;
  animation: rotate-slow 20s linear infinite;
  margin-bottom: -10px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-heading);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 540px;
}

/* Come / Book a Tour Badge Button */
.badge-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-peach-light) 100%);
  border: 3px dashed var(--color-brand);
  padding: 12px 28px;
  border-radius: 50px;
  width: fit-content;
  box-shadow: 0 6px 15px var(--color-shadow);
  transition: var(--transition-bounce);
  animation: soft-pulse 2.5s infinite ease-in-out;
}

.badge-tour-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(247, 161, 178, 0.25);
  border-color: var(--color-brand-hover);
}

.badge-tour-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.badge-tour-text {
  display: flex;
  flex-direction: column;
}

.badge-tour-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

.badge-tour-sub {
  font-size: 14px;
  color: var(--color-brand-hover);
  font-weight: 500;
}

/* Hero Video Container */
.hero-video-container {
  position: relative;
  border-radius: 40px 10px 40px 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px var(--color-shadow-hover);
  border: 6px solid var(--color-white);
  aspect-ratio: 16/9;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Waves & Shapes */
.wave-divider {
  position: absolute;
  width: 100%;
  left: 0;
  line-height: 0;
}

.wave-divider.top {
  top: 0;
}

.wave-divider.bottom {
  bottom: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider svg path {
  fill: var(--color-bg-light);
}

.wave-divider.white-fill svg path {
  fill: var(--color-white);
}

.wave-divider.pink-fill svg path {
  fill: var(--color-bg-light);
}

/* About Section */
.about-section {
  background-color: var(--color-white);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-decor-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.kinder-fun-badge {
  position: absolute;
  top: 0;
  left: 10%;
  background-color: var(--color-yellow-light);
  border: 2px dashed var(--color-yellow);
  padding: 15px 25px;
  border-radius: 40px 10px 40px 10px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--color-heading);
  box-shadow: 0 6px 15px var(--color-shadow);
  transform: rotate(-10deg);
  animation: float-slow 4s ease-in-out infinite alternate;
  z-index: 3;
}

.kinder-fun-badge span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #B8860B;
}

/* Irregular organic shapes for images */
.wavy-frame-container {
  width: 80%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  border: 4px dashed var(--color-brand);
  background-color: var(--color-brand-light);
  padding: 10px;
  box-shadow: 0 10px 30px var(--color-shadow);
  transition: var(--transition-smooth);
}

.wavy-frame-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transition: var(--transition-smooth);
}

.wavy-frame-container:hover {
  border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
  border-color: var(--color-brand-hover);
  transform: scale(1.02);
}

.wavy-frame-container:hover img {
  border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
}


.overlap-circle-img {
  position: absolute;
  bottom: -20px;
  left: 5%;
  width: 50%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 6px solid var(--color-white);
  box-shadow: 0 8px 25px var(--color-shadow-hover);
  overflow: hidden;
  z-index: 2;
}

.overlap-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content block styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--color-brand);
  bottom: -6px;
  left: 0;
  border-radius: 2px;
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.text-block p {
  color: var(--color-text);
  font-size: 1.05rem;
}

/* Vision & Mission Cards (About page) */
.vision-mission-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.vision-card, .mission-card {
  display: flex;
  gap: var(--spacing-md);
  background-color: var(--color-yellow-light);
  border: 3px dashed var(--color-yellow);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 4px 15px var(--color-shadow);
  transition: var(--transition-smooth);
}

.mission-card {
  background-color: var(--color-brand-light);
  border-color: var(--color-brand);
}

.vision-card:hover, .mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--color-shadow-hover);
}

.card-icon {
  font-size: 2.5rem;
  line-height: 1;
  align-self: flex-start;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* Curriculum Section (Home page) */
.curriculum-section {
  background-color: var(--color-bg-light);
  background-image: var(--bg-origami, none);
  background-size: cover;
  position: relative;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.curriculum-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.curriculum-image-wrapper {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--color-shadow-hover);
  border: 6px solid var(--color-white);
  transition: var(--transition-smooth);
}

.curriculum-image-wrapper:hover {
  transform: scale(1.02);
}

/* Inclusion & Diversity Section */
.inclusion-section {
  background-color: var(--color-bg-light);
}

.inclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.inclusion-badge {
  font-size: 1.25rem;
  color: var(--color-brand-hover);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: block;
}

/* Why Choose Us Section */
.choose-section {
  background-color: var(--color-white);
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.choose-card {
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 6px 20px var(--color-shadow);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choose-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--color-shadow-hover);
}

.choose-card:nth-child(1) { background-color: var(--color-brand-light); border: 2px dashed var(--color-brand); }
.choose-card:nth-child(2) { background-color: var(--color-yellow-light); border: 2px dashed var(--color-yellow); }
.choose-card:nth-child(3) { background-color: var(--color-green-light); border: 2px dashed var(--color-green); }
.choose-card:nth-child(4) { background-color: var(--color-blue-light); border: 2px dashed var(--color-blue); }
.choose-card:nth-child(5) { background-color: var(--color-peach-light); border: 2px dashed rgba(247, 161, 178, 0.6); }

.choose-card-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.choose-card-text {
  font-size: 0.98rem;
  color: var(--color-text);
}

/* School Readiness Promise */
.readiness-section {
  background-color: var(--color-bg-light);
}

.readiness-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin-top: 10px;
}

.skills-list li {
  background-color: var(--color-white);
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px var(--color-shadow);
  font-size: 0.98rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--color-brand);
}

/* Facilities Section */
.facilities-section {
  background-color: var(--color-white);
}

.facilities-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.facility-card {
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid var(--color-white);
  box-shadow: 0 10px 25px var(--color-shadow);
  aspect-ratio: 1/1;
  position: relative;
  transition: var(--transition-bounce);
}

.facility-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px var(--color-shadow-hover);
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 6px 20px var(--color-shadow);
  border: 2px dashed var(--color-brand-light);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-rating {
  color: var(--color-yellow);
  font-size: 1.25rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-author::before {
  content: '🌸';
  font-size: 14px;
}

/* Enroll Steps Section */
.enroll-section {
  background-color: var(--color-bg-warm);
}

.enroll-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.enroll-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.enroll-step-card {
  background-color: var(--color-white);
  padding: 35px 30px;
  border-radius: 30px;
  border: 3px dashed var(--color-brand-light);
  box-shadow: 0 6px 20px var(--color-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: var(--transition-bounce);
}

.enroll-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--color-shadow-hover);
  border-color: var(--color-brand);
}

.enroll-step-card:nth-child(2) {
  border-color: var(--color-yellow);
}
.enroll-step-card:nth-child(2):hover {
  border-color: var(--color-yellow);
}

.enroll-step-card:nth-child(3) {
  border-color: var(--color-green);
}
.enroll-step-card:nth-child(3):hover {
  border-color: var(--color-green);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-brand);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(247, 161, 178, 0.4);
}

.enroll-step-card:nth-child(2) .step-number {
  background-color: var(--color-yellow);
  box-shadow: 0 4px 10px rgba(255, 224, 130, 0.4);
}

.enroll-step-card:nth-child(3) .step-number {
  background-color: var(--color-green);
  box-shadow: 0 4px 10px rgba(165, 214, 167, 0.4);
}

.enroll-step-card h3 {
  font-size: 1.4rem;
  margin-top: 10px;
}

/* Inner Page Header Hero Section */
.page-hero {
  padding: calc(var(--spacing-xl) * 1.5) 0 var(--spacing-xl);
  text-align: center;
  background-color: var(--color-bg-light);
  position: relative;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Nestable Tabs Component (Classes Page) */
.tabs-container {
  margin-top: var(--spacing-md);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  border-bottom: 2px dashed var(--color-brand-light);
  padding-bottom: var(--spacing-md);
}

.tab-btn {
  background: var(--color-white);
  border: 3px dashed var(--color-brand-light);
  color: var(--color-heading);
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 10px var(--color-shadow);
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
}

.tab-btn.active {
  background-color: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
  box-shadow: 0 6px 15px rgba(247, 161, 178, 0.35);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.tab-content-panel.active {
  display: block;
}

.tab-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-lg);
  align-items: center;
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 35px;
  border: 3px dashed var(--color-brand-light);
  box-shadow: 0 10px 30px var(--color-shadow);
}

.tab-content-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.tab-content-text h3 {
  font-size: 2rem;
  color: var(--color-heading);
}

.tab-content-image {
  border-radius: 25px;
  overflow: hidden;
  border: 5px solid var(--color-bg-light);
  box-shadow: 0 8px 20px var(--color-shadow-hover);
  aspect-ratio: 4/3;
}

.tab-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Daily Routine Timeline */
.timeline-section {
  background-color: var(--color-white);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: var(--spacing-lg) auto 0;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--color-brand-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
  border: 1px dashed var(--color-brand);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '🌸';
  position: absolute;
  width: 32px;
  height: 32px;
  right: -16px;
  top: 15px;
  background-color: var(--color-white);
  border: 2px dashed var(--color-brand);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

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

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -16px;
}

.timeline-content {
  padding: 24px;
  background-color: var(--color-bg-light);
  position: relative;
  border-radius: 24px;
  box-shadow: 0 4px 15px var(--color-shadow);
  border: 2px dashed var(--color-brand-light);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--color-shadow-hover);
}

.timeline-item.left .timeline-content {
  border-color: var(--color-yellow);
}
.timeline-item.left::after {
  content: '🌞';
  border-color: var(--color-yellow);
}

.timeline-item:nth-child(even).left::after {
  content: '🎨';
}
.timeline-item:nth-child(even).right::after {
  content: '🔢';
}
.timeline-item.right .timeline-content {
  border-color: var(--color-blue);
}
.timeline-item.right::after {
  content: '🌿';
  border-color: var(--color-blue);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--color-heading);
}

/* Forms (Career, Contact pages) */
.form-container {
  max-width: 800px;
  margin: var(--spacing-md) auto 0;
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 35px;
  border: 4px dashed var(--color-brand);
  box-shadow: 0 15px 40px var(--color-shadow);
  position: relative;
  overflow: hidden;
}

.form-flower-bg {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  opacity: 0.12;
  pointer-events: none;
  animation: rotate-slow 30s linear infinite;
  z-index: 0;
}

.form-group-info {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-hover);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px dashed var(--color-brand-light);
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.form-required-hint {
  font-size: 0.9rem;
  color: var(--color-brand-hover);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.form-field-full {
  grid-column: span 2;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
}

.form-field label span {
  color: var(--color-brand-hover);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
.form-field select {
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--color-peach);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  outline: none;
  transition: var(--transition-smooth);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-brand);
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(247, 161, 178, 0.15);
}

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

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.file-upload-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-btn {
  background-color: var(--color-brand-light);
  border: 2px dashed var(--color-brand);
  color: var(--color-brand-hover);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.file-upload-input:hover + .file-upload-btn {
  background-color: var(--color-brand);
  color: var(--color-white);
}

.file-upload-name {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 4px;
}

/* Primary Button style */
.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-white);
  border: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 35px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(247, 161, 178, 0.4);
  transition: var(--transition-bounce);
  width: fit-content;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(247, 161, 178, 0.5);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Success/Error Message Overlay for forms */
.form-message {
  display: none;
  padding: 15px 25px;
  border-radius: 12px;
  margin-top: var(--spacing-md);
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.4s ease-in-out forwards;
}

.form-message.success {
  display: block;
  background-color: var(--color-green-light);
  border: 2px dashed var(--color-green);
  color: #1b5e20;
}

.form-message.error {
  display: block;
  background-color: var(--color-brand-light);
  border: 2px dashed var(--color-brand);
  color: #c2185b;
}

/* Footer Styles */
footer {
  background-color: var(--color-white);
  border-top: 2px dashed rgba(247, 161, 178, 0.3);
  padding-top: calc(var(--spacing-xl) * 1.2);
  position: relative;
  z-index: 2;
}

.footer-wave {
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-wave svg path {
  fill: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-logo {
  height: 65px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}

.footer-about-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

.footer-col-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  color: var(--color-heading);
}

.footer-col-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--color-brand);
  bottom: -6px;
  left: 0;
  border-radius: 2px;
}

.footer-links, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a::before {
  content: '🌸';
  font-size: 12px;
  transition: var(--transition-bounce);
}

.footer-links li a:hover {
  color: var(--color-brand-hover);
  padding-left: 6px;
}

.footer-links li a:hover::before {
  transform: rotate(20deg) scale(1.2);
}

.footer-contact-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  font-size: 1.1rem;
  color: var(--color-brand-hover);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-qr-code {
  width: 110px;
  height: 110px;
  border: 2px dashed var(--color-brand);
  border-radius: 20px;
  padding: 8px;
  background-color: var(--color-peach-light);
  box-shadow: 0 6px 18px var(--color-shadow);
  margin-bottom: 12px;
  transition: var(--transition-bounce);
}

.footer-qr-code:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 8px 25px rgba(247, 161, 178, 0.2);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-brand-light);
  border: 1.5px dashed var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-hover);
  transition: var(--transition-bounce);
}

.social-btn:hover {
  background-color: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 10px rgba(247, 161, 178, 0.4);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Copyright Bar */
.copyright-bar {
  border-top: 1px solid rgba(247, 161, 178, 0.15);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #7d6e6b;
}

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

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-slow {
  0% { transform: translateY(0) rotate(-10deg); }
  100% { transform: translateY(-8px) rotate(-8deg); }
}

@keyframes soft-pulse {
  0% {
    box-shadow: 0 6px 15px var(--color-shadow), 0 0 0 0 rgba(247, 161, 178, 0.4);
  }
  70% {
    box-shadow: 0 6px 20px var(--color-shadow), 0 0 0 10px rgba(247, 161, 178, 0);
  }
  100% {
    box-shadow: 0 6px 15px var(--color-shadow), 0 0 0 0 rgba(247, 161, 178, 0);
  }
}

/* Scroll Animation classes (with IntersectionObserver fallback) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Native Scroll-driven animations for supporting browsers */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-in {
      from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .scroll-reveal-native {
      animation: scroll-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .curriculum-grid, .inclusion-grid, .readiness-grid, .tab-content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .about-decor-images {
    order: -1;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 15px;
  }
  
  .timeline-item.left {
    text-align: left;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.right::after {
    left: 15px;
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 0.5rem var(--spacing-md);
  }

  .logo-img {
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: var(--spacing-sm);
    border-bottom: 2.5px dashed var(--color-brand);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
    animation: fadeIn 0.3s ease-in-out forwards;
  }

  nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    gap: 8px;
    width: 100%;
  }

  .nav-item a {
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .enroll-steps-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-field-full {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}
