/* ==========================================================================
   Kindly Landing Page Stylesheet
   ========================================================================== */

/* ---------- CSS Reset & Core Variables ---------- */
:root {
  --primary: #2d6a4f;
  --primary-dark: #1b3d32;
  --primary-light: #40916c;
  --primary-pale: #e9f5ed;
  --accent: #10b981;
  --cream: #faf6f0;
  --white: #ffffff;
  --dark: #0f172a;
  --gray: #475569;
  --gray-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
}

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



.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.6) !important; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 48px; }
.mt-3 { margin-top: 16px; }
.mt-5 { margin-top: 48px; }
.m-0 { margin: 0 !important; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--primary-pale);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-pale);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary-card {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.btn-primary-card:hover {
  background-color: var(--primary-dark);
}

.btn-white {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background-color: var(--primary-pale);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  background-color: var(--cream);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  background-color: var(--primary-pale);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
}

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

.btn-donate {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-donate:hover {
  background-color: var(--primary);
  transform: scale(1.03);
}

/* ---------- Hero Section ---------- */
.hero-section {
  background-color: var(--cream);
  padding: 60px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--primary-dark);
}

.hero-subtext {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.feature-program-card {
  display: flex;
  background-color: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  align-items: center;
  gap: 16px;
  max-width: 420px;
}

.video-preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.video-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview-thumb .play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.program-info h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-info p {
  font-size: 0.8rem;
  color: var(--gray);
}

.hero-image-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-wrapper {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- About Section ---------- */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.img-tall {
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.img-small-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.img-small-item {
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-small-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.section-desc {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-list {
  list-style: none;
  margin-bottom: 32px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}

.list-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ---------- Services Section ---------- */
.services-section {
  background-color: var(--primary-dark);
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-icon {
  background-color: var(--primary-pale);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ---------- Causes Section ---------- */
.causes-section {
  padding: 100px 0;
}

.slider-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--gray);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.arrow-btn:hover,
.arrow-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cause-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

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

.cause-img {
  height: 220px;
  overflow: hidden;
}

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

.cause-body {
  padding: 30px 24px;
}

.cause-body h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cause-body p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--gray);
  height: 48px;
  overflow: hidden;
}

.progress-bar-container {
  background-color: var(--primary-pale);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-line {
  background-color: var(--primary);
  height: 100%;
  border-radius: 10px;
}

.cause-goals {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ---------- Volunteers Section ---------- */
.volunteers-section {
  padding: 100px 0;
  background-color: var(--cream);
}

.volunteers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.volunteer-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.volunteer-card:hover {
  transform: translateY(-5px);
}

.volunteer-img {
  height: 320px;
  overflow: hidden;
}

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

.volunteer-info {
  padding: 24px;
}

.volunteer-info h5 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.volunteer-info span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  background-color: var(--primary-dark);
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--dark);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user h5 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.testimonial-user span {
  font-size: 0.8rem;
  color: var(--gray);
}

.stars {
  color: #fbbf24;
  font-size: 0.9rem;
}

/* ---------- Updates/Blog Section ---------- */
.updates-section {
  padding: 100px 0;
}

.updates-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.btn-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.updates-list {
  display: flex !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.updates-list::-webkit-scrollbar {
  display: none;
}

.updates-list .update-card {
  flex: 0 0 calc(42% - 16px);
  scroll-snap-align: start;
  min-width: 280px;
}

@media (max-width: 768px) {
  .updates-list .update-card {
    flex: 0 0 100% !important;
  }
}

.update-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.update-img {
  height: 180px;
  overflow: hidden;
}

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

.update-body {
  padding: 24px;
}

.update-body h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.update-body p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.update-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.update-meta span {
  color: var(--gray);
}

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

/* ---------- CTA Section ---------- */
.cta-section {
  background-color: var(--primary);
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #0d1e19;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-about .logo {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--primary);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .feature-program-card {
    margin: 0 auto;
  }
  .hero-image-wrapper {
    height: 400px;
    max-width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid,
  .causes-grid,
  .volunteers-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .updates-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-donate {
    display: none; /* simple mobile fallback (or simple flex toggle) */
  }
  .services-grid,
  .causes-grid,
  .volunteers-grid,
  .testimonials-grid,
  .updates-list {
    grid-template-columns: 1fr;
  }
  .about-images {
    grid-template-columns: 1fr;
  }
  .img-tall {
    height: 350px;
  }
  .img-small-stacked {
    display: none; /* clean visual reduction for mobile */
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    text-align: center;
  }
  .cta-section .container {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .cta-section h2 {
    margin-bottom: 20px !important;
  }
}

/* ---------- Custom Animation System ---------- */
.animate-on-scroll.anim-left {
  transform: translateX(-50px);
  opacity: 0;
}
.animate-on-scroll.anim-right {
  transform: translateX(50px);
  opacity: 0;
}
.animate-on-scroll.anim-fade {
  transform: scale(0.95);
  opacity: 0;
}
.animate-on-scroll.anim-left.in-view,
.animate-on-scroll.anim-right.in-view,
.animate-on-scroll.anim-fade.in-view {
  transform: translate(0) scale(1);
  opacity: 1;
}

/* Image Zoom on Card Hover */
.cause-img img,
.volunteer-img img,
.update-img img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cause-card:hover .cause-img img,
.volunteer-card:hover .volunteer-img img,
.update-card:hover .update-img img {
  transform: scale(1.08);
}

/* Service Card Icon Rotate on Hover */
.service-icon {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: rotate(360deg) scale(1.1);
}

/* ---------- Vertical Video / Shorts Section ---------- */
.vertical-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

@media (max-width: 992px) {
  .vertical-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .vertical-video-grid {
    grid-template-columns: 1fr;
  }
}

.vertical-video-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vertical-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vertical-video-card:hover img {
  transform: scale(1.06);
}

.vertical-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: white;
  z-index: 2;
}

.vertical-video-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vertical-video-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.vertical-video-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vertical-video-title-container {
  display: flex;
  flex-direction: column;
}

.vertical-video-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.vertical-video-channel {
  font-size: 0.68rem;
  opacity: 0.9;
  margin-top: 2px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.vertical-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 3;
}

.vertical-video-card:hover .vertical-video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: #cc0000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.vertical-video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.vertical-video-actions {
  display: flex;
  gap: 8px;
}

.vertical-video-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vertical-video-action-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.vertical-video-watch-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vertical-video-watch-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/* ---------- Hero Slider Styles ---------- */
.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding: 0;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  z-index: 1;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  min-height: 650px;
}

/* Grid padding inside the container for the text column vertical spacing */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 650px;
}

/* On desktop, stretch image to fill right half flush to top and right edges */
@media (min-width: 992px) {
  .hero-slide .hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 100%;
    display: block;
    z-index: 3;
  }
  .hero-slide .hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0; /* completely flush edge */
    box-shadow: none;
  }
}

@media (max-width: 992px) {
  .hero-slide.active {
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    min-height: auto;
    padding: 60px 0;
  }
  .hero-slide .hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  .hero-slide .hero-image-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 16px; /* rounded corners on mobile */
    box-shadow: var(--shadow-lg);
  }
}

/* Animations for slide contents on transition */
.hero-slide.active .hero-title {
  animation: slideUpFade 0.8s forwards;
}

.hero-slide.active .hero-subtext {
  animation: slideUpFade 0.8s 0.2s forwards;
}

.hero-slide.active .hero-buttons {
  animation: slideUpFade 0.8s 0.4s forwards;
}

.hero-slide.active .hero-image-wrapper {
  animation: scaleZoomIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes scaleZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dots navigation indicators */
.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 86, 59, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-dot.active,
.hero-dot:hover {
  background-color: var(--primary);
  transform: scale(1.2);
  border-color: rgba(255,255,255,0.8);
}


