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

:root {
  --primary: #0f5c4a; /* emerald */
  --primary2: #0b4b3d; /* darker emerald (hover) */

  --bg: #f7f5f1; /* warm off-white */
  --card: #ffffff; /* cards */

  --text: #111714; /* near-black green */
  --muted: #4f5a54; /* secondary text */
  --muted2: #6a766f; /* tertiary text */

  --line: #e2e0da; /* borders */
  --chip: #f2f0ea; /* chip background */

  --gold: #c7a24b; /* premium accent (stars/badges) */
  --info: #eaf5f1; /* light emerald highlight */
  --infoText: #0f5c4a; /* highlight text */
}

body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif; */
  line-height: 1.6;
  color: #333;
  /* background: #f9f5f0; */
  background: var(--bg);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* Hero Section */
.hero-section-results {
  text-align: center;
  padding: 15px 20px 10px;
  /* background: #f9f5f0; */
}

.hero-section-results h1 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px;
  /* color: #1a1a1a; */
  color: var(--primary);
}

.hero-section-results p {
  font-size: 1.1rem;
  /* color: #666; */
  color: var(--infoText);
  max-width: 600px;
  margin: 0 auto;
}

/* Transformation Gallery Section */
.transformation-section {
  padding: 10px 0;
  background: #f9f5f0 !important;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.gallery-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.gallery-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.gallery-grid {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 20px;
}

/* DESKTOP: Show 3 cards at a time */
.transformation-item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  padding: 0;
}

.image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #d4b896 0%, #c9a581 100%);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: fill !important;
}

.image-label-left {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.image-label-right {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Navigation Buttons */
.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* background: #d7925a; */
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(215, 146, 90, 0.3);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-btn:hover {
  /* background: #e17f30; */
  background: var(--primary2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

.gallery-btn i {
  font-size: 1rem;
  color: #fff;
}

/* Navigation Dots - DESKTOP (Base Styles) */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.gallery-dot.active {
  width: 26px;
  border-radius: 13px;
  /* background: #d7925a; */
  background: var(--primary);
}

/* TABLET */
@media (max-width: 1024px) {
  .gallery-container {
    padding: 0 70px;
  }
}

/* MOBILE: Show 1 card at a time */
@media (max-width: 768px) {
  .gallery-container {
    padding: 0 60px;
  }

  .gallery-grid {
    gap: 0;
  }

  .transformation-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 10px;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-btn i {
    font-size: 0.85rem;
  }

  .gallery-btn.prev {
    left: 5px;
  }

  .gallery-btn.next {
    right: 5px;
  }

  /* MOBILE DOTS - Much Smaller! */
  .gallery-dots {
    margin-top: 20px;
    gap: 5px;
  }

  .gallery-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
  }

  .gallery-dot.active {
    width: 16px !important;
    height: 6px !important;
    border-radius: 3px !important;
  }

  .image-container {
    border-radius: 12px;
  }

  .image-label-left,
  .image-label-right {
    padding: 4px 12px;
    font-size: 11px;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    padding: 0 50px;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
  }

  /* Extra small dots for very small screens */
  .gallery-dots {
    gap: 4px;
  }

  .gallery-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .gallery-dot.active {
    width: 14px !important;
    height: 5px !important;
  }
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--primary2);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  margin-top: 5rem;
}

.disclaimer-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 1rem;
}

.disclaimer-text {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Timeline Section */
.timeline-section {
  padding: 40px 20px;
  background: #f9f5f0;
}

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

.timeline-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.percentage {
  font-size: 2.8rem;
  font-weight: 700;
  /* background: linear-gradient(135deg, #d7925a 0%, #f7bf92 100%); */
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.timeline-duration {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.timeline-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.timeline-note {
  text-align: center;
  /* color: #999; */
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 30px;
  font-style: italic;
}

/* Success Stories Section */
.success-stories-section {
  padding: 40px 20px;
  background: #ffffff;
}

.stories-intro {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.story-card {
  /* background-color: #eaeaea; */
  background: linear-gradient(135deg, var(--chip) 0%, var(--line) 100%);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.story-author h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.story-author p {
  font-size: 0.85rem;
  color: #666;
}

.story-weight-loss {
  font-size: 1.8rem;
  font-weight: 700;
  /* background-color: #d7925a; */
  background-color: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-detail {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.story-detail strong {
  color: #1a1a1a;
  font-weight: 600;
}

.story-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.story-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* color: #d7925a; */
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.story-read-more:hover {
  gap: 10px;
  color: var(--muted);
}

.view-all-btn {
  display: inline-block;
  /* background-color: #d7925a; */
  background-color: var(--primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.view-all-btn:hover {
  background-color: var(--primary2);
}

.view-all-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.text-center {
  text-align: center;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #d7925a;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(215, 146, 90, 0.3);
  z-index: 10;
}

.carousel-btn:hover {
  background: #c17f46;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(215, 146, 90, 0.4);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: #d7925a;
  transform: translateY(-50%) scale(1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Dots Navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--primary);
}

/* Tablet */
@media (max-width: 1024px) {
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  .carousel-dots {
    gap: 8px;
    margin-top: 30px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .stars {
    font-size: 18px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* CTA Section */
/* CTA Section */
.cta-section {
  padding: 40px 20px;
  /* background: #f9f5f0; */
  background: linear-gradient(
    135deg,
    var(--line) 0%,
    var(--line) 100%
  ) !important;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.cta-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.primary-btn-result,
.shop-btn-result {
  /* background-color: #d7925a; */
  background-color: var(--primary);
  color: #fff;
  padding: 14px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-align: center;
  line-height: 1.4;
}

.btn-secondary {
  /* background-color: #6c757d; */
  background-color: var(--info);
  /* color: #fff; */
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: 1px solid var(--primary) !important;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-align: center;
  line-height: 1.4;
}

.shop-btn-result:hover {
  background: var(--primary2);
}

.btn-secondary:hover {
  /* background: #5c636a;
  color: #fff; */
  background: var(--primary);
  color: var(--info);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-section-results h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .primary-btn-result,
  .btn-secondary,
  .shop-btn-result {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
    font-size: 1rem;
    display: block;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .testimonials-carousel-wrapper {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section-results {
    padding: 30px 20px 15px;
  }

  .hero-section-results h1 {
    font-size: 32px !important;
  }

  .timeline-section,
  .success-stories-section,
  .cta-section {
    padding: 30px 20px;
  }

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

  .percentage {
    font-size: 2rem;
  }

  .primary-btn-result,
  .btn-secondary,
  .shop-btn-result {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    font-size: 0.95rem;
  }
}

/* MOBILE: Show 1 card at a time - ENHANCED FOR CLEAN LOOK */
@media (max-width: 768px) {
  /* Transformation Section Mobile */
  .transformation-section {
    /* padding: 40px 0; */
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .gallery-container {
    padding: 0 50px;
    max-width: 100%;
  }

  .gallery-wrapper {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
  }

  .gallery-grid {
    gap: 0;
    align-items: center;
  }

  .transformation-item {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .image-container {
    border-radius: 16px;
    margin: 0 auto;
    max-width: 350px; /* Limit max width for better centering */
    width: 100%;
  }

  .gallery-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    backdrop-filter: blur(4px);
  }

  .gallery-btn i {
    font-size: 0.9rem;
  }

  .gallery-btn.prev {
    left: 8px;
  }

  .gallery-btn.next {
    right: 8px;
  }

  /* MOBILE DOTS - Smaller and centered */
  .gallery-dots {
    margin-top: 24px;
    gap: 6px;
  }

  .gallery-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #d1d5db;
  }

  .gallery-dot.active {
    width: 20px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: var(--primary);
  }

  .image-label-left,
  .image-label-right {
    padding: 6px 14px;
    font-size: 12px;
    bottom: 12px;
    font-weight: 600;
  }

  .stars {
    justify-content: center;
    margin-bottom: 16px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: rgba(215, 146, 90, 0.9);
    backdrop-filter: blur(4px);
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .carousel-dots {
    gap: 6px;
    margin-top: 24px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    background: #d1d5db;
  }

  .carousel-dot.active {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    background: var(--primary);
  }
}

@media (max-width: 480px) {
  /* Transformation Section - Extra Small Mobile */
  .section-title {
    font-size: 21px;
    margin-bottom: 25px;
  }

  .gallery-container {
    padding: 0 45px;
  }

  .image-container {
    max-width: 300px;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-btn.prev {
    left: 5px;
  }

  .gallery-btn.next {
    right: 5px;
  }

  /* Smaller dots for very small screens */
  .gallery-dots {
    gap: 5px;
    margin-top: 20px;
  }

  .gallery-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .gallery-dot.active {
    width: 18px !important;
    height: 7px !important;
  }

  .stars {
    font-size: 18px;
    gap: 4px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  .carousel-dots {
    gap: 5px;
    margin-top: 20px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 18px;
    height: 7px;
  }
}

/* Extra Small Devices */
@media (max-width: 375px) {
  .gallery-container {
    padding: 0 40px;
  }

  .image-container {
    max-width: 280px;
  }

  .gallery-btn,
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* == Updated Testimonial Section CSS == */
.results-testimonials-section {
  padding: 50px 20px;
  background: #f9f5f0;
}

.results-testimonials-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 35px;
  color: #1a1a1a;
}

.results-testimonials-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.results-testimonials-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.results-testimonials-track {
  display: flex;
  transition: transform 0.45s ease-in-out; /* smooth slide */
  will-change: transform; /* boost performance */
}

.rt-card {
  flex: 0 0 calc(33.333% - 24px);
  min-width: calc(33.333% - 24px);
  background: white;
  padding: 35px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-right: 24px;
}
.rt-card:last-child {
  margin-right: 0;
}
.rt-card:first-child {
  margin-left: 12px;
}

.rt-stars {
  /* color: #d7925a; */
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 15px;
}

.rt-text {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.rt-author {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.rt-location {
  font-size: 14px;
  color: #9ca3af;
}
#rtTrack {
  touch-action: pan-y; /* allow horizontal swipe */
}

/* NAV BUTTONS */
.results-testimonials-nav {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* background: #d7925a; */
  background: var(--primary);
  border: none;
  /* color: #fff; */
  color: var(--info);
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.results-testimonials-nav.prev {
  left: -20px;
}
.results-testimonials-nav.next {
  right: -20px;
}

.results-testimonials-nav.prev i,
.results-testimonials-nav.next i {
  color: #fff;
}

.results-testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.results-testimonials-dots button {
  width: 10px;
  height: 10px;
  background: #d1d5db;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.results-testimonials-dots button.active {
  width: 26px;
  border-radius: 15px;
  /* background: #d7925a; */
  background: var(--primary);
}

/* TABLET */
@media (max-width: 1024px) {
  .rt-card {
    flex: 0 0 calc(50% - 24px);
    /* min-width: calc(50% - 24px); */
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .rt-card {
    flex: 0 0 100%;
    /* min-width: 100%; */
    margin-right: 0;
  }

  .results-testimonials-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .results-testimonials-nav.prev {
    /* left: 5px; */
    display: none;
  }
  .results-testimonials-nav.next {
    /* right: 5px; */
    display: none;
  }

  .results-testimonials-dots button {
    width: 8px;
    height: 8px;
  }

  .results-testimonials-dots button.active {
    width: 18px;
  }
}
