/* --------------------------------------- */
/* BASE STYLES */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5e6d3, #e8d4bb);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: #fdfbf7;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(101, 67, 33, 0.15);
  max-width: 900px;
  width: 100%;
  text-align: center;
  border: 1px solid #d4b896;
}

/* --------------------------------------- */
/* HEADER & BRANDING */
.header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #d4b896;
}

.logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(101, 67, 33, 0.2));
}

.sitename {
  margin: 0.5rem 0 0.3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #654321;
  text-shadow: 1px 1px 2px rgba(101, 67, 33, 0.1);
}

.tagline {
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  color: #8b6f47;
  font-weight: 500;
}

/* --------------------------------------- */
/* ABOUT SECTION */
.about-section {
  background: linear-gradient(135deg, #fff8f0, #fef5eb);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e8d4bb;
  box-shadow: 0 2px 8px rgba(101, 67, 33, 0.08);
}

.about-section h2 {
  color: #654321;
  font-size: 1.3rem;
  margin: 0 0 0.8rem 0;
  font-weight: 600;
}

.about-section p {
  color: #5a4a3a;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
}

.about-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.about-image {
  flex: 0 0 150px;
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(101, 67, 33, 0.1);
  border: 1px solid #d4b896;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------- */
/* SMOKE SELECTOR */
.smoke-selector-container {
  margin-bottom: 2rem;
  text-align: left;
}

.smoke-selector-container h3 {
  color: #654321;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.selector-intro {
  color: #8b6f47;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
}

.smoke-help-trigger {
  text-decoration: underline dotted;
  cursor: help;
  color: #b8860b;
  font-weight: 600;
  margin-left: 0.3rem;
  transition: color 0.3s ease;
}

.smoke-help-trigger:hover {
  color: #cd853f;
}

.process-explanation {
  background: #fff8f0;
  border: 1px solid #e8d4bb;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.5;
  text-align: left;
  border-left: 4px solid #b8860b;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.smoke-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.smoke-card {
  background: #ffffff;
  border: 2px solid #e8d4bb;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.smoke-card:hover {
  border-color: #cd853f;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(101, 67, 33, 0.1);
}

.smoke-card.active {
  border-color: #b8860b;
  background: #fffbf0;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

.smoke-card.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #b8860b;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.smoke-icon {
  width: 70px;
  height: 120px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.smoke-icon img {
  width: auto;
  height: 120px; /* Force image height so plume fits */
  max-width: none;
  transition: all 0.3s ease;
  transform-origin: bottom center;
}

.smoke-card.active .smoke-icon img,
.smoke-card:hover .smoke-icon img {
  transform: scale(1.05);
}

.smoke-card h4 {
  margin: 0 0 0.2rem 0;
  color: #654321;
  font-size: 1.1rem;
}

.smoke-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.smoke-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.tasting-notes {
  font-size: 0.85rem;
  color: #5a4a3a;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.smoke-keywords {
  display: flex;
  flex-wrap: nowrap; /* Force single line */
  gap: 0.3rem;
  justify-content: center;
  width: 100%;
  margin-top: auto; /* Extra insurance to stay at bottom */
}

.smoke-keywords span {
  font-size: 0.65rem; /* Slightly smaller to fit better */
  background: #f5e6d3;
  color: #654321;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap; /* No wrapping inside the tag */
  flex-shrink: 0;
}

.smoke-card.active .smoke-keywords span {
  background: #cd853f;
  color: white;
}

/* INFO BADGE & TOOLTIP */
.info-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  background: #fdfbf7;
  color: #b8860b;
  border: 1px solid #d4b896;
  border-radius: 50%;
  font-family: 'Playfair Display', serif; /* Use a serif for a more 'antique' i */
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(101, 67, 33, 0.1);
}

.info-badge:hover {
  background: #b8860b;
  color: #fffbf0;
  border-color: #b8860b;
  transform: scale(1.1);
}

.smoke-detail-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(85, 59, 32, 0.99); /* Slightly darker, more opaque */
  color: #fdfbf7;
  padding: 1.5rem;
  font-size: 0.85rem;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(2px);
}

/* Updated Trigger: Only on Badge Hover */
.smoke-card:has(.info-badge:hover) .smoke-detail-tooltip,
.info-badge:hover ~ .smoke-detail-tooltip, /* Fallback for older browsers */
.info-badge:hover + .smoke-detail-tooltip { 
  transform: translateY(0);
}

/* Selection and Intent markers */
.smoke-card:hover {
  border-color: #d4b896;
  transform: translateY(-4px);
}

.smoke-detail-tooltip h5 {
  margin: 0 0 0.6rem 0;
  color: #d4b896;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  padding-bottom: 0.4rem;
}

.smoke-detail-tooltip p {
  margin: 0;
  line-height: 1.6;
  color: #ece0d1;
}

/* MOBILE RESPONSIVENESS FOR SMOKE SELECTOR */
@media (max-width: 768px) {
  .smoke-options {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .smoke-card {
    padding: 1.5rem;
    min-height: 280px; /* Ensure enough height for tooltip content */
  }
  
  .smoke-icon {
    width: 60px;
    height: 100px;
    margin: 0 auto 1rem;
  }

  .smoke-icon img {
    height: 100px;
  }
  
  .smoke-keywords {
    justify-content: center;
  }

  /* Adjust tooltip for mobile to be less intrusive or triggered differently */
  .smoke-detail-tooltip {
    position: absolute; /* Keep it as an overlay within the card */
    padding: 1rem;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  /* On mobile, tapping the card can trigger the hover state */
  .smoke-card:active .smoke-detail-tooltip {
     transform: translateY(0);
  }
}

.result, .error {
  margin-top: 1rem;
  text-align: left;
}

.hidden { display: none !important; }

/* --------------------------------------- */
/* URL + BUTTON ROW */
.urlRow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.urlRow input[type="url"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem;
  border: 2px solid #d4b896;
  border-radius: 8px;
  max-height: 3em;
  overflow-y: auto;
  display: block;
  box-sizing: border-box;
  font-size: 0.95rem;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.urlRow input[type="url"]::placeholder {
  font-size: 0.7rem;
  color: #a08a6a;
  opacity: 0.7; 
}

.urlRow input[type="url"]:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.urlRow button {
  flex: 0 0 auto;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #b8860b, #cd853f);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 0;
  display: block;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.urlRow button:hover {
  background: linear-gradient(135deg, #cd853f, #daa520);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

.urlRow button:active {
  transform: translateY(0);
}


/* STACK ON MOBILE */
@media (max-width: 600px) {
  .urlRow {
    flex-direction: column;
    align-items: stretch;
  }

  .urlRow input[type="url"],
  .urlRow button {
    width: 100%;
  }
}

/* --------------------------------------- */
/* PROGRESS BOX */
.progress-box {
  font-style: italic;
  color: #5a4a3a;
  font-size: 0.9em;
  margin-top: 0.5rem;
  min-height: 1.2em; /* prevents layout jump when text appears */
}

.progress-box.hidden {
  display: none;
}

#progressBox {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #fff8f0;
  border-left: 4px solid #cd853f;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #5a4a3a;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

#progressBox.visible {
  opacity: 1;
  transform: translateY(0);
}

#progressBox.error-state {
  background: #fee2e2 !important;
  border-left: 4px solid #ef4444 !important;
  color: #991b1b !important;
}

/* --------------------------------------- */
/* RESULT ANIMATION */
.result {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.result.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------- */
/* PROPERTY HEADER */
#propertyName {
  margin-bottom: 0.2rem;
}

.property-location {
  margin: 0 0 1rem 0;
  color: #8b6f47;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
}

/* --------------------------------------- */
/* PROPERTY STATS */
.property-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.5rem 0 2rem 0;
  color: #5a4a3a;
  font-size: 0.95rem;
  font-weight: 500;
}

.property-stats span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #654321;
}

.property-stats span svg {
  width: 22px;
  height: 22px;
  stroke: #8b6f47;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* MOBILE RESPONSIVENESS FOR HEADER */
@media (max-width: 768px) {
  #propertyName {
    font-size: 1.6rem;
  }
  
  .property-location {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .property-stats {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .property-stats span svg {
    width: 18px;
    height: 18px;
  }
}

/* --------------------------------------- */
/* IMAGE + MAP ROW */
#imageMapRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.mediaItem {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

#propertyThumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mapContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* STACK IMAGE + MAP ON MOBILE */
@media (max-width: 600px) {
  #imageMapRow {
    grid-template-columns: 1fr;  /* stack */
    gap: 1rem;
  }

  .mediaItem img {
    width: 100%;
    height: auto;
  }

  #mapContainer {
    aspect-ratio: auto;
    height: 250px;
    width: 100%;
  }

  #mapContainer iframe {
    width: 100%;
    height: 100%;
  }
}

/* --------------------------------------- */
/* SUMMARY CARDS */
.summary-section {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.summary-card {
  background: #fff8f0;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(101, 67, 33, 0.08);
  border: 1px solid #e8d4bb;
}

.summary-card h3,
.summary-card h4 {
  margin: 0 0 0.5rem 0;
  color: #654321;
}

.summary-card.highlight {
  border-left: 4px solid #b8860b;
  background: linear-gradient(135deg, #fffbf5, #fff8f0);
}

.summary-card.improvement {
  border-left: 4px solid #cd853f;
  background: linear-gradient(135deg, #fef5eb, #fff0e0);
}

.summary-card p {
  margin: 0;
  line-height: 1.45;
  color: #5a4a3a;
}

/* FEEDBACK BUTTONS */
.feedback-container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 184, 150, 0.3);
  text-align: left;
}

.feedback-label {
  display: block;
  font-size: 0.8rem;
  color: #8b6f47;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.feedback-buttons {
  display: flex;
  gap: 0.8rem;
}

.feedback-btn {
  background: #fdfbf7;
  border: 1px solid #d4b896;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #654321;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  white-space: nowrap; /* Prevent text wrapping inside button */
  min-width: 140px; /* Ensure buttons have a solid footprint */
}

.feedback-btn:hover {
  background: #fff8eb;
  border-color: #b8860b;
  transform: translateY(-1px);
}

.feedback-btn.active {
  background: #b8860b;
  color: white;
  border-color: #b8860b;
}

#thumbsUp.active {
  background: #339966;
  border-color: #339966;
}

#thumbsDown.active {
  background: #CC3333;
  border-color: #CC3333;
}

.feedback-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.feedback-thanks {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #339966;
  font-weight: 600;
  animation: fadeIn 0.4s ease-out;
}

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

/* --------------------------------------- */
/* OPTIONAL: SHIMMER (nice for loading) */
.skeleton {
  background: linear-gradient(
    90deg,
    #eee 0%,
    #f6f6f6 50%,
    #eee 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------- */
/* CHART STYLES */
.chart-card {
  grid-column: 1 / -1;
  margin-top: 2rem;
  background: #fffbf5;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(101, 67, 33, 0.1);
  border: 1px solid #e8d4bb;
  transition: transform 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-2px);
}

.chart-container {
  width: 100%;
  height: 220px;
  position: relative;
  margin-top: 1rem;
}

.chart-note {
  font-size: 0.75rem;
  color: #8b6f47;
  margin-top: 1rem;
  font-style: italic;
}

/* --------------------------------------- */
/* FLAME CURSOR STYLES */

.smoking {
  cursor: none !important;
}

.smoking * {
  cursor: none !important;
}

#flameContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

.smoking #flameContainer {
  display: block;
}

.flame {
  position: absolute;
  width: 14px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, #ff4500);
  border-radius: 50% 50% 20% 20% / 100% 100% 20% 20%;
  transform: translate(-50%, -90%);
  filter: blur(0.5px); /* Reduced blur for sharper boundary */
  animation: flicker 0.15s infinite alternate ease-in-out;
  transform-origin: bottom center;
  /* Sharp dark shadow to define the edge on light backgrounds */
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.4));
  z-index: 10000;
}

.flame::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 20px;
  background: #ff8c00;
  border-radius: 50% 50% 20% 20% / 100% 100% 20% 20%;
  filter: blur(0.5px);
  animation: flicker-inner 0.1s infinite alternate-reverse;
}

.flame::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: #ffffff;
  border-radius: 50% 50% 20% 20% / 100% 100% 20% 20%;
  box-shadow: 0 0 8px #ffffff;
}

/* Smoke particles - Darker for visibility on light BG */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@keyframes flicker {
  0% { 
    height: 28px;
    transform: translate(-50%, -90%) scaleX(0.9) rotate(-2deg);
  }
  100% { 
    height: 32px;
    transform: translate(-50%, -90%) scaleX(1.1) rotate(2deg);
  }
}

@keyframes flicker-inner {
  0% { transform: translateX(-50%) scale(0.9); }
  100% { transform: translateX(-50%) scale(1.1); }
}

/* --------------------------------------- */
/* AFFILIATE / PROVISIONS CARD */

.affiliate-card {
  margin-top: 1.5rem;
  background: #fffbf7; /* Slightly lighter than standard summary card */
  border-color: #d4b896;
}

.affiliate-card h3 {
  border-bottom: 1px dashed #d4b896;
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.affiliate-intro {
  font-style: italic;
  font-size: 0.95rem;
  color: #8c6b4a; /* Muted brown */
  margin-bottom: 5rem; /* Significantly more spacing */
}

.affiliate-links-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  /* Add a transparent border so hover state doesn't shift pixels */
  border: 2px solid transparent; 
  box-sizing: border-box; /* Lock dimensions including border */
  border-radius: 50%; /* Make it a circle */
  width: 74px; 
  height: 74px; 
  flex-shrink: 0; 
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: none;
  overflow: hidden;
  /* Fix for sub-pixel shifting/jitter on transform */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0); 
}

.affiliate-btn:hover {
  /* Only scale, don't move. Moving combined with scaling often causes the jitter. */
  transform: scale(1.1); 
  /* Highlight border on hover */
  /* Highlight border on hover */
  border-color: #b8860b; 
  /* Using a darker, more vivid shadow to mimic a 'highlight' */
  box-shadow: 0 0 10px 2px rgba(184, 134, 11, 0.6); 
  filter: brightness(1.1);
}

.affiliate-logo {
  width: 100%; /* Fill the entire button area */
  height: 100%;
  object-fit: cover; /* Cover ensures it fills without empty space, though cropping may occur if aspect ratio differs */
  margin-bottom: 0;
  filter: opacity(0.9);
  transition: filter 0.3s ease;
}

.affiliate-btn:hover .affiliate-logo {
  filter: opacity(1);
}

.affiliate-name {
  display: none; /* Hide name entirely */
}

/* Specific logic to balance visual weight */
.affiliate-btn img[alt="HomeToGo"] {
  transform: scale(1.05); /* Slightly boosted, but aligned better with others */
}


/* --------------------------------------- */
/* TESTIMONIALS CAROUSEL */

.testimonial-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #d4b896;
  text-align: center;
  /* Fade transition for the container */
  opacity: 0;
  transition: opacity 1s ease;
}

.testimonial-section.visible {
  opacity: 1;
}

.testimonial-header {
  font-family: 'Inter', serif; /* Or a serif font if imported */
  font-style: italic;
  font-weight: 500;
  color: #8c6b4a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-text {
  font-family: 'Georgia', serif; /* Using Georgia for that 'book' feel */
  font-size: 1.1rem;
  line-height: 1.5;
  color: #5a4a3a;
  font-style: italic;
  max-width: 80%;
  margin: 0 auto 0.5rem auto;
  min-height: 3.5rem; /* Reserve space to prevent jarring jumps */
  
  /* Text fade transition */
  transition: opacity 0.8s ease;
  opacity: 1;
}

.testimonial-text.fade-out {
  opacity: 0;
}

.testimonial-author {
  font-size: 0.85rem;
  color: #b8860b; /* Gold accent */
  font-weight: 600;
  
  /* Text fade transition */
  transition: opacity 0.8s ease;
  opacity: 1;
}

.testimonial-author.fade-out {
  opacity: 0;
}

