/* ==========================================================================
   SarNit Preschool Theme - Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --color-primary: #092a48;      /* SarNit Navy */
  --color-secondary: #d95615;    /* SarNit Orange */
  --color-accent-yellow: #ffb703; /* Sunshine Yellow */
  --color-accent-pink: #d84384;   /* Playful Pink */
  --color-accent-teal: #06d6a0;   /* Mint Green */
  
  --color-text-dark: #1e293b;     /* Slate 800 */
  --color-text-muted: #64748b;    /* Slate 500 */
  --color-bg-light: #f8fafc;      /* Soft off-white */
  --color-bg-white: #ffffff;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Shadow & Radii */
  --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(9, 42, 72, 0.08), 0 4px 6px -2px rgba(9, 42, 72, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(9, 42, 72, 0.1), 0 10px 10px -5px rgba(9, 42, 72, 0.04);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  /* Transition */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

button, input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Common Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(217, 86, 21, 0.1);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  box-shadow: 0 4px 14px rgba(217, 86, 21, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 42, 72, 0.2);
}

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

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

.btn-navy {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  box-shadow: 0 4px 14px rgba(9, 42, 72, 0.3);
}

.btn-navy:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 86, 21, 0.25);
}

/* --------------------------------------------------------------------------
   1. Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 24px;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info-item svg {
  fill: var(--color-accent-yellow);
  width: 16px;
  height: 16px;
}

.top-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-schedule svg {
  fill: var(--color-accent-teal);
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   2. Header & Navbar
   -------------------------------------------------------------------------- */
.header {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header.sticky {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.logo-text span {
  color: var(--color-secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 5px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle svg {
  width: 30px;
  height: 30px;
  fill: var(--color-primary);
}

/* --------------------------------------------------------------------------
   3. Hero Section & Carousel
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  height: 650px;
  width: 100%;
  overflow: hidden;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9, 42, 72, 0.85) 0%, rgba(9, 42, 72, 0.4) 60%, rgba(9, 42, 72, 0.1) 100%);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--color-bg-white);
  max-width: 650px;
}

.slide-tag {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.slide-title {
  color: var(--color-bg-white);
  font-size: 54px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease 0.4s, opacity 0.6s ease 0.4s;
}

.slide-title span {
  color: var(--color-accent-yellow);
}

.slide-desc {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease 0.6s, opacity 0.6s ease 0.6s;
}

.slide-btn {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease 0.8s, opacity 0.6s ease 0.8s;
}

.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-btn {
  transform: translateY(0);
  opacity: 1;
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--color-bg-white);
  color: var(--color-bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.slider-nav-btn:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

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

/* --------------------------------------------------------------------------
   4. Welcome / Kids Center Section
   -------------------------------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.welcome-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px dashed transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.welcome-card:nth-child(1) { border-color: rgba(217, 86, 21, 0.2); }
.welcome-card:nth-child(2) { border-color: rgba(6, 214, 160, 0.2); }
.welcome-card:nth-child(3) { border-color: rgba(255, 183, 3, 0.2); }
.welcome-card:nth-child(4) { border-color: rgba(216, 67, 132, 0.2); }

.welcome-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.welcome-card:nth-child(1) .welcome-icon-box { background-color: rgba(217, 86, 21, 0.1); color: var(--color-secondary); }
.welcome-card:nth-child(2) .welcome-icon-box { background-color: rgba(6, 214, 160, 0.1); color: var(--color-accent-teal); }
.welcome-card:nth-child(3) .welcome-icon-box { background-color: rgba(255, 183, 3, 0.1); color: var(--color-accent-yellow); }
.welcome-card:nth-child(4) .welcome-icon-box { background-color: rgba(216, 67, 132, 0.1); color: var(--color-accent-pink); }

.welcome-icon-box svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.welcome-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.welcome-card-desc {
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.welcome-card:nth-child(1):hover { background-color: var(--color-secondary); color: white; }
.welcome-card:nth-child(2):hover { background-color: var(--color-accent-teal); color: white; }
.welcome-card:nth-child(3):hover { background-color: var(--color-accent-yellow); color: var(--color-primary); }
.welcome-card:nth-child(4):hover { background-color: var(--color-accent-pink); color: white; }

.welcome-card:hover .welcome-icon-box {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.welcome-card:hover .welcome-card-title,
.welcome-card:hover .welcome-card-desc {
  color: inherit;
}

/* --------------------------------------------------------------------------
   5. Dream Section (Why Choose Us)
   -------------------------------------------------------------------------- */
.dream-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

.dream-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.dream-desc {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.dream-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dream-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.dream-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.dream-item-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(217, 86, 21, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dream-item:nth-child(2) .dream-item-icon {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--color-accent-teal);
}

.dream-item:nth-child(3) .dream-item-icon {
  background-color: rgba(255, 183, 3, 0.1);
  color: var(--color-accent-yellow);
}

.dream-item-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.dream-item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dream-item-desc {
  color: var(--color-text-muted);
  font-size: 14px;
}

.dream-wave {
  position: absolute;
  width: 100%;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.dream-wave-top {
  top: 0;
  transform: translateY(-99%);
}

/* --------------------------------------------------------------------------
   6. Education Banner
   -------------------------------------------------------------------------- */
.edu-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  text-align: center;
  color: var(--color-bg-white);
}

.edu-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 42, 72, 0.85);
}

.edu-banner .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.edu-tag {
  color: var(--color-accent-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: block;
}

.edu-title {
  color: var(--color-bg-white);
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.edu-desc {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.brush-border {
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 5;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.brush-border-top {
  top: -1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'><path d='M0,30 C150,15 350,0 600,0 C850,0 1050,15 1200,30 L1200,30 L0,30 Z' fill='%23ffffff'/></svg>");
}

.brush-border-bottom {
  bottom: -1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'><path d='M0,0 C150,15 350,30 600,30 C850,30 1050,15 1200,0 L1200,0 L0,0 Z' fill='%23ffffff'/></svg>");
}

.brush-border-contact {
  top: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'><path d='M0,30 C150,15 350,0 600,0 C850,0 1050,15 1200,30 L1200,30 L0,30 Z' fill='%23f8fafc'/></svg>");
}

/* --------------------------------------------------------------------------
   7. Gallery & Classes Section
   -------------------------------------------------------------------------- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.class-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px dashed var(--color-accent-pink);
  transition: var(--transition-smooth);
}

.class-card:nth-child(2) {
  border-color: var(--color-secondary);
}

.class-card:nth-child(3) {
  border-color: var(--color-accent-teal);
}

.class-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

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

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

.class-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  z-index: 2;
}

.class-card:nth-child(1) .class-badge { background-color: var(--color-accent-pink); }
.class-card:nth-child(2) .class-badge { background-color: var(--color-secondary); }
.class-card:nth-child(3) .class-badge { background-color: var(--color-accent-teal); }

.class-body {
  padding: 30px;
}

.class-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.class-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.class-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #e2e8f0;
  padding-top: 18px;
  font-size: 14px;
  color: var(--color-text-dark);
  font-weight: 600;
}

.class-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.class-meta-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-secondary);
}

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

/* --------------------------------------------------------------------------
   8. Teachers Section
   -------------------------------------------------------------------------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.teacher-card {
  text-align: center;
  transition: var(--transition-smooth);
}

.teacher-mask {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  overflow: hidden;
  clip-path: url(#cloud-clip);
  background-color: var(--color-bg-light);
  border: 4px dashed var(--color-accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.teacher-card:hover .teacher-img {
  transform: scale(1.1) rotate(3deg);
}

.teacher-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.teacher-role {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teacher-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.teacher-card:hover .teacher-socials {
  opacity: 1;
  transform: translateY(0);
}

.teacher-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.teacher-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.teacher-social-link:hover {
  background-color: var(--color-secondary);
  color: white;
}

/* --------------------------------------------------------------------------
   9. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonial-slider {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 3px dashed rgba(9, 42, 72, 0.15);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

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

.testimonial-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--color-secondary);
}

.testimonial-author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-author-role {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.testimonial-text-box {
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -24px;
  left: -20px;
  font-size: 64px;
  color: rgba(217, 86, 21, 0.15);
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-text {
  font-size: 16px;
  font-style: italic;
  color: var(--color-text-dark);
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.testimonial-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.testimonial-ctrl-btn:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.testimonial-ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   10. Blog & News Section
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent-yellow);
}

.blog-card:nth-child(2) .blog-img-wrapper { border-color: var(--color-accent-pink); }
.blog-card:nth-child(3) .blog-img-wrapper { border-color: var(--color-accent-teal); }

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

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

.blog-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-secondary);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
}

.blog-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-title a:hover {
  color: var(--color-secondary);
}

.blog-excerpt {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author svg {
  width: 14px;
  height: 14px;
  fill: var(--color-secondary);
}

.blog-more {
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-more:hover {
  color: var(--color-secondary);
}

.blog-more svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.blog-more:hover svg {
  transform: translateX(4px);
}

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

/* --------------------------------------------------------------------------
   11. Contact & Footer Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 100px 0 60px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(217, 86, 21, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-item-details h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.contact-item-details p {
  color: var(--color-text-muted);
}

.contact-form-box {
  background-color: var(--color-bg-white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px dashed rgba(217, 86, 21, 0.15);
}

.contact-form-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  background-color: var(--color-bg-light);
  font-size: 15px;
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-secondary);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(217, 86, 21, 0.1);
}

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

/* Footer style */
.footer {
  background-color: #0b1f33; /* Slightly darker navy */
  color: #a0aec0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 3fr 3fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

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

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-social-link:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px;
}

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

.footer-links a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '•';
  color: var(--color-secondary);
  font-weight: bold;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.footer-post-title {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.footer-post-title:hover {
  color: var(--color-secondary);
}

.footer-post-meta {
  font-size: 11px;
  color: #718096;
}

.footer-newsletter-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-newsletter-form {
  position: relative;
}

.footer-newsletter-form input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 120px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-newsletter-form input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
}

.footer-newsletter-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  padding: 0 20px;
  border-radius: var(--radius-xl);
  background-color: var(--color-secondary);
  color: white;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-newsletter-btn:hover {
  background-color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: white;
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dream-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .hero-slider {
    height: 500px;
  }
  
  .slide-title {
    font-size: 38px;
  }
  
  .slide-desc {
    font-size: 16px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .edu-title {
    font-size: 32px;
  }
  
  .testimonial-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  
  .testimonial-avatar {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 576px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .classes-grid {
    grid-template-columns: 1fr;
  }
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .slide-title {
    font-size: 30px;
  }
  
  .contact-form-box {
    padding: 24px;
  }
}
