/*
Theme Name: AiPublisher
Theme URI: https://www.keralatv.in
Author: Anish KS
Author URI: https://www.keralatv.in
Description: Fast mobile-first WordPress publisher theme with AI-assisted development support. Built for lightweight news, TV, OTT, and magazine publishing.
Version: 1.4.10.38
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: aipublisher
*/
:root{--am-primary:#d71920;--am-secondary:#111827;--am-accent:#2563eb;--am-bg:#ffffff;--am-text:#111827;--am-muted:#6b7280;--am-border:#e5e7eb;--am-gap:5px;--am-logo-width:220px;--am-mobile-logo-width:160px}.am-dark{--am-bg:#0b1220;--am-text:#f9fafb;--am-muted:#cbd5e1;--am-border:#1f2937}*{box-sizing:border-box}body{margin:0;background:var(--am-bg);color:var(--am-text);font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.am-container{width:min(1180px,calc(100% - 24px));margin:0 auto}.am-topbar{background:var(--am-secondary);color:#fff;font-size:13px;padding:6px 0}.am-site-header{border-bottom:1px solid var(--am-border);background:var(--am-bg)}.am-logo-wrap{display:flex;align-items:center;min-height:72px}.am-logo-align-left{justify-content:flex-start}.am-logo-align-center{justify-content:center}.am-logo-align-right{justify-content:flex-end}.am-logo img,.am-logo .custom-logo{width:var(--am-logo-width)!important;height:auto!important;max-width:100%;object-fit:contain}.am-site-tagline{font-size:13px;color:var(--am-muted);margin-top:2px}.custom-logo-link{display:inline-block;line-height:0}.am-site-title{font-size:28px;font-weight:800}.am-nav{background:var(--am-primary);color:#fff}.am-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}.am-nav li a{display:block;padding:11px 14px;font-weight:600;font-size:14px}.am-ad-slot{margin:12px auto;text-align:center}.am-ad-label{font-size:12px;color:var(--am-muted);margin-bottom:5px}.am-ad-code{overflow:hidden}.am-featured-wrap{margin-top:12px;margin-bottom:var(--am-gap)}.am-featured-grid{display:grid;grid-template-columns:2fr 1.35fr;gap:12px}.am-match-hero .am-featured-grid{align-items:stretch}.am-hero,.am-small-card,.am-post-card{position:relative;border-radius:14px;overflow:hidden;background:#f3f4f6;border:1px solid var(--am-border)}.am-hero,.am-small-card{background:#fff}.am-hero img,.am-small-card img,.am-post-card img{width:100%;height:100%;object-fit:cover}.am-hero{min-height:390px}.am-feature-image{display:block;overflow:hidden;background:#f3f4f6}.am-hero .am-feature-image{height:390px}.am-small-card .am-feature-image{height:189px}.am-feature-content{padding:10px 12px 12px;background:#fff}.am-feature-content .am-meta{margin-top:6px}.am-feature-content .am-card-title{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;color:#111827}.am-hero .am-feature-content .am-card-title{-webkit-line-clamp:3}.am-small-card .am-feature-content .am-card-title{-webkit-line-clamp:2}.am-match-hero .am-hero{height:auto}.am-small-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.am-small-card{min-height:189px}.am-card-overlay{position:absolute;left:0;right:0;bottom:0;padding:14px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff}.am-card-title{font-size:18px;line-height:1.25;margin:0;font-weight:800}.am-hero .am-card-title{font-size:30px}.am-meta{font-size:12px;color:var(--am-muted);display:flex;gap:8px;flex-wrap:wrap}.am-card-overlay .am-meta{color:#e5e7eb}.am-latest{margin-top:var(--am-gap)}.am-section-title{font-size:22px;margin:14px 0 10px;font-weight:800}.am-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.am-post-card img{aspect-ratio:16/9;object-fit:cover}.am-post-body{padding:10px}.am-post-title{font-size:18px;line-height:1.3;margin:0 0 6px;font-weight:800}.am-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;margin-top:18px}.am-main-list .am-list-item{display:grid;grid-template-columns:220px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--am-border)}.am-list-item img{aspect-ratio:16/9;object-fit:cover;border-radius:12px}.am-entry-title{font-size:34px;line-height:1.2;margin:14px 0 6px}.am-entry-content{font-size:18px}.am-entry-content img{border-radius:12px}.am-readmore{font-weight:700;color:var(--am-primary)}.am-share{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.am-share a,.am-gnews-follow{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--am-border);border-radius:999px;padding:7px 11px;font-size:13px;font-weight:700;background:#fff;color:#111827}.am-gnews-follow{background:#e8f0fe;border-color:#d2e3fc;color:#174ea6}.am-share svg{width:16px;height:16px}.am-pagination{display:flex;gap:8px;justify-content:center;margin:24px 0}.am-pagination .page-numbers{padding:8px 12px;border:1px solid var(--am-border);border-radius:8px}.am-pagination .current{background:var(--am-primary);color:#fff;border-color:var(--am-primary)}.am-footer{margin-top:28px;background:var(--am-secondary);color:#fff;padding:26px 0}.am-footer-widgets{display:grid;gap:20px}.am-footer-cols-1{grid-template-columns:1fr}.am-footer-cols-2{grid-template-columns:repeat(2,1fr)}.am-footer-cols-3{grid-template-columns:repeat(3,1fr)}.am-footer-cols-4{grid-template-columns:repeat(4,1fr)}.am-footer-cols-5{grid-template-columns:repeat(5,1fr)}.am-back-top{position:fixed;right:18px;bottom:18px;border:0;border-radius:50%;width:42px;height:42px;background:var(--am-primary);color:#fff;font-weight:900;cursor:pointer}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:820px){:root{--am-logo-width:var(--am-mobile-logo-width)}.am-featured-grid,.am-content-layout{grid-template-columns:1fr}.am-small-grid,.am-post-grid{grid-template-columns:1fr 1fr}.am-hero{min-height:290px}.am-hero .am-feature-image{height:290px}.am-hero .am-card-title{font-size:24px}.am-main-list .am-list-item{grid-template-columns:120px 1fr}.am-entry-title{font-size:28px}.am-nav ul{overflow-x:auto;flex-wrap:nowrap}.am-nav li{flex:0 0 auto}}@media(max-width:520px){.am-post-grid,.am-small-grid{grid-template-columns:1fr}.am-small-card{min-height:210px}.am-small-card .am-feature-image{height:210px}.am-card-title{font-size:17px}.am-hero .am-card-title{font-size:22px}.am-footer-widgets{grid-template-columns:1fr!important}.am-logo-wrap{min-height:62px}}

.am-secondary-nav{background:#fff;color:var(--am-text);border-bottom:1px solid var(--am-border)}.am-secondary-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}.am-secondary-nav li a{display:block;padding:9px 12px;font-weight:600;font-size:13px}.am-secondary-nav li a:hover{color:var(--am-primary)}@media(max-width:820px){.am-secondary-nav ul{overflow-x:auto;flex-wrap:nowrap}.am-secondary-nav li{flex:0 0 auto}}

.am-sidebar .widget{margin-bottom:18px;padding:14px;border:1px solid var(--am-border);border-radius:14px;background:rgba(243,244,246,.45)}.am-sidebar .widget-title{font-size:18px;margin:0 0 10px;font-weight:800}.am-sidebar ul{margin:0;padding-left:18px}.am-sidebar li{margin:7px 0}.am-home-main{margin-top:var(--am-gap)}

.am-empty-section{padding:24px;border:1px dashed #ddd;border-radius:14px;background:#fafafa;color:#666;font-size:15px;}

.am-nav-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}.am-search-toggle{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:999px;width:34px;height:34px;cursor:pointer;font-size:16px;flex:0 0 auto}.am-header-search{padding:10px 0}.am-header-search form{display:flex;gap:8px}.am-header-search input[type="search"]{width:100%;padding:10px;border:1px solid var(--am-border);border-radius:10px}.am-header-search input[type="submit"],.am-header-search button{padding:10px 14px;border:0;border-radius:10px;background:var(--am-primary);color:#fff;font-weight:700}.am-author-box{display:flex;gap:14px;align-items:center;margin:22px 0;padding:16px;border:1px solid var(--am-border);border-radius:16px;background:#fafafa}.am-author-avatar{border-radius:50%;width:72px;height:72px}.am-author-box h3{margin:0 0 4px;font-size:18px}.am-author-box p{margin:0;color:var(--am-muted)}.am-related{margin-top:24px;padding-top:8px;border-top:1px solid var(--am-border)}


.am-topbar ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}.am-topbar li a{display:block;padding:4px 10px;font-weight:600}.am-menu-one{background:var(--am-secondary);color:#fff}.am-menu-two{background:var(--am-primary);color:#fff}.am-grid-cols-2{grid-template-columns:repeat(2,1fr)}.am-grid-cols-3{grid-template-columns:repeat(3,1fr)}.am-grid-cols-4{grid-template-columns:repeat(4,1fr)}.am-latest-layout-large .am-post-card .am-post-body p,.am-latest-layout-mixed .am-post-card:first-child .am-post-body p{color:var(--am-muted);margin:8px 0}.am-latest-layout-mixed .am-post-card:first-child{grid-column:span 2}.am-post-nav{display:flex;justify-content:space-between;gap:14px;margin:22px 0;padding:14px 0;border-top:1px solid var(--am-border);border-bottom:1px solid var(--am-border);font-weight:700}.am-footer-copy{text-align:center;margin-top:20px;color:#d1d5db;font-size:14px}.am-ad-code script{display:initial}@media(max-width:820px){.am-grid-cols-2,.am-grid-cols-3,.am-grid-cols-4{grid-template-columns:1fr 1fr}.am-latest-layout-mixed .am-post-card:first-child{grid-column:auto}}@media(max-width:520px){.am-grid-cols-2,.am-grid-cols-3,.am-grid-cols-4{grid-template-columns:1fr}.am-topbar ul{overflow-x:auto;flex-wrap:nowrap}.am-topbar li{flex:0 0 auto}.am-post-nav{display:block}.am-post-nav span{display:block;margin:8px 0}}


/* v1.4.0 unified story cards: title, meta, image, excerpt, icon-only read more */
.am-story-thumb{display:block;margin:8px 0}
.am-post-card .am-story-thumb img{width:100%;border-radius:12px}
.am-list-item .am-story-thumb{margin:8px 0 10px}
.am-list-item .am-story-thumb img{width:100%;max-width:260px;border-radius:12px}
.am-latest-list-item,.am-main-list .am-list-item{grid-template-columns:1fr}
.am-excerpt{color:var(--am-muted);margin:8px 0 0}
.am-readmore-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-top:8px;border-radius:50%;background:var(--am-primary);color:#fff;font-size:20px;font-weight:900;line-height:1;float:right}
.am-readmore-icon:hover{transform:translateX(2px)}
.am-post-card a:hover .am-readmore-icon,.am-list-item a:hover .am-readmore-icon{opacity:.92}
.am-post-card .am-post-body{display:flex;flex-direction:column}
.am-post-card .am-meta,.am-list-item .am-meta{margin-bottom:2px}
@media(max-width:820px){.am-list-item .am-story-thumb img{max-width:100%}}


/* v1.4.1 fresh build: stronger color tone + logo width application */
body a:hover,.am-post-title a:hover,.am-site-title:hover{color:var(--am-primary)}
.am-nav,.am-menu-two,.am-readmore-icon,.am-pagination .current,.am-back-top,.am-header-search input[type="submit"],.am-header-search button{background:var(--am-primary)!important}
.am-pagination .current{border-color:var(--am-primary)!important}
.am-topbar,.am-menu-one,.am-footer{background:var(--am-secondary)!important}
.am-share a:hover{border-color:var(--am-primary);color:var(--am-primary)}
.am-logo img,.am-logo .custom-logo,.custom-logo-link img{width:var(--am-logo-width)!important;max-width:var(--am-logo-width)!important;height:auto!important}
@media(max-width:820px){.am-logo img,.am-logo .custom-logo,.custom-logo-link img{width:var(--am-mobile-logo-width)!important;max-width:var(--am-mobile-logo-width)!important;height:auto!important}}


/* v1.4.5 pagination + listing/related controls */
.am-header-search[hidden]{display:none!important}
.am-search-toggle{display:inline-flex;align-items:center;justify-content:center}
.am-main-list .am-list-item,.am-latest-list .am-list-item,.am-related-list .am-list-item{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid var(--am-border)}
.am-main-list .am-list-item .am-story-thumb,.am-latest-list .am-list-item .am-story-thumb,.am-related-list .am-list-item .am-story-thumb{margin:0}
.am-main-list .am-list-item .am-story-thumb img,.am-latest-list .am-list-item .am-story-thumb img,.am-related-list .am-list-item .am-story-thumb img{width:100%;max-width:none;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.am-main-list .am-list-item .am-post-body,.am-latest-list .am-list-item .am-post-body,.am-related-list .am-list-item .am-post-body{padding:0;min-width:0}
.am-related-list .am-post-title{font-size:17px}
.am-related-card .am-post-title{font-size:16px}
.am-archive-list .am-post-grid .am-post-card{position:relative}
.am-pagination{clear:both;flex-wrap:wrap}
@media(max-width:640px){.am-main-list .am-list-item,.am-latest-list .am-list-item,.am-related-list .am-list-item{grid-template-columns:120px minmax(0,1fr);gap:12px}.am-main-list .am-list-item .am-post-title,.am-latest-list .am-list-item .am-post-title{font-size:16px}.am-list-item .am-excerpt{font-size:14px}.am-list-item .am-readmore-icon{width:30px;height:30px;font-size:18px}}
@media(max-width:420px){.am-main-list .am-list-item,.am-latest-list .am-list-item,.am-related-list .am-list-item{grid-template-columns:100px minmax(0,1fr)}}


/* v1.4.6 comments support */
.am-comments-area{margin-top:28px;padding-top:18px;border-top:1px solid var(--am-border)}
.am-comments-title,.comment-reply-title{font-size:22px;margin:0 0 14px;font-weight:800}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list .comment{padding:14px 0;border-bottom:1px solid var(--am-border)}
.comment-author{display:flex;align-items:center;gap:10px;font-weight:700}
.comment-author .avatar{border-radius:50%;width:42px;height:42px}
.comment-meta{font-size:12px;color:var(--am-muted);margin:4px 0 8px}
.comment-content{font-size:15px}
.comment-respond{margin-top:20px}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{width:100%;padding:10px;border:1px solid var(--am-border);border-radius:10px}
.comment-form .submit{border:0;border-radius:10px;background:var(--am-primary);color:#fff;padding:10px 16px;font-weight:800;cursor:pointer}
.am-comments-nav{display:flex;justify-content:space-between;gap:12px;margin:14px 0}


/* v1.4.7 meta/link polish */
.am-meta .am-meta-cat a{color:inherit;text-decoration:none;font-weight:600}
.am-meta .am-meta-cat a:hover{color:var(--am-primary)}


/* v1.4.9 logo area background + search placement */
.am-site-header,.am-logo-wrap{background:var(--am-logo-bg,#fff)}
.am-logo-wrap{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center}
.am-logo-align-left .am-logo{justify-self:start}
.am-logo-align-left .am-logo-search-form{justify-self:end}
.am-logo-align-right .am-logo-search-form{justify-self:start}
.am-logo-align-right .am-logo{justify-self:end}
.am-logo-align-center .am-logo-spacer{justify-self:start}
.am-logo-align-center .am-logo{justify-self:center}
.am-logo-align-center .am-logo-search-icon{justify-self:end}
.am-logo-search-form{min-width:260px;max-width:420px;width:100%}
.am-logo-search-form form{display:flex;gap:8px;align-items:center}
.am-logo-search-form input[type="search"]{width:100%;padding:9px 10px;border:1px solid var(--am-border);border-radius:999px;background:#fff}
.am-logo-search-form input[type="submit"],.am-logo-search-form button{border:0;border-radius:999px;padding:9px 13px;color:#fff;font-weight:700;cursor:pointer}
.am-logo-search-icon .am-search-toggle{background:var(--am-primary)!important;color:#fff}
.am-related-mid-ad{grid-column:1/-1;width:100%;margin:4px 0 10px}

/* v1.4.9 mobile menu compact cleanup */
.am-mobile-menu-toggle{display:none}
@media(max-width:820px){
 .am-logo-wrap{grid-template-columns:1fr auto;gap:10px;min-height:64px}
 .am-logo-align-left .am-logo,.am-logo-align-center .am-logo,.am-logo-align-right .am-logo{justify-self:start}
 .am-logo-search-form,.am-logo-align-right .am-logo-search-form{display:none}
 .am-logo-spacer{display:none}
 .am-logo-search-icon{display:block;justify-self:end}
 .am-logo-align-left .am-logo-search-form + .am-logo-search-icon{display:block}
 .am-menu-one .am-container,.am-menu-two .am-nav-inner{overflow-x:auto}
 .am-nav ul{flex-wrap:nowrap}
 .am-nav li{flex:0 0 auto}
}
@media(max-width:520px){
 .am-logo-wrap{grid-template-columns:1fr auto}
 .am-logo-search-form{min-width:0}
}


/* v1.4.10.1 Improved Author Box */
.am-author-box{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:22px;
  margin:28px 0;
  border:1px solid var(--am-border,#e5e7eb);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.98));
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.am-author-avatar{
  flex:0 0 96px;
}
.am-author-avatar img,
.am-author-avatar-img{
  width:96px;
  height:96px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #fff;
  box-shadow:0 6px 18px rgba(15,23,42,.16);
}
.am-author-content{
  flex:1;
  min-width:0;
}
.am-author-label{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--am-primary,#0f172a);
  margin-bottom:4px;
}
.am-author-name{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.25;
}
.am-author-name a{
  color:inherit;
  text-decoration:none;
}
.am-author-bio{
  margin:0 0 14px;
  color:var(--am-muted,#475569);
  line-height:1.7;
}
.am-author-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.am-author-link{
  display:inline-flex;
  align-items:center;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid var(--am-border,#e5e7eb);
  background:#fff;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.am-author-link:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(15,23,42,.08);
}
@media(max-width:640px){
  .am-author-box{
    padding:18px;
    gap:14px;
  }
  .am-author-avatar{
    flex:0 0 72px;
  }
  .am-author-avatar img,
  .am-author-avatar-img{
    width:72px;
    height:72px;
  }
  .am-author-name{
    font-size:19px;
  }
}


/* v1.4.10.2 Single post tags in meta area */
.single .am-meta-tags{
  display:inline-flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
}
.single .am-meta-tags-label{
  font-weight:700;
}
.single .am-meta-tags a{
  text-decoration:none;
}
.single .am-meta-tags a:hover{
  text-decoration:underline;
}


/* v1.4.10.3 Mobile Compact Menu Fix */
.am-mobile-nav-toggle{
  display:none;
}
@media(max-width:820px){
  .am-mobile-nav-toggle{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:44px;
    padding:11px 16px;
    border:0;
    border-radius:0;
    background:var(--am-primary,#111827);
    color:#fff;
    font-weight:800;
    font-size:15px;
    cursor:pointer;
  }

  .am-menu-two .am-mobile-nav-toggle{
    background:var(--am-secondary,#dc2626);
  }

  .am-menu-one .am-container,
  .am-menu-two .am-nav-inner{
    display:none !important;
    width:100%;
    max-width:none;
    padding-left:0;
    padding-right:0;
    overflow:visible !important;
  }

  .am-menu-one.am-mobile-open .am-container,
  .am-menu-two.am-mobile-open .am-nav-inner{
    display:block !important;
  }

  .am-nav ul,
  .am-menu-one ul,
  .am-menu-two ul{
    display:block !important;
    width:100%;
    overflow:visible !important;
    white-space:normal !important;
    margin:0 !important;
    padding:0 !important;
  }

  .am-nav li,
  .am-menu-one li,
  .am-menu-two li{
    display:block !important;
    width:100% !important;
    float:none !important;
    margin:0 !important;
    border-top:1px solid rgba(255,255,255,.12);
  }

  .am-nav a,
  .am-menu-one a,
  .am-menu-two a{
    display:block !important;
    width:100%;
    padding:13px 16px !important;
    line-height:1.35;
    text-align:left;
  }

  .am-nav .sub-menu{
    position:static !important;
    display:block !important;
    box-shadow:none !important;
    background:rgba(0,0,0,.12);
  }

  .am-nav .sub-menu a{
    padding-left:30px !important;
  }
}

/* v1.4.10.4 final theme wrap-up: clean search icon, left mobile labels, archive/tag polish */
.am-logo-search-icon .am-search-toggle,
.am-search-toggle{
  background:transparent !important;
  color:var(--am-text,#111827) !important;
  border:0 !important;
  border-radius:0 !important;
  width:auto;
  height:auto;
  min-width:34px;
  min-height:34px;
  padding:4px;
  box-shadow:none !important;
}
.am-search-toggle:hover{
  color:var(--am-primary,#d71920) !important;
  background:transparent !important;
}
.am-search-svg{width:22px;height:22px;display:block}
.single .am-meta-tags{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center}
.single .am-meta-tags-label{font-weight:700}
.single .am-meta-tags a{text-decoration:none}
.single .am-meta-tags a:hover{text-decoration:underline;color:var(--am-primary,#d71920)}
@media(max-width:820px){
  .am-mobile-nav-toggle{
    justify-content:flex-start !important;
    gap:8px;
    text-align:left;
  }
  .am-menu-one .am-mobile-nav-toggle,
  .am-menu-two .am-mobile-nav-toggle{
    padding-left:16px;
  }
}


/* v1.4.10.7 mobile menu right-button dropdown fix */
@media(max-width:900px){
  .am-menu-one,
  .am-menu-two{
    display:flex !important;
    flex-direction:column;
    align-items:flex-end;
    width:100%;
  }
  .am-menu-one .am-mobile-nav-toggle,
  .am-menu-two .am-mobile-nav-toggle{
    display:inline-flex !important;
    width:auto !important;
    min-width:112px;
    max-width:calc(100% - 16px);
    margin:6px 8px 6px auto !important;
    padding:8px 10px !important;
    justify-content:flex-start !important;
    gap:7px;
    border-radius:4px;
    line-height:1.2;
  }
  .am-menu-one .am-container,
  .am-topbar.am-menu-one .am-container,
  .am-menu-two .am-nav-inner{
    display:none !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  .am-menu-one.am-mobile-open .am-container,
  .am-topbar.am-menu-one.am-mobile-open .am-container,
  .am-menu-two.am-mobile-open .am-nav-inner{
    display:block !important;
  }
  .am-menu-one:not(.am-mobile-open) ul,
  .am-menu-two:not(.am-mobile-open) ul{
    display:none !important;
  }
  .am-menu-one.am-mobile-open ul,
  .am-menu-two.am-mobile-open ul{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    white-space:normal !important;
  }
  .am-menu-one.am-mobile-open li,
  .am-menu-two.am-mobile-open li{
    display:block !important;
    width:100% !important;
    float:none !important;
  }
}


body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.am-site-title,.am-post-title,.am-entry-title,.am-nav,.am-section-title{font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important;}


/* v1.4.10.13 desktop menu toggle hard-hide + mobile dropdown restore */
.am-menu-one > .am-mobile-nav-toggle,
.am-menu-two > .am-mobile-nav-toggle,
.am-mobile-primary-toggle,
.am-mobile-secondary-toggle{
  display:none !important;
}
@media(max-width:900px){
  .am-menu-one > .am-mobile-nav-toggle,
  .am-menu-two > .am-mobile-nav-toggle,
  .am-mobile-primary-toggle,
  .am-mobile-secondary-toggle{
    display:inline-flex !important;
  }
}


/* v1.4.10.14 hard desktop menu-toggle hide */
@media screen and (min-width:901px){nav.am-menu-one>button.am-mobile-nav-toggle,nav.am-menu-two>button.am-mobile-nav-toggle,button.am-mobile-primary-toggle,button.am-mobile-secondary-toggle{display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;position:absolute!important;left:-9999px!important;pointer-events:none!important}nav.am-menu-one>.am-container,nav.am-menu-two>.am-nav-inner{display:block!important;visibility:visible!important;opacity:1!important}}
@media screen and (max-width:900px){nav.am-menu-one>button.am-mobile-nav-toggle,nav.am-menu-two>button.am-mobile-nav-toggle,button.am-mobile-primary-toggle,button.am-mobile-secondary-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:relative!important;left:auto!important;pointer-events:auto!important}}


/* v1.4.10.15 universal publisher table style */
.entry-content table,
.am-entry-content table,
.wp-block-table table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:22px 0;
  font-size:15px;
  line-height:1.45;
  background:#fff;
  color:var(--am-text,#111827);
  border:1px solid var(--am-border,#e5e7eb);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.entry-content table caption,
.am-entry-content table caption,
.wp-block-table table caption{
  caption-side:top;
  text-align:left;
  font-weight:800;
  margin:0 0 8px;
  color:var(--am-text,#111827);
}
.entry-content table th,
.am-entry-content table th,
.wp-block-table table th{
  background:var(--am-primary,#d71920);
  color:#fff;
  font-weight:800;
  text-align:left;
  padding:12px 14px;
  border-right:1px solid rgba(255,255,255,.25);
  vertical-align:middle;
}
.entry-content table th:last-child,
.am-entry-content table th:last-child,
.wp-block-table table th:last-child{border-right:0}
.entry-content table td,
.am-entry-content table td,
.wp-block-table table td{
  padding:11px 14px;
  border-right:1px solid var(--am-border,#e5e7eb);
  border-bottom:1px solid var(--am-border,#e5e7eb);
  vertical-align:middle;
}
.entry-content table td:last-child,
.am-entry-content table td:last-child,
.wp-block-table table td:last-child{border-right:0}
.entry-content table tr:last-child td,
.am-entry-content table tr:last-child td,
.wp-block-table table tr:last-child td{border-bottom:0}
.entry-content table tbody tr:nth-child(even) td,
.am-entry-content table tbody tr:nth-child(even) td,
.wp-block-table table tbody tr:nth-child(even) td{background:#f8fafc}
.entry-content table tbody tr:hover td,
.am-entry-content table tbody tr:hover td,
.wp-block-table table tbody tr:hover td{background:#fff5f5}
.wp-block-table{margin:22px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.wp-block-table table{margin:0}
.wp-block-table figcaption{font-size:13px;color:var(--am-muted,#6b7280);margin-top:8px;text-align:left}


/* v1.4.10.16 all-content tables wrapper: apply same polished style to every table in a post */
.am-entry-content .am-table-scroll,
.entry-content .am-table-scroll,
.wp-block-table{
  width:100%;
  margin:22px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:12px;
}
.am-entry-content .am-table-scroll table,
.entry-content .am-table-scroll table,
.am-entry-content table,
.entry-content table,
.wp-block-table table{
  width:100%;
  min-width:520px;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  color:var(--am-text,#111827);
  border:1px solid var(--am-border,#e5e7eb);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.am-entry-content .am-table-scroll + .am-table-scroll,
.entry-content .am-table-scroll + .am-table-scroll,
.wp-block-table + .wp-block-table{
  margin-top:26px;
}
.am-entry-content table thead th,
.entry-content table thead th,
.wp-block-table table thead th,
.am-entry-content table tr:first-child th,
.entry-content table tr:first-child th,
.wp-block-table table tr:first-child th{
  background:var(--am-primary,#d71920) !important;
  color:#fff !important;
}
.am-entry-content table.is-style-stripes tbody tr:nth-child(odd) td,
.entry-content table.is-style-stripes tbody tr:nth-child(odd) td,
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td{
  background:#fff;
}


/* v1.4.10.18 layout safety fix: stable v1.4.10.16 baseline + mobile inner page/table overflow fixes */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}
.am-container,
.am-content-layout,
.am-main,
.am-sidebar,
.am-entry-content,
.entry-content,
.site-content,
.content-area{
  min-width:0;
  max-width:100%;
}
.am-entry-content *,
.entry-content *{
  max-width:100%;
}
.am-entry-content iframe,
.entry-content iframe,
.am-entry-content embed,
.entry-content embed,
.am-entry-content object,
.entry-content object,
.am-entry-content video,
.entry-content video{
  max-width:100%;
}
.am-entry-content pre,
.entry-content pre{
  max-width:100%;
  overflow-x:auto;
  white-space:pre-wrap;
  word-break:break-word;
}
.am-entry-content code,
.entry-content code{
  word-break:break-word;
}

/* Inner pages should never keep desktop two-column layout on mobile browsers */
@media screen and (max-width:900px){
  .am-container{
    width:calc(100% - 24px) !important;
    max-width:100% !important;
  }
  .am-content-layout{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
  }
  .am-main,
  .am-sidebar{
    width:100% !important;
    max-width:100% !important;
  }
  .am-sidebar{
    margin-top:22px;
  }
  .am-entry-title{
    font-size:28px;
    line-height:1.22;
  }
  .am-entry-content{
    font-size:17px;
  }
}

@media screen and (max-width:560px){
  .am-container{
    width:calc(100% - 18px) !important;
  }
  .am-entry-title{
    font-size:25px;
  }
  .am-entry-content{
    font-size:16px;
  }
  .am-main-list .am-list-item,
  .am-latest-list .am-list-item,
  .am-related-list .am-list-item{
    grid-template-columns:100px minmax(0,1fr) !important;
  }
}

/* Make every normal post table scroll safely on mobile, including raw HTML tables and multiple tables */
.am-entry-content .am-table-scroll,
.entry-content .am-table-scroll,
.wp-block-table{
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
@media screen and (max-width:640px){
  .am-entry-content table,
  .entry-content table,
  .wp-block-table table{
    width:max-content;
    min-width:560px;
    max-width:none !important;
  }
  .am-entry-content > table,
  .entry-content > table{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

/* v1.4.10.29: single table swipe hint only. Gutenberg .wp-block-table and the theme's
   .am-table-scroll wrapper can exist together, so the hint must appear from one source only. */
.am-table-swipe-hint,
.am-entry-content .wp-block-table:before,
.entry-content .wp-block-table:before,
.wp-block-table:before,
.am-entry-content .am-table-scroll:before,
.entry-content .am-table-scroll:before{
  content:none !important;
  display:none !important;
}
@media screen and (max-width:640px){
  .am-entry-content .am-table-scroll:before,
  .entry-content .am-table-scroll:before{
    content:'← Swipe to view full table →' !important;
    display:block !important;
    margin:0 0 8px;
    font-size:12px;
    font-weight:700;
    color:var(--am-muted,#6b7280);
  }
  .am-entry-content .wp-block-table:before,
  .entry-content .wp-block-table:before,
  .wp-block-table:before{
    content:none !important;
    display:none !important;
  }
}
.am-meta-clean{align-items:center;gap:8px;line-height:1.25}
.am-meta-clean > span:not(:last-child)::after{content:'•';margin-left:8px;color:var(--am-muted,#6b7280);font-weight:700}
.am-meta-author-avatar{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}
.am-meta-avatar-img{width:var(--am-meta-avatar-size,20px)!important;height:var(--am-meta-avatar-size,20px)!important;max-width:28px!important;max-height:28px!important;min-width:16px!important;min-height:16px!important;border-radius:50%;object-fit:cover;flex:0 0 auto}
.am-clean-pagination{align-items:center;flex-wrap:wrap}
.am-clean-pagination .page-numbers{font-weight:700;background:#fff}
.am-clean-pagination .prev,.am-clean-pagination .next,.am-clean-pagination .am-page-first{font-weight:800}
.am-clean-pagination .dots{display:none!important}



/* v1.4.10.21: force Customizer author avatar size on index/archive/search cards */
.am-post-card .am-meta .am-meta-avatar-img,
.am-list-item .am-meta .am-meta-avatar-img,
.am-archive-list .am-meta .am-meta-avatar-img,
.am-main-list .am-meta .am-meta-avatar-img,
.search .am-meta .am-meta-avatar-img,
.archive .am-meta .am-meta-avatar-img,
.blog .am-meta .am-meta-avatar-img,
.home .am-meta .am-meta-avatar-img{
  width:var(--am-meta-avatar-size,20px)!important;
  height:var(--am-meta-avatar-size,20px)!important;
  min-width:var(--am-meta-avatar-size,20px)!important;
  min-height:var(--am-meta-avatar-size,20px)!important;
  max-width:var(--am-meta-avatar-size,20px)!important;
  max-height:var(--am-meta-avatar-size,20px)!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  object-fit:cover!important;
  display:inline-block!important;
  flex:0 0 var(--am-meta-avatar-size,20px)!important;
}
.am-post-card .am-meta-author-avatar,
.am-list-item .am-meta-author-avatar,
.am-archive-list .am-meta-author-avatar,
.am-main-list .am-meta-author-avatar{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  line-height:1!important;
}


/* v1.4.10.31: Featured title-below-image mobile visibility fix */
.am-feature-content{display:block;visibility:visible;opacity:1;position:relative;z-index:2}
.am-feature-content .am-card-title,.am-feature-content .am-meta{display:flex;visibility:visible;opacity:1}
.am-feature-content .am-card-title{display:-webkit-box}
@media(max-width:820px){
  .am-hero,.am-small-card{height:auto!important;min-height:0!important;display:block!important;overflow:hidden!important;background:#fff!important}
  .am-hero .am-feature-image,.am-small-card .am-feature-image{display:block!important;overflow:hidden!important;position:relative!important;z-index:1}
  .am-feature-content{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:3!important;height:auto!important;min-height:0!important;padding:10px 12px 12px!important;background:#fff!important;color:#111827!important}
  .am-feature-content .am-card-title{display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:0!important;color:#111827!important}
  .am-hero .am-feature-content .am-card-title{-webkit-line-clamp:3!important;font-size:22px!important;line-height:1.25!important}
  .am-small-card .am-feature-content .am-card-title{-webkit-line-clamp:2!important;font-size:17px!important;line-height:1.25!important}
  .am-feature-content .am-card-title a{color:#111827!important}
  .am-feature-content .am-meta{display:flex!important;visibility:visible!important;opacity:1!important;color:#6b7280!important;margin-top:6px!important;font-size:12px!important}
}


/* v1.4.10.32: premium card date badge + pill open icon */
.am-date-badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;margin:0 0 7px;padding:5px 10px;border-radius:8px;background:#e91e63;color:#fff;font-size:11px;font-weight:800;line-height:1;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.am-feature-content .am-date-badge{margin-bottom:8px}
.am-readmore{display:flex;justify-content:flex-end;align-items:center;margin-top:auto;line-height:1}
.am-readmore-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:58px!important;height:40px!important;margin-top:8px!important;border:2px solid var(--am-primary)!important;border-radius:12px!important;background:#fff!important;color:var(--am-primary)!important;font-size:22px!important;font-weight:900!important;line-height:1!important;float:none!important;box-shadow:0 4px 12px rgba(17,24,39,.08);transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease}
.am-readmore:hover .am-readmore-icon,.am-readmore:focus .am-readmore-icon{background:var(--am-primary)!important;color:#fff!important;transform:translate(2px,-2px)}
.am-list-item .am-readmore{justify-content:flex-start}
@media(max-width:640px){.am-date-badge{font-size:10px;padding:5px 9px;border-radius:7px}.am-readmore-icon{width:52px!important;height:36px!important;font-size:20px!important}}


/* v1.4.10.33: place premium open icon on image, hide duplicate bottom icon, keep date only in badge */
.am-story-thumb,.am-feature-image{position:relative}
.am-story-thumb::after,.am-feature-image::after{
  content:'↗';
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:40px;
  border:2px solid var(--am-accent,#2563eb);
  border-radius:12px;
  background:#fff;
  color:var(--am-accent,#2563eb);
  font-size:22px;
  font-weight:900;
  line-height:1;
  z-index:3;
  box-shadow:0 4px 12px rgba(17,24,39,.10);
  transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease;
  pointer-events:none;
}
.am-story-thumb:hover::after,.am-feature-image:hover::after{background:var(--am-accent,#2563eb);color:#fff;transform:translate(2px,calc(-50% - 2px))}
.am-post-card .am-readmore,.am-list-item .am-readmore,.am-related-card .am-readmore,.am-related-list-item .am-readmore{display:none!important}
@media(max-width:640px){.am-story-thumb::after,.am-feature-image::after{width:52px;height:36px;font-size:20px;right:8px;border-radius:11px}}


/* v1.4.10.34: theme-tone premium image icon + SVG-first image loading */
.am-story-thumb::after,.am-feature-image::after{
  border-color:var(--am-primary,#d71920)!important;
  color:var(--am-primary,#d71920)!important;
  background:#fff!important;
  box-shadow:0 6px 16px rgba(215,25,32,.14)!important;
}
.am-story-thumb:hover::after,.am-feature-image:hover::after{
  background:var(--am-primary,#d71920)!important;
  color:#fff!important;
  border-color:var(--am-primary,#d71920)!important;
}
.am-lazy-img{background:#f3f4f6;transition:opacity .22s ease;opacity:.96}
.am-lazy-img.am-lazy-loaded{opacity:1}


/* v1.4.10.36: real image uses native src; Site Icon stays only as background placeholder */
img.am-lazy-img{
  background-color:#f6f7fb;
  background-position:center;
  background-repeat:no-repeat;
  background-size:64px 64px;
  transition:opacity .28s ease,filter .28s ease;
  opacity:1;
  filter:none;
}
.am-story-thumb img.am-lazy-img,.am-feature-image img.am-lazy-img{
  width:100%;
  height:100%;
  object-fit:cover!important;
}
img.am-lazy-img.am-lazy-loaded{
  background-image:none!important;
}
img.am-placeholder-only{
  object-fit:contain!important;
  padding:11%;
  background:linear-gradient(135deg,rgba(215,25,32,.07),rgba(37,99,235,.06)),#f6f7fb;
  opacity:.72;
}


/* v1.4.10.38: hero expert widget + stronger global Poppins fallback */
.am-hero-expert-area{margin-top:24px;padding:18px;text-align:center;border-top:1px solid var(--am-border);}
.am-hero-expert-area .widget{margin:0;}
.am-hero-expert-area .widget-title{margin:0 0 8px;font-size:18px;font-weight:800;}
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.am-site-title,.am-post-title,.am-entry-title,.am-card-title,.am-nav,.am-section-title{font-family:'Poppins',Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important;}
@media(max-width:520px){.am-hero-expert-area{margin-top:18px;padding:14px 10px;}}

/* v1.4.10.38: Featured hero excerpt area */
.am-hero-excerpt{
    margin-top:12px;
    font-size:15px;
    line-height:1.6;
    color:var(--am-muted);
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
@media(max-width:520px){
    .am-hero-excerpt{font-size:14px;-webkit-line-clamp:4;}
}
