@import url("main.css");
@import url("imigongo.css");
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 93, 54, 0.8),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 24px;
  z-index: 2;
  margin-top: 100px;
}

.hero-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1.2rem, 2.3vw, 1.3rem);
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 3;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:hover .hero-arrow {
  opacity: 1;
  visibility: visible;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-arrow-left {
  left: 40px;
}

.hero-arrow-right {
  right: 40px;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.indicator.active {
  background: var(--white);
  width: 32px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Animation Classes */
.hero-slide.active .animate-slide-left {
  animation: slideLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-slide.active .animate-slide-right {
  animation: slideRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-slide.active .animate-fade-up {
  animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  padding: 30px 0;
  background: var(--gray-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Update layout to accommodate full-width core values */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px;
}

.about-cards {
  grid-column: 1;
  grid-row: 1;
}

.about-image {
  grid-column: 2;
  grid-row: 1;
}

.about-card:last-child {
  grid-column: 1 / -1;
  grid-row: 2;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

/* Style for paragraph under about image */
.about-image p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  text-align: justify;
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.about-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.about-card h3 {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 700;
}

.about-card p {
  color: var(--gray-medium);
  line-height: 1.6;
}

/* Services Section */
.services {
  padding: 30px 0;
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Modern Service Card Design */
.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Service Image Wrapper */
.service-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.08);
}

/* Service Badge (Title Tag) */
.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(10, 93, 54, 0.3);
  transition: all var(--transition);
  white-space: nowrap;
}

.service-card:hover .service-badge {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(10, 93, 54, 0.4);
}

/* Service Info Section */
.service-info {
  padding: 30px;
  text-align: left;
}

.service-title {
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.service-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 25px 0;
  font-weight: 400;
}

/* Service Read More Button - Match Blog Style */
.service-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-top: auto;
  position: relative;
}

.service-read-more::after {
  content: "→";
  transition: transform var(--transition);
}

.service-read-more:hover {
  color: var(--primary-dark);
}

.service-read-more:hover::after {
  transform: translateX(5px);
}

.services-grid + a::after {
  content: "→";
  transition: transform var(--transition);
}

.services-grid + a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 93, 54, 0.4);
}

.services-grid + a:hover::after {
  transform: translateX(5px);
}

/* Modern Service Modal */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.5s ease;
}

.modal-container {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  height: 650px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.05);
  transform: scale(0.95) translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  display: flex;
  flex-direction: row;
}

.service-modal.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  padding: 20px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 24px rgba(10, 93, 54, 0.3);
}

/* Left Content Section - Larger Width */
.modal-content-section {
  flex: 1;
  width: 55%;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  position: relative;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 93, 54, 0.4) rgba(10, 93, 54, 0.1);
  -webkit-overflow-scrolling: touch;
}

.modal-content-section::-webkit-scrollbar {
  width: 8px;
}

.modal-content-section::-webkit-scrollbar-track {
  background: rgba(10, 93, 54, 0.1);
  border-radius: 4px;
}

.modal-content-section::-webkit-scrollbar-thumb {
  background: rgba(10, 93, 54, 0.4);
  border-radius: 4px;
}

.modal-content-section::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 93, 54, 0.6);
}

/* Right Image Section - Proportional Size */
.modal-image-section {
  flex: 0 0 45%;
  width: 45%;
  overflow: hidden;
  position: relative;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-image-section img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modal-image-section:hover img {
  transform: scale(1.05);
}

.modal-service-title {
  color: var(--black);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: left;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
}

.modal-service-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.modal-service-description {
  color: var(--gray-dark);
  line-height: 1.6;
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 25px;
}

.modal-service-description p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: rgba(51, 65, 85, 0.9);
  text-align: left;
}

.modal-service-description p:last-child {
  margin-bottom: 0;
}

.modal-service-description h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  position: relative;
  padding-bottom: 8px;
}

.modal-service-description h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.modal-service-description ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.modal-service-description li {
  padding: 8px 0;
  color: var(--gray-dark);
  position: relative;
  padding-left: 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.modal-service-description li:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.modal-service-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.modal-service-description strong {
  color: var(--primary);
  font-weight: 600;
}

/* Modal Actions */
.modal-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.book-appointment-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(10, 93, 54, 0.3);
  position: relative;
  overflow: hidden;
}

.book-appointment-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10, 93, 54, 0.4);
}

.book-appointment-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.book-appointment-btn:hover::before {
  left: 100%;
}

/* Modal Animation Enhancements */
.service-modal.active .modal-backdrop {
  animation: fadeIn 0.5s ease-out;
}

.service-modal.active .modal-container {
  animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}



/* Enhanced Focus States for Accessibility */
.modal-close-btn:focus {
  outline: 3px solid rgba(10, 93, 54, 0.3);
  outline-offset: 2px;
}

.service-read-more:focus {
  outline: 3px solid rgba(10, 93, 54, 0.3);
  outline-offset: 2px;
}



/* Smooth Image Loading Effect */
.modal-image-section img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-image-section img.loaded {
  opacity: 1;
}



/* Impact Section */
.impact {
  padding: 15px 0;
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.impact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 60px 60px, 80px 80px;
  animation: floatPattern 25s ease-in-out infinite;
}

@keyframes floatPattern {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.impact .section-header h2,
.impact .section-header p {
  color: var(--white);
}

.impact-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 2;
}

.impact-item {
  padding: 6px 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  text-align: center;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.impact-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.impact-icon {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  transition: all var(--transition);
}

.impact-icon i {
  font-size: 0.7rem;
  color: var(--white);
}

.impact-item:hover .impact-icon {
  background: var(--white);
  transform: scale(1.1);
}

.impact-item:hover .impact-icon i {
  color: var(--primary);
}

.impact-number {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--white);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
  line-height: 1;
}

.impact-item:hover .impact-number {
  transform: scale(1.05);
}

.impact-label {
  font-size: 0.6rem;
  font-weight: 400;
  margin-bottom: 2px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.impact-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  max-width: 180px;
}

/* Programs Section */
.programs {
  padding: 30px 0;
  background: var(--gray-light);
}

.programs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.programs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-item {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 20px;
}

.program-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary);
}

.program-item.active {
  background: var(--primary);
  color: var(--white);
  border-left-color: var(--primary);
}

.program-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-item.active .program-icon {
  background: rgba(255, 255, 255, 0.2);
}

.program-icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.program-item.active .program-icon i {
  color: var(--white);
}

.program-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.program-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.program-display {
  position: sticky;
  top: 100px;
}

.program-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.program-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-description {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.program-description h3 {
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 700;
}

.program-description p {
  color: var(--gray-medium);
  line-height: 1.7;
}

.program-image,
.program-description {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.program-display.is-switching .program-image,
.program-display.is-switching .program-description {
  opacity: 0;
  transform: translateY(15px);
}

/* Partners Section */
.partners {
  padding: 40px 0;
  background: var(--white);
  overflow: hidden;
}

.partners-slider {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: partnerSlide 20s linear infinite;
  width: max-content;
}

@keyframes partnerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  background: transparent;
  padding: 20px;
  transition: all var(--transition);
  min-width: 200px;
  text-align: center;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  transition: all var(--transition);
}

.partner-logo:hover img {
  transform: scale(1.05);
}

/* Gallery Section */
.gallery {
  padding: 30px 0;
  background: var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 93, 54, 0.8),
    rgba(0, 0, 0, 0.6)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
  text-align: center;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.gallery-btn:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.1);
}

/* Blog Section */
.blog {
  padding: 30px 0;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-content p {
  color: var(--gray-medium);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-btn {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.blog-btn:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.blog-btn::after {
  content: "→";
  transition: transform var(--transition);
}

.blog-btn:hover::after {
  transform: translateX(5px);
}
/* Responsive Design */
@media (max-width: 1024px) {
  .about-content,
  .programs-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About section responsive */
  .about-content {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
  }

  .about-cards {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .about-image {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .about-card:last-child {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .program-display {
    position: static;
  }
}

/* Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
  .modal-container {
    max-width: 900px;
    height: 550px;
  }

  .modal-content-section {
    padding: 40px 35px;
  }

  .modal-service-title {
    font-size: 2.2rem;
  }

  .modal-service-description p {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .service-card {
    display: flex;
    flex-direction: column;
  }

  .service-image-wrapper {
    height: 240px;
    order: 1;
  }

  .service-info {
    order: 2;
  }

  .service-badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .service-info {
    padding: 25px;
  }

  .service-title {
    font-size: 1.3rem;
  }

  .service-modal {
    padding: 15px;
  }

  .modal-container {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-content-section {
    width: 100%;
    padding: 35px 25px;
    flex: 1;
    order: 1;
    overflow-y: auto;
    max-height: calc(90vh - 280px - 60px);
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 93, 54, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content-section::-webkit-scrollbar {
    width: 6px;
  }

  .modal-content-section::-webkit-scrollbar-track {
    background: transparent;
  }

  .modal-content-section::-webkit-scrollbar-thumb {
    background: rgba(10, 93, 54, 0.3);
    border-radius: 3px;
  }

  .modal-content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 93, 54, 0.5);
  }

  .modal-service-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .modal-image-section {
    width: 100%;
    flex: none;
    height: 280px;
    order: 2;
  }

  .modal-close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-service-description {
    margin-top: 20px;
  }

  .modal-service-description p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .modal-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .book-appointment-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }



  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-info-panel {
    order: 1;
    min-height: 400px;
  }

  .contact-form-panel {
    order: 2;
    padding: 40px 30px;
  }

  .contact-info-content {
    max-width: 100%;
  }

  .contact-detail-item {
    margin-bottom: 25px;
  }

  .office-hours-box {
    margin-top: 30px;
  }

  /* Partners - show one at a time on mobile */
  .partners-slider {
    width: 100%;
    overflow: hidden;
    animation: partnerSlide 15s linear infinite;
  }

  .partner-logo {
    min-width: 100%;
    flex-shrink: 0;
  }

  /* Programs - hide program-info on mobile */
  .programs-content {
    grid-template-columns: 1fr !important;
  }

  .programs-list {
    display: none;
  }

  .program-display {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-indicators {
    bottom: 20px;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .about,
  .services,
  .programs,
  .blog,
  .contact {
    padding: 25px 0;
  }

  /* About section mobile adjustments */
  .about-image img {
    height: 300px;
  }

  .about-image p {
    font-size: 1rem;
    padding: 15px;
  }

  .about-card {
    padding: 20px;
  }

  .about-card h3 {
    font-size: 1.3rem;
  }

  .impact {
    padding: 20px 0;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 30px 20px;
  }

  .contact-info-panel {
    min-height: 350px;
  }

  .contact-detail-item {
    margin-bottom: 20px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-icon i {
    font-size: 1.1rem;
  }

  .contact-text h4 {
    font-size: 1.1rem;
  }

  .contact-text p {
    font-size: 0.9rem;
  }

  .office-hours-box {
    padding: 20px;
  }

  .office-hours-box h4 {
    font-size: 1.2rem;
  }

  .send-message-btn {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    display: flex;
    flex-direction: column;
  }

  .service-image-wrapper {
    height: 220px;
    order: 1;
  }

  .service-info {
    order: 2;
  }

  .service-badge {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .service-info {
    padding: 20px;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.95rem;
  }

  .service-read-more {
    font-size: 0.85rem;
  }

  .service-modal {
    padding: 10px;
  }

  .modal-container {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    height: auto;
    max-height: 95vh;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-content-section {
    width: 100%;
    padding: 25px 20px;
    flex: 1;
    order: 1;
    overflow-y: auto;
    max-height: calc(95vh - 220px - 48px);
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 93, 54, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content-section::-webkit-scrollbar {
    width: 4px;
  }

  .modal-content-section::-webkit-scrollbar-track {
    background: transparent;
  }

  .modal-content-section::-webkit-scrollbar-thumb {
    background: rgba(10, 93, 54, 0.3);
    border-radius: 2px;
  }

  .modal-content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 93, 54, 0.5);
  }

  .modal-service-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .modal-service-title::after {
    width: 35px;
    height: 2px;
    bottom: -10px;
  }

  .modal-service-description {
    margin-top: 18px;
  }

  .modal-service-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .modal-service-description li {
    font-size: 0.9rem;
    padding-left: 24px;
    padding: 6px 0 6px 24px;
  }

  .modal-service-description ul {
    margin: 14px 0;
  }

  .modal-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  .book-appointment-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .modal-image-section {
    width: 100%;
    flex: none;
    height: 220px;
    order: 2;
  }

  .modal-header {
    padding: 12px;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }


}

/* Performance Optimizations */
.hero-slide,
.service-card,
.blog-card,
.gallery-item {
  will-change: transform;
}

.hero-slide.active,
.service-card:hover,
.blog-card:hover,
.gallery-item:hover {
  will-change: auto;
}