/*
Theme Name: TopKarlo Custom
Theme URI: https://topkarlo.com
Author: Ramnivas KT
Description: Clean, mobile-first educational and government-job portal theme for TopKarlo.com.
Version: 3.3
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: topkarlo
*/

:root{
  --navy:#173b67;
  --navy-dark:#0f2d50;
  --blue:#2563a8;
  --orange:#f36a16;
  --orange-dark:#d95708;
  --green:#168a55;
  --red:#dc3c3c;
  --bg:#f5f7fa;
  --border:#e3e8ef;
  --text:#1e293b;
  --muted:#64748b;
  --white:#fff;
  --shadow:0 3px 14px rgba(15,45,80,.08);
  --radius:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Noto Sans Devanagari",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:var(--text);background:#fff;line-height:1.6}
body.menu-open{overflow:hidden}
a{text-decoration:none;color:inherit}
a:hover{color:var(--orange)}
img{max-width:100%;height:auto;display:block}
ul{list-style:none;margin:0;padding:0}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 18px}
h1,h2,h3,h4{color:var(--navy);margin:0 0 10px}
button,input,textarea,select{font:inherit}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--border);position:relative;z-index:100}
.header-main{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:10px;padding-bottom:10px}
.site-logo{display:flex;align-items:baseline;color:var(--navy);font-weight:800;white-space:nowrap}
.site-logo .logo-top{font-size:1.65rem;line-height:1}
.site-logo .logo-top span{color:var(--orange)}
.site-logo small{font-size:.95rem;font-weight:700;margin-left:1px}
.site-logo img{max-height:48px;width:auto}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.header-social{font-size:.72rem;font-weight:700;color:#fff!important;border-radius:7px;padding:7px 9px;line-height:1;white-space:nowrap}
.header-social.whatsapp{background:#168b57}.header-social.telegram{background:#218bc4}.header-social.instagram{background:#c13f83}.header-social.facebook{background:#315ea8}
.nav-toggle{border:0;background:var(--navy);color:#fff;border-radius:8px;width:40px;height:36px;font-size:1.25rem;line-height:1;cursor:pointer;margin-left:2px}
.desktop-nav{border-top:1px solid #f0f2f5;background:#fff}
.desktop-nav .container{display:flex;align-items:center;min-height:46px}
.nav-menu{display:flex;align-items:center;gap:24px;overflow-x:auto;white-space:nowrap;width:100%;scrollbar-width:none}
.nav-menu::-webkit-scrollbar{display:none}
.nav-menu a{display:block;padding:10px 0;font-size:.9rem;font-weight:600;color:var(--text)}
.nav-menu a:hover{color:var(--orange)}

/* Mobile drawer */
.menu-backdrop{position:fixed;inset:0;background:rgba(8,25,45,.48);z-index:998}
.mobile-drawer{position:fixed;top:0;right:-360px;width:min(350px,88vw);height:100vh;background:#fff;z-index:999;box-shadow:-8px 0 28px rgba(0,0,0,.16);transition:right .22s ease;overflow-y:auto}
.mobile-drawer.is-open{right:0}
.drawer-head{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:var(--navy);color:#fff;position:sticky;top:0;z-index:2}
.drawer-head strong{font-size:1.1rem}
.drawer-close{width:36px;height:36px;border:0;border-radius:7px;background:rgba(255,255,255,.13);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.drawer-body{padding:12px 14px 28px}
.drawer-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800;padding:14px 6px 7px;border-bottom:1px solid var(--border)}
.drawer-pages>li>a,.drawer-submenu>li>a,.drawer-parent summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 8px;border-bottom:1px solid #eef1f5;font-size:.92rem;font-weight:600;color:var(--text);cursor:pointer;list-style:none}
.drawer-pages>li>a:hover,.drawer-submenu>li>a:hover,.drawer-parent summary:hover{background:#f7f9fc;color:var(--orange)}
.drawer-parent summary::-webkit-details-marker{display:none}
.drawer-chevron{font-size:1.2rem;color:var(--muted)}
.drawer-parent details[open]>summary .drawer-chevron{transform:rotate(90deg)}
.drawer-parent .drawer-submenu{padding-left:12px;background:#fafbfc}
.drawer-submenu{padding-left:0}
.drawer-submenu li a{font-weight:500;font-size:.86rem}

/* Home category buttons */
.home-main{background:#fff}
.home-categories{padding:18px 0 10px;background:#fff}
.home-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:760px;margin:0 auto}
.home-category-button{min-height:56px;border:1px solid #dfe6ee;border-left:4px solid var(--orange);background:#fff;border-radius:9px;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;padding:10px 13px;font-size:.92rem;font-weight:700;color:var(--navy);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.home-category-button:hover{transform:translateY(-1px);background:#fff8f3;box-shadow:0 5px 18px rgba(15,45,80,.11);color:var(--navy)}
.home-category-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}
.home-category-arrow{margin-left:auto;font-size:1.35rem;color:var(--orange);line-height:1}

/* Homepage category feeds */
.home-feed-section{padding:20px 0 6px}
.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:2px solid var(--navy);margin-bottom:0}
.section-heading{font-size:1.15rem;margin:0;padding:8px 12px;background:var(--navy);color:#fff;border-radius:7px 7px 0 0}
.section-heading span{color:#fff}
.section-view-all{font-size:.82rem;font-weight:700;color:var(--orange);padding:7px 0}
.home-post-list{border:1px solid var(--border);border-top:0;border-radius:0 0 9px 9px;background:#fff}
.home-list-item{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;align-items:start;padding:10px 13px;border-bottom:1px solid #edf0f4}
.home-list-item:last-child{border-bottom:0}
.home-list-date{font-size:.76rem;color:var(--muted);padding-top:2px;white-space:nowrap}
.home-list-item h3{font-size:.9rem;line-height:1.45;margin:0;font-weight:600;color:var(--text)}
.home-list-item h3 a:hover{color:var(--orange)}
.empty-message{padding:18px;text-align:center;color:var(--muted)}

/* Generic post cards retained for search/index */
.post-section{padding:34px 0 52px}
.section-title{text-align:center;font-size:1.65rem;margin-bottom:5px}
.section-subtitle{text-align:center;color:var(--muted);font-size:.9rem;margin:0 auto 22px;max-width:850px}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.post-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.post-card-media{position:relative;height:170px;background:linear-gradient(135deg,var(--navy),#2c5e95);display:flex;align-items:center;justify-content:center}
.post-card-media img{width:100%;height:100%;object-fit:cover}
.post-card-media .placeholder-icon{font-size:2.4rem;color:#fff}
.post-badge{position:absolute;top:12px;left:12px;color:#fff;font-size:.7rem;font-weight:700;padding:4px 10px;border-radius:20px}
.post-card-body{padding:15px 16px 18px}
.post-card-body h3{font-size:.95rem;line-height:1.45;margin:0}
.post-date{font-size:.76rem;color:var(--muted);margin-bottom:5px}

/* Category archive list */
.archive-section{padding-top:28px}
.archive-title{text-align:left;font-size:1.35rem;margin-bottom:4px}
.archive-description{text-align:left;margin:0 0 16px;max-width:none}
.post-list{border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
.list-item{padding:12px 15px;border-bottom:1px solid #edf0f4}
.list-item:last-child{border-bottom:0}
.list-category{margin-bottom:4px}
.list-badge{display:inline-block;position:static;color:#fff;font-size:.69rem;font-weight:700;padding:3px 9px;border-radius:20px}
.list-item h2{font-size:.95rem;line-height:1.5;margin:0;font-weight:600;color:var(--text)}
.list-item h2 a:hover{color:var(--orange)}
.archive-pagination{display:flex;justify-content:center;gap:20px;margin-top:20px;font-size:.85rem;font-weight:700}

/* Subject landing pages */
.subject-landing{padding:28px 0 55px;background:#fff}
.subject-landing h1{font-size:1.55rem;margin-bottom:8px}
.subject-intro{color:var(--muted);font-size:.9rem;margin-bottom:20px}
.subject-intro p:last-child{margin-bottom:0}
.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.subject-button{min-height:54px;display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid var(--border);border-left:4px solid var(--blue);border-radius:9px;background:#fff;box-shadow:var(--shadow);font-size:.86rem;font-weight:700;color:var(--navy)}
.subject-button:hover{background:#f5f9ff;color:var(--navy);transform:translateY(-1px)}
.subject-button-icon{font-size:1.05rem}.subject-arrow{margin-left:auto;color:var(--blue);font-size:1.3rem}

/* Header strip / pages */
.page-header-strip{background:var(--bg);border-bottom:1px solid var(--border);padding:12px 0}
.breadcrumb{font-size:.78rem;color:var(--muted)}
.breadcrumb a{color:var(--navy);font-weight:600}
.page-wrap{max-width:900px;margin:0 auto;padding:30px 18px 55px}
.page-wrap h1{font-size:1.55rem;margin-bottom:16px}
.single-content{font-size:1rem;line-height:1.8}
.single-content h2,.single-content h3{margin-top:28px}
.single-content img{border-radius:8px;margin:15px 0}
.single-content table{width:100%;border-collapse:collapse;margin:18px 0}
.single-content th,.single-content td{border:1px solid var(--border);padding:8px 10px}

/* Single post */
.single-wrap{max-width:850px;margin:0 auto;padding:30px 18px 55px}
.single-badge{display:inline-block;color:#fff;font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:20px;margin-bottom:10px}
.single-title{font-size:1.7rem;line-height:1.4;margin-bottom:8px}
.single-meta{font-size:.8rem;color:var(--muted);margin-bottom:20px}
.single-thumb{border-radius:9px;overflow:hidden;margin-bottom:24px}
.post-nav{display:flex;justify-content:space-between;gap:15px;margin-top:34px;padding-top:20px;border-top:1px solid var(--border);font-size:.85rem;font-weight:700}
.post-nav>div{max-width:48%}

/* Footer */
.site-footer{margin-top:20px;background:var(--navy-dark);color:#cbd7e8;padding:35px 0 0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:25px;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-grid h4{color:#fff;font-size:.92rem;margin-bottom:12px}.footer-grid p,.footer-grid li{font-size:.8rem}.footer-grid li{margin-bottom:7px}.footer-grid a:hover{color:#fff}
.footer-logo{font-size:1.3rem;font-weight:800;color:#fff}.footer-logo span{color:var(--orange)}
.footer-social a{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:rgba(255,255,255,.1);border-radius:50%;margin:10px 7px 0 0;color:#fff}
.footer-bottom{text-align:center;padding:16px 0;font-size:.75rem;color:#91a2ba}

/* Badge colors */
.badge-govt{background:#2563a8}.badge-result{background:#168a55}.badge-admit{background:#f36a16}.badge-answer{background:#9333ea}.badge-update{background:#d95708}.badge-study{background:#0d8ba8}

/* Search / widgets */
.widget{margin-bottom:25px}.widget h3{font-size:1rem;margin-bottom:10px}

@media (max-width:900px){
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .desktop-nav{display:none}
}
@media (min-width:901px){.nav-toggle{display:none}}
@media (max-width:600px){
  .container{padding-left:13px;padding-right:13px}
  .header-main{min-height:66px;padding-top:8px;padding-bottom:8px}
  .site-logo .logo-top{font-size:1.38rem}.site-logo small{font-size:.78rem}
  .header-actions{gap:5px}.header-social{font-size:.63rem;padding:6px 7px}.header-social.facebook,.header-social.instagram{display:none}
  .home-categories{padding:13px 0 8px}.home-category-grid{gap:8px}.home-category-button{min-height:51px;padding:8px 9px;font-size:.78rem;border-left-width:3px}.home-category-icon{font-size:.95rem;width:22px;height:22px}.home-category-arrow{font-size:1.15rem}
  .home-feed-section{padding:14px 0 3px}.section-heading{font-size:.95rem;padding:7px 9px}.section-view-all{font-size:.72rem}
  .home-list-item{grid-template-columns:76px minmax(0,1fr);gap:8px;padding:9px 10px}.home-list-date{font-size:.66rem}.home-list-item h3{font-size:.77rem;line-height:1.4}
  .post-section{padding:25px 0 42px}.section-title{font-size:1.35rem}.post-grid{grid-template-columns:1fr}
  .archive-title{font-size:1.15rem}.list-item{padding:10px 11px}.list-item h2{font-size:.82rem}.list-badge{font-size:.62rem;padding:3px 8px}.post-date{font-size:.68rem}
  .subject-landing{padding:22px 0 45px}.subject-landing h1{font-size:1.3rem}.subject-intro{font-size:.83rem}.subject-grid{grid-template-columns:1fr;gap:8px}.subject-button{min-height:50px;font-size:.78rem;padding:8px 10px}
  .page-wrap{padding:24px 13px 45px}.page-wrap h1{font-size:1.3rem}.single-title{font-size:1.35rem}.single-content{font-size:.94rem}
  .footer-grid{grid-template-columns:1fr;gap:18px}.site-footer{padding-top:28px}
}

/* ===== TopKarlo V2.1: cleaner homepage feeds + mobile drawer ===== */
.home-feed-section{padding:22px 0 10px}
.home-feed-section .container{max-width:1120px}
.home-main > .home-feed-section{display:inline-block;vertical-align:top;width:50%;margin-right:-4px}
.home-main > .home-feed-section:nth-of-type(2){padding-right:7px;padding-left:0}
.home-main > .home-feed-section:nth-of-type(3){padding-left:7px;padding-right:0}
.section-heading-row{border:0;margin:0 0 0;display:block}
.section-heading{display:block;width:100%;text-align:left;background:var(--navy);border-radius:8px 8px 0 0;padding:10px 14px;font-size:1.05rem;line-height:1.3;position:relative}
.section-heading:after{content:"";position:absolute;left:14px;bottom:-3px;width:42px;height:3px;background:var(--orange);border-radius:3px}
.home-post-list{border:0;border-radius:0 0 8px 8px;box-shadow:var(--shadow);overflow:hidden}
.home-list-item{display:block;position:relative;padding:10px 13px 10px 27px;min-height:62px;background:#fff;border-bottom:1px solid #edf0f4}
.home-list-item:before{content:"";position:absolute;left:12px;top:18px;width:6px;height:6px;border-radius:50%;background:var(--orange)}
.home-list-item:last-child{border-bottom:0}
.home-list-date{font-size:.72rem;color:var(--muted);padding:0;margin:0 0 1px;line-height:1.35;white-space:normal}
.home-list-item h3{font-size:.91rem;line-height:1.42;margin:0;font-weight:650;color:var(--navy)}
.home-list-item h3 a{display:block}
.home-list-item h3 a:hover{color:var(--orange)}
.section-more-wrap{text-align:center;padding:11px 0 2px}
.section-view-more{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:170px;padding:8px 14px;border:1px solid var(--orange);border-radius:7px;background:#fff;color:var(--orange);font-size:.82rem;font-weight:700;transition:.15s ease}
.section-view-more:hover{background:var(--orange);color:#fff}

/* Drawer: clear pillar/accordion navigation */
.mobile-drawer{width:min(370px,92vw);background:#f8fafc}
.drawer-head{height:66px;background:var(--navy-dark);padding:0 16px}
.drawer-head strong{font-size:1.15rem}
.drawer-body{padding:10px 12px 30px}
.drawer-title{font-size:.76rem;color:var(--navy);background:#eaf0f7;border:1px solid #dce5ef;border-radius:7px;padding:8px 11px;margin:10px 0 5px;text-transform:none;letter-spacing:0}
.drawer-pages,.drawer-submenu{background:#fff;border:1px solid #e1e7ef;border-radius:8px;overflow:hidden}
.drawer-pages>li>a,.drawer-submenu>li>a,.drawer-parent summary{padding:12px 12px;font-size:.92rem;min-height:46px;background:#fff}
.drawer-pages>li>a:before,.drawer-submenu>li>a:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--orange);display:inline-block;margin-right:8px;flex:0 0 auto}
.drawer-pages>li>a{justify-content:flex-start}
.drawer-submenu>li>a{justify-content:flex-start}
.drawer-parent summary{border-left:3px solid var(--blue);font-weight:700}
.drawer-parent .drawer-submenu{margin:0 8px 8px;border-radius:6px;border-color:#e7ebf0;background:#fafbfc}
.drawer-submenu li a{font-size:.86rem;padding:10px 12px}
.drawer-chevron{font-size:1.3rem;color:var(--orange);transition:transform .15s ease}
.drawer-parent details[open]>summary{background:#f3f7fb;color:var(--navy)}
.drawer-parent details[open]>summary .drawer-chevron{transform:rotate(90deg)}

/* Social row below logo: spacious and readable on phones */
.header-main{flex-wrap:wrap}
.header-actions{margin-left:auto}
@media (max-width:600px){
  .header-main{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
  .site-logo{min-width:0}
  .header-actions{margin:0;gap:5px}
  .header-social{display:none!important}
  .nav-toggle{width:42px;height:38px}
  .home-main > .home-feed-section{display:block;width:100%;margin:0;padding:16px 0 4px}
  .home-main > .home-feed-section:nth-of-type(2),.home-main > .home-feed-section:nth-of-type(3){padding-left:0;padding-right:0}
  .section-heading{font-size:1rem;padding:9px 12px}
  .home-list-item{padding:10px 11px 10px 27px;min-height:0}
  .home-list-item:before{left:12px;top:17px;width:6px;height:6px}
  .home-list-date{font-size:.72rem}
  .home-list-item h3{font-size:.86rem;line-height:1.45}
  .section-more-wrap{padding:10px 0 1px}
  .section-view-more{width:100%;max-width:260px;padding:8px 12px;font-size:.8rem}
}

.mobile-social-row{display:none}
@media (max-width:600px){
  .mobile-social-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px 13px 9px;background:#fff;border-top:1px solid #f0f2f5}
  .mobile-social{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:38px;border-radius:7px;color:#fff!important;font-size:.66rem;font-weight:700;line-height:1.1;padding:5px 2px}
  .mobile-social span{font-size:.55rem;font-weight:500;opacity:.9;margin-top:2px}
  .mobile-social.whatsapp{background:#168b57}.mobile-social.telegram{background:#218bc4}.mobile-social.instagram{background:#c13f83}.mobile-social.facebook{background:#315ea8}
}


/* ===== TopKarlo V2.2: final homepage feed + subject share placement ===== */
.home-main > .home-feed-section{display:inline-block;vertical-align:top;width:50%;margin-right:-4px;padding:20px 7px 8px}
.home-main > .home-feed-section:nth-of-type(2){padding-left:0;padding-right:7px}
.home-main > .home-feed-section:nth-of-type(3){padding-left:7px;padding-right:0}
.home-feed-section .container{max-width:none;padding-left:0;padding-right:0}
.section-heading{background:#b40000;color:#fff;border-radius:0;padding:10px 14px;text-align:center;font-size:1.15rem;font-weight:800}
.section-heading span{color:#fff}
.section-heading:after{display:none}
.home-post-list{border:1px solid #b40000;border-top:0;border-radius:0;background:#fff;box-shadow:none}
.home-list-item{display:flex;align-items:flex-start;gap:7px;position:relative;padding:9px 10px 9px 10px;min-height:0;background:#fff;border-bottom:0}
.home-list-item:before{display:none}
.home-list-bullet{flex:0 0 auto;font-size:1.1rem;line-height:1.35;color:#111;font-weight:900}
.home-list-content{min-width:0;flex:1}
.home-list-item h3{font-size:.9rem;line-height:1.35;margin:0;font-weight:700;color:#0d2f8f}
.home-list-item h3 a{color:#0d2f8f;text-decoration:none;display:inline}
.home-list-item h3 a:hover{text-decoration:underline;color:#0d2f8f}
.section-more-wrap{padding:12px 0 2px;text-align:center}
.section-view-more{background:#b40000;color:#fff;border:0;border-radius:4px;min-width:150px;padding:8px 13px;font-size:.82rem}
.section-view-more:hover{background:#8f0000;color:#fff}

/* Jetpack/Share buttons: keep sharing below the subject/page content. */
.subject-intro .sharedaddy{order:99}
.subject-intro{display:flex;flex-direction:column}
.subject-intro > *{order:1}
.subject-intro > .sharedaddy{order:99}
.subject-intro .sd-sharing-enabled{order:99}

@media (max-width:600px){
  .home-main > .home-feed-section{display:block;width:100%;margin:0;padding:14px 13px 4px}
  .home-main > .home-feed-section:nth-of-type(2),
  .home-main > .home-feed-section:nth-of-type(3){padding-left:13px;padding-right:13px}
  .home-feed-section .container{padding-left:0;padding-right:0}
  .section-heading{font-size:1rem;padding:9px 10px}
  .home-list-item{padding:8px 9px}
  .home-list-item h3{font-size:.84rem;line-height:1.4}
  .home-list-bullet{font-size:1rem}
}


/* ===== TopKarlo Custom V3.1: homepage feed columns ===== */
.home-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;column-gap:14px}
.home-main > .home-categories{grid-column:1 / -1}
.home-main > .home-feed-section{min-width:0}
.home-main > .home-feed-section{border:1px solid #222;border-radius:7px;overflow:hidden}

@media (min-width:601px){
  .home-main > .home-feed-section{padding-top:10px}
  .home-feed-section .container{max-width:none;padding-left:0;padding-right:0}
}

@media (max-width:600px){
  .home-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:8px;align-items:start}
  .home-main > .home-categories{grid-column:1 / -1}
  .home-main > .home-feed-section{width:auto;min-width:0;margin:0;padding:0 0 10px}
  .home-main > .home-feed-section:nth-of-type(2){grid-column:1}
  .home-main > .home-feed-section:nth-of-type(3){grid-column:2}
  .home-feed-section .container{width:100%;max-width:none;padding:0}
  .home-feed-section .section-heading-row{display:none}
  .home-feed-section .home-post-list{border:1px solid var(--border);border-top:0;border-radius:0 0 8px 8px;box-shadow:var(--shadow);overflow:hidden}
  .home-feed-section .home-list-item{display:flex;align-items:flex-start;gap:4px;padding:9px 6px;min-height:0;border-bottom:1px solid #edf0f4}
  .home-feed-section .home-list-bullet{flex:0 0 auto;font-size:.85rem;line-height:1.35}
  .home-feed-section .home-list-content{min-width:0;flex:1}
  .home-feed-section .home-list-item h3{font-size:.72rem;line-height:1.38;font-weight:700;margin:0}
  .home-feed-section .section-more-wrap{padding:8px 2px 0}
  .home-feed-section .section-view-more{display:flex;width:100%;min-width:0;box-sizing:border-box;justify-content:center;padding:7px 4px;font-size:.65rem;line-height:1.2;border:1px solid var(--orange);border-radius:6px;background:#fff;color:var(--orange)}
}


/* ===== TopKarlo Custom V3.3: thin black feed boxes ===== */
@media (max-width:600px){
  /* Mobile: only the four primary navigation cards stay above the feeds. */
  .home-category-grid .home-category-button:nth-child(5),
  .home-category-grid .home-category-button:nth-child(6){
    display:none !important;
  }

  /* Current Affairs and Government Job are the two feed columns themselves. */
  .home-main{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    column-gap:8px !important;
    align-items:start !important;
  }
  .home-main > .home-categories{
    grid-column:1 / -1 !important;
  }
  .home-main > .home-feed-section{
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 0 10px !important;
  }
  .home-main > .home-feed-section:nth-of-type(2){
    grid-column:1 !important;
  }
  .home-main > .home-feed-section:nth-of-type(3){
    grid-column:2 !important;
  }
  .home-feed-section .container{
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .home-feed-section .section-heading-row{
    display:block !important;
  }
  .home-feed-section .section-heading{
    font-size:.9rem !important;
    line-height:1.2 !important;
    padding:9px 7px !important;
    text-align:center !important;
    border-radius:7px 7px 0 0 !important;
  }
  .home-feed-section .home-post-list{
    border:0 !important;
    border-top:0 !important;
    border-radius:0 0 7px 7px !important;
    box-shadow:var(--shadow) !important;
    overflow:hidden !important;
  }
  .home-feed-section .home-list-item{
    display:flex !important;
    gap:4px !important;
    padding:9px 6px !important;
    min-height:0 !important;
    border-bottom:1px solid #edf0f4 !important;
  }
  .home-feed-section .home-list-bullet{
    flex:0 0 auto !important;
    font-size:.85rem !important;
    line-height:1.35 !important;
  }
  .home-feed-section .home-list-content{
    min-width:0 !important;
    flex:1 !important;
  }
  .home-feed-section .home-list-item h3{
    font-size:.72rem !important;
    line-height:1.38 !important;
    font-weight:700 !important;
    margin:0 !important;
  }
  .home-feed-section .section-more-wrap{
    padding:8px 2px 0 !important;
  }
  .home-feed-section .section-view-more{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    padding:7px 4px !important;
    font-size:.65rem !important;
    line-height:1.2 !important;
    border:1px solid var(--orange) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--orange) !important;
  }
}
