/*
Theme Name: Trivayu Blog
Theme URI: https://trivayu.co.in/blog/
Author: Trivayu Physio Center
Description: Blog theme for Trivayu Physio Center, matched to the main trivayu.co.in design system (Plus Jakarta Sans / Inter, azure + clay palette).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trivayu-blog
Tags: blog, one-column, custom-colors, featured-images
*/

/* ============================================================
   Design tokens - taken from trivayu.co.in
   ============================================================ */
:root{
  --font-pjs:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-inter:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  --azure-50:#eef5ff;  --azure-100:#d9e8ff; --azure-200:#b6d3ff; --azure-300:#84b4fb;
  --azure-400:#4a8ef3; --azure-500:#1d6fe0; --azure-600:#1157c4; --azure-700:#0f469b;
  --azure-800:#0e3576; --azure-900:#0c264f;

  --cyan-300:#7fe6df; --cyan-400:#3fd4cf; --cyan-500:#16bcc4; --cyan-600:#0f9aa8;

  --bone-50:#f8fbff;  --bone-100:#eef4fb; --bone-200:#e3ecf7;
  --bone-300:#cfdcee; --bone-400:#a9bdd8; --bone-500:#7d92b3;

  --clay-300:#ffb59b; --clay-400:#ff9e88; --clay-500:#ff7a5c; --clay-600:#f2603f;

  --ink-900:#0e2444; --ink-700:#33507d; --ink-500:#4d6484;

  --background:var(--bone-50);
  --foreground:var(--ink-900);

  --radius-card:20px;
  --shadow-card:0 1px 2px rgba(14,36,68,.04), 0 12px 28px -18px rgba(14,36,68,.35);
  --shadow-card-hover:0 2px 4px rgba(14,36,68,.05), 0 26px 46px -22px rgba(14,36,68,.45);
  --maxw:1152px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--background);
  color:var(--foreground);
  font-family:var(--font-inter);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--azure-600);text-decoration:none}
a:hover{color:var(--azure-700)}
h1,h2,h3,h4,h5{font-family:var(--font-pjs);color:var(--ink-900);font-weight:800;letter-spacing:-.025em;margin:0}
p{margin:0}
ul,ol{margin:0}
figure{margin:0}

.tv-wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.tv-skip{position:absolute;left:-9999px}
.tv-skip:focus{left:16px;top:16px;background:#fff;padding:10px 16px;border-radius:10px;z-index:100}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ============================================================
   Buttons
   ============================================================ */
.tv-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-inter);font-size:14px;font-weight:700;
  padding:11px 20px;border-radius:999px;border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;cursor:pointer;
}
.tv-btn:hover{transform:translateY(-1px)}
.tv-btn--primary{background:var(--clay-500);color:var(--azure-900);box-shadow:0 10px 20px -12px rgba(242,96,63,.9)}
.tv-btn--primary:hover{background:var(--clay-400);color:var(--azure-900)}
.tv-btn--ghost{background:transparent;color:var(--ink-700);border-color:var(--azure-200)}
.tv-btn--ghost:hover{background:var(--azure-50);color:var(--azure-700)}
.tv-btn--lg{font-size:15px;padding:14px 26px}

/* ============================================================
   Header
   ============================================================ */
.tv-header{
  position:sticky;top:0;z-index:40;
  background:var(--bone-50);
  border-bottom:1px solid var(--azure-100);
}
.tv-header__inner{display:flex;align-items:center;gap:24px;height:81px}
.tv-header__logo img{height:56px;width:auto}
.tv-nav{display:flex;align-items:center;gap:26px;margin-left:auto}
.tv-nav a{font-size:14px;font-weight:600;color:var(--ink-700)}
.tv-nav a:hover{color:var(--azure-600)}
.tv-nav a.is-current{color:var(--azure-600)}
.tv-header__cta{display:flex;align-items:center;gap:10px;margin-left:26px}

.tv-mobile-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--azure-200);border-radius:12px;padding:8px 12px;color:var(--ink-700);font-weight:700;font-size:14px}

@media (max-width:1024px){
  .tv-nav{gap:18px}
  .tv-nav a{font-size:13px}
  .tv-header__cta .tv-btn--ghost{display:none}
}
@media (max-width:860px){
  .tv-header__inner{height:70px}
  .tv-header__logo img{height:44px}
  .tv-mobile-toggle{display:block}
  .tv-nav{
    display:none;position:absolute;top:70px;left:0;right:0;
    flex-direction:column;align-items:flex-start;gap:0;
    background:var(--bone-50);border-bottom:1px solid var(--azure-100);
    padding:8px 24px 16px;
  }
  .tv-nav.is-open{display:flex}
  .tv-nav a{padding:12px 0;width:100%;border-bottom:1px solid var(--bone-200);font-size:15px}
  .tv-header__cta{margin-left:auto}
}

/* ============================================================
   Page hero
   ============================================================ */
.tv-hero{padding:56px 0 40px;border-bottom:1px solid var(--bone-200);background:linear-gradient(180deg,var(--azure-50) 0%,var(--bone-50) 100%)}
.tv-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--azure-600);background:#fff;border:1px solid var(--azure-100);
  padding:6px 14px;border-radius:999px;margin-bottom:18px;
}
.tv-hero h1{font-size:clamp(34px,5vw,54px);line-height:1.04;letter-spacing:-.03em;max-width:16ch}
.tv-hero__lede{margin-top:18px;max-width:62ch;font-size:17px;line-height:1.65;color:var(--ink-500)}

/* ============================================================
   Post grid
   ============================================================ */
.tv-main{padding:44px 0 72px}
.tv-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px}
.tv-section-head h2{font-size:24px;letter-spacing:-.02em}
.tv-section-head span{font-size:13px;color:var(--ink-500);font-weight:600}

.tv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media (max-width:960px){.tv-grid{grid-template-columns:repeat(2,1fr);gap:20px}}
@media (max-width:620px){.tv-grid{grid-template-columns:1fr}}

.tv-card{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--bone-200);
  border-radius:var(--radius-card);overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height:100%;
}
.tv-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover);border-color:var(--azure-200)}
.tv-card__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--azure-50)}
.tv-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.tv-card:hover .tv-card__media img{transform:scale(1.04)}
.tv-card__ph{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--azure-100) 0%,var(--cyan-300) 100%);
}
.tv-card__ph span{font-family:var(--font-pjs);font-weight:800;font-size:15px;color:var(--azure-800);letter-spacing:-.01em;text-align:center;padding:0 20px}
.tv-card__tag{
  position:absolute;left:14px;top:14px;z-index:2;
  background:rgba(255,255,255,.94);color:var(--azure-700);
  font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;backdrop-filter:blur(4px);
}
.tv-card__body{display:flex;flex-direction:column;flex:1;padding:20px 22px 24px}
.tv-card__meta{font-size:12px;font-weight:600;color:var(--bone-500);letter-spacing:.02em;margin-bottom:10px}
.tv-card__title{font-size:19px;line-height:1.3;letter-spacing:-.02em;margin-bottom:10px}
.tv-card__title a{color:var(--ink-900)}
.tv-card__title a:hover{color:var(--azure-600)}
.tv-card__excerpt{font-size:14.5px;line-height:1.62;color:var(--ink-500);flex:1}
.tv-card__more{
  margin-top:16px;display:inline-flex;align-items:center;gap:6px;
  font-size:14px;font-weight:700;color:var(--azure-600);
}
.tv-card__more:hover{gap:10px}
.tv-card__more svg{transition:transform .18s ease}

/* Featured (first) post */
.tv-feature{
  display:grid;grid-template-columns:1.05fr .95fr;gap:0;
  background:#fff;border:1px solid var(--bone-200);border-radius:24px;
  overflow:hidden;box-shadow:var(--shadow-card);margin-bottom:44px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.tv-feature:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}
.tv-feature__media{position:relative;min-height:320px;background:var(--azure-50)}
.tv-feature__media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.tv-feature__body{padding:36px 40px;display:flex;flex-direction:column;justify-content:center}
.tv-feature__body h2{font-size:clamp(22px,2.6vw,32px);line-height:1.18;letter-spacing:-.03em;margin:10px 0 14px}
.tv-feature__body h2 a{color:var(--ink-900)}
.tv-feature__body h2 a:hover{color:var(--azure-600)}
.tv-feature__body p{font-size:16px;line-height:1.68;color:var(--ink-500)}
@media (max-width:860px){
  .tv-feature{grid-template-columns:1fr}
  .tv-feature__media{min-height:0;aspect-ratio:16/9;position:relative}
  .tv-feature__body{padding:26px 24px 30px}
}

/* ============================================================
   Pagination
   ============================================================ */
.tv-pagination{margin-top:48px;display:flex;justify-content:center}
.tv-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:42px;height:42px;padding:0 12px;margin:0 4px;
  border-radius:12px;border:1px solid var(--bone-200);background:#fff;
  font-size:14px;font-weight:700;color:var(--ink-700);
}
.tv-pagination .page-numbers:hover{border-color:var(--azure-300);color:var(--azure-600)}
.tv-pagination .page-numbers.current{background:var(--azure-600);border-color:var(--azure-600);color:#fff}

/* ============================================================
   Single post
   ============================================================ */
.tv-breadcrumb{font-size:13px;font-weight:600;color:var(--bone-500);padding:22px 0 0}
.tv-breadcrumb a{color:var(--ink-700)}
.tv-breadcrumb a:hover{color:var(--azure-600)}
.tv-breadcrumb span{margin:0 8px;color:var(--bone-400)}

.tv-article{padding:26px 0 60px}
.tv-article__head{max-width:760px;margin:0 auto 30px}
.tv-article__head h1{font-size:clamp(30px,4.4vw,46px);line-height:1.1;letter-spacing:-.03em;margin-bottom:16px}
.tv-article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13.5px;color:var(--ink-500);font-weight:600}
.tv-article__meta .dot{color:var(--bone-400)}
.tv-article__hero{max-width:960px;margin:0 auto 36px;border-radius:24px;overflow:hidden;box-shadow:var(--shadow-card)}
.tv-article__hero img{width:100%;height:auto;object-fit:cover}

.tv-content{max-width:720px;margin:0 auto;font-size:17px;line-height:1.75;color:var(--ink-700)}
.tv-content > * + *{margin-top:22px}
.tv-content h2{font-size:27px;line-height:1.22;margin-top:44px;letter-spacing:-.025em}
.tv-content h3{font-size:21px;line-height:1.3;margin-top:34px;letter-spacing:-.02em}
.tv-content h4{font-size:18px;margin-top:28px}
.tv-content p{color:var(--ink-700)}
.tv-content a{color:var(--azure-600);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.tv-content ul,.tv-content ol{padding-left:22px}
.tv-content li{margin-top:9px}
.tv-content li::marker{color:var(--azure-400)}
.tv-content img{border-radius:16px}
.tv-content blockquote{
  margin:30px 0;padding:20px 24px;border-left:4px solid var(--cyan-400);
  background:var(--azure-50);border-radius:0 16px 16px 0;
  font-size:17px;color:var(--ink-900);
}
.tv-content blockquote p{margin:0}
.tv-content table{width:100%;border-collapse:collapse;font-size:15px}
.tv-content th,.tv-content td{border:1px solid var(--bone-200);padding:10px 12px;text-align:left}
.tv-content th{background:var(--azure-50);font-family:var(--font-pjs);font-weight:700}
.tv-content hr{border:0;border-top:1px solid var(--bone-200);margin:40px 0}
.tv-content code{background:var(--bone-100);padding:2px 6px;border-radius:6px;font-size:14px}

.tv-share{max-width:720px;margin:40px auto 0;padding-top:24px;border-top:1px solid var(--bone-200);display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tv-share strong{font-family:var(--font-pjs);font-size:14px}
.tv-share a{font-size:13px;font-weight:700;color:var(--ink-700);border:1px solid var(--bone-200);padding:8px 14px;border-radius:999px;background:#fff}
.tv-share a:hover{border-color:var(--azure-300);color:var(--azure-600)}

.tv-related{padding:52px 0 72px;border-top:1px solid var(--bone-200);background:var(--bone-100)}
.tv-related h2{font-size:24px;margin-bottom:22px;letter-spacing:-.02em}

/* Medical disclaimer */
.tv-disclaimer{
  max-width:720px;margin:34px auto 0;padding:16px 20px;
  background:var(--azure-50);border:1px solid var(--azure-100);border-radius:16px;
  font-size:13.5px;line-height:1.6;color:var(--ink-500);
}

/* ============================================================
   CTA band
   ============================================================ */
.tv-cta{background:var(--azure-900);color:#fff;padding:56px 0}
.tv-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.tv-cta h2{color:#fff;font-size:clamp(24px,3vw,34px);letter-spacing:-.03em;line-height:1.15;max-width:20ch}
.tv-cta p{margin-top:12px;color:var(--azure-200);font-size:16px;max-width:52ch;line-height:1.6}
.tv-cta__actions{display:flex;gap:12px;flex-wrap:wrap}
.tv-cta .tv-btn--ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.tv-cta .tv-btn--ghost:hover{background:rgba(255,255,255,.1);color:#fff}

/* ============================================================
   Footer
   ============================================================ */
.tv-footer{background:var(--bone-100);border-top:1px solid var(--bone-200);padding:52px 0 28px;font-size:14px;color:var(--ink-500)}
.tv-footer__grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px}
@media (max-width:900px){.tv-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.tv-footer__grid{grid-template-columns:1fr}}
.tv-footer img{height:48px;width:auto;margin-bottom:14px}
.tv-footer h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-900);margin-bottom:14px;font-weight:800}
.tv-footer ul{list-style:none;padding:0}
.tv-footer li{margin-bottom:9px}
.tv-footer a{color:var(--ink-500)}
.tv-footer a:hover{color:var(--azure-600)}
.tv-footer__addr{line-height:1.7}
.tv-footer__bottom{margin-top:40px;padding-top:20px;border-top:1px solid var(--bone-200);font-size:12.5px;color:var(--bone-500);line-height:1.65}

/* ============================================================
   Sticky mobile action bar (matches main site)
   ============================================================ */
.tv-mobilebar{display:none}
@media (max-width:700px){
  .tv-mobilebar{
    display:grid;grid-template-columns:1fr 1fr;gap:10px;
    position:fixed;left:0;right:0;bottom:0;z-index:50;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(248,251,255,.96);border-top:1px solid var(--azure-100);
    backdrop-filter:blur(8px);
  }
  .tv-mobilebar .tv-btn{width:100%}
  body{padding-bottom:76px}
}

/* Empty / search states */
.tv-empty{max-width:560px;margin:40px auto;text-align:center}
.tv-empty h2{font-size:24px;margin-bottom:12px}
.tv-empty p{color:var(--ink-500)}
.tv-searchform{display:flex;gap:8px;margin-top:20px;justify-content:center}
.tv-searchform input[type=search]{
  font-family:var(--font-inter);font-size:15px;padding:11px 16px;
  border:1px solid var(--bone-300);border-radius:999px;min-width:240px;background:#fff;color:var(--ink-900);
}
.tv-searchform input[type=search]:focus{outline:2px solid var(--azure-300);outline-offset:1px}
