/*
Theme Name: GenZ Exams
Theme URI: https://genzexams.com/
Author: GenZ Exams
Description: Lightweight, fast, SEO and AdSense friendly education news / sarkari update theme. Category box homepage, list-style archives, readable article layout, Customizer settings and one-click demo import (3 designs).
Version: 1.0.0
Requires at least: 6.0
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: genzexams
Tags: blog, news, education, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, translation-ready
*/
:root{--gz-primary:#1565d8;--gz-primary-dark:#0d47a1;--gz-accent:#ffd54f;--gz-text:#1f2937;--gz-muted:#6b7280;--gz-bg:#f4f6fa;--gz-card:#fff;--gz-border:#e5e7eb;--gz-radius:8px;--gz-font:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans Devanagari",sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--gz-font);font-size:16px;line-height:1.6;color:var(--gz-text);background:var(--gz-bg);overflow-x:hidden}
a{color:var(--gz-primary);text-decoration:none}a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto;width:auto;height:auto;position:fixed;top:8px;left:8px;z-index:999;background:#fff;padding:8px 12px}
.gz-container{width:100%;max-width:1180px;margin:0 auto;padding:0 16px}
/* Header */
.gz-topbar{background:linear-gradient(90deg,var(--gz-primary-dark),var(--gz-primary));color:#fff;border-bottom:3px solid var(--gz-accent)}
.gz-topbar .gz-container{display:flex;align-items:center;justify-content:center;gap:16px;min-height:76px;position:relative}
.gz-header-left .gz-topbar .gz-container{justify-content:space-between}
.gz-brand{display:flex;align-items:center;gap:12px;color:#fff}.gz-brand:hover{text-decoration:none}
.gz-brand img{max-height:56px;width:auto}
.gz-brand-name{font-size:28px;font-weight:800;line-height:1.1;margin:0;color:#fff}
.gz-brand-tag{font-size:13px;color:var(--gz-accent);margin:2px 0 0}
.gz-social{display:flex;gap:8px;position:absolute;right:16px}
.gz-header-left .gz-social{position:static}
.gz-social a{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:700}
.gz-social a:hover{background:rgba(255,255,255,.32);text-decoration:none}
.gz-social svg{width:16px;height:16px;fill:currentColor}
.gz-nav{background:#fff;border-bottom:1px solid var(--gz-border);box-shadow:0 2px 6px rgba(0,0,0,.04);position:sticky;top:0;z-index:50}
.admin-bar .gz-nav{top:32px}
.gz-nav .gz-container{display:flex;align-items:stretch;justify-content:center}
.gz-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center}
.gz-menu li{position:relative}
.gz-menu>li>a{display:flex;align-items:center;height:56px;padding:0 18px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--gz-text);border-bottom:3px solid transparent}
.gz-menu>li>a:hover,.gz-menu>.current-menu-item>a,.gz-menu>.current-menu-parent>a,.gz-menu>.current-category-ancestor>a{color:var(--gz-primary);background:color-mix(in srgb,var(--gz-primary) 8%,#fff);border-bottom-color:var(--gz-primary);text-decoration:none}
.gz-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:#fff;border:1px solid var(--gz-border);list-style:none;margin:0;padding:6px 0;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.gz-menu li:hover>.sub-menu,.gz-menu li:focus-within>.sub-menu{display:block}
.gz-menu .sub-menu a{display:block;padding:8px 14px;color:var(--gz-text);font-size:14px}
.gz-menu-toggle,.gz-search-toggle{display:none;background:none;border:0;padding:12px;cursor:pointer;color:var(--gz-text);font-size:22px;line-height:1}
.gz-search-wrap{padding:20px 0 4px}
.gz-search{display:flex;max-width:720px;margin:0 auto;background:#fff;border-radius:40px;box-shadow:0 4px 14px rgba(0,0,0,.07);overflow:hidden;border:1px solid var(--gz-border)}
.gz-search input{flex:1;border:0;padding:14px 22px;font-size:16px;font-family:inherit;min-width:0;outline:none;background:transparent}
.gz-search button{border:0;background:var(--gz-primary);color:#fff;padding:0 26px;cursor:pointer;font-size:15px;font-weight:600}
/* Ads */
.gz-ad{margin:20px auto;text-align:center;overflow:hidden;clear:both}
.gz-ad-label{display:block;font-size:11px;color:var(--gz-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}
.gz-ad-desktop{min-height:var(--gz-ad-h,100px)}.gz-ad-mobile{display:none;min-height:var(--gz-ad-hm,100px)}
@media(max-width:767px){.gz-ad-desktop{display:none}.gz-ad-mobile{display:block}}
/* Layout */
.gz-main{padding:20px 0 40px}
.gz-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.gz-no-sidebar .gz-layout{grid-template-columns:minmax(0,1fr)}
.gz-no-sidebar .gz-article{max-width:820px;margin:0 auto}
.gz-box{background:var(--gz-card);border:1px solid var(--gz-border);border-radius:var(--gz-radius);overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.gz-box-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--gz-primary);color:#fff;padding:12px 16px}
.gz-box-title{margin:0;font-size:18px;font-weight:700;color:#fff;display:flex;align-items:center;gap:8px}
.gz-box-head .gz-viewall{background:rgba(255,255,255,.2);color:#fff;font-size:13px;font-weight:600;padding:4px 10px;border-radius:4px;white-space:nowrap}
.gz-box-head .gz-viewall:hover{background:rgba(255,255,255,.32);text-decoration:none}
.gz-breadcrumb{font-size:14px;color:var(--gz-muted);margin:0 0 12px}
.gz-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.gz-breadcrumb li:not(:last-child)::after{content:"›";margin-left:6px;color:var(--gz-muted)}
.gz-breadcrumb a{font-weight:600}
/* Home: boxes */
.gz-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
.gz-list{list-style:none;margin:0;padding:0}
.gz-list li{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid var(--gz-border);font-size:15px;line-height:1.45}
.gz-list li:last-child{border-bottom:0}
.gz-list li::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--gz-primary);margin-top:7px}
.gz-list a{color:var(--gz-text);flex:1}.gz-list a:hover{color:var(--gz-primary)}
.gz-list time{flex:0 0 auto;font-size:12px;color:var(--gz-muted);white-space:nowrap;margin-top:2px}
/* Home: featured/magazine */
.gz-section{margin-top:24px}
.gz-section-title{font-size:20px;margin:0 0 14px;padding-left:12px;border-left:4px solid var(--gz-primary)}
.gz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gz-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gz-card{background:#fff;border:1px solid var(--gz-border);border-radius:var(--gz-radius);overflow:hidden;display:flex;flex-direction:column}
.gz-card-body{padding:12px 14px 14px}
.gz-card-title{font-size:16px;line-height:1.4;margin:6px 0 6px}
.gz-card-title a{color:var(--gz-text)}
.gz-cat{display:inline-block;background:color-mix(in srgb,var(--gz-primary) 12%,#fff);color:var(--gz-primary);font-size:11px;font-weight:700;text-transform:uppercase;padding:3px 8px;border-radius:4px;letter-spacing:.4px}
.gz-meta{font-size:13px;color:var(--gz-muted);display:flex;flex-wrap:wrap;gap:12px}
.gz-thumb{position:relative;aspect-ratio:16/9;background:var(--gz-primary);overflow:hidden;display:block}
.gz-thumb img{width:100%;height:100%;object-fit:cover}
.gz-thumb-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:10px;text-align:center;color:#fff;font-weight:800;font-size:15px;line-height:1.25;background:linear-gradient(135deg,var(--gz-primary-dark),var(--gz-primary))}
.gz-thumb-ph span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Archive rows */
.gz-rows .gz-row{display:flex;gap:16px;padding:16px;border-bottom:1px solid var(--gz-border)}
.gz-rows .gz-row:last-child{border-bottom:0}
.gz-row .gz-thumb{flex:0 0 170px;aspect-ratio:16/10;border-radius:6px}
.gz-row-title{font-size:18px;line-height:1.4;margin:0 0 6px}
.gz-row-title a{color:var(--gz-text)}.gz-row-title a:hover{color:var(--gz-primary)}
.gz-row p{margin:6px 0 0;font-size:14px;color:var(--gz-muted)}
.gz-archive-desc{padding:12px 16px;border-bottom:1px solid var(--gz-border);font-size:14px;color:var(--gz-muted)}
.gz-pagination{padding:16px;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.gz-pagination .page-numbers{min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--gz-border);border-radius:6px;background:#fff;color:var(--gz-text);font-weight:600}
.gz-pagination .current{background:var(--gz-primary);border-color:var(--gz-primary);color:#fff}
/* Sidebar */
.gz-sidebar .widget,.gz-sidebar .gz-box{margin-bottom:20px}
.gz-sidebar .widget{background:#fff;border:1px solid var(--gz-border);border-radius:var(--gz-radius);overflow:hidden}
.gz-sidebar .widget-title,.gz-sidebar .widget h2.wp-block-heading,.gz-sidebar .wp-block-search__label{display:block;margin:0;background:var(--gz-primary);color:#fff;font-size:17px;padding:12px 16px}
.gz-sidebar .widget ul{list-style:none;margin:0;padding:0}
.gz-sidebar .widget li{padding:10px 16px;border-bottom:1px solid var(--gz-border)}
.gz-sidebar .widget li a{color:var(--gz-text)}
.gz-sidebar .widget>*:not(.widget-title):not(ul){padding:12px 16px}
.gz-mini{display:flex;gap:10px;padding:10px 12px;border-bottom:1px solid var(--gz-border);align-items:center}
.gz-mini .gz-thumb{flex:0 0 78px;aspect-ratio:4/3;border-radius:4px}
.gz-mini .gz-thumb-ph{font-size:9px;padding:4px}
.gz-mini a.t{color:var(--gz-text);font-size:14px;font-weight:600;line-height:1.35;display:block}
.gz-mini time{font-size:12px;color:var(--gz-muted)}
.gz-sticky{position:sticky;top:76px}
/* Article */
.gz-article{background:#fff;border:1px solid var(--gz-border);border-radius:var(--gz-radius);padding:24px 26px}
.gz-article h1.gz-title{font-size:32px;line-height:1.25;margin:12px 0 12px}
.gz-article .gz-meta{padding-bottom:14px;border-bottom:1px solid var(--gz-border);margin-bottom:16px}
.gz-article .gz-meta a{color:var(--gz-text);font-weight:700;text-transform:uppercase}
.gz-featured{margin:0 0 18px;border-radius:6px;overflow:hidden}
.gz-content{font-size:18px;line-height:1.75;overflow-wrap:break-word}
.gz-content p{margin:0 0 1.1em}
.gz-content h2{font-size:24px;line-height:1.3;margin:1.6em 0 .6em;padding:8px 12px;background:color-mix(in srgb,var(--gz-primary) 8%,#fff);border-left:4px solid var(--gz-primary);border-radius:0 4px 4px 0}
.gz-content h3{font-size:20px;margin:1.4em 0 .5em;color:var(--gz-primary-dark)}
.gz-content ul,.gz-content ol{padding-left:1.3em;margin:0 0 1.1em}
.gz-content li{margin-bottom:.35em}
.gz-content figure{margin:0 0 1.2em}
.gz-content table{width:100%;border-collapse:collapse;font-size:16px;margin:0}
.gz-content .wp-block-table,.gz-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1.3em}
.gz-content th,.gz-content td{border:1px solid var(--gz-border);padding:10px 12px;text-align:left;vertical-align:top}
.gz-content thead th,.gz-content tr:first-child th{background:var(--gz-primary);color:#fff}
.gz-content tbody tr:nth-child(even){background:#f9fafb}
.gz-content blockquote{margin:0 0 1.2em;padding:12px 16px;border-left:4px solid var(--gz-accent);background:#fffbea}
.gz-content .wp-block-button__link,.gz-btn{display:inline-block;background:var(--gz-primary);color:#fff;padding:10px 18px;border-radius:6px;font-weight:700}
.gz-content .wp-block-button__link:hover{text-decoration:none;opacity:.92}
.alignleft{float:left;margin:0 1em 1em 0}.alignright{float:right;margin:0 0 1em 1em}.aligncenter{margin-left:auto;margin-right:auto}
.gz-toc{border:1px solid var(--gz-border);background:#f9fafb;border-radius:6px;margin:0 0 1.4em;font-size:16px}
.gz-toc summary{cursor:pointer;padding:12px 16px;font-weight:700;list-style:none;display:flex;justify-content:space-between}
.gz-toc summary::after{content:"+";font-size:20px;line-height:1}.gz-toc[open] summary::after{content:"−"}
.gz-toc ol{margin:0;padding:0 16px 14px 34px}.gz-toc li{margin:4px 0}.gz-toc ul{margin:4px 0;padding-left:18px;list-style:circle}
.gz-updated{font-size:13px;color:var(--gz-muted);margin:16px 0 0}
.gz-share{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.gz-share a{padding:8px 14px;border-radius:6px;color:#fff;font-size:14px;font-weight:600}
.gz-share .wa{background:#25d366}.gz-share .tg{background:#229ed9}.gz-share .fb{background:#1877f2}.gz-share .x{background:#111}
.gz-tags{margin-top:16px;display:flex;flex-wrap:wrap;gap:6px}.gz-tags a{font-size:13px;border:1px solid var(--gz-border);padding:3px 10px;border-radius:20px;color:var(--gz-text)}
.gz-author{display:flex;gap:14px;margin-top:24px;padding:16px;border:1px solid var(--gz-border);border-radius:var(--gz-radius);background:#f9fafb}
.gz-author img{border-radius:50%;width:72px;height:72px}
.gz-author h3{margin:0 0 4px;font-size:17px}.gz-author p{margin:0;font-size:14px;color:var(--gz-muted)}
.gz-postnav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.gz-postnav a{display:block;border:1px solid var(--gz-border);border-radius:6px;padding:12px;color:var(--gz-text);font-weight:600;font-size:15px;line-height:1.4}
.gz-postnav small{display:block;color:var(--gz-muted);font-weight:400;margin-bottom:4px}
.gz-postnav .next{text-align:right}
.gz-related{margin-top:24px}
.gz-related .gz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.gz-page-title{font-size:28px;margin:0 0 14px}
/* Comments */
.gz-comments{margin-top:24px}.gz-comments ol{list-style:none;padding:0}.gz-comments .comment-body{border-bottom:1px solid var(--gz-border);padding:12px 0}
.gz-comments textarea,.gz-comments input[type=text],.gz-comments input[type=email],.gz-comments input[type=url]{width:100%;padding:10px;border:1px solid var(--gz-border);border-radius:6px;font:inherit}
.gz-comments .submit{background:var(--gz-primary);color:#fff;border:0;padding:10px 18px;border-radius:6px;font-weight:700;cursor:pointer}
/* 404 */
.gz-404{text-align:center;padding:48px 20px}.gz-404 h1{font-size:72px;margin:0;color:var(--gz-primary)}
/* Footer */
.gz-footer{background:#111827;color:#cbd5e1;margin-top:20px;font-size:14px}
.gz-footer a{color:#e5e7eb}
.gz-footer-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:32px 16px}
.gz-footer .widget-title{color:#fff;font-size:16px;margin:0 0 10px}
.gz-footer ul{list-style:none;margin:0;padding:0}.gz-footer li{margin:6px 0}
.gz-footer-links{border-top:1px solid #1f2937;padding:14px 16px;text-align:center}
.gz-footer-links ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px}
.gz-copy{background:#0b1220;text-align:center;padding:12px 16px;font-size:13px;color:#94a3b8}
.gz-totop{position:fixed;right:16px;bottom:16px;width:42px;height:42px;border-radius:50%;border:0;background:var(--gz-primary);color:#fff;font-size:20px;cursor:pointer;display:none;z-index:60}
.gz-totop.show{display:block}
/* Design: header-left variant flag only via body class */
/* Responsive */
@media(max-width:1024px){.gz-layout{grid-template-columns:minmax(0,1fr) 280px}.gz-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}.gz-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.gz-menu>li>a{padding:0 11px;font-size:12px}}
@media(max-width:900px){
.gz-layout{grid-template-columns:minmax(0,1fr)}
.gz-sticky{position:static}
.gz-menu-toggle,.gz-search-toggle{display:block}
.gz-nav .gz-container{justify-content:space-between;align-items:center}
.gz-menu{display:none;flex-direction:column;width:100%;position:absolute;left:0;top:100%;background:#fff;border-bottom:1px solid var(--gz-border);box-shadow:0 8px 20px rgba(0,0,0,.08)}
.gz-menu.open{display:flex}
.gz-menu>li>a{height:auto;padding:13px 18px;border-bottom:1px solid var(--gz-border)}
.gz-menu .sub-menu{display:block;position:static;box-shadow:none;border:0;padding-left:16px}
.gz-social{display:none}
}
@media(max-width:767px){
body{font-size:16px}
.gz-boxes,.gz-grid,.gz-grid-4,.gz-related .gz-grid,.gz-footer-widgets{grid-template-columns:minmax(0,1fr)}
.gz-brand-name{font-size:21px}.gz-brand img{max-height:44px}
.gz-topbar .gz-container{min-height:64px}
.gz-article{padding:16px}
.gz-article h1.gz-title{font-size:24px}
.gz-content{font-size:17px}.gz-content h2{font-size:21px}.gz-content h3{font-size:18px}
.gz-content table{font-size:14px}
.gz-row .gz-thumb{flex-basis:110px}.gz-row-title{font-size:16px}.gz-row p{display:none}
.gz-rows .gz-row{padding:12px}
.gz-postnav{grid-template-columns:1fr}
.admin-bar .gz-nav{top:0}
}
@media(max-width:380px){.gz-row .gz-thumb{flex-basis:90px}.gz-list time{display:none}}
@media print{.gz-nav,.gz-sidebar,.gz-ad,.gz-footer,.gz-share,.gz-totop{display:none}}
