/* ============================================================
   IDL News — Main Stylesheet v1.0
   Colors  : #ff3300 primary | #0066cc accent
   Fonts   : Ramabhadra (post title + article h-tags) | Mandali (everything else)
   Strategy: mobile-first, single file, no unused rules
   ============================================================ */

/* --- Google Fonts ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Mandali&family=Ramabhadra&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
  --red:        #ff3300;
  --red-dark:   #cc2900;
  --blue:       #0066cc;
  --blue-dark:  #0052a3;
  --text:       #1a1a1a;
  --text-2:     #444;
  --text-3:     #777;
  --bg:         #ffffff;
  --bg-2:       #f5f5f5;
  --bg-3:       #fff8f5;
  --border:     #e0e0e0;
  --header-bg:  #ffffff;
  --nav-bg:     #1a1a1a;
  --nav-text:   #ffffff;
  --tick:       #0066cc;
  --radius:     5px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow:     0 2px 8px rgba(0,0,0,.12);
  --wrap:       1200px;
  --gap:        20px;
  --font-body:  'Mandali', sans-serif;
  --font-head:  'Mandali', sans-serif;
}

/* --- Reset ------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-body);color:var(--text);background:var(--bg);line-height:1.7;overflow-x:hidden}
img,video{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{padding-left:1.4rem}
button{cursor:pointer;font-family:inherit;border:none;background:none}
input,textarea,select{font-family:inherit}

/* --- Utility ---------------------------------------------- */
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.flex{display:flex}
.flex-center{display:flex;align-items:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
@media(max-width:959px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

/* --- Skip Link -------------------------------------------- */
.skip-link{position:absolute;top:-100%;left:16px;background:var(--red);color:#fff;padding:8px 16px;border-radius:0 0 4px 4px;z-index:9999;font-size:14px}
.skip-link:focus{top:0}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar{background:var(--blue);color:#fff;font-size:12px;padding:5px 0}
.top-bar .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px}
.top-bar-date{letter-spacing:.02em;font-size:16px}
.top-bar-social{display:flex;gap:10px}
.top-bar-social a{color:#fff;font-size:13px;transition:opacity .15s}
.top-bar-social a:hover{opacity:.8}
.top-bar-social svg{width:14px;height:14px;fill:currentColor;vertical-align:middle}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{background:var(--header-bg);border-bottom:3px solid var(--red);position:sticky;top:0;z-index:600;box-shadow:var(--shadow-sm)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:12px}

/* Logo */
.site-logo a{display:flex;align-items:center;gap:10px}
.site-logo img{height:48px;width:auto}
.logo-text{display:flex;flex-direction:column;line-height:1.1}
.logo-text-main{font-family:var(--font-head);font-size:26px;font-weight:400;color:var(--red);letter-spacing:-.3px}
.logo-text-sub{font-size:11px;color:var(--text-3);letter-spacing:.08em;text-transform:uppercase}

/* Desktop Nav */
.main-nav{display:none}
@media(min-width:960px){
  .main-nav{display:flex;align-items:center;list-style:none;gap:2px;flex-wrap:wrap}
  .main-nav>li{position:relative}
  .main-nav>li>a{display:block;padding:8px 12px;font-family:var(--font-head);font-size:15px;font-weight:700;color:var(--text);border-radius:3px;transition:background .15s,color .15s;white-space:nowrap}
  .main-nav>li>a:hover,.main-nav>.current-menu-item>a,.main-nav>.current-menu-ancestor>a{background:var(--red);color:#fff}
  /* Dropdowns */
  .main-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:200px;background:#fff;border:1px solid var(--border);border-top:2px solid var(--red);box-shadow:var(--shadow);list-style:none;padding:4px 0;z-index:700}
  .main-nav li:hover>.sub-menu{display:block}
  .main-nav .sub-menu a{display:block;padding:9px 16px;font-size:13px;color:var(--text);border-bottom:1px solid var(--bg-2)}
  .main-nav .sub-menu a:hover{background:var(--bg-2);color:var(--red)}
}

/* Search toggle */
.header-search-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;color:var(--text-2);transition:color .15s}
.header-search-btn:hover{color:var(--red)}
.header-search-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}

/* Hamburger */
.menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:38px;height:38px;padding:6px}
.menu-toggle span{display:block;height:2px;background:var(--text);border-radius:2px;transition:transform .2s,opacity .2s}
@media(min-width:960px){.menu-toggle{display:none}}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-nav{display:none;position:fixed;inset:0;z-index:900}
.mobile-nav.open{display:block}
.mobile-nav-bg{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.mobile-nav-panel{position:absolute;top:0;left:0;width:290px;height:100%;background:#fff;overflow-y:auto;padding-bottom:40px}
.mobile-nav-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border)}
.mobile-nav-head .logo-text-main{font-size:20px}
.mobile-nav-close{font-size:22px;color:var(--text-2);width:36px;height:36px;display:flex;align-items:center;justify-content:center}
.mobile-nav ul{list-style:none;padding:0}
.mobile-nav ul li{border-bottom:1px solid var(--bg-2)}
.mobile-nav ul li a{display:block;padding:12px 20px;font-family:var(--font-head);font-size:15px;font-weight:700;color:var(--blue)}
.mobile-nav ul li a:hover{background:var(--bg-2);color:var(--red)}
.mobile-nav .sub-menu a{padding-left:36px;font-size:13px;font-family:var(--font-body)}

/* ============================================================
   SEARCH BAR (collapsible)
   ============================================================ */
.site-search-bar{display:none;background:var(--bg-2);border-bottom:1px solid var(--border);padding:10px 0}
.site-search-bar.open{display:block}
.search-form{display:flex;border:2px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;transition:border-color .15s}
.search-form:focus-within{border-color:var(--red)}
.search-input{flex:1;padding:10px 14px;border:none;outline:none;font-size:15px;background:transparent}
.search-submit{padding:0 18px;background:var(--red);color:#fff;font-size:14px;font-weight:600;transition:background .15s;border:none;cursor:pointer}
.search-submit:hover{background:var(--red-dark)}

/* ============================================================
   CATEGORY SCROLL NAV  (solid dark bar — like trinethra)
   ============================================================ */
.cat-nav{background:#fff;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;border-top:1px solid var(--border);border-bottom:2px solid var(--border);display:none}@media(min-width:960px){.cat-nav{display:block}}
.cat-nav::-webkit-scrollbar{display:none}
.cat-nav ul{display:flex;list-style:none;padding:0;margin:0 auto;justify-content:center;flex-wrap:wrap}
.cat-nav ul li{display:block}
.cat-nav ul li a{display:block;padding:10px 14px;font-family:var(--font-head);font-size:18px;font-weight:700;color:var(--blue);white-space:nowrap;transition:color .15s,background .15s}
.cat-nav ul li a:hover,.cat-nav ul .current-menu-item a{color:#fff;background:var(--blue)}

/* ============================================================
   AD SLOTS (reserved space prevents CLS)
   ============================================================ */
.ad-slot{text-align:center;overflow:hidden;background:var(--bg-2)}
.ad-728{min-height:90px;padding:4px 0}
.ad-300{min-height:250px;padding:4px 0}
.ad-320{min-height:100px;padding:4px 0}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.site-body{padding:20px 0}

/* Page layout: main content + sidebar column */
.page-layout{margin:0;display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:960px){.page-layout{grid-template-columns:minmax(0,1fr) 300px}}
.page-main{min-width:0}
.page-sidebar{min-width:0;display:flex;flex-direction:column;gap:0}
.main-col{min-width:0}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.sec-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.sec-head h2,.sec-head h3{font-family:var(--font-head);font-size:18px;font-weight:400;color:#fff;white-space:nowrap;background:var(--red);padding:4px 14px;border-radius:3px}
.sec-head::after{content:'';flex:1;border-bottom:2px dashed #ddd}
.sec-head-more{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--red);color:#fff;font-size:15px;flex-shrink:0;transition:background .15s;text-decoration:none}
.sec-head-more:hover{background:var(--red-dark);color:#fff}

/* ============================================================
   POST CARDS
   ============================================================ */
/* Base card */
.card{display:flex;flex-direction:column}
.card-thumb{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--bg-2);flex-shrink:0}
.card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease;display:block}
.card:hover .card-thumb img{transform:scale(1.05)}
.card-body{padding:8px 0 0;flex:1;display:flex;flex-direction:column}

/* Category badge — inline in meta row */
.card-cat{display:inline-block;background:var(--blue);color:#fff !important;font-size:18px;font-weight:700;padding:1px 6px;border-radius:2px;text-transform:uppercase;letter-spacing:.03em;line-height:1.6;flex-shrink:0;vertical-align:middle}
.card-cat:hover{background:var(--blue-dark);color:#fff !important}

/* Title */
.card-title{font-family:var(--font-head);font-size:17px;line-height:1.4;flex:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.card-title a{color:var(--text)}
.card-title a:hover{color:var(--red)}

/* Meta */
.card-meta{margin-top:7px;font-size:14px;color:var(--text-3);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.card-meta-dot{width:3px;height:3px;border-radius:50%;background:var(--border);flex-shrink:0}
.card-meta a{color:var(--text-3)}
.card-meta a:hover{color:var(--red)}

/* Standard grid card (16:9 image) */
.card-std .card-thumb{aspect-ratio:16/9}
.card-std .card-title{-webkit-line-clamp:3;font-size:17px}

/* Featured card (larger) */
.card-feat .card-thumb{aspect-ratio:16/9}
.card-feat .card-title{-webkit-line-clamp:4;font-size:17px}

/* Horizontal list card */
.card-list{flex-direction:row;gap:12px;align-items:flex-start}
.card-list .card-thumb{width:90px;height:68px;aspect-ratio:unset;flex-shrink:0}
.card-list .card-body{padding:0}
.card-list .card-title{font-size:13px;-webkit-line-clamp:3}
.card-list .card-meta{margin-top:4px}

/* Wide horizontal card (for featured row) */
.card-wide{flex-direction:row;gap:16px;align-items:flex-start}
.card-wide .card-thumb{width:160px;height:110px;aspect-ratio:unset;flex-shrink:0}
.card-wide .card-body{padding:0}
.card-wide .card-title{-webkit-line-clamp:4;font-size:15px}
@media(max-width:480px){.card-wide{flex-direction:column}.card-wide .card-thumb{width:100%;height:auto;aspect-ratio:16/9}}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-section{margin-bottom:30px}

/* ── Hero row: Featured | Latest | Popular ── */
.hero-row{margin:0 0 28px;display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media(min-width:600px){.hero-row{grid-template-columns:1fr 1fr}}
@media(min-width:768px){.hero-row{grid-template-columns:2.2fr 1.3fr 1.3fr}}

/* Featured card */
.feat-card-img-wrap{display:block;overflow:hidden;border-radius:var(--radius);aspect-ratio:16/9;background:var(--bg-2)}
.feat-card-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.feat-card:hover .feat-card-img-wrap img{transform:scale(1.04)}
.feat-card-body{padding:12px 0 0}
.feat-card-title{font-family:var(--font-head);font-size:18px;font-weight:400;line-height:1.35;margin:8px 0 8px}
.feat-card-title a{color:var(--text)}
.feat-card-title a:hover{color:var(--red)}
.feat-card-meta{font-size:12px;color:var(--text-3);display:flex;align-items:center;gap:6px;margin-bottom:8px}
.feat-card-meta-sep{opacity:.4}
.feat-card-excerpt{font-size:18px;color:var(--text-2);line-height:1.6;margin:0}

/* Latest list */
.latest-list{list-style:none;padding:0;margin:0}
.latest-list-item{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:10px 0;border-bottom:1px solid var(--border)}
.latest-list-item:last-child{border-bottom:none}
.latest-list-item a{font-family:var(--font-head);font-size:18px;color:var(--text);line-height:1.4;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.latest-list-item::before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:var(--red);flex-shrink:0;margin-top:6px}
.latest-list-item a:hover{color:var(--red)}
.latest-list-date{font-size:11px;color:var(--text-3);white-space:nowrap;padding-top:2px;flex-shrink:0}

/* Popular list */
.popular-list{list-style:none;padding:0;margin:0}
.popular-list-item{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border)}
.popular-list-item:last-child{border-bottom:none}
.popular-list-thumb{flex-shrink:0;display:block;width:90px;height:65px;overflow:hidden;border-radius:4px;background:var(--bg-2)}
.popular-list-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.popular-list-item:hover .popular-list-thumb img{transform:scale(1.05)}
.popular-list-title{font-family:var(--font-head);font-size:18px;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.popular-list-title:hover{color:var(--red)}

/* More arrow button */
.hero-col-more{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--red);color:#fff;font-size:16px;margin-top:12px;transition:background .15s}
.hero-col-more:hover{background:var(--red-dark);color:#fff}

/* Category section: 4 cards + more list */
.cat-section{margin-bottom:32px;padding-bottom:8px}
.cat-section-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:14px}
@media(max-width:767px){.cat-section-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.cat-section-grid{grid-template-columns:1fr 1fr}}

/* Mini cards row (below the 4-card grid) — like trinethra */
.cat-section-mini{display:none}
.cat-section--with-mini .cat-section-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:16px}
.mini-card{display:flex;flex-direction:row;gap:8px;align-items:flex-start}
.mini-card-thumb{flex-shrink:0;width:72px;height:52px;border-radius:3px;overflow:hidden;background:var(--bg-2)}
.mini-card-thumb img{width:100%;height:100%;object-fit:cover}
.mini-card-title{font-family:var(--font-head);font-size:15px;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mini-card-title:hover{color:var(--red)}

/* 3-column trio sections (e.g. cricket / tech / automobiles) */
.trio-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:32px}
.trio-col{border-left:3px solid var(--red);padding-left:12px}
.trio-col:first-child{border-left:none;padding-left:0}
.trio-col .sec-head{margin-bottom:12px;padding-left:0}
.trio-col-hero{display:block;margin-bottom:12px}
.trio-col-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px;display:block}
.trio-col-hero-title{font-family:var(--font-head);font-size:17px;font-weight:700;color:var(--text);line-height:1.4;margin-top:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.trio-col-hero-title:hover{color:var(--red)}
.trio-col-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0}
.trio-col-list li{border-top:1px solid #eee;padding:12px 0 12px 4px;display:flex;align-items:flex-start;gap:10px}
.trio-col-list li::before{content:'';flex-shrink:0;width:9px;height:9px;border-radius:50%;background:var(--red);margin-top:4px}
.trio-col-list li a{font-family:var(--font-head);font-size:17px;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trio-col-list li a:hover{color:var(--red)}
.trio-col-list li a.highlight{color:var(--red)}
.trio-col-footer{text-align:right;margin-top:10px}
@media(max-width:900px){.trio-row{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.trio-row{grid-template-columns:1fr}}

/* ఉద్యోగాలు section: [2 imgs] | [text list] | [2 imgs] */
.udyog-section{margin-bottom:32px}
.udyog-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}
.udyog-imgs{display:flex;flex-direction:column;gap:16px}
.udyog-img-card{display:block;position:relative;border-radius:4px;overflow:hidden;background:#111;flex:1}
.udyog-img-card img{width:100%;height:185px;object-fit:cover;display:block;opacity:.85}
.udyog-img-title{position:absolute;bottom:0;left:0;right:0;padding:28px 12px 10px;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 100%);color:#fff;font-family:var(--font-head);font-size:17px;font-weight:700;line-height:1.4}
.udyog-list{display:flex;flex-direction:column;border-top:1px solid #eee}
.udyog-list-item{border-bottom:1px solid #eee;padding:10px 0}
.udyog-list-item a{font-family:var(--font-head);font-size:17px;color:var(--text);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.udyog-list-item a:hover{color:var(--red)}
.udyog-footer{text-align:right;margin-top:10px}
@media(max-width:900px){.udyog-grid{grid-template-columns:1fr 1fr}.udyog-imgs:last-child{display:none}}
@media(max-width:600px){.udyog-grid{grid-template-columns:1fr}}

/* ఆరోగ్యం section */
.health-section{margin-bottom:32px}
.health-large-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}
.health-large-card{display:block;text-decoration:none;color:var(--text)}
.health-large-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px;display:block;margin-bottom:8px}
.health-large-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--font-head);font-size:17px;font-weight:700;line-height:1.4;color:var(--text)}
.health-large-card:hover .health-large-title{color:var(--red)}
.health-large-date{display:block;font-size:11px;color:#999;margin-top:4px}
.health-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #eee}
.health-mini-card{display:flex;gap:10px;align-items:flex-start}
.health-mini-thumb{flex-shrink:0;display:block;width:90px;height:66px;border-radius:3px;overflow:hidden}
.health-mini-thumb img{width:100%;height:100%;object-fit:cover}
.health-mini-title{font-family:var(--font-head);font-size:17px;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.health-mini-title:hover{color:var(--red)}
.health-text-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.health-text-item{display:block;font-family:var(--font-head);font-size:17px;color:var(--text);line-height:1.4;border-left:3px solid var(--red);padding-left:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.health-text-item:hover{color:var(--red)}
@media(max-width:767px){.health-large-grid,.health-mini-grid,.health-text-grid{grid-template-columns:repeat(2,1fr)}}

/* Latest news (2 columns wide cards) */
.latest-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:600px){.latest-grid{grid-template-columns:1fr}}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-wrap{max-width:800px;width:100%}

/* Breadcrumb */
.breadcrumb{font-size:14px;color:var(--text-3);margin-bottom:12px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.breadcrumb a{color:var(--text-3)}
.breadcrumb a:hover{color:var(--red)}
.breadcrumb-sep{opacity:.5}

/* Post header */
.post-header{margin-bottom:18px}
.post-cat-row{margin-bottom:10px}
.post-h1{font-family:'Ramabhadra',sans-serif;font-size:clamp(20px,4vw,30px);font-weight:400;line-height:1.3;color:var(--text);margin-bottom:12px}
.post-summary{font-size:16px;color:var(--text-2);line-height:1.65;padding:12px 16px;border-left:4px solid var(--red);background:var(--bg-3);border-radius:0 var(--radius) var(--radius) 0;margin-bottom:14px}
.post-meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--text-3);padding-bottom:14px;border-bottom:1px solid var(--border)}
.post-author-chip{display:flex;align-items:center;gap:8px}
.post-author-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid var(--border)}
.post-author-name{font-weight:600;color:var(--text-2);display:inline-flex;align-items:center;gap:4px}
.post-author-name a{color:inherit}
.post-author-name a:hover{color:var(--red)}
.meta-sep{color:var(--border)}
.reading-time{display:flex;align-items:center;gap:4px}
.reading-time svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}

/* Verified tick */
.v-tick{color:var(--tick);display:inline-flex;align-items:center;flex-shrink:0}
.v-tick svg{width:15px;height:15px}

/* Featured image */
.post-thumb{margin-bottom:20px;border-radius:var(--radius);overflow:hidden}
.post-thumb img{width:100%;height:auto;display:block}
.post-thumb figcaption{font-size:16px;color:var(--text-3);padding:6px 10px;background:#fff8f5;text-align:center}

/* Post content */
.post-content{font-size:18px;line-height:1.8;color:var(--text)}
.post-content h2{font-family:'Ramabhadra',sans-serif;font-size:21px;font-weight:400;margin:28px 0 12px;color:var(--text);padding-left:10px;border-left:3px solid var(--red)}
.post-content h3{font-family:'Ramabhadra',sans-serif;font-size:18px;font-weight:400;margin:22px 0 10px}
.post-content h4,.post-content h5,.post-content h6{font-family:'Ramabhadra',sans-serif}
.post-content h4{font-size:16px;font-weight:700;margin:18px 0 8px}
.post-content p{margin-bottom:18px}
.post-content ul,.post-content ol{margin:0 0 18px 22px}
.post-content li{margin-bottom:6px}
.post-content a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px}
.post-content a:hover{color:var(--blue-dark)}
.post-content blockquote{border-left:4px solid var(--red);margin:22px 0;padding:12px 18px;background:var(--bg-3);border-radius:0 var(--radius) var(--radius) 0;font-size:18px;color:var(--text-2)}
.post-content blockquote p{margin:0}
.post-content figure,.post-content .wp-caption{max-width:100% !important;height:auto !important;box-sizing:border-box}
.post-content img{max-width:100% !important;height:auto !important;border-radius:var(--radius);margin:8px 0 18px}
.post-content figure{margin:20px 0}
.post-content figcaption{font-size:16px;color:var(--text-3);text-align:center;margin-top:5px}
.post-content table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px}
.post-content th,.post-content td{border:1px solid var(--border);padding:9px 12px;text-align:left}
.post-content th{background:var(--bg-2);font-weight:700}
.post-content .wp-block-image img{margin:0}

/* Also Read */
.also-read{border:1px dashed var(--red);border-radius:var(--radius);padding:11px 15px;margin:20px 0;background:var(--bg-3);display:flex;gap:10px;align-items:flex-start}
.also-read-badge{font-size:11px;font-weight:700;color:var(--red);white-space:nowrap;text-transform:uppercase;padding-top:2px;letter-spacing:.04em}
.also-read a{font-size:15px;color:var(--text);line-height:1.4}
.also-read a:hover{color:var(--red)}

/* Share bar */
.share-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.share-label{font-size:13px;font-weight:700;color:var(--text-2);margin-right:4px}
.share-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:4px;font-size:13px;font-weight:600;color:#fff;transition:opacity .15s}
.share-btn:hover{opacity:.85;color:#fff}
.share-btn svg{width:15px;height:15px;fill:currentColor}
.share-btn.wa{background:#25d366}
.share-btn.tg{background:#0088cc}
.share-btn.fb{background:#1877f2}
.share-btn.tw{background:#000}
.share-btn.cp{background:var(--text-3)}

/* Post tags */
.post-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:16px 0}
.post-tags-label{font-size:12px;font-weight:700;color:var(--text-2)}
.tag-pill{font-size:13px;padding:3px 10px;border:1px solid var(--border);border-radius:20px;color:var(--text-2);transition:background .15s,border-color .15s}
.tag-pill:hover{background:var(--red);border-color:var(--red);color:#fff}

/* Author box */
.author-box{display:flex;gap:18px;padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2);margin:24px 0}
@media(max-width:540px){.author-box{flex-direction:column;align-items:center;text-align:center}}
.author-box-avatar{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--tick);flex-shrink:0}
.author-box-body{flex:1}
.author-box-name{font-family:var(--font-head);font-size:18px;margin-bottom:5px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:540px){.author-box-name{justify-content:center}}
.author-box-name a{color:var(--text)}
.author-box-name a:hover{color:var(--red)}
.author-box-bio{font-size:16px;color:var(--text-2);line-height:1.6;margin-bottom:10px}
.author-social{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:540px){.author-social{justify-content:center}}
.author-social-link{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:3px;background:#ededfc;color:var(--text-2);transition:background .15s,color .15s}
.author-social-link svg{width:14px;height:14px;fill:currentColor}
.author-social-link.fb:hover{background:#1877f2;color:#fff}
.author-social-link.tw:hover{background:#000;color:#fff}
.author-social-link.ig:hover{background:#f00074;color:#fff}
.author-social-link.li:hover{background:#0a63bc;color:#fff}

/* Related posts */
.related-posts{margin:24px 0}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:767px){.related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.related-grid{grid-template-columns:1fr}}

/* Reading progress */
#read-progress{position:fixed;top:0;left:0;z-index:9999;height:3px;width:0;background:var(--red);transition:width .1s linear;pointer-events:none}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar{min-width:0;position:sticky;top:84px;align-self:start;max-height:calc(100vh - 84px);overflow-y:auto;scrollbar-width:none}
.sidebar::-webkit-scrollbar{display:none}
.sidebar-sep{border:none;border-top:1px solid var(--border);margin:16px 0}
.widget{margin-bottom:24px}
.widget-title{font-family:var(--font-head);font-size:17px;font-weight:400;margin-bottom:12px;padding-bottom:8px;border-bottom:3px solid var(--red);color:var(--text)}

/* Widget post list */
.w-post-list{list-style:none;padding:0}
.w-post-list li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.w-post-list li:last-child{border:none}
.w-post-thumb{flex-shrink:0;width:70px;height:52px;border-radius:3px;overflow:hidden;background:var(--bg-2)}
.w-post-thumb img{width:100%;height:100%;object-fit:cover}
.w-post-info{flex:1}
.w-post-title{font-size:16px;font-family:var(--font-head);line-height:1.4;color:var(--text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.w-post-title:hover{color:var(--red)}
.w-post-date{font-size:14px;color:var(--text-3);margin-top:3px}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-header{margin-bottom:20px}
.archive-title{font-family:var(--font-head);font-size:22px;font-weight:400;display:flex;align-items:center;gap:10px;color:var(--text)}
.archive-title::before{content:'';display:block;width:5px;height:24px;background:var(--red);border-radius:3px}
.archive-desc{font-size:14px;color:var(--text-2);margin-top:6px}
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);margin-bottom:28px}
@media(max-width:767px){.archive-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.archive-grid{grid-template-columns:1fr}}

/* Pagination */
.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:28px 0}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius);font-size:13px;font-weight:600;color:var(--text-2);transition:background .15s,color .15s,border-color .15s}
.pagination a:hover{background:var(--red);color:#fff;border-color:var(--red)}
.pagination .current{background:var(--red);color:#fff;border-color:var(--red)}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-page-header{display:flex;gap:20px;padding:24px;background:var(--bg-2);border-radius:var(--radius);border:1px solid var(--border);margin-bottom:24px}
@media(max-width:540px){.author-page-header{flex-direction:column;align-items:center;text-align:center}}
.author-page-avatar{width:90px;height:90px;border-radius:50%;object-fit:cover;border:3px solid var(--tick);flex-shrink:0}
.author-page-name{font-family:var(--font-head);font-size:22px;font-weight:400;display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
@media(max-width:540px){.author-page-name{justify-content:center}}
.author-page-bio{font-size:16px;color:var(--text-2);line-height:1.6;margin-bottom:10px}
.author-page-count{font-size:12px;color:var(--text-3)}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header{margin-bottom:20px}
.search-header h1{font-family:var(--font-head);font-size:20px;font-weight:400;color:var(--text)}
.search-count{font-size:13px;color:var(--text-3);margin-top:4px}

/* ============================================================
   404
   ============================================================ */
.notfound{text-align:center;padding:60px 16px}
.notfound-num{font-family:var(--font-head);font-size:90px;color:var(--red);line-height:1}
.notfound h2{font-family:var(--font-head);font-size:24px;font-weight:400;margin:10px 0 14px}
.notfound p{font-size:15px;color:var(--text-2);max-width:440px;margin:0 auto 20px}
.btn-red{display:inline-block;padding:11px 26px;background:var(--red);color:#fff;border-radius:var(--radius);font-weight:600;font-size:14px;transition:background .15s}
.btn-red:hover{background:var(--red-dark);color:#fff}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:#111;color:#bbb;margin-top:40px;font-size:14px}
.footer-top{padding:40px 0 30px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:600px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.footer-grid{grid-template-columns:2.2fr 1fr 1fr}}
.footer-brand .logo-text-main{font-size:22px;margin-bottom:10px;display:block}
.footer-brand p{font-size:13px;color:#999;line-height:1.6;margin-bottom:14px}
.footer-brand-address{font-size:12px;color:#777;line-height:1.7;margin-top:14px}
.footer-social{display:flex;gap:8px;flex-wrap:wrap}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:3px;background:#222;color:#bbb;transition:background .15s,color .15s}
.footer-social a svg{width:15px;height:15px;fill:currentColor}
.footer-social a:hover{background:var(--red);color:#fff}
.footer-col h3{font-family:var(--font-head);font-size:15px;font-weight:400;color:#fff;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #333;letter-spacing:.02em}
.footer-col ul{list-style:none;padding:0}
.footer-col ul li{margin-bottom:7px}
.footer-col ul li a{color:#999;transition:color .15s;display:flex;align-items:center;gap:5px}
.footer-col ul li a::before{content:'›';color:var(--red);font-size:14px}
.footer-col ul li a:hover{color:#fff}
.footer-bottom{border-top:1px solid #222;padding:14px 0}
.footer-bottom .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.footer-bottom p{font-size:12px;color:#666}
.footer-bottom a{color:#888}
.footer-bottom a:hover{color:#fff}

/* ============================================================
   STICKY MOBILE BOTTOM NAV
   ============================================================ */
.sticky-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;height:54px;background:#fff;border-top:1px solid var(--border);box-shadow:0 -2px 8px rgba(0,0,0,.1);z-index:500;justify-content:center}
@media(max-width:959px){.sticky-bottom-nav{display:flex}}
.sticky-bottom-nav a{width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:600;color:var(--text-3);text-transform:uppercase;letter-spacing:.03em;transition:color .15s}
.sticky-bottom-nav a:hover,.sticky-bottom-nav a.active{color:var(--red)}
.sticky-bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.sticky-bottom-nav .sbn-wa{color:#25d366}
.sticky-bottom-nav .sbn-wa svg{fill:#25d366;stroke:none}
.sticky-bottom-nav .sbn-tg{color:#0088cc}
.sticky-bottom-nav .sbn-tg svg{fill:#0088cc;stroke:none}
body{padding-bottom:0}
@media(max-width:959px){body.has-bottom-nav{padding-bottom:54px}}

/* ============================================================
   TOC (Table of Contents plugin)
   ============================================================ */
#toc_container{background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin:20px 0}
.toc_title{padding:9px 14px;font-family:var(--font-head);font-size:14px;background:var(--bg-2);border-bottom:1px solid var(--border)}
#toc_container li a{display:block;padding:7px 14px;font-size:13px;color:var(--blue);border-top:1px solid var(--border)}
#toc_container li a:hover{background:#fff}

/* ============================================================
   MISC PLUGINS
   ============================================================ */
/* RankMath breadcrumb */
.rank-math-breadcrumb p{font-size:12px;color:var(--text-3);margin-bottom:10px;display:flex;flex-wrap:wrap;gap:4px;align-items:center;background:none;padding:0;font-weight:400;border-radius:0}
.rank-math-breadcrumb a{color:var(--text-3)}
.rank-math-breadcrumb a:hover{color:var(--red)}
/* Tag cloud */
.wp-block-tag-cloud a,.widget_tag_cloud a{font-size:12px!important;display:inline-block;padding:4px 10px;border:1px solid var(--border);border-radius:20px;color:var(--text-2);margin:3px;transition:background .15s,border-color .15s}
.wp-block-tag-cloud a:hover,.widget_tag_cloud a:hover{background:var(--red);border-color:var(--red);color:#fff}
/* Block editor */
.wp-block-image img{border-radius:var(--radius);margin:0}
.wp-caption-text,.wp-element-caption{font-size:12px;color:var(--text-3);text-align:center;margin-top:4px}

/* ============================================================
   COMMENT FORM
   ============================================================ */
#respond{margin-top:32px;padding-top:24px;border-top:2px solid var(--border)}
#reply-title{font-family:var(--font-head);font-size:20px;font-weight:400;color:var(--text);margin-bottom:6px;padding-left:12px;border-left:4px solid var(--red)}
.comment-notes{font-size:16px;color:var(--text-3);margin-bottom:18px}
.comment-notes .required{color:var(--red)}
.comment-form p{margin-bottom:16px}
.comment-form label{display:block;font-size:16px;font-weight:600;color:var(--text-2);margin-bottom:6px}
.comment-form label .required{color:var(--red);margin-left:2px}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{width:100%;max-width:480px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius);font-family:var(--font-body);font-size:15px;color:var(--text);background:#fff;transition:border-color .15s;outline:none}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus{border-color:var(--red)}
.comment-form textarea#comment{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);font-family:var(--font-body);font-size:15px;color:var(--text);background:#fff;resize:vertical;min-height:140px;transition:border-color .15s;outline:none;box-sizing:border-box}
.comment-form textarea#comment:focus{border-color:var(--red)}
.comment-form-cookies-consent{display:flex;align-items:flex-start;gap:10px}
.comment-form-cookies-consent input[type="checkbox"]{margin-top:3px;accent-color:var(--red);width:16px;height:16px;flex-shrink:0}
.comment-form-cookies-consent label{font-size:14px;font-weight:400;color:var(--text-3);margin:0}
.form-submit{margin-top:8px}
#submit{display:inline-block;padding:11px 28px;background:var(--red);color:#fff;border:none;border-radius:var(--radius);font-family:var(--font-head);font-size:16px;cursor:pointer;transition:background .15s}
#submit:hover{background:var(--red-dark)}

/* ============================================================
   PRINT
   ============================================================ */
@media print{
  .site-header,.sidebar,.share-bar,.sticky-bottom-nav,#read-progress,.related-posts{display:none!important}
  .page-layout{grid-template-columns:1fr}
  .post-content{font-size:13px}
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.idl-slider{position:relative;overflow:hidden;border-radius:var(--radius)}
.idl-slider-track{display:flex;width:100%}
.idl-slide{flex:0 0 100%;width:100%;position:relative;display:none;flex-direction:column}
.idl-slide.active{display:flex}
.idl-slide-img-wrap{display:block;overflow:hidden;aspect-ratio:16/9;background:var(--bg-2);border-radius:var(--radius)}
.idl-slide-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.idl-slide:hover .idl-slide-img-wrap img{transform:scale(1.04)}
.idl-slide-body{padding:12px 0 0}
.idl-slider .feat-card-title a{color:var(--red);font-weight:700}
/* Dots */
.idl-slider-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.idl-dot{width:10px;height:10px;border-radius:50%;background:var(--border);border:none;cursor:pointer;padding:0;transition:background .2s,transform .2s}
.idl-dot.active{background:var(--red);transform:scale(1.2)}
.idl-dot:hover{background:var(--red)}
/* Fade animation */
.idl-slide.fade-in{animation:idlFadeIn .4s ease}
@keyframes idlFadeIn{from{opacity:0}to{opacity:1}}
.sidebar-news-list{list-style:none;padding:0;margin:0}
.sidebar-news-list li{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.sidebar-news-list li::before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:var(--red);flex-shrink:0;margin-top:5px}
.sidebar-news-list li a{font-family:var(--font-head);font-size:16px;color:var(--text);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sidebar-news-list li a:hover{color:var(--red)}
.social-join-bars{display:flex;flex-direction:column;gap:12px;margin:24px 0}
@keyframes join-blink-wa{0%,100%{border-color:#25d366}50%{border-color:transparent}}@keyframes join-blink-tg{0%,100%{border-color:#b3d9f7}50%{border-color:transparent}}
.join-bar{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:8px;background:#e8f5fe;border:2px solid transparent;text-decoration:none;font-family:var(--font-head);font-size:16px;color:var(--text) !important}
.join-bar svg{width:28px;height:28px;flex-shrink:0}
.join-bar-wa{animation:join-blink-wa 1.5s ease-in-out infinite}
.join-bar-wa svg{color:#25d366;fill:#25d366}
.join-bar-tg{animation:join-blink-tg 1.5s ease-in-out infinite}
.join-bar-tg svg{color:#0088cc;fill:#0088cc}
.join-bar-text{flex:1;font-weight:500}
.join-btn{padding:7px 20px;border-radius:6px;color:#fff !important;font-size:14px;white-space:nowrap}
.join-bar-wa .join-btn{background:#25d366}
.join-bar-tg .join-btn{background:#0088cc}
.join-bar-wa:hover{opacity:.93;animation:none;border-color:#25d366}
.join-bar-tg:hover{opacity:.93;animation:none;border-color:#b3d9f7}
