/* =========================================================
   WITV — Languages (Minimal, Option A: text-only chips)
   (Deduped & merged; visual output preserved)
   ========================================================= */

/* Theme + base */
.page-language{
  --accent:#f8a200;
  --text:#1b1b1b;
  --muted:#6a6a6a;
  --card-bg:#fff;
  --border:1px solid rgba(0,0,0,.08);
  --radius-lg:16px;
  --radius-md:12px;
  --shadow:0 8px 20px rgba(0,0,0,.06);
  color:var(--text);
}

/* WHMCS container breakout (only on language pages) */
body.page-language #main-content,
body.page-language .main-content,
body.page-language #content,
body.page-language #main-body{ overflow:visible !important; }

@media (min-width:1200px){
  body.page-language #main-content > .container,
  body.page-language .main-content > .container,
  body.page-language #content > .container,
  body.page-language #main-body > .container{
    width:auto !important;
    max-width:1440px;
    margin:0 auto;
    padding:0 24px;
  }
}

/* Full-bleed utility */
.page-language .full-bleed{
  position:relative;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:100vw;
}
@supports (width:100dvw){
  .page-language .full-bleed{
    margin-left:calc(50% - 50dvw);
    margin-right:calc(50% - 50dvw);
    width:100dvw;
  }
}
body.page-language{ overflow-x:clip; }

/* Our inner container */
.page-language .container{ max-width:1180px; margin:0 auto; padding:0 16px; }

/* Typography / buttons */
.page-language h1{ font-size:clamp(28px,2.6vw,40px); font-weight:900; letter-spacing:.2px; margin:0 0 10px; }
.page-language h2{ font-size:28px; font-weight:800; letter-spacing:.2px; margin:0 0 12px; }
.page-language.theme-malayalam p { color:#3b3b3b; }
.page-language .btn{ display:inline-block; border-radius:999px; padding:12px 20px; font-weight:700; text-decoration:none; }
.page-language .btn-primary{ background:var(--accent); color:#fff; box-shadow:var(--shadow); transition:transform .15s ease, box-shadow .15s ease; }
.page-language .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 6px 12px rgba(0,0,0,.15); }
.page-language .btn-ghost{
  background:#f7f7f7; color:#111; border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--shadow); transition:transform .15s ease, box-shadow .15s ease;
}
.page-language .btn-ghost:hover{ transform:translateY(-1px); box-shadow:0 6px 12px rgba(0,0,0,.10); }

/* Global heading family */
.page-language h1,
.page-language h2,
.page-language h3,
.page-language h4,
.page-language h5,
.page-language h6{
  font-family:'Poppins',sans-serif;
  font-weight:700;
  letter-spacing:.2px;
}

/* Cards */
.page-language .card{
  background:var(--card-bg);
  border:var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  margin: 55px 0px 55px 0px;
}

/* Hero */
.page-language .lang-hero{ text-align:center; padding:36px 8px 12px; }
.page-language .lang-hero .lead{ max-width:880px; margin:0 auto 16px; }

/* Basic image box */
.page-language .imgbox{ border-radius:var(--radius-md); overflow:hidden; background:#f0f0f0; }

/* Bullets (2 columns on md+) */
.page-language .bullets-2col{ margin-top:10px; padding-left:18px; }
@media (min-width:760px){ .page-language .bullets-2col{ columns:2; column-gap:22px; } }

/* Utilities */
.page-language .mt-14{ margin-top:35px; }
.page-language .soft-hr{ margin:18px 0 24px; border:0; border-top:1px solid #eee; }

/* =================== Channels: text-only chip grid =================== */
.page-language .channels .toolbar{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:14px;
}

/* Search with clear button */
.page-language .channels .search-wrap{ position:relative; flex:1 1 220px; max-width:360px; }
.page-language .channels .search-wrap .search{
  width:100%; padding:10px 40px 10px 12px; border-radius:999px; border:1px solid rgba(0,0,0,.12);
}
.page-language .channels .search-clear{
  position:absolute; top:50%; right:8px; transform:translateY(-50%);
  width:28px; height:28px; border:0; background:transparent; border-radius:50%;
  display:none; align-items:center; justify-content:center; cursor:pointer;
}
.page-language .channels .search-clear::before{ content:"×"; font-size:18px; line-height:1; color:#6b7280; }
.page-language .channels .search-clear:hover::before{ color:#111; }
.page-language .channels .search-wrap.has-value .search-clear{ display:flex; }

/* Category pills */
.page-language .channels .filters{ display:flex; flex-wrap:wrap; gap:8px; }
.page-language .channels .filter{
  position:relative; padding:8px 14px; border-radius:999px; border:1px solid rgba(0,0,0,.12); background:#fff; cursor:pointer;
}
.page-language .channels .filter.is-active{ background:var(--accent); color:#fff; border-color:transparent; }
/* matching category during search (not active) */
.page-language .channels .filter.is-match:not(.is-active){ background:var(--accent); color:#fff; border-color:transparent; }

/* Channel grid */
.page-language .chipgrid{
  list-style:none; padding:0; margin:0; display:grid; gap:12px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
@media (min-width:600px){ .page-language .chipgrid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:900px){ .page-language .chipgrid{ grid-template-columns:repeat(4,1fr); } }
@media (min-width:1200px){ .page-language .chipgrid{ grid-template-columns:repeat(5,1fr); } }

.page-language .chip{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px 10px 14px; background:#fff;
  border:1px solid rgba(0,0,0,.08); border-radius:14px; box-shadow:0 6px 18px rgba(0,0,0,.05);
  font-weight:600; color:#1b1b1b; position:relative; padding-right:16px; font-size: 1.3rem;
}

/* Channel status dot (right side) */
.page-language .chip::after{
  content:""; width:10px; height:10px; border-radius:50%;
  margin-left:10px; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.16);
}
.page-language .chip[data-status="live"]::after{ background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.16); }
.page-language .chip[data-status="offline"]::after{ background:#ef4444; box-shadow:0 0 0 4px rgba(239,68,68,.16); }
.page-language .chip[data-status="issue"]::after,
.page-language .chip[data-status="unstable"]::after{ background:#f59e0b; box-shadow:0 0 0 4px rgba(245,158,11,.16); }

/* Keep CTA centered under channel grid */
#mal-channels .mt-14{ text-align:center; }

/* =================== FAQ (match channels / setup) =================== */
.page-language .faq .item{
  border:var(--border); border-radius:var(--radius-md); background:#fff; overflow:hidden; margin-bottom:10px;
}
.page-language .faq .q{
  width:100%; text-align:left; padding:14px 16px; font-weight:700; background:#fff; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.page-language .faq .caret{
  width:12px; height:12px; border-right:2px solid #888; border-bottom:2px solid #888; transform:rotate(-45deg);
  transition:transform .15s ease;
}
.page-language .faq .item[aria-expanded="true"] .caret{ transform:rotate(45deg); }
.page-language .faq .a{ display:none; padding:0 16px 14px; }
.page-language .faq .item[aria-expanded="true"] .a{ display:block; }

/* Cart footer FAQ (shared style) */
.cart-faq{ margin:36px 0 28px; background:#fff; border-radius:8px; }
.cart-faq .faq-item{ border-bottom:1px solid #e5e7eb; }
.cart-faq .faq-item:last-child{ border-bottom:0; }
.cart-faq .faq-q{
  width:100%; background:transparent; border:0; text-align:left; padding:18px 8px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; outline:none;
}
.cart-faq .faq-q span{
  font-family:'Poppins',sans-serif; font-weight:500 !important; text-transform:uppercase; letter-spacing:.6px;
  color:#2d3640; font-size:17px;
}
.cart-faq .faq-caret{ position:relative; width:20px; height:20px; flex:0 0 20px; }
.cart-faq .faq-caret::before,
.cart-faq .faq-caret::after{
  content:""; position:absolute; inset:0; margin:auto; width:8px; height:2px; background:#6b7280;
  transform-origin:center; transition:transform .2s ease, opacity .2s ease;
}
.cart-faq .faq-caret::before{ transform:rotate(45deg) translate(1px, 3px); }
.cart-faq .faq-caret::after{  transform:rotate(-45deg) translate(-1px, 3px); }
.cart-faq .faq-item.is-open .faq-caret::before{ transform:rotate(-45deg) translate(1px, -3px); }
.cart-faq .faq-item.is-open .faq-caret::after{  transform:rotate(45deg)  translate(-1px, -3px); }
.cart-faq .faq-a{ display:none; padding:0 8px 18px 8px; }
.cart-faq .faq-item.is-open .faq-a{ display:block; }
.cart-faq .faq-a p{ margin:0; color:#556270; font-size:15px; line-height:1.6; }
.cart-faq .faq-a a{ color:#0b63ce; text-decoration:none; font-weight:700; }
.cart-faq .faq-a a:hover{ text-decoration:underline; }
@media (max-width:768px){
  .cart-faq .faq-q span{ font-size:16px; }
  .cart-faq .faq-a p{ font-size:14px; }
  .cart-faq{ padding-left:16px; padding-right:16px; }
}

/* =================== Quality & Playback — unified (light accent) =================== */
.quality-card{
  background:#fff7e6;                       /* soft accent */
  border:1px solid rgba(248,162,0,.18);     /* tie to --accent tone */
  box-shadow:0 4px 12px rgba(248,162,0,.12);
  color:#1b1b1b;
  max-width:720px;                           /* slimmer card */
  margin:32px auto;                          /* centered horizontally */
  padding:36px 34px;                         /* breathing room */
  text-align:left;                           /* left-aligned text */
  font-family:'Poppins',sans-serif;
}
.quality-card h2{ margin:0 0 16px; font-size:2rem; font-weight:700; color:#1b1b1b; }
.quality-card p{
  font-size:1.16rem; line-height:1.8; color:#3b3b3b; margin:0;
  max-width:70ch;
}
.quality-card strong{ color:#111; }

@media (max-width:768px){
  .quality-card{
    max-width:100%;
    padding:28px 22px;
  }
}

/* Optional dark variant that matches sizing/padding of quality-card */
.page-language .card-dark{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
  padding:36px 34px;
  text-align:left;
}
.page-language .card-dark p{
  max-width:70ch;
  margin-left:0;
  margin-right:0;
}

/* =================== Quick Details grid (icons on top) =================== */
.page-language .features h2{ margin-top: 50px; margin-bottom:12px; }
.page-language .features-grid{
  list-style:none; padding:0; margin:0;
  display:grid; gap:16px; padding-bottom: 35px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
@media (min-width:900px){ .page-language .features-grid{ grid-template-columns:repeat(4,1fr); } }

.page-language .features-grid .feat{
  background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:16px;
  padding:20px; box-shadow:0 8px 22px rgba(0,0,0,.06);
  display:flex; flex-direction:column; align-items:flex-start;
}
.page-language .features-grid .iconwrap{
  width:48px; height:48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:#111; color:#fff; margin-bottom:10px;
}
.page-language .features-grid .feat h3{
  font-family:'Poppins',sans-serif; font-weight:800; font-size:1.35rem; margin:0 0 6px;
}
.page-language .features-grid .feat p{
  margin:0; color:#3b3b3b; line-height:1.7; font-size:1.22rem; max-width:60ch; white-space:normal; word-break:normal;
}

/* =================== HOW TO WATCH — square image + equal height =================== */
#how-to-watch .howto-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:992px){
  #how-to-watch .howto-grid{ grid-template-columns:1fr 1fr; align-items:stretch; }
}
/* square image defines the track height */
#how-to-watch .imgbox{ position:relative; border-radius:12px; overflow:hidden; background:#eee; }
#how-to-watch .imgbox::before{ content:""; display:block; padding-top:100%; }
#how-to-watch .imgbox img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* text shares same height; center vertically */
#how-to-watch .howto-body{ display:flex; flex-direction:column; justify-content:center; min-height:0; }
@media (min-width:992px){ #how-to-watch .howto-body{ overflow:auto; padding-left:15px; } }
/* smaller title, bigger intro paragraph */
#how-to-watch h2{
  margin:0 0 10px; font-family:'Poppins',sans-serif; font-weight:800;
  font-size:clamp(2.5rem,0.8vw + 1rem,2.5rem); line-height:1.2;
}
#how-to-watch .howto-body > p:first-of-type{
  font-size:1.44rem; line-height:1.75; margin:0 0 8px; color:#3b3b3b;
}
#how-to-watch p, #how-to-watch li p{
  font-size:1.44rem; line-height:1.65; color:#3b3b3b; margin:0 0 6px;
}
#how-to-watch .howto-steps{ margin:10px 0 0; padding-left:20px; }
#how-to-watch .howto-steps li{ margin:0 0 8px; }
/* bigger step headings */
#how-to-watch .howto-steps h3{
  font-family:'Poppins',sans-serif; font-weight:800; line-height:1.3;
  margin:4px 0 6px; font-size:1.25rem;
}
@media (min-width:768px){ #how-to-watch .howto-steps h3{ font-size:1.35rem; } }
@media (min-width:1200px){ #how-to-watch .howto-steps h3{ font-size:1.45rem; } }
#how-to-watch .howto-extras h3{ margin:12px 0 6px; font-family:'Poppins',sans-serif; font-weight:700; font-size:1.44rem; }
#how-to-watch .mt-14{ margin-top:16px; }

/* Align CTA inside how-to only (no shadow) */
#how-to-watch .howto-body > p.mt-14{ text-align:center; }
#how-to-watch .howto-body > p.mt-14 .btn{ display:inline-block; }
#how-to-watch .howto-body .btn{ box-shadow:none !important; }
#how-to-watch .howto-body .btn:hover{ box-shadow:none !important; }

/* =================== WHY WATCH — text | square image =================== */
#why-watch .why-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:992px){
  #why-watch .why-grid{ grid-template-columns:1fr 1fr; align-items:stretch; }
}
/* square image */
#why-watch .imgbox{ position:relative; border-radius:12px; overflow:hidden; background:#eee; }
#why-watch .imgbox::before{ content:""; display:block; padding-top:100%; }
#why-watch .imgbox img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* text column equal height */
#why-watch .why-body{ display:flex; flex-direction:column; justify-content:center; min-height:0; }
@media (min-width:992px){ #why-watch .why-body{ overflow:auto; padding-right:20px; } }
/* smaller title, large description */
#why-watch h2{
  margin:0 0 10px; font-family:'Poppins',sans-serif; font-weight:800;
  font-size:clamp(2.5rem,0.8vw + 1rem,2.5rem); line-height:1.2;
}
#why-watch .lead{
  font-size:1.44rem; line-height:1.75; color:#3b3b3b; margin:0 0 10px;
}
#why-watch p{ font-size:1.44rem; line-height:1.65; color:#3b3b3b; margin:0 0 8px; }
/* bullets */
#why-watch .bullets-2col{ margin:8px 0 0; padding-left:18px; columns:1; column-gap:24px; }
@media (min-width:900px){ #why-watch .bullets-2col{ columns:2; } }
#why-watch .bullets-2col li{ break-inside:avoid; margin:0 0 6px; }

/* =================== Title/subtitle & CTA =================== */
body.page-language .closer-title{
  font-family:'Poppins',sans-serif;
  font-size:clamp(26px, 5vw, 36px);
  font-weight:800;
  margin:0 0 10px 0;
  letter-spacing:1px;
  color:#fff;
}
body.page-language .closer-subtitle{
  font-size:clamp(14px, 1.6vw, 16px);
  font-weight:400;
  color:rgba(255,255,255,.85);
  max-width:600px;
  margin:0 auto 18px auto;
  line-height:1.45;
}

/* Orange pill button (white text always) */
body.page-language .channels-cta.cta-secondary{
  display:inline-block;
  padding:16px 40px;
  font-size:1.4rem;
  font-weight:700;
  border-radius:999px;
  background:var(--accent) !important;
  color:#fff !important;
  text-decoration:none !important;
  border:0;
  transition:transform .18s ease, box-shadow .18s ease;
}
body.page-language .channels-cta.cta-secondary:hover,
body.page-language .channels-cta.cta-secondary:focus,
body.page-language .channels-cta.cta-secondary:active{
  background:var(--accent) !important;
  color:#fff !important;
  text-decoration:none !important;
  transform:translateY(-1px);
}

/* Space above the button */
body.page-language .channels-closer .cta-row{ padding-top:16px; }
