/*
Theme Name: Kerala Exam Result
Theme URI: https://keralaexamresult.com/
Author: Kerala Exam Result
Author URI: https://keralaexamresult.com/
Description: A fast, clean WordPress theme for Kerala exam results, admit cards, jobs, recruitment and education updates.
Version: 2.9.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keralaexamresult
Tags: education, news, blog, custom-logo, featured-images, responsive-layout
*/

/* ── Base ──────────────────────────────────────────────────────────────────── */
:root{--primary:#0f766e;--primary-dark:#115e59;--accent:#f59e0b;--bg:#f8fafc;--text:#1f2937;--muted:#6b7280;--card:#ffffff;--border:#e5e7eb}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
.container{width:min(1120px,92%);margin:auto}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.custom-logo{max-height:70px;width:auto}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1000;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.top-bar{background:linear-gradient(90deg,var(--primary-dark),var(--primary));color:#fff;font-size:14px;padding:7px 0;font-weight:600;letter-spacing:.1px}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;position:relative}
.site-branding h1,.site-branding p{margin:0}
.site-branding h1{font-size:26px;letter-spacing:-.4px}
.site-branding p{font-size:13px;color:var(--muted)}
.site-logo-link{display:inline-flex;align-items:center;line-height:0}
.site-logo-link:hover{text-decoration:none}
.custom-logo{display:block;width:auto;max-width:350px;height:auto;max-height:70px;object-fit:contain}
.site-branding{display:flex;align-items:center;min-height:64px;flex:0 0 auto}
.main-nav{display:flex;align-items:center;justify-content:flex-end;flex:1;min-width:0}
.main-nav ul{display:flex;align-items:center;justify-content:flex-end;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav li{position:relative;margin:0}
.main-nav a{display:flex;align-items:center;justify-content:center;min-height:40px;color:#1f2937;font-weight:800;font-size:14px;line-height:1.1;padding:11px 13px;border-radius:999px;border:1px solid transparent;transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.main-nav a:hover,.main-nav a:focus{background:#ecfdf5;color:var(--primary);border-color:#ccfbf1;text-decoration:none;box-shadow:0 8px 18px rgba(15,118,110,.10);transform:translateY(-1px);outline:none}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a,.main-nav .current-menu-ancestor>a{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 10px 22px rgba(15,118,110,.20)}
.main-nav ul ul{position:absolute;top:calc(100% + 10px);left:0;display:block;min-width:210px;background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:8px;box-shadow:0 20px 45px rgba(15,23,42,.14);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease;z-index:1002}
.main-nav li:hover>ul,.main-nav li:focus-within>ul{opacity:1;visibility:visible;transform:translateY(0)}
.main-nav ul ul a{justify-content:flex-start;border-radius:12px;padding:11px 12px;min-height:auto;white-space:nowrap}
.menu-toggle{display:none;align-items:center;gap:8px;border:1px solid #ccfbf1;background:#ecfdf5;color:var(--primary-dark);font-weight:900;border-radius:999px;padding:9px 12px;cursor:pointer;box-shadow:0 8px 20px rgba(15,118,110,.08)}
.menu-toggle:hover{background:#d1fae5}
.menu-toggle-icon{display:inline-flex;flex-direction:column;gap:4px;width:18px}
.menu-toggle-icon span{display:block;width:18px;height:2px;background:var(--primary);border-radius:10px;transition:.18s ease}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero{padding:48px 0 52px;background:linear-gradient(135deg,#0b6b64 0%,#0f8f83 48%,#14b8a6 100%);color:#fff}
.hero-kicker{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);padding:5px 11px;border-radius:999px;font-size:13px;font-weight:700;margin-bottom:12px}
/* h1 and h2 both styled same — h1 used for SEO on homepage */
.hero h1,.hero h2,.hero-h1{font-size:38px;line-height:1.15;margin:0 0 12px;max-width:820px;font-weight:700;color:#fff}
.hero p{max-width:720px;font-size:18px;margin:0 0 22px}
.search-box{background:#fff;padding:10px;border-radius:12px;display:flex;gap:8px;max-width:680px;box-shadow:0 10px 25px rgba(0,0,0,.15)}
.search-box input{flex:1;border:0;padding:13px;font-size:16px;outline:none}
.btn,.search-box button{background:var(--accent);color:#111827;border:0;padding:13px 18px;border-radius:9px;font-weight:700;cursor:pointer}

/* ── Quick category cards ──────────────────────────────────────────────────── */
.quick-section{background:var(--bg);padding:26px 0 8px}
/* Desktop: 5 columns for 5 cards */
.quick-links{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:0;position:relative;z-index:2}
.quick-card{position:relative;display:block;border-radius:20px;padding:26px 24px 24px;overflow:hidden;border:1px solid #d6f3ee;background:linear-gradient(180deg,#ffffff 0%,#f7fffd 100%);box-shadow:0 10px 28px rgba(15,118,110,.10);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;min-height:auto}
.quick-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:linear-gradient(90deg,#0f766e,#14b8a6,#f59e0b)}
.quick-card:after{content:"";position:absolute;right:-34px;bottom:-42px;width:120px;height:120px;border-radius:50%;background:rgba(20,184,166,.08)}
.quick-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(15,118,110,.18);border-color:#14b8a6;text-decoration:none}
.quick-card:hover h2,.quick-card:hover h3,.quick-card:hover p{text-decoration:none}
.quick-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#0f766e;color:#fff;font-weight:900;font-size:18px;box-shadow:0 8px 18px rgba(15,118,110,.22);margin-bottom:14px}
/* Card heading — h2 used for SEO */
.quick-card h2,.quick-card h3,.quick-card-h2{font-size:20px;margin:0 0 8px;color:#0f766e;line-height:1.2;font-weight:800}
.quick-card p{font-size:14px;line-height:1.65;color:#475569;margin:0}
.quick-card span{display:none!important}
/* Icon colors per category */
.quick-admit  .quick-icon{background:#2563eb}
.quick-recruit .quick-icon{background:#b45309}
.quick-jobs   .quick-icon{background:#7c3aed}
.quick-answer .quick-icon{background:#059669}

/* ── Section titles ────────────────────────────────────────────────────────── */
.section{padding:34px 0}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.section-title h2{margin:0;font-size:26px}
.section-title .view-all{font-weight:800;background:#ecfdf5;border:1px solid #ccfbf1;padding:8px 12px;border-radius:999px}
.section-title .view-all:hover{text-decoration:none;background:#d1fae5}
.latest-section{padding-top:30px}

/* ── Post grid ─────────────────────────────────────────────────────────────── */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:0 5px 16px rgba(15,23,42,.05);transition:transform .18s ease,box-shadow .18s ease}
.post-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(15,23,42,.09)}
.post-card img{width:100%;height:180px;object-fit:cover;display:block}
.post-card-content{padding:18px}
.post-card h2,.post-card h3{margin:0 0 10px;font-size:21px;line-height:1.3}
.post-card h3 a{color:#111827}
.post-card h3 a:hover{color:var(--primary);text-decoration:none}
.post-card-content p{color:#64748b;margin-bottom:0}
.meta{color:var(--muted);font-size:13px;margin-bottom:8px}
.badge{display:inline-block;background:#ecfeff;color:#155e75;border:1px solid #a5f3fc;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;margin-bottom:8px}
.thumb-link{display:block;background:#f1f5f9}
.placeholder-thumb{height:180px;background:linear-gradient(135deg,#e0f2fe,#ccfbf1);display:flex;align-items:center;justify-content:center;font-weight:800;color:#0f766e}
.placeholder-thumb.small{height:100%;min-height:130px}

/* ── Hot ticker ────────────────────────────────────────────────────────────── */
.hot-ticker{background:#fff;border-top:1px solid #dff7f2;border-bottom:1px solid #dff7f2;padding:12px 0;margin-top:12px}
.ticker-wrap{display:flex;align-items:center;gap:14px}
.ticker-label{background:#f59e0b;color:#111827;padding:8px 12px;border-radius:999px;font-size:14px;white-space:nowrap;box-shadow:0 4px 12px rgba(245,158,11,.25)}
.ticker-window{overflow:hidden;flex:1}
/* FIXED: was translateX(100%) to (-100%) which caused gap. Now 0 to -50% with JS clone */
.ticker-track{display:inline-flex;gap:28px;white-space:nowrap;animation:kerTicker 38s linear infinite}
.ticker-track:hover{animation-play-state:paused}
.ticker-track a{font-weight:800;color:#0f766e;position:relative}
.ticker-track a:after{content:"•";position:absolute;right:-18px;color:#f59e0b}
.ticker-track a:hover{text-decoration:none;color:#115e59}
@keyframes kerTicker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ── Layout: sidebar ───────────────────────────────────────────────────────── */
.layout{display:grid;grid-template-columns:1fr 320px;gap:28px;padding:34px 0}
.content-area,.sidebar-widget{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px}
.entry-title{font-size:34px;line-height:1.2;margin:0 0 12px}
.entry-content h2{font-size:25px;margin-top:28px}
.entry-content table{width:100%;border-collapse:collapse;margin:18px 0;background:#fff}
.entry-content th,.entry-content td{border:1px solid var(--border);padding:10px;text-align:left}
.entry-content th{background:#f1f5f9}
.sidebar{display:flex;flex-direction:column;gap:18px}
.sidebar-widget h3{margin-top:0}
.sidebar-widget ul{padding-left:18px;margin-bottom:0}

/* ── Post tags ─────────────────────────────────────────────────────────────── */
.post-tags{margin-top:28px;padding-top:18px;border-top:1px solid var(--border);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.post-tags-title{font-weight:900;color:#111827}
.post-tags a{background:#ecfdf5;border:1px solid #99f6e4;color:#0f766e;border-radius:999px;padding:7px 12px;font-weight:800;font-size:14px}
.post-tags a:hover{text-decoration:none;background:#ccfbf1}
.entry-content + .post-tags{margin-bottom:4px}

/* ── Archive ───────────────────────────────────────────────────────────────── */
.archive-hero{background:#eefdf9;border-bottom:1px solid #ccfbf1;padding:34px 0}
.archive-hero h1{margin:0 0 6px;font-size:36px;line-height:1.15}
.archive-hero p{margin:0;color:#64748b}
.archive-layout{display:grid;grid-template-columns:1fr 320px;gap:28px;padding:30px 0}
.archive-main{min-width:0}
.post-list{display:flex;flex-direction:column;gap:18px}
.list-card{display:grid;grid-template-columns:230px 1fr;gap:20px;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.list-thumb img{width:100%;height:100%;min-height:170px;object-fit:cover;display:block}
.list-content{padding:18px 18px 18px 0}
.list-content h2{font-size:24px;line-height:1.25;margin:0 0 8px}
.list-content h2 a{color:#111827}
.list-content h2 a:hover{color:var(--primary);text-decoration:none}
.list-content p{color:#64748b;margin:0 0 12px}
.read-more{font-weight:800}
.read-more:hover{text-decoration:none}

/* ── Single post ───────────────────────────────────────────────────────────── */
.single-layout{align-items:start}
.single-card{padding:30px 34px}
.single-header{margin-bottom:18px}
.single-cat{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.single-cat a{display:inline-block;background:#ecfdf5;border:1px solid #99f6e4;color:#0f766e;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:900}
.single-cat a:hover{text-decoration:none;background:#ccfbf1}
.single-header .entry-title{font-size:42px;line-height:1.12;letter-spacing:-1.1px;margin:0 0 18px;color:#111827}
.single-meta-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}
.author-chip{display:flex;align-items:center;gap:12px}
.author-avatar{border-radius:50%;border:2px solid #ccfbf1}
.author-name{display:block;font-weight:900;color:#111827;line-height:1.25}
.author-name a{color:#0f766e}
.post-date{display:block;color:#64748b;font-size:13px;margin-top:2px}
.read-time{white-space:nowrap;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:900}
.single-featured-image{width:100%;height:auto;border-radius:18px;margin:18px 0 24px;display:block;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.related-posts{margin-top:34px;padding-top:24px;border-top:1px solid var(--border)}
.related-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.related-head h2{margin:0;font-size:26px;color:#111827}
.related-head span{font-size:14px;color:#64748b}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.related-card{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 8px 20px rgba(15,23,42,.06);transition:.18s ease}
.related-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(15,23,42,.10)}
.related-thumb{display:block;background:#f1f5f9}
.related-thumb img{width:100%;height:130px;object-fit:cover;display:block}
.related-body{padding:14px}
.related-date{font-size:12px;color:#64748b}
.related-card h3{font-size:16px;line-height:1.35;margin:6px 0 0}
.related-card h3 a{color:#111827}
.related-card h3 a:hover{text-decoration:none;color:#0f766e}

/* ── Sidebar widgets ───────────────────────────────────────────────────────── */
.sidebar{position:sticky;top:16px}
.sidebar-widget{border-radius:20px;padding:22px;box-shadow:0 10px 25px rgba(15,23,42,.06);border-color:#dbeafe}
.sidebar-widget h3{font-size:20px;margin:0 0 12px;color:#0f766e}
.sidebar-widget p{margin-top:0;color:#64748b;font-size:14px}
.search-widget{background:linear-gradient(180deg,#ffffff,#f0fdfa);border-color:#99f6e4}
.search-form{display:flex;gap:8px}
.search-form label{flex:1}
.search-form input[type="search"]{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 13px;font-size:15px;outline:none}
.search-form input[type="search"]:focus{border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.12)}
.search-form input[type="submit"],.search-form button{background:#0f766e;color:#fff;border:0;border-radius:12px;padding:12px 14px;font-weight:900;cursor:pointer}
.sidebar-post-list,.category-pills{list-style:none;padding:0!important;margin:0!important}
.sidebar-post-list li{padding:12px 0;border-bottom:1px solid #eef2f7}
.sidebar-post-list li:last-child{border-bottom:0}
.sidebar-post-list a{display:block;font-weight:900;line-height:1.35;color:#111827}
.sidebar-post-list a:hover{text-decoration:none;color:#0f766e}
.sidebar-post-list span{display:block;color:#64748b;font-size:12px;margin-top:4px}
.category-pills{display:flex;flex-wrap:wrap;gap:9px}
.category-pills li{margin:0}
.category-pills a{display:inline-block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;font-weight:800;color:#0f766e}
.category-pills a:hover{text-decoration:none;background:#ecfdf5;border-color:#99f6e4}
.category-pills .count{color:#64748b}
.ker-sidebar{display:flex;flex-direction:column;gap:18px;position:sticky;top:16px;align-self:start}
.ker-widget{background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:22px;box-shadow:0 12px 28px rgba(15,23,42,.06);overflow:hidden}
.ker-widget h3{margin:0 0 10px;font-size:22px;line-height:1.2;color:#0f766e;letter-spacing:-.2px}
.ker-widget p{margin:0 0 16px;color:#64748b;font-size:15px;line-height:1.55}
.ker-sidebar .search-widget{background:linear-gradient(180deg,#ffffff 0%,#f0fdfa 100%);border-color:#99f6e4}
.ker-sidebar .search-box{max-width:none;width:100%;padding:6px;border-radius:15px;box-shadow:none;border:1px solid #dbeafe;background:#fff;display:flex;gap:8px}
.ker-sidebar .search-box input{min-width:0;width:100%;border:0;background:transparent;padding:12px 10px;font-size:15px}
.ker-sidebar .search-box button{border-radius:12px;padding:12px 15px;background:#f59e0b;color:#111827;font-size:15px;white-space:nowrap}
.ker-sidebar .search-box button:hover{filter:brightness(.96)}
.sidebar .widget,.sidebar-widget.widget{background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:22px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.sidebar .widget_search .wp-block-search__inside-wrapper,.sidebar .widget_search form,.sidebar .wp-block-search__inside-wrapper{display:flex;gap:8px}
.sidebar input[type="search"],.sidebar .wp-block-search__input{width:100%;border:1px solid #e2e8f0;border-radius:12px;padding:12px 13px;font-size:15px}
.sidebar input[type="submit"],.sidebar .wp-block-search__button{background:#0f766e;color:#fff;border:0;border-radius:12px;padding:12px 15px;font-weight:900;cursor:pointer}
.sidebar ul{list-style:none;padding-left:0}
.sidebar li{margin-bottom:8px}
.sidebar li a{font-weight:800}
.sidebar li a:hover{text-decoration:none;color:#0f766e}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer{background:#111827;color:#d1d5db;padding:34px 0;margin-top:30px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}
.site-footer a{color:#f9fafb}
.copyright{border-top:1px solid #374151;margin-top:22px;padding-top:16px;font-size:14px;color:#9ca3af}

/* ── Misc ───────────────────────────────────────────────────────────────────── */
.pagination{margin:24px 0}
.pagination .page-numbers{display:inline-block;background:#fff;border:1px solid var(--border);padding:8px 12px;border-radius:8px;margin:3px}
.pagination .current{background:var(--primary);color:#fff}
.alert-box{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:16px;margin:18px 0}
.notice-strip{display:none}
.wp-block-image img{border-radius:14px}

/* ── Search results page ───────────────────────────────────────────────────── */
.search-results-layout .no-results-card{padding:28px;border-radius:20px;text-align:left;background:#fff;border:1px solid #e5e7eb;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.search-results-layout .no-results-card h1{margin:0 0 8px;font-size:30px;line-height:1.2;color:#111827}
.search-results-layout .no-results-card p{margin:0 0 18px;color:#64748b;font-size:16px;line-height:1.7}
.search-results-layout .search-title h2{font-size:28px;line-height:1.25;color:#111827}
.search-result-card{margin-bottom:18px}
.search-results-layout .sidebar .search-widget{display:block}

/* ── About section (homepage only) ────────────────────────────────────────── */
.ker-about-section{background:#f8fafc;border-top:1px solid #e5e7eb;padding:52px 0 44px}
.ker-about-intro{max-width:780px;margin:0 auto 36px;text-align:center}
.ker-about-intro h2{font-size:28px;font-weight:800;color:#111827;margin:0 0 12px;line-height:1.25}
.ker-about-intro p{font-size:15.5px;line-height:1.8;color:#4b5563}
.ker-about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}
.ker-about-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 3px 12px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:10px}
.ker-about-icon{font-size:26px;line-height:1}
.ker-about-card h3{font-size:17px;font-weight:800;color:#111827;margin:0;line-height:1.25}
.ker-about-card p{font-size:14.5px;line-height:1.8;color:#4b5563;margin:0;flex:1}
.ker-about-card>a{font-size:13.5px;font-weight:800;color:#0f766e;margin-top:6px;display:inline-block}
.ker-about-card>a:hover{text-decoration:underline}
.ker-about-why ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.ker-about-why li{font-size:14px;color:#4b5563;line-height:1.65;padding-left:22px;position:relative}
.ker-about-why li::before{content:"✓";position:absolute;left:0;color:#0f766e;font-weight:800;font-size:13px;top:1px}
.ker-about-why li strong{color:#111827;display:block;font-size:14px;margin-bottom:2px}
.ker-popular-searches{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px 24px;margin-bottom:28px;display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.ker-ps-label{font-size:13px;font-weight:800;color:#374151;white-space:nowrap;padding-top:4px;flex-shrink:0}
.ker-ps-tags{display:flex;flex-wrap:wrap;gap:8px}
.ker-ps-tag{font-size:13px;font-weight:600;color:#0f766e;background:#f0fdf4;border:1px solid #bbf7d0;padding:4px 12px;border-radius:20px;transition:background .15s}
.ker-ps-tag:hover{background:#dcfce7}
.ker-about-disclaimer{font-size:13px;color:#9ca3af;line-height:1.75;border-top:1px solid #e5e7eb;padding-top:22px;max-width:860px;margin:0 auto;text-align:center}
.ker-about-disclaimer a{color:#0f766e;font-weight:700}
.ker-about-disclaimer a:hover{text-decoration:underline}


/* Modern responsive menu */
@media(max-width:980px){
  .header-inner{padding:10px 0;gap:12px}
  .custom-logo{max-width:300px;max-height:60px}
  .site-branding{min-height:58px}
  .menu-toggle{display:inline-flex;margin-left:auto}
  .main-nav{position:absolute;left:0;right:0;top:calc(100% + 8px);display:block;background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:10px;box-shadow:0 24px 55px rgba(15,23,42,.16);opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:1001}
  .site-header.menu-open .main-nav{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .main-nav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;justify-content:stretch}
  .main-nav a{justify-content:flex-start;border-radius:14px;background:#f8fafc;border-color:#eef2f7;min-height:46px;font-size:14px;padding:13px 14px}
  .main-nav a:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--primary);margin-right:9px;box-shadow:0 0 0 4px rgba(15,118,110,.10)}
  .main-nav .current-menu-item>a,.main-nav .current_page_item>a,.main-nav .current-menu-ancestor>a{background:linear-gradient(90deg,var(--primary),#14b8a6);color:#fff;border-color:transparent}
  .main-nav .current-menu-item>a:before,.main-nav .current_page_item>a:before,.main-nav .current-menu-ancestor>a:before{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.22)}
  .main-nav ul ul{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;background:transparent;padding:6px 0 0;margin:0;grid-column:1/-1}
}
@media(max-width:600px){
  .top-bar{font-size:12.5px;padding:6px 0;text-align:center}
  .header-inner{flex-direction:row!important;align-items:center!important}
  .custom-logo{max-width:230px;max-height:48px}
  .site-branding{min-height:48px;max-width:calc(100% - 92px);overflow:hidden}
  .menu-toggle{padding:9px 10px;font-size:0;border-radius:14px}
  .menu-toggle-text{display:none}
  .main-nav{top:calc(100% + 6px);border-radius:18px;padding:9px}
  .main-nav ul{grid-template-columns:1fr;gap:8px}
  .main-nav a{font-size:14px;min-height:44px;padding:12px 13px}
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media(max-width:900px){
  /* Quick cards: 3 columns on tablet */
  .quick-links{grid-template-columns:repeat(3,1fr)}
  .grid,.footer-grid{grid-template-columns:1fr 1fr}
  .layout{grid-template-columns:1fr}
  .hero h1,.hero h2,.hero-h1{font-size:31px}
  .archive-layout{grid-template-columns:1fr}
  .quick-card{min-height:auto}
  .list-card{grid-template-columns:180px 1fr}
  .list-content h2{font-size:21px}
  .single-card{padding:24px}
  .single-header .entry-title{font-size:34px}
  .related-grid{grid-template-columns:1fr 1fr}
  .sidebar{position:static}
  .ker-sidebar{position:static}
  .ker-widget{padding:20px}
  .ker-about-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:600px){
  /* Quick cards: 2 columns on mobile — FIXED from original 1 column */
  .quick-links{grid-template-columns:repeat(2,1fr)}
  .quick-card{padding:16px}
  .quick-card h2,.quick-card h3,.quick-card-h2{font-size:16px}
  .quick-card p{font-size:13px}
  .quick-icon{width:38px;height:38px;font-size:16px;margin-bottom:10px}
  .grid,.footer-grid{grid-template-columns:1fr}
  .search-box{flex-direction:column}
  .hero{padding:32px 0}
  .entry-title{font-size:28px}
  .ticker-wrap{align-items:flex-start;gap:9px}
  .ticker-label{font-size:12px;padding:7px 10px}
  .ticker-track{animation-duration:28s}
  .hero{padding:34px 0 38px}
  .quick-section{padding-top:18px}
  .archive-hero h1{font-size:30px}
  .archive-layout{padding-top:20px}
  .list-card{grid-template-columns:1fr}
  .list-content{padding:16px}
  .list-thumb img,.placeholder-thumb.small{height:180px}
  .single-card{padding:20px}
  .single-header .entry-title{font-size:30px}
  .single-meta-row{align-items:flex-start;flex-direction:column}
  .related-head{align-items:flex-start;flex-direction:column}
  .related-grid{grid-template-columns:1fr}
  .related-thumb img{height:170px}
  .search-form{flex-direction:column}
  .search-results-layout .no-results-card{padding:22px}
  .search-results-layout .no-results-card h1{font-size:25px}
  .search-results-layout .search-title h2{font-size:23px}
  .ker-sidebar .search-box{flex-direction:column}
  .ker-sidebar .search-box button{width:100%}
  .ker-widget h3{font-size:20px}
  .custom-logo{max-width:260px;max-height:52px}
  .site-branding{min-height:52px}
  .ker-about-grid{grid-template-columns:1fr}
  .ker-about-intro h2{font-size:23px}
  .ker-about-section{padding:36px 0 30px}
  .ker-popular-searches{flex-direction:column;gap:10px}
}

/* ── v2.1 category/list visual upgrade + speed-conscious UI ───────────────── */
.archive-kicker{display:inline-block;background:#ecfdf5;border:1px solid #99f6e4;color:#0f766e;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:900;margin-bottom:10px}
.category-results-layout{align-items:start}.enhanced-post-list{gap:16px}.update-list-card{position:relative;border-color:#dbeafe;box-shadow:0 8px 22px rgba(15,23,42,.055);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.update-list-card:hover{transform:translateY(-2px);border-color:#99f6e4;box-shadow:0 14px 30px rgba(15,118,110,.10)}
.update-list-card .list-thumb{position:relative;overflow:hidden;background:linear-gradient(135deg,#e0f2fe,#ccfbf1)}.update-list-card .list-thumb img{transition:transform .18s ease}.update-list-card:hover .list-thumb img{transform:scale(1.025)}
.card-topline{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.date-chip,.category-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;line-height:1}.date-chip{background:#f8fafc;border:1px solid #e2e8f0;color:#475569}.date-chip:before{content:"◷";font-size:11px;color:#64748b}.category-chip{background:#ecfdf5;border:1px solid #99f6e4;color:#0f766e}.category-chip:before{content:"";width:7px;height:7px;border-radius:50%;background:#0f766e;display:inline-block}
.update-list-card .list-content h2{margin-bottom:8px}.update-list-card .list-content p{font-size:15px;line-height:1.65;color:#64748b}.read-more{display:inline-flex;align-items:center;gap:5px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900}.read-more:hover{text-decoration:none;background:#ffedd5;color:#7c2d12}
.placeholder-thumb.small{min-height:170px;height:100%;align-items:center;text-align:center;padding:16px;background:linear-gradient(135deg,#ecfdf5,#e0f2fe);font-size:18px;letter-spacing:-.2px}.post-card .placeholder-thumb{position:relative}.post-card .placeholder-thumb:after,.placeholder-thumb.small:after{content:"Latest Update";position:absolute;left:12px;top:12px;background:#f59e0b;color:#111827;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}
.section-title h2,.archive-hero h1{letter-spacing:-.5px}.archive-hero{background:linear-gradient(135deg,#f0fdfa 0%,#eff6ff 100%);border-bottom:1px solid #dbeafe}.archive-hero h1{color:#111827}.archive-hero p{max-width:760px;line-height:1.75}
.quick-card{will-change:auto}.quick-card h2,.quick-card-h2{letter-spacing:-.25px}.quick-card p{color:#334155}.quick-icon{font-family:Arial,Helvetica,sans-serif}.hot-ticker{box-shadow:0 3px 14px rgba(15,118,110,.05)}.ticker-label{font-weight:900}.ticker-track a{font-size:14px}.section-title .view-all{color:#0f766e}
.sidebar-post-list a{font-size:14px}.category-pills a{font-size:13px}.ker-widget{box-shadow:0 10px 24px rgba(15,23,42,.055)}
@media(max-width:900px){.update-list-card{grid-template-columns:170px 1fr}.update-list-card .list-thumb img{min-height:150px}.update-list-card .list-content{padding:15px 15px 15px 0}.update-list-card .list-content h2{font-size:20px}.update-list-card .list-content p{font-size:14px}}
@media(max-width:600px){.archive-hero{padding:26px 0}.archive-hero h1{font-size:26px}.archive-hero p{font-size:14px}.enhanced-post-list{gap:14px}.update-list-card{grid-template-columns:112px 1fr;border-radius:16px}.update-list-card .list-thumb img{height:100%;min-height:132px}.update-list-card .list-content{padding:12px 12px 12px 0}.card-topline{gap:5px;margin-bottom:6px}.date-chip,.category-chip{font-size:10.5px;padding:4px 7px}.update-list-card .list-content h2{font-size:15.5px;line-height:1.34;margin-bottom:5px}.update-list-card .list-content p{display:none}.read-more{font-size:12px;padding:6px 9px}.placeholder-thumb.small{min-height:132px;font-size:13px}.placeholder-thumb.small:after{display:none}.post-card img{height:170px}.section-title h2{font-size:22px}.ticker-track a{font-size:13px}.quick-card{box-shadow:0 6px 18px rgba(15,118,110,.09)}}

/* ── v2.2 full featured image visibility fix ────────────────────────────────
   Users upload 1280x720 featured images with text. Do not crop them in category
   cards. Keep 16:9 ratio, show full image, and use a soft background for empty
   space. This is lightweight CSS only, so it does not hurt PageSpeed. */
.thumb-link,
.list-thumb,
.related-thumb{
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.post-card .thumb-link{
  aspect-ratio:16/9;
}

.post-card img,
.list-thumb img,
.related-thumb img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center center;
  background:#f8fafc;
}

.post-card img{
  height:100%;
  max-height:none;
}

.list-thumb{
  min-height:0;
  aspect-ratio:16/9;
  align-self:start;
}

.list-thumb img{
  min-height:0!important;
  display:block;
}

.update-list-card .list-thumb{
  background:linear-gradient(135deg,#f8fafc,#ecfdf5);
  border-right:1px solid #eef2f7;
}

.update-list-card:hover .list-thumb img{
  transform:none!important;
}

.related-thumb{
  aspect-ratio:16/9;
}

.related-thumb img{
  height:100%!important;
}

@media(max-width:900px){
  .update-list-card{grid-template-columns:160px 1fr}
  .update-list-card .list-thumb img{min-height:0!important;height:100%!important}
}

@media(max-width:600px){
  .update-list-card{grid-template-columns:118px 1fr}
  .update-list-card .list-thumb{aspect-ratio:16/9;margin:10px 0 10px 10px;border-radius:10px;border:1px solid #e2e8f0}
  .update-list-card .list-thumb img{height:100%!important;min-height:0!important;border-radius:10px}
  .post-card .thumb-link{aspect-ratio:16/9}
  .post-card img{height:100%!important}
}


/* ── v2.3 mobile author + read time chips and single-column quick cards ─────
   Lightweight CSS only. Keeps mobile pages easy to scan and Core Web Vitals friendly. */
.card-topline .author-chip,
.card-topline .read-time-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.card-topline .author-chip{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
}
.card-topline .author-chip:before{
  content:"✍";
  font-size:11px;
}
.card-topline .read-time-chip{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
}
.card-topline .read-time-chip:before{
  content:"◷";
  font-size:11px;
}
@media(max-width:600px){
  /* Homepage cards: one clean card per row on mobile */
  .quick-links{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .quick-card{
    display:grid;
    grid-template-columns:42px 1fr;
    column-gap:13px;
    align-items:center;
    padding:15px 16px!important;
    border-radius:17px;
  }
  .quick-card:before{height:4px}
  .quick-card:after{width:86px;height:86px;right:-36px;bottom:-42px}
  .quick-icon{
    width:42px!important;
    height:42px!important;
    margin:0!important;
    grid-row:1 / span 2;
  }
  .quick-card h2,
  .quick-card h3,
  .quick-card-h2{
    font-size:17px!important;
    margin:0 0 3px!important;
  }
  .quick-card p{
    font-size:13px!important;
    line-height:1.45!important;
  }
  .card-topline{
    display:flex!important;
    gap:5px!important;
    margin-bottom:6px!important;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .card-topline::-webkit-scrollbar{display:none}
  .date-chip,
  .category-chip,
  .card-topline .author-chip,
  .card-topline .read-time-chip{
    font-size:10.5px!important;
    padding:4px 7px!important;
    flex:0 0 auto;
  }
}

/* ── v2.4 mobile category card alignment and larger thumbnail ───────────────
   Keeps the image and text in one clean row while making the card easier to tap.
   CSS-only update for speed/Core Web Vitals. */
.update-list-card{
  align-items:center;
}
.update-list-card .list-content{
  min-width:0;
  align-self:center;
}
.update-list-card .list-thumb{
  align-self:center;
}

@media(max-width:600px){
  .enhanced-post-list{
    gap:16px;
  }
  .update-list-card{
    grid-template-columns:142px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    min-height:118px;
    border-radius:18px;
  }
  .update-list-card .list-thumb{
    width:142px;
    aspect-ratio:16/9;
    margin:12px 0 12px 12px!important;
    border-radius:12px!important;
    align-self:center!important;
  }
  .update-list-card .list-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    border-radius:12px!important;
  }
  .update-list-card .list-content{
    padding:12px 12px 12px 0!important;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-self:center!important;
    min-width:0;
  }
  .update-list-card .list-content h2{
    font-size:16px!important;
    line-height:1.32!important;
    margin:5px 0 8px!important;
  }
  .update-list-card .list-content h2 a{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .card-topline{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    margin-bottom:3px!important;
    overflow:hidden;
    white-space:nowrap;
  }
  .card-topline .date-chip,
  .card-topline .category-chip,
  .card-topline .author-chip,
  .card-topline .read-time-chip{
    font-size:10px!important;
    padding:4px 6px!important;
    flex:0 0 auto;
  }
  .card-topline .category-chip{
    max-width:76px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .card-topline .author-chip{
    max-width:72px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .read-more{
    width:max-content;
    font-size:11.5px!important;
    padding:6px 9px!important;
    margin-top:0;
  }
}

@media(max-width:380px){
  .update-list-card{
    grid-template-columns:128px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .update-list-card .list-thumb{
    width:128px;
    margin-left:10px!important;
  }
  .update-list-card .list-content h2{
    font-size:15px!important;
  }
  .card-topline .date-chip,
  .card-topline .category-chip,
  .card-topline .author-chip,
  .card-topline .read-time-chip{
    font-size:9.5px!important;
    padding:4px 5px!important;
  }
}

/* ── v2.5 mobile category card height balance ───────────────────────────────
   Mobile category/archive cards: keep image and text block inside the same
   visual height. Full 1280x720 image remains visible with object-fit:contain.
   CSS-only, no extra JS, no heavy assets. */
@media(max-width:600px){
  .enhanced-post-list{
    gap:14px!important;
  }
  .update-list-card{
    grid-template-columns:142px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    min-height:0!important;
    padding:0!important;
    border-radius:17px!important;
  }
  .update-list-card .list-thumb{
    width:142px!important;
    height:112px!important;
    aspect-ratio:auto!important;
    margin:10px 0 10px 10px!important;
    border-radius:12px!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    overflow:hidden!important;
  }
  .update-list-card .list-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:12px!important;
    background:#f8fafc!important;
  }
  .update-list-card .list-content{
    height:112px!important;
    max-height:112px!important;
    padding:10px 10px 10px 0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    align-self:center!important;
    overflow:hidden!important;
    min-width:0!important;
  }
  .card-topline{
    display:flex!important;
    align-items:center!important;
    gap:4px!important;
    margin:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    max-height:20px!important;
    flex-wrap:nowrap!important;
  }
  .card-topline .date-chip,
  .card-topline .category-chip,
  .card-topline .author-chip,
  .card-topline .read-time-chip{
    font-size:9.5px!important;
    padding:3px 5px!important;
    height:18px!important;
    line-height:1!important;
    flex:0 0 auto!important;
  }
  .card-topline .category-chip:before{
    width:5px!important;
    height:5px!important;
  }
  .card-topline .date-chip:before,
  .card-topline .author-chip:before,
  .card-topline .read-time-chip:before{
    font-size:9px!important;
  }
  .card-topline .date-chip{max-width:72px;overflow:hidden;text-overflow:ellipsis}
  .card-topline .category-chip{max-width:62px;overflow:hidden;text-overflow:ellipsis}
  .card-topline .author-chip{max-width:58px;overflow:hidden;text-overflow:ellipsis}
  .card-topline .read-time-chip{max-width:64px;overflow:hidden;text-overflow:ellipsis}
  .update-list-card .list-content h2{
    font-size:14.5px!important;
    line-height:1.22!important;
    margin:4px 0!important;
    color:#111827!important;
  }
  .update-list-card .list-content h2 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .update-list-card .list-content p{
    display:none!important;
  }
  .read-more{
    width:max-content!important;
    max-width:100%!important;
    font-size:10.5px!important;
    line-height:1!important;
    padding:5px 8px!important;
    margin:0!important;
    border-radius:999px!important;
  }
}

@media(max-width:380px){
  .update-list-card{
    grid-template-columns:128px minmax(0,1fr)!important;
    gap:9px!important;
  }
  .update-list-card .list-thumb{
    width:128px!important;
    height:104px!important;
    margin:9px 0 9px 9px!important;
  }
  .update-list-card .list-content{
    height:104px!important;
    max-height:104px!important;
    padding:9px 9px 9px 0!important;
  }
  .update-list-card .list-content h2{
    font-size:13.5px!important;
    line-height:1.18!important;
  }
  .card-topline .date-chip,
  .card-topline .category-chip,
  .card-topline .author-chip,
  .card-topline .read-time-chip{
    font-size:8.8px!important;
    padding:3px 4px!important;
    height:17px!important;
  }
  .read-more{
    font-size:10px!important;
    padding:4px 7px!important;
  }
}


/* ── v2.6 category/archive balanced cards fix ───────────────────────────────
   Desktop and mobile archive/category cards now keep the image and text block
   aligned within the same height. The 1280x720 featured image remains fully
   visible with object-fit: contain, while title/meta/button stay compact. */
.archive-main .update-list-card{
  display:grid!important;
  grid-template-columns:320px minmax(0,1fr)!important;
  gap:22px!important;
  align-items:stretch!important;
  padding:16px!important;
  min-height:0!important;
  overflow:hidden!important;
}
.archive-main .update-list-card .list-thumb{
  width:100%!important;
  height:190px!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  margin:0!important;
  border-radius:14px!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  overflow:hidden!important;
}
.archive-main .update-list-card .list-thumb img{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:14px!important;
  background:#f8fafc!important;
}
.archive-main .update-list-card .list-content{
  height:190px!important;
  max-height:190px!important;
  min-width:0!important;
  padding:0!important;
  align-self:center!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  overflow:hidden!important;
}
.archive-main .update-list-card .card-topline{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  margin:0!important;
  max-height:26px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.archive-main .update-list-card .date-chip,
.archive-main .update-list-card .category-chip,
.archive-main .update-list-card .author-chip,
.archive-main .update-list-card .read-time-chip{
  font-size:12px!important;
  height:24px!important;
  padding:5px 9px!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
.archive-main .update-list-card .list-content h2{
  font-size:25px!important;
  line-height:1.22!important;
  margin:6px 0 4px!important;
  color:#111827!important;
}
.archive-main .update-list-card .list-content h2 a{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.archive-main .update-list-card .list-content p{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  font-size:15px!important;
  line-height:1.55!important;
  margin:0!important;
  color:#64748b!important;
}
.archive-main .update-list-card .read-more{
  align-self:flex-start!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:8px 12px!important;
  font-size:13px!important;
  line-height:1!important;
}

@media(max-width:900px){
  .archive-main .update-list-card{
    grid-template-columns:220px minmax(0,1fr)!important;
    gap:16px!important;
    padding:14px!important;
  }
  .archive-main .update-list-card .list-thumb,
  .archive-main .update-list-card .list-content{
    height:150px!important;
    max-height:150px!important;
  }
  .archive-main .update-list-card .list-content h2{
    font-size:20px!important;
    line-height:1.24!important;
  }
  .archive-main .update-list-card .list-content p{
    font-size:14px!important;
    line-height:1.45!important;
  }
}

@media(max-width:600px){
  .archive-main .enhanced-post-list{
    gap:14px!important;
  }
  .archive-main .update-list-card{
    grid-template-columns:136px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px!important;
    border-radius:17px!important;
    align-items:center!important;
  }
  .archive-main .update-list-card .list-thumb{
    width:136px!important;
    height:104px!important;
    margin:0!important;
    border-radius:12px!important;
  }
  .archive-main .update-list-card .list-thumb img{
    border-radius:12px!important;
  }
  .archive-main .update-list-card .list-content{
    height:104px!important;
    max-height:104px!important;
    padding:0!important;
    justify-content:space-between!important;
  }
  .archive-main .update-list-card .card-topline{
    gap:4px!important;
    max-height:18px!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .category-chip,
  .archive-main .update-list-card .author-chip,
  .archive-main .update-list-card .read-time-chip{
    font-size:9px!important;
    height:17px!important;
    padding:3px 4px!important;
  }
  .archive-main .update-list-card .date-chip{max-width:66px;overflow:hidden;text-overflow:ellipsis}
  .archive-main .update-list-card .category-chip{max-width:58px;overflow:hidden;text-overflow:ellipsis}
  .archive-main .update-list-card .author-chip{max-width:54px;overflow:hidden;text-overflow:ellipsis}
  .archive-main .update-list-card .read-time-chip{max-width:58px;overflow:hidden;text-overflow:ellipsis}
  .archive-main .update-list-card .list-content h2{
    font-size:14px!important;
    line-height:1.18!important;
    margin:2px 0!important;
  }
  .archive-main .update-list-card .list-content p{
    display:none!important;
  }
  .archive-main .update-list-card .read-more{
    font-size:10px!important;
    padding:5px 7px!important;
  }
}

@media(max-width:380px){
  .archive-main .update-list-card{
    grid-template-columns:122px minmax(0,1fr)!important;
    gap:8px!important;
    padding:9px!important;
  }
  .archive-main .update-list-card .list-thumb,
  .archive-main .update-list-card .list-content{
    height:96px!important;
    max-height:96px!important;
  }
  .archive-main .update-list-card .list-thumb{
    width:122px!important;
  }
  .archive-main .update-list-card .list-content h2{
    font-size:13px!important;
    line-height:1.16!important;
  }
  .archive-main .update-list-card .read-more{
    font-size:9.5px!important;
    padding:4px 6px!important;
  }
}

/* ── v2.7 mobile archive/category layout reset ──────────────────────────────
   Desktop remains unchanged. Mobile category cards now use a cleaner stacked
   layout: full 16:9 image on top, readable title/meta below, no cramped row. */
@media (max-width: 600px){
  .archive-hero{
    padding:18px 0 20px!important;
  }
  .archive-hero .archive-kicker{
    display:none!important;
  }
  .archive-hero h1{
    font-size:28px!important;
    line-height:1.1!important;
    margin:0 0 10px!important;
    letter-spacing:-.6px!important;
  }
  .archive-hero p{
    font-size:15px!important;
    line-height:1.65!important;
    margin:0!important;
  }
  .archive-layout.category-results-layout{
    padding-top:18px!important;
  }
  .archive-main .enhanced-post-list{
    gap:16px!important;
  }
  .archive-main .update-list-card{
    display:block!important;
    padding:12px!important;
    border-radius:18px!important;
    border:1px solid #dbeafe!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
    overflow:hidden!important;
  }
  .archive-main .update-list-card .list-thumb{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    margin:0 0 12px!important;
    border-radius:14px!important;
    border:1px solid #e2e8f0!important;
    background:#f8fafc!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .archive-main .update-list-card .list-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    border-radius:14px!important;
    background:#f8fafc!important;
  }
  .archive-main .update-list-card .list-content{
    height:auto!important;
    max-height:none!important;
    padding:0!important;
    display:block!important;
    overflow:visible!important;
  }
  .archive-main .update-list-card .card-topline{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    max-height:none!important;
    overflow:visible!important;
    white-space:normal!important;
    margin:0 0 8px!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .category-chip,
  .archive-main .update-list-card .author-chip,
  .archive-main .update-list-card .read-time-chip{
    max-width:none!important;
    height:auto!important;
    min-height:22px!important;
    font-size:10.5px!important;
    line-height:1!important;
    padding:5px 8px!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .archive-main .update-list-card .list-content h2{
    font-size:18px!important;
    line-height:1.3!important;
    margin:0 0 10px!important;
    color:#111827!important;
  }
  .archive-main .update-list-card .list-content h2 a{
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .archive-main .update-list-card .list-content p{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    font-size:13.5px!important;
    line-height:1.55!important;
    margin:0 0 12px!important;
    color:#64748b!important;
  }
  .archive-main .update-list-card .read-more{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:100%!important;
    font-size:12px!important;
    line-height:1!important;
    padding:8px 12px!important;
    margin:0!important;
    border-radius:999px!important;
  }
}

@media (max-width: 380px){
  .archive-main .update-list-card{
    padding:10px!important;
    border-radius:16px!important;
  }
  .archive-main .update-list-card .list-thumb{
    margin-bottom:10px!important;
  }
  .archive-main .update-list-card .list-content h2{
    font-size:16.5px!important;
    line-height:1.28!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .category-chip,
  .archive-main .update-list-card .author-chip,
  .archive-main .update-list-card .read-time-chip{
    font-size:10px!important;
    padding:4px 7px!important;
  }
}

/* ── v2.8 mobile category cards: compact row, title first, meta under title ── */
@media (max-width: 600px){
  .archive-layout.category-results-layout{
    padding-top:14px!important;
  }
  .archive-main .enhanced-post-list{
    gap:14px!important;
  }
  .archive-main .update-list-card{
    display:grid!important;
    grid-template-columns:128px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    padding:10px 12px!important;
    border-radius:18px!important;
    background:#ffffff!important;
    border:1px solid #dbeafe!important;
    box-shadow:0 7px 20px rgba(15,23,42,.055)!important;
    overflow:hidden!important;
  }
  .archive-main .update-list-card .list-thumb{
    width:128px!important;
    height:84px!important;
    aspect-ratio:auto!important;
    margin:0!important;
    border-radius:13px!important;
    border:1px solid #e2e8f0!important;
    background:#f8fafc!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .archive-main .update-list-card .list-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:12px!important;
    background:#f8fafc!important;
  }
  .archive-main .update-list-card .list-content{
    min-width:0!important;
    height:84px!important;
    max-height:84px!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:5px!important;
    overflow:hidden!important;
    position:relative!important;
    padding-right:28px!important;
  }
  .archive-main .update-list-card .list-content h2{
    order:1!important;
    font-size:15.5px!important;
    line-height:1.22!important;
    margin:0!important;
    color:#111827!important;
    letter-spacing:-.15px!important;
  }
  .archive-main .update-list-card .list-content h2 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    color:#111827!important;
  }
  .archive-main .update-list-card .card-topline{
    order:2!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:6px!important;
    margin:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    max-height:18px!important;
  }
  .archive-main .update-list-card .category-chip{
    display:none!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .author-chip,
  .archive-main .update-list-card .read-time-chip{
    display:inline-flex!important;
    align-items:center!important;
    height:auto!important;
    min-height:0!important;
    max-width:none!important;
    border:0!important;
    background:transparent!important;
    padding:0!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:800!important;
    color:#64748b!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .archive-main .update-list-card .author-chip{color:#0f766e!important;max-width:46px!important;}
  .archive-main .update-list-card .read-time-chip{color:#9a3412!important;max-width:58px!important;}
  .archive-main .update-list-card .date-chip{max-width:76px!important;}
  .archive-main .update-list-card .list-content p{
    display:none!important;
  }
  .archive-main .update-list-card .read-more{
    order:3!important;
    position:absolute!important;
    right:0!important;
    bottom:0!important;
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    padding:0!important;
    margin:0!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff7ed!important;
    border:1px solid #fed7aa!important;
    color:#9a3412!important;
    font-size:0!important;
    line-height:1!important;
    box-shadow:none!important;
  }
  .archive-main .update-list-card .read-more span{
    font-size:16px!important;
    line-height:1!important;
    margin:0!important;
  }
  .archive-main .update-list-card .read-more:hover{
    background:#ffedd5!important;
    color:#7c2d12!important;
  }
}

@media (max-width: 380px){
  .archive-main .update-list-card{
    grid-template-columns:116px minmax(0,1fr)!important;
    gap:10px!important;
    padding:9px 10px!important;
  }
  .archive-main .update-list-card .list-thumb{
    width:116px!important;
    height:78px!important;
  }
  .archive-main .update-list-card .list-content{
    height:78px!important;
    max-height:78px!important;
    gap:4px!important;
    padding-right:26px!important;
  }
  .archive-main .update-list-card .list-content h2{
    font-size:14.2px!important;
    line-height:1.18!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .author-chip,
  .archive-main .update-list-card .read-time-chip{
    font-size:9.5px!important;
  }
  .archive-main .update-list-card .date-chip{max-width:62px!important;}
  .archive-main .update-list-card .author-chip{max-width:38px!important;}
  .archive-main .update-list-card .read-time-chip{max-width:46px!important;}
}

/* ── v2.9 homepage/mobile refinement ───────────────────────────────────────
   Bigger homepage quick banners, compact archive meta without read time,
   and homepage latest posts styled like category list cards. CSS-only for speed. */

/* Remove read time from category/archive post lists only */
.archive-main .update-list-card .read-time-chip{
  display:none!important;
}

/* Homepage category banners: more visible and tap-friendly */
.quick-links{
  gap:22px;
}
.quick-card{
  padding:30px 26px 28px!important;
  border-radius:24px!important;
  min-height:150px;
}
.quick-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  font-size:25px;
  box-shadow:0 12px 24px rgba(15,118,110,.16);
}
.quick-card h2,
.quick-card h3,
.quick-card-h2{
  font-size:23px!important;
  line-height:1.16!important;
  margin-bottom:8px!important;
}
.quick-card p{
  font-size:15.5px!important;
  line-height:1.55!important;
}

/* Homepage latest posts: list layout like category cards */
.latest-section .grid{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
}
.latest-section .post-card{
  display:grid!important;
  grid-template-columns:260px minmax(0,1fr)!important;
  gap:20px!important;
  align-items:center!important;
  padding:16px!important;
  border:1px solid #dbeafe!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.055)!important;
  overflow:hidden!important;
}
.latest-section .post-card:hover{
  transform:translateY(-2px);
  border-color:#99f6e4!important;
  box-shadow:0 14px 30px rgba(15,118,110,.10)!important;
}
.latest-section .post-card .thumb-link{
  width:100%!important;
  aspect-ratio:16/9!important;
  border-radius:14px!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}
.latest-section .post-card .thumb-link img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f8fafc!important;
  border-radius:14px!important;
}
.latest-section .post-card-content{
  padding:0!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.latest-section .post-card-content .meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 10px!important;
  font-size:12px!important;
  line-height:1!important;
  color:#64748b!important;
  font-weight:800!important;
}
.latest-section .post-card h3{
  font-size:24px!important;
  line-height:1.24!important;
  margin:0 0 8px!important;
  letter-spacing:-.25px;
}
.latest-section .post-card h3 a{
  color:#111827!important;
}
.latest-section .post-card-content p{
  font-size:15px!important;
  line-height:1.55!important;
  color:#64748b!important;
  margin:0!important;
}
.latest-section .post-card-content .home-card-arrow{
  display:none;
}

@media(max-width:900px){
  .latest-section .post-card{
    grid-template-columns:190px minmax(0,1fr)!important;
    gap:16px!important;
  }
  .latest-section .post-card h3{
    font-size:20px!important;
  }
}

@media(max-width:600px){
  /* Bigger home category banners on mobile */
  .quick-links{
    gap:16px!important;
  }
  .quick-card{
    grid-template-columns:58px minmax(0,1fr)!important;
    column-gap:16px!important;
    min-height:112px!important;
    padding:20px 20px!important;
    border-radius:22px!important;
  }
  .quick-card:before{
    height:5px!important;
  }
  .quick-card:after{
    width:118px!important;
    height:118px!important;
    right:-42px!important;
    bottom:-48px!important;
  }
  .quick-icon{
    width:58px!important;
    height:58px!important;
    border-radius:18px!important;
    font-size:24px!important;
  }
  .quick-card h2,
  .quick-card h3,
  .quick-card-h2{
    font-size:22px!important;
    line-height:1.12!important;
    margin:0 0 5px!important;
  }
  .quick-card p{
    font-size:15px!important;
    line-height:1.45!important;
    color:#334155!important;
  }

  /* Mobile homepage latest post list — compact like category list */
  .latest-section .container{
    width:min(100% - 24px,1120px)!important;
  }
  .latest-section .grid{
    gap:14px!important;
  }
  .latest-section .post-card{
    grid-template-columns:128px minmax(0,1fr)!important;
    gap:12px!important;
    padding:10px 12px!important;
    border-radius:18px!important;
    align-items:center!important;
  }
  .latest-section .post-card .thumb-link{
    width:128px!important;
    height:84px!important;
    aspect-ratio:auto!important;
    border-radius:13px!important;
  }
  .latest-section .post-card .thumb-link img{
    border-radius:12px!important;
  }
  .latest-section .post-card-content{
    height:84px!important;
    max-height:84px!important;
    overflow:hidden!important;
    justify-content:center!important;
    gap:5px!important;
    position:relative!important;
    padding-right:28px!important;
  }
  .latest-section .post-card-content .meta{
    order:2!important;
    flex-wrap:nowrap!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    gap:6px!important;
    margin:0!important;
    font-size:10.5px!important;
    color:#64748b!important;
  }
  .latest-section .post-card h3{
    order:1!important;
    font-size:15.5px!important;
    line-height:1.22!important;
    margin:0!important;
  }
  .latest-section .post-card h3 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .latest-section .post-card-content p{
    display:none!important;
  }
  .latest-section .post-card-content .home-card-arrow{
    display:inline-flex!important;
    position:absolute!important;
    right:0!important;
    bottom:0!important;
    width:24px!important;
    height:24px!important;
    border-radius:999px!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff7ed!important;
    border:1px solid #fed7aa!important;
    color:#9a3412!important;
    font-size:16px!important;
    font-weight:900!important;
    text-decoration:none!important;
  }

  /* Category cards: remove read time and keep meta compact */
  .archive-main .update-list-card .read-time-chip{
    display:none!important;
  }
  .archive-main .update-list-card .card-topline{
    gap:7px!important;
  }
  .archive-main .update-list-card .date-chip,
  .archive-main .update-list-card .author-chip{
    font-size:10.5px!important;
  }
}

@media(max-width:380px){
  .quick-card{
    grid-template-columns:52px minmax(0,1fr)!important;
    padding:17px 16px!important;
    min-height:102px!important;
  }
  .quick-icon{
    width:52px!important;
    height:52px!important;
    font-size:22px!important;
  }
  .quick-card h2,
  .quick-card h3,
  .quick-card-h2{
    font-size:20px!important;
  }
  .quick-card p{
    font-size:14px!important;
  }
  .latest-section .post-card{
    grid-template-columns:116px minmax(0,1fr)!important;
    gap:10px!important;
    padding:9px 10px!important;
  }
  .latest-section .post-card .thumb-link{
    width:116px!important;
    height:78px!important;
  }
  .latest-section .post-card-content{
    height:78px!important;
    max-height:78px!important;
  }
  .latest-section .post-card h3{
    font-size:14.2px!important;
    line-height:1.18!important;
  }
  .latest-section .post-card-content .meta{
    font-size:9.5px!important;
  }
}

/* v3.1 Recent Posts: no dates, proper thumbnails */
.sidebar-post-list{list-style:none;padding:0!important;margin:0!important}
.sidebar-post-list .sidebar-post-item{padding:12px 0;border-bottom:1px solid #eef2f7}
.sidebar-post-list .sidebar-post-item:last-child{border-bottom:0}
.sidebar-post-link{display:grid!important;grid-template-columns:86px minmax(0,1fr);gap:12px;align-items:center;text-decoration:none!important;color:#111827!important}
.sidebar-post-thumb{display:flex;align-items:center;justify-content:center;width:86px;aspect-ratio:16/9;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;overflow:hidden;box-shadow:0 6px 14px rgba(15,23,42,.055)}
.sidebar-post-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#f8fafc;border-radius:0!important;margin:0!important}
.sidebar-post-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;font-weight:900;font-size:22px}
.sidebar-post-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;font-weight:900;line-height:1.3;color:#111827}
.sidebar-post-link:hover .sidebar-post-title{color:#0f766e}
.sidebar-post-list span:not(.sidebar-post-thumb):not(.sidebar-post-placeholder):not(.sidebar-post-title){display:initial;color:inherit;font-size:inherit;margin-top:0}
@media (max-width: 768px){
  .sidebar-post-link{grid-template-columns:92px minmax(0,1fr);gap:10px}
  .sidebar-post-thumb{width:92px;border-radius:12px}
  .sidebar-post-title{font-size:14px;-webkit-line-clamp:2}
}


/* v3.2 Mobile single post meta: keep author/date and read-time in one row */
@media (max-width: 600px){
  .single-card{
    padding:18px 20px!important;
  }
  .single-header .entry-title{
    font-size:34px!important;
    line-height:1.14!important;
    letter-spacing:-.8px!important;
    margin-bottom:18px!important;
  }
  .single-meta-row{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    flex-wrap:nowrap!important;
    padding:12px 0!important;
  }
  .single-meta-row .author-chip{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .single-meta-row .author-avatar{
    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
  }
  .single-meta-row .author-chip > div{
    min-width:0!important;
  }
  .single-meta-row .author-name{
    display:block!important;
    font-size:15px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .single-meta-row .post-date{
    display:block!important;
    font-size:13px!important;
    margin-top:2px!important;
    white-space:nowrap!important;
  }
  .single-meta-row .read-time{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    padding:7px 10px!important;
    font-size:12.5px!important;
    margin:0!important;
  }
}

@media (max-width: 380px){
  .single-header .entry-title{font-size:30px!important;}
  .single-meta-row{gap:7px!important;}
  .single-meta-row .author-avatar{width:36px!important;height:36px!important;flex-basis:36px!important;}
  .single-meta-row .author-name{font-size:14px!important;}
  .single-meta-row .post-date{font-size:12px!important;}
  .single-meta-row .read-time{font-size:11.5px!important;padding:6px 8px!important;}
}


/* ── v3.3 LAYOUT FIX — single post content alignment ───────────────────────
   Fixes: tables breaking out of card on mobile, long URLs not wrapping,
   images inside entry-content overflowing, single post sidebar stacking,
   and inline "Related Update" wp-blocks misaligning the layout.
   CSS-only. No JS. No performance impact. */

/* 1. TABLES: wrap in scroll container so they never overflow the card */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  max-width: 100%;
}

/* But keep table cells themselves wrapping normally */
.entry-content table th,
.entry-content table td {
  white-space: normal;
  min-width: 120px;
}

/* 2. LONG STRINGS: URLs, long words, exam codes — force wrap */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 3. IMAGES INSIDE CONTENT: never wider than container */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* 4. WP EMBED / RELATED UPDATE BLOCKS inside content:
   The "Related Update" and "Also read" boxes use .wp-block-embed or
   inline styles that can overflow. Constrain them. */
.entry-content .wp-block-embed,
.entry-content figure,
.entry-content blockquote {
  max-width: 100%;
  overflow: hidden;
}

/* 5. SINGLE POST FEATURED IMAGE: ensure it stays inside card on all screens */
.single-featured-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  border-radius: 14px !important;
  margin: 16px 0 20px !important;
  background: #f8fafc;
}

/* 6. OL / UL LISTS: don't overflow on mobile */
.entry-content ol,
.entry-content ul {
  padding-left: 22px;
  max-width: 100%;
}

/* 7. PRE / CODE blocks */
.entry-content pre,
.entry-content code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
}

/* 8. SINGLE LAYOUT: make sure sidebar always stacks below on mobile
   (it already does at 900px but adding explicit single-card width safety) */
.single-card {
  min-width: 0;
  max-width: 100%;
}

.single-layout {
  max-width: 100%;
  overflow: hidden;
}

/* 9. HEADING SIZES inside content — keep readable on small screens */
@media (max-width: 600px) {
  .entry-content h2 {
    font-size: 21px !important;
    line-height: 1.25 !important;
    margin-top: 22px !important;
  }
  .entry-content h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
  .entry-content p,
  .entry-content li {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* Table cells: minimum readable size */
  .entry-content table th,
  .entry-content table td {
    font-size: 13px !important;
    padding: 8px !important;
    min-width: 100px !important;
  }

  /* Single card less padding on mobile */
  .single-card {
    padding: 16px !important;
  }

  /* Featured image: rounded corners, full width */
  .single-featured-image {
    border-radius: 12px !important;
    margin: 14px 0 18px !important;
  }
}

@media (max-width: 380px) {
  .entry-content h2 {
    font-size: 19px !important;
  }
  .entry-content h3 {
    font-size: 16px !important;
  }
  .single-card {
    padding: 14px !important;
  }
  .entry-content table th,
  .entry-content table td {
    font-size: 12px !important;
    padding: 7px !important;
    min-width: 90px !important;
  }
}

/* 10. IMPORTANT LINKS section: buttons/links stay on one line */
.entry-content a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 11. SINGLE POST: category badge + title spacing fix */
.single-cat {
  margin-bottom: 10px !important;
}

/* 12. ENTRY CONTENT spacing from featured image */
.single-featured-image + .entry-content,
.entry-content {
  padding-top: 0 !important;
}


/* ── FAQ Accordion — Yoast FAQ Block ────────────────────────────────────────
   Turns the default Yoast FAQ block (.schema-faq) into a clean accordion.
   All FAQs start closed. Click question to open/close. Smooth animation.
   Works on all screen sizes. No jQuery needed — pure vanilla JS in functions.php
   Schema.org structured data from Yoast is preserved — accordion is CSS/JS only.
*/

/* Hide Yoast's default inline styles that show everything open */
.schema-faq.wp-block-yoast-faq-block {
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}

/* Each FAQ item */
.schema-faq-section {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.schema-faq-section:last-child {
  border-bottom: none;
}

/* Question row — make it look clickable */
.schema-faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #003087 !important;
  cursor: pointer !important;
  user-select: none !important;
  background: #fff !important;
  transition: background .15s ease !important;
  box-sizing: border-box !important;
}
.schema-faq-question:hover {
  background: #f0f9ff !important;
}

/* Active/open question */
.schema-faq-section.faq-open .schema-faq-question {
  background: #eff6ff !important;
  color: #003087 !important;
  border-bottom: 1px solid #dbeafe;
}

/* Arrow icon — appended by JS */
.faq-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: transform .25s ease, background .15s ease;
  font-style: normal;
  font-size: 14px;
  color: #003087;
  font-weight: 900;
}
.schema-faq-section.faq-open .faq-arrow {
  transform: rotate(180deg);
  background: #003087;
  color: #fff;
}

/* Answer — hidden by default, smooth slide */
.schema-faq-answer {
  display: block !important;  /* override any Yoast inline display:none */
  overflow: hidden !important;
  max-height: 0 !important;
  padding: 0 20px !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #374151 !important;
  background: #fff !important;
  transition: max-height .35s ease, padding .35s ease !important;
  box-sizing: border-box !important;
}

/* Answer open state */
.schema-faq-section.faq-open .schema-faq-answer {
  max-height: 600px !important;  /* large enough for any answer */
  padding: 14px 20px 18px !important;
}

/* Mobile: slightly tighter */
@media (max-width: 600px) {
  .schema-faq-question {
    font-size: 15px !important;
    padding: 14px 16px !important;
  }
  .schema-faq-answer {
    font-size: 14px !important;
    padding: 0 16px !important;
  }
  .schema-faq-section.faq-open .schema-faq-answer {
    padding: 12px 16px 16px !important;
  }
  .faq-arrow {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}
