/* Homepage styles — extracted from views/index.ejs */
/* ═══════════════════════════════════════════════════════
   HERO — split layout, fixed 300px, uses site tokens
═══════════════════════════════════════════════════════ */
#hero.hero-section .hero-split-wrap {
  display: flex;
  height: 300px;
  /* margin: var(--space-lg) 90px 0; */
margin-right: 90px;
margin-bottom: 0;
margin-left: 90px;
  overflow: hidden; 
}

#hero.hero-section .hero-split-text {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin:40px 0;
  padding-bottom: 20px;
}

#hero.hero-section .hero-split-media {
  flex: 1;
  height: 100%;
}
#hero.hero-section .hero-split-media .hero-carousel-wrap {
  height: 100%;
}
#hero.hero-section .hero-split-media .carousel,
#hero.hero-section .hero-split-media .carousel-inner,
#hero.hero-section .hero-split-media .carousel-item {
  height: 100%;
}
#hero.hero-section .hero-split-media .hero-bg-img {
  height: 100%;
}

#hero.hero-section .hero-split-media .hero-fallback {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
}

.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  width: fit-content;
  color: var(--color-primary);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.hs-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.hs-highlight {
  color: var(--color-primary);
  box-shadow: inset 0 -0.42em 0 0 var(--primary-100);
}
.hs-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
  max-width: 460px;
}
.hs-cta-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md); }
.hs-cta-row .btn { font-size: var(--text-sm); padding: var(--space-sm) var(--space-lg); }
.hs-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hs-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-50); color: var(--color-primary);
  border: 1px solid var(--primary-100);
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
}

@media (max-width: 1100px) {
  #hero.hero-section .hero-split-wrap { margin: var(--space-md) 14px 0; }
   .hero-split-text { flex: none; height: auto; margin:0;padding:0px;}
   .hs-cta-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md);margin-bottom:80px  }
}
@media (max-width: 900px) {
  #hero.hero-section .hero-split-wrap { margin: 0 14px 0; }
   .hero-split-text { flex: none; height: auto;}
   
}
@media (max-width: 767px) {
  #hero.hero-section .hero-split-wrap { flex-direction: column; height: auto;
  }
  #hero.hero-section .hero-split-text { flex: none; height: auto; padding-bottom: 0; }
  #hero.hero-section .hero-split-media { height: 220px; }
  .hs-cta-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md);margin-bottom:0px  }
}
/* GDPI - Coming Soon tab */

.qa-tab-coming-soon {
    position: relative;
    cursor: not-allowed;
    opacity: 1;
    color: var(--color-primary) !important;
}

.qa-tab-coming-soon i {
    color: var(--color-primary) !important;
}

/* Keep normal tab hover appearance */
.qa-tab-coming-soon:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

/* Coming Soon badge */
.qa-tab-coming-soon .coming-soon-badge {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);

    display: none;

    background: #1f2937;
    color: #fff;

    padding: 5px 10px;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;

    z-index: 99999;
}

/* Show badge */
.qa-tab-coming-soon:hover .coming-soon-badge {
    display: block;
}

@media (max-width: 767px) {
  #hero.hero-section .hero-split-wrap {
    flex-direction: column;
    height: auto;
  }

  #hero.hero-section .hero-split-text {
    flex: none;
    height: auto;
    padding-bottom: 0;
    margin: 20px 0 12px;
  }

  #hero.hero-section .hero-split-media {
    height: auto;
    width: 100%;
  }

  #hero.hero-section .hero-split-media .hero-carousel-wrap,
  #hero.hero-section .hero-split-media .carousel,
  #hero.hero-section .hero-split-media .carousel-inner,
  #hero.hero-section .hero-split-media .carousel-item {
    height: auto;
  }

  #hero.hero-section .hero-split-media .hero-bg-img {
    width: 100%;
    height: auto;      /* let the image dictate its own height */
    object-fit: contain;
    display: block;
  }

  .hs-cta-row {
    margin-bottom: 16px;
  }
}
/* ═══════════════════════════════════════════════════════
   QUICK ACCESS DASHBOARD — v2, more visual hierarchy
═══════════════════════════════════════════════════════ */
.qa-dashboard {
  display: flex;
  gap: 14px;
  margin: var(--space-lg) 80px var(--space-xl);
  margin-top: 10px;
  align-items: stretch;
}

.qa-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-tabs-strip{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    padding:0;
    
}

.qa-tab{
    flex:1 1 170px;          /* smaller minimum width */
    min-height:42px;         /* was 56px */

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    padding:8px 12px;        /* smaller padding */

    background:#fff;
    border:1px solid var(--border-light);
    border-radius:10px;

    font-size:13px;          /* was 15px */
    font-weight:600;
    line-height:1.2;

    text-decoration:none;
    transition:.25s;
}

.qa-tab i{
    font-size:13px;
}

.qa-tab:hover{
    transform:translateY(-3px);
    border-color:var(--color-primary);
    color:var(--color-primary);
    box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.qa-tab:hover i{
    transform:scale(1.1);
}



.qa-tab:hover::after{
    transform:scaleX(1);
}

/* Active */


.qa-tab-active::after{
    transform:scaleX(1);
}

/* Live */

.qa-tab-live{
    color:var(--error-600);
}

.qa-tab-live i{
    color:var(--error-500);
}

.qa-tab-live.qa-tab-active{
    background:var(--error-50);
    border-color:var(--error-500);
}

@media (max-width:1100px){

    .qa-tabs-strip{
     
         margin-bottom:16px; 
    }
  }
/* Tablet */
@media (max-width:900px){

    .qa-tabs-strip{
        gap:6px;
         margin-bottom:16px; 
    }

    .qa-tab{
        flex:1 1 calc(50% - 3px);
        min-height:38px;
        padding:6px 10px;
        font-size:12px;
        gap:5px;
    }

    .qa-tab i{
        font-size:12px;
    }

    .qa-live-dot{
        width:6px;
        height:6px;
    }
}

@media (max-width:520px){

    .qa-tabs-strip{
        gap:6px;
    }

    .qa-tab{
        flex:0 0 calc(50% - 3px);
        min-height:36px;
        padding:6px 8px;
        font-size:11px;
        gap:4px;
    }

    .qa-tab i{
        font-size:11px;
    }

    .qa-live-dot{
        width:6px;
        height:6px;
    }

}
/* Active tab (persistent underline + tint, like the reference "Live Exams") */
.qa-tab.qa-tab-active {
  color: var(--error-600);
  border-bottom-color: var(--error-500);
  background: var(--error-50);
}
.qa-tab.qa-tab-active i { color: var(--error-500); }

.qa-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--error-500); display: inline-block;
  animation: qaPulse 1.4s ease-in-out infinite;
}
@keyframes qaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.qa-cards-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Each card: colored top accent on hover + icon chip + footer with
   "View All" link and a large faint decorative icon in the corner. */
.qa-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 230px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: var(--space-md) var(--space-sm) 38px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.qa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--primary-400));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.qa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
  border-color: transparent;
  color: inherit;
}
.qa-card:hover::before { opacity: 1; }

/* Distinct accent colors per card */
.qa-card-1::before { background: linear-gradient(90deg, #6366f1, #a5b4fc); }
.qa-card-2::before { background: linear-gradient(90deg, var(--color-primary), var(--primary-400)); }
.qa-card-3::before { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.qa-card-4::before { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.qa-card-5::before { background: linear-gradient(90deg, var(--error-500), #fca5a5); }


.qa-card-mlabel { display: none; }



/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENTS CARD — compact, auto-scrolling ticker
═══════════════════════════════════════════════════════ */
.qa-card-announce{
    flex:0 0 280px;
    display:flex;
    flex-direction:column;
    background:#fff;
    color:var(--text-primary);
    border:1px solid var(--border-light);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(15,23,42,.08);
    transition:.25s;
    max-height: 360px; 
}
.qa-card-announce:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 32px rgba(15,23,42,.12);
}

/* Header — icon + title centered together */
.qa-card-announce .qa-card-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:0;
    padding:8px 10px;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    font-size:15px;
    font-weight:700;
}
.qa-card-announce .qa-card-title i{
    width:30px; height:30px;
    display:flex; align-items:center; justify-content:center;
    border-radius:9px;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:13px;
}

/* Scroll viewport — fixed height, fades edges, clips the moving track */
.qa-announce-scroll{
    position:relative;
    flex:1;
    max-height:250px;
    overflow:hidden;
    padding:0 12px;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
            mask-image:linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

/* The moving track — two copies of the list stacked, animated up by
   exactly one copy's height so the loop is seamless and infinite. */
.qa-announce-track{
    display:flex;
    flex-direction:column;
    animation: qa-announce-loop linear infinite;
}
.qa-announce-track.qa-announce-static{ animation:none; }
.qa-announce-scroll:hover .qa-announce-track{
    animation-play-state:paused;
}
@keyframes qa-announce-loop{
    from{ transform:translateY(0); }
    to{ transform:translateY(-50%); }
}

/* List — small, compact rows instead of tall boxes */
.qa-announce-list{
    list-style:none;
    margin:0;
    padding:10px 0;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.qa-announce-list li{
    padding:8px 10px;
    background:#f8fafc;
    border-left:3px solid #2563eb;
    border-radius:6px;
    text-align:center;
}
.qa-announce-heading{
    display:block;
    font-size:12.5px;
    font-weight:700;
    color:#1e3a8a;
    margin-bottom:2px;
}
.qa-announce-desc{
    display:block;
    font-size:12px;
    line-height:1.4;
    color:#475569 !important;
}
/* Highlighted "hyperlink" text inside an announcement's message */
.qa-announce-desc .qa-announce-link{
    color:#2563eb !important;
    text-decoration:underline;
    font-weight:600;
}
/* Whole box acts as the click target when the message contains a link */
.qa-announce-list li.qa-announce-clickable{
    cursor:pointer;
}
.qa-announce-list li.qa-announce-clickable:hover{
    background:#eef2ff;
}
.qa-announce-list li.qa-announce-clickable:focus-visible{
    outline:2px solid #2563eb;
    outline-offset:2px;
}



/* =========================
   Responsive
========================= */

@media (max-width:1100px){

    .qa-card-announce{

        margin-top:16px;

        flex:unset;

        width:100%;
       
    }

    .qa-announce-scroll{

        max-height:220px;
    }

}

/* Title row — icon sits in a colored rounded chip */
.qa-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-decoration: none;
}
.qa-card-title i {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--primary-50);
  color: var(--color-primary);
  font-size: 0.85em;
  flex-shrink: 0;
}
.qa-card-1 .qa-card-title i { background: #eef2ff; color: #6366f1; }
.qa-card-3 .qa-card-title i { background: #ecfdf5; color: #10b981; }
.qa-card-4 .qa-card-title i { background: #fffbeb; color: #f59e0b; }
.qa-card-5 .qa-card-title i { background: var(--error-50); color: var(--error-500); }

a.qa-card-title:hover { color: var(--color-primary); }

.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.qa-list li { display: block; }
.qa-list li a,
.qa-list li > span:only-child {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.qa-list li a:hover { background: var(--primary-50); color: var(--color-primary); padding-left: 10px; }
.qa-list li a i,
.qa-list li i { font-size: 0.6rem; color: var(--text-tertiary); }
.qa-list li a:hover i { color: var(--color-primary); }

.qa-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-chip {
  background: var(--primary-50); color: var(--color-primary);
  border-radius: var(--radius-md); padding: 5px 9px;
  font-size: var(--text-xs); font-weight: 700;
}

/* Rich rows — icon + title + short blurb (Bhandara, Daily Practice) */
.qa-list-rich li a {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 4px;
}
.qa-row-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition-fast);
}
.qa-list-rich li a:hover .qa-row-icon {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: scale(1.08);
}

.qa-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.qa-row-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-row-desc {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.2;
}
.qa-row-arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.qa-list-rich li a:hover .qa-row-arrow { transform: translateX(3px); color: var(--color-primary); }

/* Card footer: "View All" link + decorative icon, pinned to bottom */
.qa-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: 12px;
  min-height: 34px;
}
.qa-view-all {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
  z-index: 2;
}
.qa-view-all i { font-size: 0.65rem; }
.qa-view-all:hover { gap: 8px; color: var(--primary-700); }

/* Decorative icon — large, faint, bottom-right corner, per-card tint */
.qa-card-deco {
  position: absolute;
  right: -4px;
  bottom: -10px;
  font-size: 2.6rem;
  opacity: 0.12;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: all 0.3s ease;
}
.qa-card:hover .qa-card-deco {
  opacity: 0.22;
  transform: rotate(-4deg) scale(1.05);
}
.qa-card-1 .qa-card-deco { color: #6366f1; }
.qa-card-2 .qa-card-deco { color: var(--color-primary); }
.qa-card-3 .qa-card-deco { color: #10b981; }
.qa-card-4 .qa-card-deco { color: #f59e0b; }
.qa-card-5 .qa-card-deco { color: var(--error-500); }

.qa-card-announce { display: flex; flex-direction: column; }




.qa-list li .qa-row-disabled {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600;
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.qa-list li .qa-row-disabled i { font-size: 0.65rem; color: var(--text-tertiary); }

@media (max-width:1100px){

  .qa-dashboard{
      display:block;
      margin:20px 14px;
  }

  .qa-main{
      display:block;
  }

  .qa-cards-row{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
      gap:16px;
  }

  .qa-card,
  .qa-card-announce{
      min-height:230px;
      width:100%;
  }

}
.qa-card-announce,
.qa-card-announce *{
    color:inherit;
}

.qa-card-announce{
    color:#1e293b;
}

.qa-card-announce .qa-announce-list li{
    color:#334155 !important;
}

.qa-card-announce .qa-announce-list li *{
    color:#334155 !important;
}
/* Higher specificity than the rule above, so the highlighted link inside
   an announcement's message keeps its own color instead of inheriting
   the default text color. */
.qa-card-announce .qa-announce-list li .qa-announce-link{
    color:#2563eb !important;
}
@media (max-width:1100px){
  .qa-card{
    padding-bottom:45px;
  }
    .qa-card-announce{
        margin-top:16px;
        flex:unset;
        width:100%;
         
    }
    .qa-announce-scroll{
        max-height:220px;
    }
}

.qa-list-rich li a:hover .qa-row-icon {
  background: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}
.qa-list-rich li a:hover .qa-row-icon i {
  color: #ffffff;
}

.tst-section {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tst-section .section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.tst-section .section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}

/* ══════════════ Carousel shell ══════════════ */
.tst-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md, 16px);
}

.tst-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0; /* let it shrink inside the flex row instead of forcing overflow */
  /* room so the play button (which now sits fully inside the media box) never gets clipped */
  padding-bottom: 4px;
}
.tst-viewport::-webkit-scrollbar { display: none; }

.tst-track {
  display: flex;
  padding: var(--space-md) 0;
   align-items: flex-start;
}

/* Arrow buttons — left/right of the scroller */
.tst-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--color-primary);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.tst-arrow:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: var(--shadow-lg, var(--shadow-md));
}
.tst-arrow.is-disabled { opacity: .35; pointer-events: none; }

/* ══════════════ Card ══════════════ */
.tst-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2xl, 48px);
}

/* Photo panel — sharp corners, no clipping so the play button never gets cut off */
.tst-media {
  position: relative;
  flex: 0 0 44%;
  aspect-ratio: 693 / 403;
  border-radius: 0;
  box-shadow: var(--shadow-xl, 0 20px 40px rgba(0,0,0,.12));
  border: 1px solid var(--border-light);
 background: linear-gradient(135deg, var(--primary-50) 42%, var(--primary-100) 42%, var(--primary-100) 100%);
}
.tst-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;   
  display: block;
}
.tst-media-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-600, var(--color-primary));
}

/* Name badge, top-left over the photo — name only */
.tst-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 2;
}
.tst-badge-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

/* Play button — sharp-cornered square, sits fully inside the media box so it never clips */
.tst-play-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #011928;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  transition: background .2s, color .2s, transform .2s;
  z-index: 3;
}
.tst-play-btn i { margin-left: 2px; } /* optically center the play triangle */
.tst-play-btn:hover { background: var(--color-primary); color: #fff; transform: scale(1.06); }

/* Quote panel — plain text, sits directly on the section background */
.tst-content {
  flex: 1 1 auto;
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.tst-quote-mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--color-primary);
}
.tst-body {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed, 1.7);
  color: var(--text-secondary);
  height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}
.tst-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--text-base);
}
.tst-name {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* ══════════════ Video modal ══════════════ */
.tst-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tst-video-modal.is-open { display: flex; }
.tst-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 860px;
}
.tst-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.tst-video-frame iframe,
.tst-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tst-video-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ══════════════ Tablet ══════════════ */
@media (max-width: 991px) {
  .tst-card { gap: var(--space-xl, 32px); }
  .tst-media { flex: 0 0 48%; }

}

/* ══════════════ Mobile ══════════════ */
@media (max-width: 767px) {
  .tst-carousel {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas:
      "track track track track"
      ".     left  right  .";
    row-gap: 14px;
    column-gap: 12px;
    max-width: 100%;
    padding: 0 8px;
  }
  .tst-viewport { grid-area: track; padding-bottom: 0; }
  .tst-track { padding: 8px 0; }
  .tst-arrow-left  { grid-area: left; }
  .tst-arrow-right { grid-area: right; }
.tst-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  height: auto;
}

  .tst-media {
   flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 693 / 403;
  max-height: none;  
  }

  .tst-badge { top: 16px; left: 16px; right: 16px; }
  .tst-badge-name { font-size: var(--text-lg); }

  .tst-play-btn {
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

.tst-content {
  padding: 0;
  text-align: left;
  display: block;
  flex: none;
  height: auto;
  min-height: 0;
}
  .tst-quote-mark { font-size: 34px; }
 

  .tst-arrow { width: 42px; height: 42px; }
}

.qa-list li .qa-row-disabled {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 4px; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600;
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.qa-list li .qa-row-disabled i { font-size: 0.65rem; color: var(--text-tertiary); }

.tst-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 4px;

  transition: height .3s ease;
}

.blog-section {
  padding: var(--space-xl) 0;
  background: var(--bg-primary);
}

.blog-section .scroll-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md, 16px);
  box-sizing: border-box;
}

.blog-grid {
  display: flex;
  gap: 20px;
  padding: var(--space-md) 4px;
  flex: 1 1 auto;
  min-width: 0;              /* lets it shrink instead of forcing the row wider than the viewport */
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-grid::-webkit-scrollbar { display: none; }

/* Arrow buttons — same circular style used by the testimonials carousel,
   scoped to this section so they render consistently regardless of what
   the shared .scroll-arrow rules elsewhere resolve to. */
.blog-section .scroll-arrow {
  display: flex;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--color-primary);
  font-size: var(--text-base);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.blog-section .scroll-arrow:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: var(--shadow-lg, var(--shadow-md));
}
.blog-section .scroll-arrow.is-disabled { opacity: .35; pointer-events: none; }

/* Nothing to scroll: keep both arrows visible, just disabled — same
   treatment as the categories/combos carousels, no hiding. */
.blog-section .scroll-carousel-wrapper.no-scroll-needed .scroll-arrow {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}

.blog-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, var(--shadow-md));
}

/* object-fit: contain (not cover) — these thumbnails are pre-designed
   graphics with a badge and headline baked into the image itself, so
   cropping them (cover) was cutting off that text. contain always shows
   the full graphic, letterboxed on a soft background if needed. */
.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-secondary), #e7ecf3);
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.blog-card-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--text-tertiary);
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-card-readmore {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card-readmore i {
  font-size: .75em;
  transition: transform .2s ease;
}
.blog-card:hover .blog-card-readmore i {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  /* Same layout trick used by the testimonials carousel: put the track on
     its own full-width row, then the two arrows centered in a row below it,
     instead of squeezed beside the cards. */
  .blog-section .scroll-carousel-wrapper {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas:
      "track track track track"
      ".     left  right  .";
    row-gap: 14px;
    column-gap: 12px;
    max-width: 100%;
    padding: 0 8px;
  }
  .blog-grid { grid-area: track; }
  .blog-section .scroll-arrow-left  { grid-area: left; }
  .blog-section .scroll-arrow-right { grid-area: right; }

  .blog-card { flex: 0 0 260px; }
}

/* ═══════════ Perf additions ═══════════ */
/* Combo skeleton cards (removed as soon as the combo data arrives) */
.sk{background:linear-gradient(100deg,#eef2f7 30%,#f8fafc 50%,#eef2f7 70%);background-size:200% 100%;animation:skShimmer 1.4s linear infinite;border-radius:8px}
@keyframes skShimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.sk{animation:none}}
.combo-skeleton{flex:0 0 300px;height:360px;border:1px solid var(--border-light);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px;background:#fff}
.combo-skeleton .sk-line{height:14px}.combo-skeleton .sk-title{height:22px;width:70%}.combo-skeleton .sk-btn{height:40px;margin-top:auto}
