/* ============================================================
   BLESSING TV — Premium Typography Layer
   Loaded last: refines fonts, rhythm & spacing only.
   No layout, structure or graphic changes.
   Pairing: Playfair Display (display) · Cormorant Garamond
   (scripture) · Inter (body/UI) · Noto Sans Tamil (Tamil)
   ============================================================ */

:root {
  --ink: #263129;
  --ink-soft: #46564c;
  --ink-faint: #6d7d72;
  --brand: #0f9d58;
  --brand-deep: #0b6b3c;
  --gold: #b8860b;
  --serif-display: 'Playfair Display', 'Noto Sans Tamil', Georgia, serif;
  --serif-verse: 'Cormorant Garamond', 'Noto Sans Tamil', Georgia, serif;
  --sans: 'Inter', 'Noto Sans Tamil', 'Open Sans', -apple-system, sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(15, 157, 88, 0.18); color: var(--ink); }

p { line-height: 1.8; }

a { transition: color 0.16s ease, opacity 0.16s ease; }
a:hover { text-decoration: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--ink);
  letter-spacing: 0.2px;
  text-wrap: balance;
}

/* Page titles — “Founders”, “1000 Praises”… */
.header-emboss {
  font-family: var(--serif-display) !important;
  font-weight: 700 !important;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  letter-spacing: 0.5px;
  color: var(--ink) !important;
  text-shadow: none !important;
}

.header-emboss::after {
  content: '';
  display: block;
  width: 58px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #8fd9b2);
  margin-top: 12px;
}

.welcome-text { padding: 6px 0 2px; }
.welcome-text .header-emboss { text-align: center; }
.welcome-text .header-emboss::after { margin-left: auto; margin-right: auto; }

/* Homepage / section fancy titles */
.as-fancytitle h1, .as-fancytitle h2, .as-fancytitle h3 {
  font-family: var(--serif-display) !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  letter-spacing: 0.4px;
  color: var(--ink) !important;
  line-height: 1.35;
}

/* ---------- body emphasis (museo-emboss) ---------- */
.museo-emboss {
  font-family: var(--sans) !important;
  font-weight: 500;
  color: var(--ink-soft) !important;
  letter-spacing: 0.15px;
  line-height: 1.85 !important;
  text-shadow: none !important;
}

/* Long-form body copy — calm, readable, never justified */
p.museo-emboss, .banner-top p {
  text-align: left !important;          /* justify creates rivers on wide columns */
  font-weight: 400 !important;
  font-size: 16.5px !important;
  color: #333d37 !important;
  line-height: 1.95 !important;
  letter-spacing: 0.1px;
  max-width: 82ch;                      /* comfortable reading measure */
}

/* photo captions under founders' portraits */
h3.text-banner, .text-banner {
  font-family: var(--serif-display) !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--ink) !important;
  letter-spacing: 0.6px;
  text-shadow: none !important;
}

h1.museo-emboss, h2.museo-emboss, h3.museo-emboss, h4.museo-emboss {
  font-family: var(--serif-display) !important;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.45 !important;
}

/* ---------- GOD'S WORD — scripture & quotes ---------- */
.quote, h1.quote, h2.quote, h3.quote, h4.quote, p.quote {
  font-family: var(--serif-verse) !important;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 21.5px) !important;
  line-height: 1.9 !important;
  color: #2c3f34 !important;
  letter-spacing: 0.2px;
  text-shadow: none !important;
  background: linear-gradient(135deg, rgba(15, 157, 88, 0.05), rgba(15, 157, 88, 0.02));
  border-left: 3px solid rgba(15, 157, 88, 0.45);
  border-radius: 0 10px 10px 0;
  padding: 14px 22px 14px 20px;
  max-width: 82ch;
}

.quote:not(.founders-name)::before {
  content: '\201C';
  font-family: var(--serif-display);
  font-style: normal;
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.32em;
  color: rgba(15, 157, 88, 0.55);
  margin-right: 8px;
}

/* keep centred quotes clean — no panel inside cards */
.text-center .quote:not(.founders-name) {
  border-left: none !important;
  background: none !important;
  padding: 0 !important;
}

.text-center .quote::before { content: none; }

/* ---------- FOUNDERS' NAMES — decorated ---------- */
.founders-name, .quote.founders-name,
h1.quote.founders-name, h2.quote.founders-name, h3.quote.founders-name {
  font-family: var(--serif-display) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  letter-spacing: 1.2px;
  line-height: 1.4 !important;
  background: linear-gradient(115deg, var(--brand-deep) 0%, #128a4e 45%, var(--gold) 110%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* if gradient clipping is unavailable, names fall back to solid deep green */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .founders-name { -webkit-text-fill-color: var(--brand-deep); color: var(--brand-deep) !important; background: none !important; }
}

.founders-name::before,
.founders-name::after {
  content: '\2726'; /* ✦ */
  font-size: 0.42em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  vertical-align: middle;
  opacity: 0.85;
}

.founders-name::before { margin-right: 14px; }
.founders-name::after { margin-left: 14px; }

/* ---------- sidebar menu ---------- */
.navigation .navig li a,
#cssmenu ul li a {
  font-family: var(--sans) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 1.4px !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

#cssmenu ul li a:hover { padding-left: 22px; }

/* ---------- top header ---------- */
.header-right ul li p {
  font-family: var(--sans) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 2.2px !important;
}

.header-contact {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  color: var(--ink) !important;
}

/* ---------- category / inline links ---------- */
.category-emboss {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  text-shadow: none !important;
  transition: color 0.16s ease;
}

/* ---------- imagery softening (no new graphics) ---------- */
.img-shadow {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 40, 30, 0.14) !important;
}

.img-shadow img { border-radius: 0; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  border-radius: 8px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }

/* ---------- forms ---------- */
.form-control {
  font-family: var(--sans) !important;
  border-radius: 8px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.12) !important;
}

/* ---------- footer ---------- */
.footer, .footer p, .footer a, .footer li {
  font-family: var(--sans) !important;
  letter-spacing: 0.2px;
}

.footer a { transition: color 0.16s ease; }

/* ---------- app cards ---------- */
.app li h3 { line-height: 1.45 !important; }

/* ---------- spacing rhythm ---------- */
.banner-top { padding-top: 4px; }
.margin-bottom-30 { margin-bottom: 34px !important; }
.b-one.b-two { padding-top: 6px; }

/* ---------- responsive comfort ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .header-emboss { font-size: 24px !important; }
  .founders-name { font-size: 21px !important; letter-spacing: 0.8px; }
  .quote { font-size: 16.5px !important; padding-left: 14px; }
  .banner .container { padding-left: 14px; padding-right: 14px; }
  .header-right ul li p { letter-spacing: 1.4px !important; }
}

/* wide tables (TV schedule) scroll instead of breaking the page */
@media (max-width: 900px) {
  .banner-top table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


/* ============================================================
   MOBILE PREMIUM (<=767px) — compact header, refined menu,
   tight rhythm, elegant footer. Typography & spacing only.
   ============================================================ */
@media (max-width: 767px) {

  /* ---- compact, centred header ---- */
  .header-top { padding: 12px 0 4px !important; }

  .header-left { text-align: center; padding: 0 !important; }
  .header-left ul { margin: 0; padding: 0; }
  .header-left img { max-height: 62px; width: auto; }

  .header-right { text-align: center; padding: 2px 0 0 !important; }
  .header-right ul { margin: 0; padding: 0; }
  .header-right ul:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .header-right ul li {
    display: inline-flex !important;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .header-right ul li p {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px !important;
    letter-spacing: 1.6px !important;
  }
  .header-right ul li p img { max-height: 22px; width: auto; }
  .header-right img[src*="btvtv"] { max-height: 30px !important; }

  .header-contact {
    display: block;
    text-align: center;
    font-size: 13px !important;
    padding: 8px 0 4px !important;
    margin: 0 !important;
  }

  /* ---- premium menu toggle (replaces stock grey pill) ---- */
  .navigation span.menu {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: #fff none !important;
    background-image: none !important;
    border: 1.5px solid #d7e6dc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(20, 40, 30, 0.07);
    padding: 14px 16px !important;
    margin: 2px 0 14px !important;
    height: auto !important;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    text-indent: 0 !important;
  }
  .navigation span.menu:active { box-shadow: 0 1px 6px rgba(20, 40, 30, 0.1); }
  .navigation span.menu::before {
    content: '';
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: #0b6b3c;
    box-shadow: 0 -5px 0 #0b6b3c, 0 5px 0 #0b6b3c;
  }
  .navigation span.menu::after {
    content: 'MENU';
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0b6b3c;
  }

  /* expanded menu: comfortable tap targets */
  #cssmenu ul li a {
    padding: 13px 18px !important;
    font-size: 13px !important;
  }

  /* ---- content rhythm ---- */
  .banner-top { padding-top: 2px; }
  .img-shadow { border-radius: 8px; }
  .margin-bottom-30 { margin-bottom: 24px !important; }
  .welcome-text .header-emboss { margin-top: 4px; }

  p.museo-emboss, .banner-top p { font-size: 15.5px !important; line-height: 1.85 !important; }

  .quote, h1.quote, h2.quote, h3.quote, h4.quote, p.quote {
    padding: 12px 14px 12px 14px;
    font-size: 16.5px !important;
  }

  .founders-name, .quote.founders-name,
  h1.quote.founders-name, h2.quote.founders-name, h3.quote.founders-name {
    font-size: 21px !important;
    letter-spacing: 0.8px;
    padding: 4px 0 !important;
  }
  .founders-name::before { margin-right: 9px; }
  .founders-name::after { margin-left: 9px; }

  h3.text-banner, .text-banner { font-size: 16.5px !important; }

  /* live player: full-width, softly rounded */
  .container.livec { width: calc(100% + 30px) !important; padding: 0 !important; margin: 0 -15px !important; }
  .container.livec .plyr, .container.livec video { width: 100% !important; border-radius: 10px; overflow: hidden; }

  /* forms: 16px stops iOS auto-zoom; full-width comfortable buttons */
  .form-control { font-size: 16px !important; min-height: 46px; }
  .btn { padding: 12px 20px !important; }

  /* ---- elegant compact footer ---- */
  .footer { padding: 26px 0 18px !important; }
  .footer h1, .footer h2, .footer h3, .footer h4 {
    font-size: 16px !important;
    margin: 14px 0 8px !important;
    text-align: center;
  }
  .footer .footer-left { text-align: center; }
  .footer ul { margin: 0 0 6px; padding: 0; }
  .footer .col-md-4.footer-left ul {
    columns: 2;
    column-gap: 14px;
    text-align: left;
    display: inline-block;
    max-width: 320px;
  }
  .footer li { line-height: 1.55 !important; padding: 3px 0 !important; font-size: 13.5px !important; }
  .footer p { font-size: 13.5px !important; line-height: 1.7 !important; margin-bottom: 6px; }
  .footer .col-md-4, .footer .col-md-12 { margin-bottom: 6px !important; }
}

/* slightly larger phones / small tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .header-right ul li p { letter-spacing: 1.6px !important; }
  .footer li { line-height: 1.6 !important; }
}


/* ============================================================
   DESKTOP: menu column stretches to the banner height —
   items distribute evenly so both blocks end on the same line.
   (min-height is set to the hero's height by MenuClient.)
   ============================================================ */
@media (min-width: 768px) {
  #cssmenu ul.navig {
    display: flex;
    flex-direction: column;
  }
  #cssmenu ul.navig > li {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #cssmenu ul.navig > li > a {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  /* expanded submenus flow below their parent link without breaking the column */
  #cssmenu ul.navig > li > ul { flex: 0 0 auto; }
}
