/*
Theme Name: Sarkari Result Blue
Theme URI: https://example.com/
Author: Custom
Description: Blue Sarkari Result portal theme - coloured category cards, hero with image option, Latest Updates with New/Important badges, Telegram + notification boxes, popular categories, exam calendar and bottom banner. Everything editable from Appearance -> Customize.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sarkari-result-blue
*/

:root{
	--navy:#013781;--nav:#0842b1;--navon:#0267eb;--blue:#0b4fa8;--yellow:#ffc61a;--foot:#042e68;--foot-dark:#03285a;
	--ink:#0f1f3d;--muted:#5b6b86;--border:#dde7f6;--bg:#fafbfe;--radius:10px;
	--shadow:0 2px 10px rgba(11,79,168,.08);--font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:14px;line-height:1.5;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,p{margin:0}
button,input{font-family:inherit}
.container{width:100%;max-width:1240px;margin:0 auto;padding:0 20px}

/* icons: "df"/"ds" = detail colour (white by default, card colour on coloured cards) */
.ic{width:1em;height:1em;flex:none;vertical-align:-.125em;overflow:visible}
.ic .df{fill:var(--ic-d,#fff)}
.ic .ds{fill:none;stroke:var(--ic-d,#fff)}
.cat-card{--ic-d:var(--c)}
.cat-card .btn-sm{--ic-d:#fff}

/* ---------- Header ---------- */
.site-header{background:linear-gradient(180deg,var(--navy),var(--navy));color:#fff;padding:11px 0}
.hdr{display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:14px;flex:none}
.brand-emblem{width:64px;height:64px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;flex:none}
.brand-emblem img{width:100%;height:100%;display:block}
.custom-logo{max-height:64px;width:auto}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-size:35px;font-weight:800;line-height:1.05;letter-spacing:.3px;color:#fff}
.brand-name b{color:var(--yellow);font-weight:800}
.brand-tag{font-size:13px;color:#fff;margin-top:3px;opacity:.95}
.search{display:flex;align-items:center;background:#fff;border-radius:10px;padding:5px 5px 5px 14px;flex:0 1 420px;margin-left:auto;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:13.5px;color:var(--ink);padding:6px 0}
.search input::placeholder{color:#7a889f}
.search button{width:40px;height:34px;border:0;border-radius:8px;background:#0066fd;color:#fff;font-size:17px;display:grid;place-items:center;cursor:pointer;flex:none}
.hdr-icons{display:flex;align-items:center;gap:22px;margin-left:18px;flex:none}
.hdr-ic{background:none;border:0;color:#fff;font-size:26px;cursor:pointer;padding:2px;display:grid;place-items:center}
.hdr-ic:hover{color:var(--yellow)}

/* ---------- Main menu ---------- */
.main-nav{background:var(--nav);position:relative;z-index:30}
.main-nav .menu{display:flex;align-items:center;gap:6px;padding:6px 0}
.main-nav .menu>li{position:relative}
.main-nav .menu>li>a{display:flex;align-items:center;gap:7px;color:#fff;font-size:14.5px;font-weight:500;padding:10px 16px;border-radius:7px;white-space:nowrap}
.main-nav .menu>li>a:hover{background:rgba(255,255,255,.12)}
.main-nav .menu>li.current-menu-item>a,.main-nav .menu>li.current_page_item>a{background:var(--navon)}
.main-nav .menu-item-has-children>a::after{content:"";width:6px;height:6px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg) translateY(-2px);margin-left:2px}
.main-nav .sub-menu{position:absolute;left:0;top:100%;min-width:210px;background:#fff;border-radius:8px;box-shadow:0 10px 26px rgba(1,55,129,.22);padding:6px;display:none;z-index:50}
.main-nav .menu-item-has-children:hover>.sub-menu{display:block}
.main-nav .sub-menu a{display:block;padding:9px 12px;border-radius:6px;color:var(--ink);font-size:13.5px;font-weight:500}
.main-nav .sub-menu a:hover{background:#eaf2ff;color:var(--navon)}

/* ---------- Drawer (hamburger) ---------- */
.drawer{position:fixed;inset:0;z-index:100;visibility:hidden}
.drawer-bg{position:absolute;inset:0;background:rgba(3,20,50,.55);opacity:0;transition:opacity .25s}
.drawer-panel{position:absolute;top:0;right:0;bottom:0;width:300px;max-width:86%;background:var(--navy);color:#fff;padding:60px 18px 24px;transform:translateX(100%);transition:transform .25s;overflow:auto}
.drawer.open{visibility:visible}
.drawer.open .drawer-bg{opacity:1}
.drawer.open .drawer-panel{transform:none}
.drawer-close{position:absolute;top:14px;right:14px;background:none;border:0;color:#fff;font-size:24px;cursor:pointer}
.drawer .menu a{display:block;padding:12px 8px;border-bottom:1px solid rgba(255,255,255,.12);font-weight:500}
.drawer .menu a:hover{color:var(--yellow)}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;background:linear-gradient(90deg,#eef8fd 0,#f1f9fe 60%,#eaf5fd 100%);--hero-h:290px}
.hero-inner{position:relative;z-index:2;min-height:var(--hero-h);display:flex;align-items:center}
.hero-text{padding:24px 0;max-width:640px}
.hero-pill{display:inline-block;padding:4px 14px;border:1px solid #bcd7f7;background:#e3f0ff;color:#0a56c4;border-radius:20px;font-size:14px;font-weight:600;margin-bottom:10px}
.hero-title{font-size:47px;line-height:1.1;font-weight:800;color:var(--blue);letter-spacing:-.3px}
.hero-sub{font-size:31px;line-height:1.2;font-weight:800;color:#051739;margin:2px 0 12px;letter-spacing:-.2px}
.hero-desc{font-size:17px;font-weight:500;line-height:1.55;max-width:560px;color:#12213f}
.hero-feats{display:flex;flex-wrap:wrap;gap:16px 22px;margin-top:22px}
.hero-feats li{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;line-height:1.3;max-width:140px}
.feat-ic{font-size:36px;display:grid;place-items:center;flex:none;--ic-d:#fff}
.hero-art{position:absolute;top:0;right:0;bottom:0;width:min(50%,640px);z-index:1;pointer-events:none}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:right center;display:block;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%);mask-image:linear-gradient(90deg,transparent 0,#000 14%)}
.hero--full .hero-art{width:100%;inset:0}
.hero--full .hero-art img{-webkit-mask-image:none;mask-image:none;object-position:center}
.hero--full::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(238,248,253,.96) 0,rgba(238,248,253,.88) 40%,rgba(238,248,253,0) 72%);z-index:1}

/* ---------- Coloured category cards ---------- */
.cat-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin:24px 0 28px}
.cat-card{background:linear-gradient(145deg,var(--c1),var(--c2));border-radius:var(--radius);padding:18px 14px 16px;text-align:center;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;gap:12px;transition:transform .2s,box-shadow .2s}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.18)}
.cat-link{display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff}
.cat-link .ic{font-size:42px}
.cat-link h3{font-size:15.5px;font-weight:600}
.btn-sm{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:78%;background:#fff;color:var(--c);font-size:12.5px;font-weight:700;padding:7px 10px;border-radius:7px;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.btn-sm:hover{background:#f4f8ff}

/* ---------- Boxes / layout ---------- */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:24px;align-items:start;margin-bottom:30px}
.box{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:22px}
.box.no-mb{margin-bottom:0}
.box-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(90deg,#0e53a6,#1259ae);color:#fff;padding:11px 16px}
.box-head h1,.box-head h2{display:flex;align-items:center;gap:10px;font-size:18.5px;font-weight:700}
.box-head h2 .ic{font-size:22px}
.box-head a{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.empty{color:var(--muted)}
.pad{padding:16px}

/* Latest updates */
.upd-list{padding:4px 14px 8px}
.upd{display:grid;grid-template-columns:84px 100px minmax(0,1fr) 16px;align-items:center;gap:0 6px;padding:9px 0;border-bottom:1px solid #e6edf8}
.upd:last-child{border-bottom:0}
.upd-badge{justify-self:start;text-align:center;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:5px;min-height:20px;min-width:40px}
.upd-badge.is-new{background:#e8334a;color:#fff}
.upd-badge.is-imp{background:#f7c031;color:#3a2a00}
.upd-badge.is-old{background:none}
.upd-date{font-size:12.5px;color:#46546e}
.upd-title{min-width:0;font-size:13.5px;font-weight:500;color:#0c1b38}
.upd-title:hover{color:var(--navon)}
.upd-go{flex:none;color:var(--navon);font-size:13px}

/* Sidebar boxes */
.sidebar{display:flex;flex-direction:column;gap:18px}
.tg-box{background:linear-gradient(135deg,#0a82d6,#0474c0);color:#fff;border-radius:var(--radius);padding:18px;display:grid;grid-template-columns:64px 1fr;gap:6px 14px;align-items:center;box-shadow:0 6px 16px rgba(1,100,190,.25)}
.tg-ic{width:64px;height:64px;border-radius:50%;background:#fff;color:#0a82d6;display:grid;place-items:center;font-size:32px;--ic-d:#fff}
.tg-body h3{font-size:19px;line-height:1.25;font-weight:700}
.tg-body p{font-size:13.5px;line-height:1.45;margin-top:6px;opacity:.97}
.btn-white{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:#0a56c4;font-weight:700;font-size:14px;padding:11px;border-radius:8px;margin-top:10px}
.btn-white:hover{background:#f2f7ff}
.notify{background:#fef1f1;border:1px solid #fcdada;border-radius:var(--radius);padding:18px;display:flex;gap:14px;align-items:flex-start}
.notify-ic{font-size:38px;color:#e5172f;flex:none}
.notify-body h3{font-size:16.5px;font-weight:700;color:#d90f2a}
.notify-body p{font-size:13px;color:#46546e;margin:4px 0 12px;line-height:1.5}
.btn-red{display:inline-flex;align-items:center;gap:8px;background:#e5172f;color:#fff;border:0;border-radius:20px;padding:8px 20px;font-size:13px;font-weight:600;cursor:pointer}
.btn-red:hover{background:#c90f26}
.btn-red .ic{font-size:13px}

/* ---------- Sections ---------- */
.sec{margin-bottom:30px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.sec-head h2{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:var(--blue)}
.sec-ic{font-size:22px;display:grid;place-items:center;color:var(--blue)}
.sec-head a{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--blue)}
.sec-head a:hover{color:var(--navon)}

.pop-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.pop-card{background:var(--bg);border:1px solid var(--bd);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:18px 10px 16px;text-align:center;color:var(--c);--ic-d:var(--bg);box-shadow:0 2px 6px rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s;min-height:148px}
.pop-card:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.1)}
.pop-card>.ic{font-size:40px;margin-bottom:6px}
.pop-card strong{font-size:14.5px;font-weight:700}
.pop-card small{font-size:11px;color:#2a3856;font-weight:500;line-height:1.4}
.pop-card em{font-style:normal;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;margin-top:8px;filter:brightness(.75)}

/* Table */
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:12.8px}
.tbl th{background:var(--blue);color:#fff;text-align:left;font-weight:600;padding:9px 14px;font-size:12.5px;white-space:nowrap}
.tbl td{padding:9px 14px;border-bottom:1px solid #e6edf8;color:#0f1f3d}
.tbl tr:last-child td{border-bottom:0}
.tbl td a:hover{color:var(--navon)}
.pill{display:inline-flex;align-items:center;gap:6px;background:#dbeafe;color:#0a56c4;font-size:12px;font-weight:700;padding:3px 11px;border-radius:14px;--ic-d:#dbeafe}
.pill .ic{font-size:12px}
.pill.st-completed,.pill.st-result-declared{background:#dcfce7;color:#15803d;--ic-d:#dcfce7}
.pill.st-ongoing{background:#fef3c7;color:#b45309;--ic-d:#fef3c7}
.pill.st-postponed{background:#fee2e2;color:#b91c1c;--ic-d:#fee2e2}
.tbl.kv th{width:160px}

/* CTA banner */
.cta{position:relative;display:flex;align-items:center;gap:20px;min-height:104px;padding:14px 34px 14px 31%;border-radius:var(--radius);background:#d9ecfb center/cover no-repeat;margin-bottom:34px;box-shadow:var(--shadow);overflow:hidden}
.cta-text{flex:1;text-align:center}
.cta-text h2{font-size:34px;line-height:1.15;font-weight:800;color:#0a2559;letter-spacing:-.2px}
.cta-text h2 b{color:#0a6cf5;font-weight:800;margin-left:10px}
.cta-text p{font-size:17px;font-weight:700;color:#0b2d6b;margin-top:4px}
.btn-navy{flex:none;display:inline-flex;align-items:center;gap:10px;background:#0b3a78;color:#fff;font-weight:700;font-size:16px;padding:14px 30px;border-radius:30px;box-shadow:0 6px 14px rgba(11,58,120,.35)}
.btn-navy:hover{background:#082f62}
.btn-navy .ic{font-size:16px}

/* ---------- Footer ---------- */
.site-footer{background:var(--foot);color:#fff}
.ft-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;padding-bottom:20px}
.ft-menu{display:flex;flex-wrap:wrap;align-items:center}
.ft-menu li{display:flex;align-items:center}
.ft-menu li+li::before{content:"";width:1px;height:16px;background:rgba(255,255,255,.4);margin:0 18px}
.ft-menu a{font-size:13.5px;font-weight:600;color:#fff}
.ft-menu a:hover{color:var(--yellow)}
.social{display:flex;gap:12px}
.social a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:18px;--ic-d:#fff}
.soc-facebook{background:#1877f2}.soc-twitter{background:#1da1f2}.soc-youtube{background:#ff0000}.soc-send{background:#229ed9}
.social a:hover{transform:translateY(-2px)}
.ft-bottom{background:var(--foot-dark);border-top:1px solid rgba(255,255,255,.1);text-align:center;font-size:12.5px;padding:14px 0 18px}

/* ---------- Inner pages ---------- */
.page-wrap{padding-top:26px;padding-bottom:30px}
.page-title{font-size:26px;font-weight:800;color:var(--blue);margin-bottom:16px}
.article-meta{display:flex;align-items:center;gap:8px;padding:12px 18px;color:var(--muted);font-size:13px;border-bottom:1px solid var(--border)}
.article-meta .upd-cat{background:#e3f0ff;color:#0a56c4;padding:2px 10px;border-radius:12px;font-weight:600;font-size:12px}
.entry{padding:18px;font-size:15px;line-height:1.75}
.entry h2{font-size:19px;color:var(--blue);margin:20px 0 8px}
.entry table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px}
.entry th,.entry td{border:1px solid var(--border);padding:8px 12px;text-align:left}
.entry th{background:#eef5ff}
.entry ul,.entry ol{padding-left:22px;list-style:revert;margin:8px 0}
.entry a{color:var(--navon);text-decoration:underline}
.nav-links{display:flex;gap:8px;justify-content:center;margin:10px 0 20px}
.page-numbers{padding:7px 13px;border:1px solid var(--border);border-radius:7px;background:#fff;font-weight:600}
.page-numbers.current{background:var(--blue);color:#fff;border-color:var(--blue)}
.extras{padding:0}
.extras .box-head{background:linear-gradient(90deg,#0e53a6,#1259ae)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
	.cat-cards{grid-template-columns:repeat(3,1fr)}
	.pop-grid{grid-template-columns:repeat(3,1fr)}
	.layout{grid-template-columns:1fr}
	.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
	.cta{padding-left:26%}
}
@media (max-width:992px){
	.hdr{flex-wrap:wrap;gap:12px}
	.brand{flex:1 1 0;min-width:0}
	.search{order:3;flex:1 1 100%;margin-left:0}
	.hdr-icons{margin-left:auto}
	.main-nav{display:none}
	.main-nav.open{display:block}
	.main-nav .menu{flex-direction:column;align-items:stretch;gap:0;padding:8px 0}
	.main-nav .menu>li>a{padding:12px 10px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.12)}
	.main-nav .sub-menu{position:static;display:none;box-shadow:none;background:rgba(255,255,255,.08);padding:0 0 0 12px}
	.main-nav .sub-menu a{color:#fff}
	.main-nav .menu-item-has-children.sub-open>.sub-menu{display:block}
	.main-nav .menu-item-has-children:hover>.sub-menu{display:none}
	.main-nav .menu-item-has-children.sub-open:hover>.sub-menu{display:block}
	.hero-inner{display:block;min-height:0}
	.hero-text{max-width:none}
	.hero--right .hero-art{position:relative;width:100%;height:220px;inset:auto}
	.hero--right .hero-art img{-webkit-mask-image:none;mask-image:none;object-position:center}
	.hero--full::after{background:rgba(238,248,253,.9)}
	.hero-title{font-size:38px}
	.hero-sub{font-size:24px}
	.cta{padding:20px;flex-direction:column;text-align:center}
	.ft-top{flex-direction:column;align-items:flex-start}
}
@media (max-width:640px){
	.brand-name{font-size:25px}
	.brand-tag{font-size:10.5px;line-height:1.3}
	.brand-emblem{width:48px;height:48px}
	.cat-cards{grid-template-columns:repeat(2,1fr);gap:12px}
	.pop-grid{grid-template-columns:repeat(2,1fr);gap:12px}
	.sidebar{grid-template-columns:1fr}
	.hero-title{font-size:32px}
	.hero-sub{font-size:20px}
	.hero-desc{font-size:15px}
	.hero--right .hero-art{height:180px}
	.upd{grid-template-columns:auto 1fr;gap:4px 10px}
	.upd-title{grid-column:1/-1;grid-row:2}
	.upd-go{display:none}
	.tbl thead{display:none}
	.tbl,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
	.tbl tr{border-bottom:1px solid var(--border);padding:8px 0}
	.tbl td{border:0;padding:4px 14px;display:flex;justify-content:space-between;gap:12px}
	.tbl td::before{content:attr(data-label);font-weight:700;color:var(--blue)}
	.cta-text h2{font-size:26px}
	.cta-text h2 b{display:block;margin:0}
	.ft-menu li+li::before{margin:0 12px}
	.sec-head h2{font-size:19px}
}
