/* ---------- TABBED CAROUSEL COMPONENT ---------- */
.tabbed-carousel-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Header & Watermark Adjustments */
.tc-header {
  position: relative;
  padding: 60px 0 40px;
  margin-bottom: 70px; /* Increased margin to push tabs further down */
  min-height: 180px; /* Forces space even if the main heading/description are blank */
}

.tc-watermark {
  position: absolute;
  top: -10%; /* Pulls the giant text up slightly */
  left: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(80px, 15vw, 220px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #F4F4F4;
  letter-spacing: 0.2em;
  z-index: 1;
  
  /* CRITICAL FIXES FOR OVERLAP */
  line-height: 0.75; /* Tightens the invisible box around the text */
  user-select: none;
  pointer-events: none; /* Ensures the text never blocks you from clicking the tabs below it */
}

.tc-header-content {
  position: relative;
  z-index: 2;
}

.tc-header-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  margin-bottom: 20px;
}

.tc-header-content p {
  color: var(--steel-soft);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

/* Tabs Navigation */
.tc-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 10px;
}

.tc-tab-btn {
  background: transparent;
  border: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--steel-soft);
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active State matches the gold/beige box in image_ef32cd */
.tc-tab-btn.active {
  background: #D5C2A5; 
  color: #fff;
}

.tc-tab-btn:hover:not(.active) {
  color: var(--ink);
}

/* Tab Panels */
.tc-tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tc-tab-panel.active {
  display: block;
}

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

/* Carousel Track */
.tc-carousel-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px; /* Room for overlapping cards */
  scrollbar-width: none;
}
.tc-carousel-track::-webkit-scrollbar { display: none; }

/* Overlapping Card Design (image_ef3a51.jpg) */
.tc-card {
  width: calc(33.333% - 20px);
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  position: relative;
  padding-bottom: 60px; /* Creates space at the bottom for the overlapping box */
}

.tc-card-img {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

/* White Box Overlapping the Image */
.tc-card-info {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: #ffffff;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tc-card-info h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}

.tc-card-sub {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #A0A0A0;
  text-transform: uppercase;
}

.tc-read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--copper);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.tc-read-more:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 900px) {
  .tc-card {
    width: calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
  }
}
@media (max-width: 600px) {
  .tc-card {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* ---------- CAROUSEL NAVIGATION ARROWS ---------- */
.tc-carousel-wrapper {
  position: relative;
  padding: 0 55px; /* Creates space for the arrows so they don't cover the cards */
}

.tc-nav-btn {
  position: absolute;
  /* Centers the arrow perfectly over the 350px image, ignoring the bottom overlap space */
  top: calc(50% - 30px); 
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--copper);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(193, 101, 47, 0.4);
  z-index: 10;
  transition: all 0.3s;
}

.tc-nav-btn:hover {
  background-color: var(--ink);
  box-shadow: 0 4px 15px rgba(14, 27, 42, 0.4);
}

.tc-prev { left: 0; }
.tc-next { right: 0; }

@media (max-width: 900px) {
  .tc-carousel-wrapper { padding: 0 25px; }
  .tc-nav-btn {
    width: 36px;
    height: 36px;
    top: calc(50% - 20px);
  }
}