@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #8b0000; /* Deep Red from logo */
  --secondary: #b22222; /* Firebrick Red */
  --accent: #ff4d4d; /* Vibrant Accent Red */
  --soft-red: #fff5f5; /* Soft Reddish White */
  --white: #ffffff;
  --beige: #fffbfa; /* Warmer Beige */
  --light-gray: #f8f9fa;
  --dark-gray: #1b1b1b;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --gold: #ffd700;
  --shadow: 0 20px 40px rgba(139, 0, 0, 0.05);
  --shadow-hover: 0 30px 60px rgba(139, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.grayscale-filter {
  filter: grayscale(1);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: var(--soft-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* Base Styles */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.badge.bg-primary {
  background-color: var(--primary) !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white) !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* High-Impact Donate Button */
.btn-donate {
  background: linear-gradient(
    135deg,
    #8b0000 0%,
    #b22222 100%
  ); /* Deep Red Gradient */
  color: var(--white) !important;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-donate i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin-right: 8px;
}

.btn-donate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.btn-donate:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(139, 0, 0, 0.35);
}

.btn-donate:hover::before {
  left: 100%;
}

.btn-donate:hover i {
  transform: scale(1.2);
}

body {
  padding-top: 107px;
}

/* Donation Ticker */
.donation-ticker {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  font-size: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 35px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 120s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Header */
header {
  background: var(--white);
  padding: 15px 0;
  position: fixed;
  top: 35px; /* Below ticker */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

header.header-scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  top: 35px; /* Keep it below ticker or move to 0? Let's keep it below. */
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.logo span {
  color: var(--secondary);
}

.nav-container {
  flex: 1;
  text-align: right;
  padding-right: 30px;
}

.nav-links {
  display: inline-block;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  vertical-align: middle;
}

.nav-links li {
  display: inline-block;
  margin-right: 30px;
}

.nav-links li:last-child {
  margin-right: 0;
}

@media (min-width: 992px) {
  .nav-links li:nth-last-child(2) {
    margin-right: 0;
  }
}

.nav-links li a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
  width: 45px;
  height: 45px;
  background: var(--soft-red);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 100000;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: block;
    visibility: hidden;
    overflow-y: auto;
    padding-right: 0;
    text-align: left;
  }

  .nav-container.active {
    right: 0;
    visibility: visible;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    padding: 100px 40px;
    text-align: left;
  }

  .nav-links li {
    display: block;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-links li a:hover {
    color: var(--primary);
    padding-left: 10px;
  }

  .mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
  }

  .close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
  }

  .close-menu:hover {
    color: var(--primary);
  }
}

/* Hero Section */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)),
    url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  color: var(--white);
  text-align: left;
  padding: 100px 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  backdrop-filter: blur(4px);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero {
  position: relative;
  background: url("../images/hero.webp") center/cover no-repeat;
  padding: 120px 0 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--text-main);
}

.team-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  overflow: hidden;
  border: 3px solid var(--soft-red);
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page Specific Hero Backgrounds */
.about-hero {
  background-image: url("../images/health.jpg") !important;
}
.programs-hero {
  background-image: url("../images/culture_program.png") !important;
}
.donate-hero {
  background-image: url("../images/meal.png") !important;
}
.stories-hero {
  background-image: url("../images/environment.jpg") !important;
}
.gallery-hero {
  background-image: url("../images/home.png") !important;
}
.contact-hero {
  background-image: url("../images/hero.webp") !important;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero {
    text-align: center;
    padding: 80px 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 100%;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    background-attachment: scroll; /* Fixed is buggy on mobile */
  }
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  .hero-btns .btn {
    width: 100%;
  }
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

@media (max-width: 992px) {
  .hero-btns {
    justify-content: center;
  }
}

/* Page Hero (for sub-pages) */

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

/* Quick Donation Widget */
.donation-widget {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
  width: 100%;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 25px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-main);
  text-align: center;
}

.donation-widget .widget-title p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .donation-widget {
    flex-direction: column;
    justify-content: center;
  }
}

.widget-title {
  flex: 1;
  min-width: 250px;
}

.donation-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1.5;
}

.amount-btn {
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.amount-btn:hover {
  border-color: var(--primary);
  background: var(--soft-red);
}

.amount-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.amount-input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  width: 120px;
  outline: none;
}

/* Stats Section */
.stats {
  background: var(--white);
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(139, 0, 0, 0.03) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(178, 34, 34, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.stat-card {
  background: var(--white);
  padding: 50px 30px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.stat-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(139, 0, 0, 0.12);
  border-color: var(--primary);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: var(--soft-red);
  color: var(--primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 30px;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(10deg);
}

.stat-card h3 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -1.5px;
}

.stat-card p {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  padding: 30px;
}

.service-info h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Testimonials */
.testimonials {
  background: var(--beige);
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

/* Footer */
footer {
  background: #0a0101; /* Extremely dark red-black to match theme */
  color: var(--white);
  padding: 100px 0 40px;
  border-top: 5px solid var(--primary);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(139, 0, 0, 0.05) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  height: 70px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 30px;
  color: var(--white);
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent);
  transform: translateX(8px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 5px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  margin-top: 60px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1500;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 100px 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-btns {
    flex-direction: column;
  }

  body.menu-open {
    overflow: hidden;
  }

  .section-padding {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem !important;
  }
  h2 {
    font-size: 2rem !important;
  }
  h3 {
    font-size: 1.6rem !important;
  }
  h4 {
    font-size: 1.3rem !important;
  }
}

/* Daily Routine */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.routine-item {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow);
}

.routine-time {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

/* Trust Badges */
.trust-badges {
  padding: 60px 0;
  background: var(--soft-red);
}

/* Impact Breakdown */
.impact-breakdown {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.impact-item {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: var(--soft-red);
  transition: var(--transition);
}

.impact-item:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.impact-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.impact-item h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Stats Section Redesign */
.stats {
  background: linear-gradient(to bottom, #fff, var(--soft-red));
  padding: 80px 0;
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.stat-card {
  flex: 1 1 250px;
  max-width: 300px;
  min-height: 320px; /* Force uniform height across all rows */
  background: var(--white);
  padding: 45px 25px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.04);
  transition: var(--transition);
  border: 1px solid rgba(139, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center; /* Center content vertically within the fixed height */
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.08);
  border-color: var(--primary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--soft-red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.stat-card h3 {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -2px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1200px) {
  .stat-card {
    flex: 0 1 calc(33.333% - 30px);
  }
}

@media (max-width: 991px) {
  .stat-card {
    flex: 0 1 calc(50% - 30px);
  }
}
/* Trust Cards */
.trust-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.06);
  border-color: var(--primary);
}

.trust-icon {
  width: 70px;
  height: 70px;
  background: var(--soft-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.trust-card:hover .trust-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.trust-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .stat-card {
    flex: 0 1 100%;
  }
}

/* Why Trust Us */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.trust-item {
  display: flex;
  gap: 20px;
}

.trust-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Founder Section Enhancements */
.founder-message {
  background: linear-gradient(to right, var(--white), var(--beige));
  overflow: hidden;
}

.founder-img {
  position: relative;
  z-index: 1;
}

.founder-img::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}

.founder-img img {
  border: 8px solid var(--white);
  transition: var(--transition);
}

.founder-img:hover img {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.founder-badge {
  position: absolute;
  bottom: 30px;
  right: -40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 20px 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
  transition: var(--transition);
}

.founder-badge:hover {
  transform: translateY(-5px) translateX(5px);
  background: var(--white);
}

.founder-badge .badge-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(64, 145, 108, 0.3);
}

.founder-badge .badge-info h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.founder-badge .badge-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

html.menu-open,
body.menu-open {
  overflow: hidden !important;
  height: 100vh;
}

@media (max-width: 1200px) {
  .founder-badge {
    right: -20px;
    padding: 15px 25px;
  }
}

@media (max-width: 991px) {
  .founder-message {
    text-align: center;
  }
  .founder-img {
    max-width: 500px;
    margin: 0 auto 50px;
  }
  .founder-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -30px;
    width: max-content;
    background: var(--white);
  }
  .founder-badge:hover {
    transform: translateX(50%) translateY(-5px);
  }
}

@media (max-width: 576px) {
  .founder-badge {
    padding: 12px 20px;
    gap: 10px;
  }
  .founder-badge .badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .founder-badge .badge-info h4 {
    font-size: 1rem;
  }
}

.founder-signature {
  height: 60px;
  margin-top: 30px;
  opacity: 0.8;
  filter: brightness(0);
  max-width: 100%;
  transition: var(--transition);
}

@media (max-width: 991px) {
  .founder-signature {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Story Detail Page Styles */
.story-header {
  padding: 60px 0 10px;
  background: linear-gradient(to bottom, var(--soft-blue), var(--white));
  text-align: center;
}

.story-meta {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 600;
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--soft-blue);
}

.story-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-meta i {
  color: var(--primary);
  font-size: 1.1rem;
}

.story-title {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
}

.story-featured-img {
  width: 100%;
  height: 450px;
  object-fit: contain; /* Changed from cover to show full image */
  background: var(--light-gray); /* Added background for contain mode */
  border-radius: 40px;
  margin-bottom: 60px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.story-content {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-main);
}

.story-content .lead {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 40px;
}

.story-content p {
  margin-bottom: 30px;
}

.story-quote {
  background: var(--beige);
  padding: 50px;
  border-left: 8px solid var(--primary);
  border-radius: 0 30px 30px 0;
  margin: 60px 0;
  font-style: italic;
  position: relative;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.02);
}

.story-quote i {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  opacity: 0.05;
  color: var(--primary);
}

.story-quote p {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.story-quote cite {
  font-weight: 700;
  color: var(--secondary);
  font-style: normal;
  font-size: 1.1rem;
}

.story-sidebar {
  position: sticky;
  top: 140px;
}

.sidebar-card {
  background: var(--white);
  padding: 35px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.sidebar-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.sidebar-card h4 {
  color: var(--primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--soft-blue);
  font-size: 1.4rem;
}

.newsletter-sidebar-card {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.newsletter-sidebar-card h4 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.related-story-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-story {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  transition: var(--transition);
  align-items: center;
}

.related-story:hover {
  transform: translateX(10px);
}

.related-img {
  width: 90px;
  height: 90px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-info h5 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}

.related-info .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1200px) {
  .story-title {
    font-size: 2.8rem;
  }
  .story-featured-img {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .story-header {
    padding: 40px 0 10px;
  }
  .story-title {
    font-size: 2.4rem;
  }
  .story-featured-img {
    height: 400px;
    border-radius: 25px;
  }
  .story-sidebar {
    margin-top: 60px;
    position: static;
  }
  .sidebar-card {
    padding: 30px;
  }
}

.section-padding.story {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .section-padding.story {
    padding-top: 30px;
  }
  .story-meta {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .story-title {
    font-size: 2rem;
  }
  .story-content {
    font-size: 1.1rem;
  }
  .story-content .lead {
    font-size: 1.3rem;
  }
  .story-quote {
    padding: 30px;
  }
  .story-quote p {
    font-size: 1.2rem;
  }
}

/* Share Story Section */
.share-story {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.share-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.share-btns {
  display: flex;
  gap: 15px;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  background: var(--soft-red);
  color: var(--primary);
  border: none;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-5px) rotate(8deg);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.share-btn.fb:hover {
  background: #3b5998;
}
.share-btn.yt:hover {
  background: #ff0000;
}
.share-btn.in:hover {
  background: #e1306c;
}
.share-btn.wa:hover {
  background: #25d366;
}

@media (max-width: 576px) {
  .share-story {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Contact Page Map UI */
.map-container {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 10px solid var(--white);
}

.map-container iframe {
  display: block;
  transition: var(--transition);
}

/* Why Trust Section */
.trust-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--soft-red);
}

.trust-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: var(--soft-red);
  color: var(--primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.trust-item:hover .trust-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(10deg);
}

.trust-item h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

.trust-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* WhatsApp Floating Icon */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white) !important;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.1) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Pulse Effect */
.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.5;
  z-index: -1;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 26px;
  }
}

.donation-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.donate-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Custom Tabs UI */
.nav-tabs {
  border: none;
  gap: 15px;
  margin-bottom: 30px !important;
}

.nav-tabs .nav-link {
  border: 2px solid #eee !important;
  border-radius: 12px !important;
  padding: 15px 25px !important;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.nav-tabs .nav-link.active {
  border-color: var(--primary) !important;
  background-color: var(--soft-red) !important;
  color: var(--primary) !important;
}

.nav-tabs .nav-link:hover:not(.active) {
  border-color: #ddd !important;
  background-color: #f9f9f9;
}

/* Mobile Adjustments for Tabs */
@media (max-width: 576px) {
  .nav-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .nav-tabs .nav-link {
    width: 100%;
  }

  .donate-form-card {
    padding: 20px !important;
  }
}

.bank-details-box {
  transition: transform 0.3s ease;
}

.bank-details-box:hover {
  transform: translateY(-5px);
}

.impact-sidebar {
  position: sticky;
  top: 120px;
}

/* Override Bootstrap Primary to Theme Color */
.text-primary {
  color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

.impact-card {
  background: var(--primary); /* Back to Primary Theme Color */
  color: var(--white);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.progress-bar {
  height: 10px;
  background: rgba(139, 0, 0, 0.1); /* Light red track for light theme */
  border-radius: 5px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--secondary);
  width: 75%;
}

@media (max-width: 992px) {
  .donation-container {
    grid-template-columns: 1fr;
  }
}

/* Footer QR Responsive Section */
.footer-qr-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-qr-img {
  max-width: 180px;
  width: 100%;
  border-radius: 0 !important;
}

.footer-upi-icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

@media (min-width: 576px) {
  .footer-qr-group {
    flex-direction: row;
    align-items: center;
  }
  .footer-upi-icons {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-qr-img {
    max-width: 110px;
  }
}
/* Banner Popup Styles */
.banner-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  backdrop-filter: blur(8px);
}

.banner-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.banner-popup-content {
  position: relative;
  width: 60%;
  max-width: 800px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.banner-popup-overlay.active .banner-popup-content {
  transform: translateY(0);
}

.banner-popup-content img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: block;
}

.banner-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #8b0000;
  color: #fff;
  border: 2px solid #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease;
}

.banner-close:hover {
  background: #ff4d4d;
}

@media (max-width: 992px) {
  .banner-popup-content {
    width: 90%;
  }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

.main-heart {
  display: inline-block;
  animation: heartBeat 1.5s infinite;
  color: #fff;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: center;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) .service-text {
  direction: ltr;
}

.service-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.impact-badge {
  display: inline-block;
  background: var(--soft-red);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
}

.impact-badge i {
  color: var(--primary) !important;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.mv-card {
  background: var(--soft-red);
  padding: 40px;
  border-radius: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  text-align: center;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.faq-container {
  padding: 20px 0;
}

.faq-item {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 0, 0, 0.1);
  border-color: rgba(139, 0, 0, 0.1);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 15px 45px rgba(139, 0, 0, 0.15);
}

.faq-question {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.15rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: rgba(139, 0, 0, 0.02);
}

.faq-answer {
  padding: 0 30px 30px;
  display: none;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  padding-top: 20px;
}

.faq-question i {
  width: 32px;
  height: 32px;
  background: var(--soft-red);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.4s ease;
}

.faq-item.active .faq-question i {
  background: var(--primary);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-badge {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 15px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.8) 0%,
    rgba(178, 34, 34, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  color: white;
  font-size: 1.8rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-grid-link {
  text-decoration: none;
  display: block;
}

.policy-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.policy-content p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 0;
  margin-bottom: 25px;
  list-style-position: inside;
}

.policy-content ul li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.policy-content p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 0;
  margin-bottom: 25px;
  list-style-position: inside;
}

.policy-content ul li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-content .contact-box {
  background: var(--soft-red);
  padding: 30px;
  border-radius: 20px;
  margin-top: 40px;
  border-left: 5px solid var(--primary);
}

.policy-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.policy-content p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.policy-content ul,
.policy-content ol {
  padding-left: 20px;
  margin-bottom: 25px;
}

.policy-content ul li,
.policy-content ol li {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-content .contact-box {
  background: var(--soft-red);
  padding: 30px;
  border-radius: 20px;
  margin-top: 40px;
  border-left: 5px solid var(--primary);
}

.partner-card {
  text-align: center;
  transition: all 0.3s ease;
}

.partner-img {
  max-height: 160px;
  margin: 0 auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.4s ease;
}

.partner-card:hover .partner-img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Line Clamp Utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Card (Impact Stories) */
.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background-color: #000; /* Dark base for better contrast */
}

.blur-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  opacity: 0.6;
  z-index: 0;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.story-featured-img-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  border-radius: 40px;
  margin-bottom: 60px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.story-featured-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-info h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--secondary);
  gap: 12px;
}
