.comparison-section {
  font-family: "Inter", sans-serif;
  margin: 0;
  background-color: #046C4E;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  width: 100vw;
}

.frame {
  background-color: #046C4E;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.carousel-container {
  width: 100%;
  text-align: center;
}

.carousel-container h2 {
  font-size: 36px;
  color: #f0cc3ef2; /* Gold color for main title */
  margin-bottom: 40px;
  font-weight: 600;
}

.carousel-tabs {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid #e0e0e0;
  position: relative; /* For positioning progress bars absolutely to it if needed, but they are relative to buttons */
}

.tab-button {
  background-color: transparent;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 16px;
  color: #E5E5E5;
  position: relative;
  outline: none;
  font-weight: 500;
}

.tab-button .progress-bar {
  position: absolute;
  bottom: -1px; /* Sits on the border-bottom of .carousel-tabs */
  left: 0;
  height: 3px;
  background-color: #e5a546; /* Gold color for progress */  
  width: 0;
  transition: none; /* JS will handle transitions for progress */
}

.tab-button.active {
  color: #FFDA77;
  font-weight: 600;
  letter-spacing: 0.05em;
  
}

.carousel-content {
  margin-top: 20px;
}

.feature-panel {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.feature-panel.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 48px;
  color: #f3d55b;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

.feature-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #E5E5E5; 
  margin-bottom: 30px;
}

.learn-more-btn {
  background-color: #1e1d21;
  color: #FFF4CA; /* Ivory color for button text */
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #E4C25A; /* Gold color for hover effect */
  color: #1e1d21;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-visual img {
  max-width: 100%;
  height: auto;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.placeholder-visual {
  width: 100%;
  height: 300px;
  background-color: #E5E5E5;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #6c757d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Accessibility: Visual Focus Indicator */
.tab-button:focus-visible,
.learn-more-btn:focus-visible {
  outline: 3px solid #005fcc; /* A distinct focus color */
  outline-offset: 2px;
  box-shadow: 0 0 0 1px #ffffff; /* Inner contrast for outlines on dark backgrounds */
}
/* Fallback for browsers not supporting focus-visible, or if always desired */
.tab-button:focus,
.learn-more-btn:focus {
  /* Consider if you want this for mouse clicks too, :focus-visible is often preferred */
  /* outline: 3px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #ffffff; */
}


/* Feature Section Container */
#feature {
  background-color: var(--neutral-light);   /* #FFFFFF */
  color:            var(--neutral-dark);    /* #333333 */
  padding-top:      50px;
  padding-bottom:   50px;
  text-align:       center;
}

/* Hero Image */
#feature .market-img {
  margin-bottom: 2rem;
}

/* Card Grid */
#feature .row.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Defaults */
.card-custom {
  background-color:  var(--neutral-mid);    /* #F5F5F5 */
  border:            1px solid var(--light-variant); /* #5F8B75 */
  border-radius:     12px;
  padding:           1.5rem;
  box-shadow:        0 4px 12px rgba(0,0,0,0.05);
  transition:        transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Lift */
.card-custom:hover {
  transform: translateY(-4px);
  box-shadow:  0 8px 24px rgba(0,0,0,0.1);
}

/* Card Images */
.feature-card-img {
  max-width: 80px;
  margin-bottom: 1rem;
}

/* Headings */
.card-custom h4 {
  color:           var(--primary-bg);  /* #4B7766 */
  margin-bottom:   0.75rem;
  font-weight:     700;
  font-size:       1.25rem;
}

/* List Items */
.card-custom ul {
  list-style-type: none;
  padding:         0;
  margin:          0;
}
.card-custom ul li {
  color:           var(--text-secondary); /* #6E7D7A */
  font-weight:     400;
  margin-bottom:   0.5rem;
  line-height:     1.5;
  position:        relative;
  padding-left:    1.5rem;
}
.card-custom ul li::before {
  content:        "•";
  position:       absolute;
  left:           0;
  color:          var(--secondary-accent); /* #FFF4CA */
  font-size:      1.2rem;
  line-height:    1;
}

/* “Connect with Us” Button */
.btn-connect {
  display:         inline-block;
  margin-top:      2.5%;
  padding:         0.75rem 2rem;
  background-color: var(--secondary-accent); /* #FFF4CA */
  color:            var(--neutral-dark);     /* #333333 */
  font-size:        1.5rem;
  font-weight:      500;
  border:           none;
  border-radius:    25px;
  cursor:           pointer;
  transition:       background-color 0.3s ease;
}
.btn-connect:hover {
  background-color: var(--accent-hover); /* #E4D9B0 */
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .feature-card-img { max-width: 60px; }
  .card-custom h4  { font-size: 1.125rem; }
  .btn-connect     { font-size: 1.25rem; padding: 0.6rem 1.5rem; }
}




@media (max-width: 767px) {
  .feature-panel {
    flex-direction: column;
    gap: 20px;
  }

  .feature-text h2 {
    font-size: 28px;
    text-align: center;
  }

  .feature-text p {
    font-size: 16px;
    text-align: center;
  }

  .feature-text,
  .feature-visual {
    width: 100%;
    text-align: center;
  }
  .feature-visual {
    margin-top: -75px;
  }

  .learn-more-btn {
    /*margin: 0 auto;*/
    visibility: hidden; /* Hide button on mobile */
  }
}
@media (max-width: 767px) {
  .carousel-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .tab-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}
.feature-visual {
  flex: 1;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 767px) {
  .frame {
    padding: 20px 15px;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
