/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #f0b746;
  --primary-dark: #d4af37;
  --secondary-color: #2c7a7b;
  --text-dark: #263342;
  --text-light: #5e7380;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

/* Ensure all images are visible by default - before JavaScript runs */
.smiles-page img,
.mission-image,
.mission-image img,
.feature-card,
.feature-card img,
.gallery-item,
.gallery-item img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles are handled by header.css - no duplicates needed */

/* Hero Section */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
  padding: 120px 6% 80px;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  opacity: 1;
  transform: none;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  font-style: italic;
}

.hero-description {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}



/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(240, 183, 70, 0.1);
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 700px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Mission Section */
.mission-section {
  background: var(--bg-white);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-description {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-description strong {
  color: var(--primary-color);
  font-weight: 700;
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-sm);
}

.stat-item i {
  font-size: 24px;
  color: var(--primary-color);
}

.stat-item span {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
}

.mission-image {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-image img,
.mission-image-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block !important;
  border-radius: 20px;
  opacity: 1 !important;
  visibility: visible !important;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(240, 183, 70, 0.1), rgba(212, 175, 55, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 48px;
}

.image-placeholder p {
  margin-top: 15px;
  font-size: 16px;
  color: var(--text-light);
}

/* Counter Section */
.counter-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.counter-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.counter-card:hover::before {
  opacity: 1;
}

.counter-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.counter-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.counter-number {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.counter-plus {
  position: absolute;
  top: 0;
  right: -20px;
  font-size: 32px;
  opacity: 0.7;
}

.counter-label {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features Section */
.features-section {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
}

.feature-card,
.feature-card * {
  opacity: 1 !important;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, rgba(240, 183, 70, 0.1), rgba(212, 175, 55, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.feature-icon i {
  font-size: 36px;
  color: var(--primary-color);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(240, 183, 70, 0.2), rgba(212, 175, 55, 0.1));
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 15px;
  opacity: 1 !important;
}

.feature-description {
  font-size: 16px;
  color: var(--text-light) !important;
  line-height: 1.7;
  opacity: 1 !important;
}

.feature-icon i {
  opacity: 1 !important;
  color: var(--primary-color) !important;
}

.feature-image {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  width: 100%;
  background: var(--bg-light);
  position: relative;
}

.feature-image {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block !important;
  transition: transform 0.4s ease;
  min-height: 200px;
  opacity: 1 !important;
  visibility: visible !important;
}

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

/* Stationery Image - Full Image Display */
.stationery-image-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: visible;
  width: 100%;
  min-height: 250px;
  background: var(--bg-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stationery-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain !important;
  object-position: center center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.4s ease;
  border-radius: 8px;
  margin: 0 auto;
}

.stationery-card:hover .stationery-image {
  transform: scale(1.03);
}

/* Prevent image from being too small on very wide screens */
@media (min-width: 1400px) {
  .stationery-image-container {
    min-height: 280px;
  }
  
  .stationery-image {
    max-height: 450px;
  }
}

/* Responsive adjustments for stationery images */
@media (max-width: 1200px) {
  .stationery-image-container {
    min-height: 220px;
    padding: 12px;
  }
  
  .stationery-image {
    max-height: 350px;
  }
}

@media (max-width: 992px) {
  .stationery-image-container {
    min-height: 200px;
    padding: 10px;
  }
  
  .stationery-image {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .stationery-image-container {
    min-height: 180px;
    padding: 8px;
  }
  
  .stationery-image {
    max-height: 280px;
  }
}

@media (max-width: 576px) {
  .stationery-image-container {
    min-height: 160px;
    padding: 6px;
  }
  
  .stationery-image {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .stationery-image-container {
    min-height: 150px;
    padding: 8px;
  }
  
  .stationery-image {
    max-height: 240px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .stationery-image-container {
    min-height: 130px;
    padding: 6px;
  }
  
  .stationery-image {
    max-height: 200px;
  }
}

/* Ensure stationery card has proper spacing */
.stationery-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.stationery-card .stationery-image-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

/* Ensure stationery card doesn't constrain image height */
.stationery-card .feature-description {
  margin-bottom: 20px;
}

/* Uniforms Image - Full Image Display (Same as Stationery) */
.uniforms-image-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: visible;
  width: 100%;
  min-height: 250px;
  background: var(--bg-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.uniforms-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain !important;
  object-position: center center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.4s ease;
  border-radius: 8px;
  margin: 0 auto;
}

.uniforms-card:hover .uniforms-image {
  transform: scale(1.03);
}

/* Prevent image from being too small on very wide screens */
@media (min-width: 1400px) {
  .uniforms-image-container {
    min-height: 280px;
  }
  
  .uniforms-image {
    max-height: 450px;
  }
}

/* Responsive adjustments for uniforms images */
@media (max-width: 1200px) {
  .uniforms-image-container {
    min-height: 220px;
    padding: 12px;
  }
  
  .uniforms-image {
    max-height: 350px;
  }
}

@media (max-width: 992px) {
  .uniforms-image-container {
    min-height: 200px;
    padding: 10px;
  }
  
  .uniforms-image {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .uniforms-image-container {
    min-height: 180px;
    padding: 8px;
  }
  
  .uniforms-image {
    max-height: 280px;
  }
}

@media (max-width: 576px) {
  .uniforms-image-container {
    min-height: 160px;
    padding: 6px;
  }
  
  .uniforms-image {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .uniforms-image-container {
    min-height: 150px;
    padding: 8px;
  }
  
  .uniforms-image {
    max-height: 240px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .uniforms-image-container {
    min-height: 130px;
    padding: 6px;
  }
  
  .uniforms-image {
    max-height: 200px;
  }
}

/* Ensure uniforms card has proper spacing */
.uniforms-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.uniforms-card .uniforms-image-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

/* Ensure uniforms card doesn't constrain image height */
.uniforms-card .feature-description {
  margin-bottom: 20px;
}

/* Scholarships Card - No Image, Text Only */
.scholarships-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scholarships-card .feature-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 0;
  padding: 0 10px;
}

/* Gallery Section */
/* Moments of Joy Section */
.moments-of-joy-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.moments-of-joy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(240, 183, 70, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite;
}

.moments-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}

.moment-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 280px;
  background: var(--bg-light);
  opacity: 1 !important;
  visibility: visible !important;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  cursor: pointer;
}

.moment-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.moment-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.moment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.moment-content {
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.5s ease;
}

.moment-content i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.moment-content h4 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.moment-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
}

.moment-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 3;
  pointer-events: none;
}

.moment-item:hover .moment-image {
  transform: scale(1.15) rotate(2deg);
}

.moment-item:hover .moment-overlay {
  opacity: 1;
}

.moment-item:hover .moment-content {
  transform: translateY(0);
}

.moment-item:hover .moment-content i {
  transform: scale(1) rotate(360deg);
}

.moment-item:hover .moment-shine {
  transform: rotate(45deg) translateX(100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .moments-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .moment-item {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .moments-gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .moments-of-joy-section {
    padding: 60px 0;
  }
}

/* New Impact Section Design */
.impact-section-new {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.impact-section-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

.impact-header-new {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.impact-category-new {
  margin-bottom: 80px;
}

.impact-category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
  font-family: 'Playfair Display', serif;
}

.impact-category-title i {
  color: var(--primary-color);
  font-size: 32px;
}

.impact-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  perspective: 1200px;
}

.impact-card-new {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 300px;
  background: var(--bg-light);
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  opacity: 1 !important;
  visibility: visible !important;
}

.impact-image-wrapper-new {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.impact-image-new {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.impact-overlay-new {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 35px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.impact-content-new {
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.5s ease;
}

.impact-content-new i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
  transform: scale(0) rotate(-180deg);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.impact-content-new h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.impact-content-new p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 400;
}

.impact-badge-new {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(240, 183, 70, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(240, 183, 70, 0.4);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.impact-badge-new i {
  color: #fff;
  font-size: 20px;
}

.impact-card-new:hover .impact-image-new {
  transform: scale(1.15) rotate(1deg);
}

.impact-card-new:hover .impact-overlay-new {
  opacity: 1;
}

.impact-card-new:hover .impact-content-new {
  transform: translateY(0);
}

.impact-card-new:hover .impact-content-new i {
  transform: scale(1.2) rotate(0deg);
}

.impact-card-new:hover .impact-badge-new {
  transform: scale(1) rotate(360deg);
}

/* Staggered grid layout for visual interest */
.impact-grid-new .impact-card-new:nth-child(3n+1) {
  grid-row: span 1;
}

.impact-grid-new .impact-card-new:nth-child(3n+2) {
  margin-top: 20px;
}

.impact-grid-new .impact-card-new:nth-child(3n) {
  margin-top: -20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .impact-grid-new {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .impact-section-new {
    padding: 60px 0;
  }
  
  .impact-grid-new {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .impact-card-new {
    min-height: 250px;
  }
  
  .impact-category-title {
    font-size: 24px;
  }
  
  .impact-category-title i {
    font-size: 28px;
  }
  
  /* Remove staggered effect on mobile */
  .impact-grid-new .impact-card-new:nth-child(3n+2),
  .impact-grid-new .impact-card-new:nth-child(3n) {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .impact-grid-new {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .impact-card-new {
    min-height: 220px;
  }
  
  .impact-category-new {
    margin-bottom: 50px;
  }
}

/* Old gallery section - keeping for backward compatibility */
.gallery-section {
  background: var(--bg-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-grid {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  aspect-ratio: 4/3;
  min-height: 300px;
  background: var(--bg-light);
  opacity: 1 !important;
  visibility: visible !important;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.gallery-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  min-height: 300px;
  transform-style: preserve-3d;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 300px;
  opacity: 1 !important;
  visibility: visible !important;
  will-change: transform;
  backface-visibility: hidden;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.cta-description {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-text {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-message {
  font-size: 18px;
  font-style: italic;
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design - Header styles handled by header.css */
@media (max-width: 992px) {

  .hero-content {
    max-width: 100%;
  }

  .mission-content {
    grid-template-columns: 1fr;
  }

  .mission-text {
    order: 2;
  }

  .mission-image {
    order: 1;
  }

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

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

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

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero-section {
    padding: 100px 4% 60px;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Force all images to display properly */
.smiles-page img,
.mission-image img,
.gallery-image img,
.feature-image img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Ensure all feature cards are fully visible */
.feature-card {
  opacity: 1 !important;
}

.feature-card h3,
.feature-card p,
.feature-card .feature-title,
.feature-card .feature-description {
  opacity: 1 !important;
  color: var(--text-dark) !important;
}

.feature-card .feature-description {
  color: var(--text-light) !important;
}

.feature-card .feature-icon i {
  opacity: 1 !important;
  color: var(--primary-color) !important;
}

/* Image Lightbox Modal */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .lightbox-image {
    max-height: 85vh;
  }
}

