:root {
  --bg: #f7f8ff;
  --surface: #f6f1ea;
  --card: #fffaf3;
  --ink: #15110d;
  --muted: #6f675f;
  --accent: #e5b567;
  --accent-dark: #e5b567;
  --line: rgba(50, 38, 28, 0.12);
  --shadow: 0 18px 48px rgba(37, 25, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Poppins, sans-serif;
}

.success-new-cta {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #050505;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 13px 18px;
  box-shadow: 0 12px 25px rgba(233, 97, 25, 0.28);
  font-family: Poppins, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #07090a;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.78) 30%,
      rgba(0, 0, 0, 0.12) 68%,
      rgba(0, 0, 0, 0.25) 100%
    ),
    url("../image/final_bg2.png") right 15% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0;
  padding: 160px 24px 52px;
  margin-left: 70px;
}

.label {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.6px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  font-size: 56px;
  line-height: 0.98;
  margin: 0;
  max-width: 430px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
  margin: 22px 0 0;
  max-width: 440px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  max-width: 620px;
}

/* .hero-stats > div {
  align-items: center;
  display: grid;
  grid-template-columns: 38px 1fr;
  min-width: 150px;
} */

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.stat-icon {
  width: 32px;
  height: 32px;
  /* border: 1px solid rgba(233, 97, 25, 0.7);
  border-radius: 50%; */
  color: var(--accent);
  display: grid;
  font-size: 27px;
  font-weight: 900;
  place-items: center;
}

.hero-stats h3 {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
  margin: 0;
}

.hero-stats p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  margin: 4px 0 0;
}

.footer-banner {
  background: var(--bg);
  color: #fff;
  padding: 0 24px 36px;
}

.success-cta {
  align-items: center;
  background: url("../image/cta_section.png");
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px 14px 14px 14px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center; /* vertical center */
  text-align: center;
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 24px 28px;
}

.success-cta h2 {
  font-size: 24px;
  margin: 0;
  color: white;
}

.success-cta h2 span {
  color: var(--accent);
}

.success-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}

.cta_new {
  padding: 56px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 30px 0 0;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
}

.footer-brand {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-brand span {
  color: var(--accent);
}

.copyright {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 58%,
        rgba(0, 0, 0, 0.15) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%),
      url("../image/final_bg2.png") 62% top / cover no-repeat;
  }

  .hero-content {
    width: 100%;
    padding: 130px 20px 40px; /* override full padding */
    margin-left: 0; /* remove desktop left shift */
    text-align: center;
  }

  .hero h1,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats,
  .success-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-item {
    justify-content: center;
  }

  .success-cta {
    flex-direction: column;
    align-items: center;
    border-radius: 14px 14px 0 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 660px;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 58%,
        rgba(0, 0, 0, 0.15) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%),
      url("../image/final_bg2.png") 64% top / auto 100% no-repeat;
  }

  .hero-content {
    width: 100%;
    padding: 130px 20px 40px; /* override full padding */
    margin-left: 0; /* remove desktop left shift */
    text-align: center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 14px;
  }

  .success-cta {
    padding: 20px;
  }
}

/* impact-section */
.impact-section {
  background: var(--surface, #f6f1ea);
  padding: 42px 24px 28px;
}

.impact-box {
  background: #07090a;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(22, 15, 10, 0.2);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 18px 12px;
}

.impact-item {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 10px 18px;
}

.impact-item:last-child {
  border-right: 0;
}

.impact-icon {
  align-self: center;
  /* border: 1px solid rgba(233, 97, 25, 0.58);
  border-radius: 50%; */
  font-size: 25px;
  color: var(--accent, #e5b567);
  display: grid;
  font-weight: 900;
  height: 30px;
  place-items: center;
  width: 30px;
}

.impact-item h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  margin: 0;
}

.impact-item p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .impact-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .impact-section {
    padding-inline: 18px;
  }

  .impact-box {
    grid-template-columns: 1fr;
  }

  .impact-item:last-child {
    border-bottom: 0;
  }
}

/* stories-section */
.stories-section {
  background: var(--surface, #f6f1ea);
  color: var(--ink, #15110d);
  padding: 42px 24px 28px;
}

.section-header {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
}

.section-header h2 span {
  color: var(--accent, #e5b567);
}

.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.story-btn {
  background: #fffaf3;
  border: 1px solid var(--line, rgba(50, 38, 28, 0.12));
  border-radius: 999px;
  color: #33261c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 16px;
  transition: 0.2s ease;
}

.story-btn:hover,
.story-btn.active {
  background: var(--accent, #e5b567);
  border-color: var(--accent, #e5b567);
  color: #fff;
}

.story-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px auto 0;
  max-width: 1180px;
}

.story-card {
  background: var(--card, #fffaf3);
  border: 1px solid var(--line, rgba(50, 38, 28, 0.12));
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(37, 25, 17, 0.08);
  padding: 13px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.story-card:hover {
  box-shadow: var(--shadow, 0 18px 48px rgba(37, 25, 17, 0.12));
  transform: translateY(-4px);
}

.story-card img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.story-card h3 {
  color: var(--ink, #15110d);
  font-size: 15px;
  margin: 12px 0 8px;
}

.story-card p {
  color: var(--muted, #6f675f);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.story-meta {
  align-items: center;
  color: #7b7066;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 14px;
  margin-top: 14px;
}

.story-card h4 {
  color: var(--accent, #e5b567);
  font-size: 28px;
  line-height: 1;
  margin: 0 0 0 auto;
}

@media (max-width: 900px) {
  .section-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .story-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
  }

  .story-btn {
    width: 100%;
    text-align: center;
  }

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

@media (max-width: 620px) {
  .stories-section {
    padding-inline: 18px;
  }

  .section-header h2 {
    font-size: 28px;
  }

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

/* testimonial_section */
.testimonials-section {
  background: var(--surface, #f6f1ea);
  padding: 42px 24px 28px;
}

.testimonials-header {
  margin: 0 auto 22px;
  max-width: 1180px;
}

.testimonials-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
}

.testimonials-header h2 span {
  color: var(--accent, #e5b567);
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.testimonial-card {
  background: #fffaf3;
  border: 1px solid var(--line, rgba(50, 38, 28, 0.12));
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(37, 25, 17, 0.07);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 40px) / 3);
  justify-content: space-between;
  padding: 22px;
  position: relative;
}

.stars {
  color: #f4b400;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.testimonial-card::after {
  color: rgba(233, 97, 25, 0.14);
  content: '"';
  font-family: Georgia, serif;
  font-size: 78px;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 8px;
}

.testimonial-card p {
  color: var(--muted, #6f675f);
  font-size: 13px;
  line-height: 1.7;
  margin: auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.patient {
  align-items: center;
  display: flex;
  margin-top: auto;
  gap: 12px;
}

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

.testimonial-card h4 {
  color: var(--ink, #15110d);
  font-size: 13px;
  margin: 0;
}

.testimonial-card span {
  color: var(--muted, #6f675f);
  font-size: 11px;
}

.testimonials-slider {
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 820px) {
  .testimonial-card {
    flex-basis: calc((100% - 20px) / 2);
    min-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 560px) {
  .testimonials-section {
    padding-inline: 18px;
  }

  .testimonials-header {
    display: block;
  }

  .testimonial-card {
    aspect-ratio: auto;
    flex-basis: 100%;
    min-height: 340px;
    min-width: 100%;
  }
}

/* Tablet and mobile */
@media (max-width: 768px) {
  .cta_new {
    padding: 40px 16px;
  }
  .testimonial-card {
    min-width: 100%;
  }

  .success-cta {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 58%,
        rgba(0, 0, 0, 0.15) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%),
      url("../image/cta_section.png");
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 32px 22px;
  }

  .footer-cta {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}
.success-new-cta {
  padding: 13px 22px;
  font-size: 15px;
}

/* Small mobile */
@media (max-width: 480px) {
  .cta_new {
    padding: 32px 14px;
  }

  .success-cta {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 58%,
        rgba(0, 0, 0, 0.15) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%),
      url("../image/cta_section.png");
    padding: 28px 18px;
    border-radius: 16px;
  }

  .footer-cta {
    font-size: 14px;
    padding: 13px 20px;
  }
  .success-new-cta {
    padding: 13px 22px;
    font-size: 15px;
  }
}
/* Tablet */
@media (max-width: 768px) {
  .success-new-cta {
    padding: 13px 22px;
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .success-new-cta {
    width: 100%;
    max-width: 180px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
  }
}
