/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(to bottom, #4f83f1, var(--primary));
  color: white;
  box-shadow: 0 14px 30px rgba(70, 129, 246, .22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(70, 129, 246, .28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: linear-gradient(to bottom, #ffffff, #f1f3f5);
  border-color: rgba(6, 8, 10, .10);
  color: var(--text);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #ffffff, #e9ecef);
}

/* --- Cards & UI Elements --- */
.card {
  background: var(--card);
  border: 1px solid rgba(6, 8, 10, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(6, 8, 10, .10);
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(6, 8, 10, .78);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 8, 10, .10);
  background: rgba(255, 255, 255, .70);
  color: rgba(6, 8, 10, .78);
  white-space: nowrap;
}

/* --- Tabs --- */
.tabsWrap {
  margin-top: 28px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* NEW: The Ambient Glow (Behind both cards) */
.tabsWrap::before {
  content: "";
  position: absolute;
  /* Expands slightly outside the grid area for a soft feel */
  inset: -60px;
  z-index: -1;
  /* Puts it behind the content */

  /* Uses your theme variables for a perfect match */
  background:
    radial-gradient(circle at 20% 30%, var(--primary-pastel), transparent 70%),
    radial-gradient(circle at 80% 70%, var(--secondary-pastel), transparent 60%);

  filter: blur(40px);
  /* Softens the blobs */
  opacity: 0.6;
  /* Subtle blend */
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.tabs {
  padding: 14px;
}

.tabBtn {
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .65);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.tabBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .78);
}

.tabBtn.active {
  border-color: rgba(70, 129, 246, .30);
  background: rgba(70, 129, 246, .12);
}

.tabBtn strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.tabBtn span {
  display: block;
  color: rgba(6, 8, 10, .70);
  font-size: 13px;
  line-height: 1.5;
}



/* --- TAB PANEL (Cleaned up) --- */
.tabPanel {
  /* REMOVED: position: relative (not needed for stage) */
  /* REMOVED: overflow: hidden (conflicts with 3D) */
  border-radius: var(--radius-lg);
  min-height: 330px;

  /* IMPORTANT: Ensure no background is set here, or it will hide the glow */
  background: transparent;
}

/* --- DELETED: .tabPanel:before --- */
/* (Make sure you delete the old .tabPanel:before block entirely!) */



/* .tabPanel { padding: 18px; border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 330px; } */
/* .tabPanel:before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(700px 420px at 10% 10%, rgba(70, 129, 246, .22), transparent 55%),
              radial-gradient(700px 420px at 90% 0%, rgba(191, 74, 29, .18), transparent 50%);
  pointer-events: none;
} */
.tabPanelInner {
  position: relative;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(6, 8, 10, .08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tabList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.tabList .item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(245, 247, 250, .65);
  font-size: 13px;
  color: rgba(6, 8, 10, .78);
}

/* --- FAQ / Details --- */
.faq {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

details {
  border-radius: 18px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .70);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(6, 8, 10, .06);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}

summary::-webkit-details-marker {
  display: none;
}

.caret {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(245, 247, 250, .7);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
  flex: 0 0 auto;
}

details[open] .caret {
  transform: rotate(45deg);
}

.faqBody {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13.5px;
}

/* --- Testimonial Slider --- */
.slider {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .70);
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  width: 100%;
  transition: transform .55s var(--ease);
}

.slide {
  width: 100%;
  flex: 0 0 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 20px;
  align-items: center;
}

.quote {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(70, 129, 246, .16);
  border: 1px solid rgba(70, 129, 246, .22);
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideArt {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(6, 8, 10, .08);
  height: 220px;
  background: rgba(245, 247, 250, .7);
  position: relative;
}

.slideArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.sliderNav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.navBtn {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(6, 8, 10, .10);
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.navBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .92);
}

/* --- Component Responsive Logic --- */
@media (max-width: 980px) {

  .tabsWrap,
  .slide {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   NEW COMPONENT: Infinite Marquee & Channel Pills
   --------------------------------------------------------- */

/* The outer mask that hides the overflow */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  /* Fades the edges for a smooth look */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 20px 0;
}

/* The moving track */
.marquee-track {
  display: flex;
  gap: 16px;
  /* Space between pills */
  width: max-content;
  animation: scroll 40s linear infinite;
  /* Adjust speed here */
}

/* Pause animation on hover for accessibility */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* The "Pill" Styling (replicating the image) */
.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(6, 8, 10, .04);
  /* Light grey background */
  border: 1px solid rgba(6, 8, 10, .05);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  transition: background .2s, transform .2s;
}

/* Dark mode adjustment for the pills (if using the dark theme) */
@media (prefers-color-scheme: dark) {
  .channel {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .05);
  }
}

.channel:hover {
  background: rgba(6, 8, 10, .08);
  transform: translateY(-1px);
}

/* Icon sizing */
.channel svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------------------------------------------------------
   3D FLIP ANIMATIONS
   --------------------------------------------------------- */

/* 1. The Stage: Creates the 3D space */
.flip-stage {
  perspective: 1200px;
  /* How "deep" the 3D effect looks */
  overflow: visible !important;
  /* Ensures the 3D rotation isn't clipped */
}

/* 2. The Actor: The element that actually moves */
.flip-target {
  transition: transform 0.25s ease-in, opacity 0.2s ease-in;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* Hides the jagged back of the card */
  will-change: transform, opacity;
}

/* --- State A: Rotating OUT (Right to Center) --- */
/* The card rotates to 90 degrees (edge-on) and fades out */
.flip-exit {
  transform: rotateY(90deg);
  opacity: 0;
}

/* --- State B: Prepared to Enter --- */
/* We instantly snap the card to -90 degrees (invisible) before bringing it back */
.flip-enter-start {
  transform: rotateY(-90deg);
  opacity: 0;
  transition: none;
  /* Instant snap, no animation */
}

/* --- State C: Rotating IN (Center to Left) --- */
/* The card rotates from -90 degrees back to 0 (flat) */
.flip-enter-end {
  transform: rotateY(0deg);
  opacity: 1;
  transition: transform 0.25s ease-out, opacity 0.2s ease-out;
}

/* --- OPTIONAL: Hover Flip (For Add-ons later) --- */
/* Use this structure: .flip-card > .flip-inner > .flip-front + .flip-back */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--card);
  /* Ensure it has a background */
}