/*
Theme Name: Sarkari Result Dynamic
Theme URI: https://example.com/
Author: Custom
Description: Dynamic Sarkari Result-style WordPress theme.
Version: 1.0
Requires at least: 6.0
*/

*{box-sizing:border-box}
body{margin:0;background:#f2f2f2;color:#222;font-family:Arial,sans-serif}
a{color:#0033cc}
.site-header{background:#8b0000;color:#fff;padding:15px 25px;display:flex;align-items:center;gap:20px}
.site-logo{width:85px;height:85px;object-fit:contain;background:#fff;border-radius:50%;padding:5px}
.header-text{flex:1;text-align:center}
.header-text h1{margin:0 0 7px;font-size:36px}
.header-text p{margin:0}
.main-nav{background:#000;display:flex;justify-content:center;flex-wrap:wrap}
.main-nav a{color:#fff;text-decoration:none;padding:13px 18px;border-right:1px solid #444}
.main-nav a:hover{background:#8b0000}
.container{width:95%;max-width:1200px;margin:20px auto}
.ticker{background:#ffeb3b;padding:10px;margin-bottom:20px;font-weight:bold;overflow:hidden}
.ticker a{color:#000}
.home-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.section-box,.single-post,.category-page,.sidebar-box{background:#fff;border:1px solid #ddd;border-radius:5px;overflow:hidden}
.section-title,.post-title-bar{background:#8b0000;color:#fff;padding:12px 15px;text-align:center;margin:0}
.section-list{list-style:none;padding:10px 15px;margin:0}
.section-list li{border-bottom:1px solid #ddd;padding:9px 0}
.section-list li:last-child{border-bottom:0}
.section-list a{text-decoration:none;font-weight:bold}
.view-all{text-align:right;padding:10px 15px;background:#fafafa}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.breadcrumb{background:#fff;border:1px solid #ddd;padding:12px 15px;margin-bottom:15px;font-size:14px}
.single-post,.category-page{padding:20px}
.post-title-bar{margin:-20px -20px 15px;font-size:27px}
.post-meta{font-size:13px;color:#777;margin-bottom:20px}
.post-content{line-height:1.8;font-size:16px}
.post-content h2{background:#8b0000;color:#fff;padding:10px 15px;font-size:21px}
.post-content h3{color:#8b0000;border-bottom:2px solid #8b0000;padding-bottom:6px}
.post-content table{width:100%;border-collapse:collapse;margin:15px 0}
.post-content th,.post-content td{border:1px solid #ddd;padding:10px}
.post-content th{background:#f2f2f2}
.post-content img{max-width:100%;height:auto}
.category-title{margin:0 0 15px;color:#8b0000}
.archive-item{padding:15px 0;border-bottom:1px solid #ddd}
.archive-item:last-child{border-bottom:0}
.archive-item h2{margin:0 0 7px;font-size:20px}
.archive-item h2 a{text-decoration:none}
.archive-item .meta{font-size:13px;color:#777}
.pagination{text-align:center;margin-top:20px}
.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid #ddd;margin:2px;text-decoration:none}
.pagination .current{background:#8b0000;color:#fff}
.sidebar-box{margin-bottom:20px}
.sidebar-box h3{background:#8b0000;color:#fff;margin:0;padding:11px;text-align:center;font-size:19px}
.sidebar-box ul{list-style:none;padding:10px 15px;margin:0}
.sidebar-box li{padding:8px 0;border-bottom:1px solid #ddd}
.site-footer{background:#000;color:#fff;text-align:center;padding:25px;margin-top:30px}
@media(max-width:768px){
 .site-header{flex-direction:column;text-align:center}
 .header-text h1{font-size:28px}
 .home-grid{grid-template-columns:1fr}
 .layout{grid-template-columns:1fr}
 .sidebar{order:2}
 .main-nav a{padding:10px 12px;font-size:14px}
 .post-title-bar{font-size:22px}
}

/* Category archive */
.category-page{padding:0}
.category-header{background:#8b0000;color:#fff;padding:18px 20px;text-align:center}
.category-header h1{margin:0;font-size:28px}
.category-description{margin-top:8px;font-size:14px;line-height:1.5}
.post-list{background:#fff}
.category-post{padding:17px 20px;border-bottom:1px solid #ddd}
.category-post:last-child{border-bottom:0}
.category-post-content{position:relative;min-height:80px}
.category-post h2{margin:0 0 7px;font-size:20px;line-height:1.35}
.category-post h2 a{color:#0033cc;text-decoration:none}
.category-post h2 a:hover{color:#8b0000;text-decoration:underline}
.category-post-meta{font-size:12px;color:#777;margin-bottom:8px}
.category-post p{margin:5px 0 10px;line-height:1.6;color:#444}
.category-thumb{float:right;margin:0 0 8px 15px}
.category-thumb img{width:110px;height:75px;object-fit:cover;border-radius:3px}
.read-more{font-size:14px;font-weight:bold;color:#8b0000;text-decoration:none}
.no-posts{padding:40px 20px;text-align:center}
.no-posts h2{color:#8b0000}
.sidebar-view-all{padding:10px 15px;background:#f7f7f7;text-align:right;border-top:1px solid #ddd}
.sidebar-view-all a{color:#8b0000;font-weight:bold;text-decoration:none}
.sidebar-box li a{line-height:1.45}
@media(max-width:768px){
 .category-header h1{font-size:23px}
 .category-post{padding:14px}
 .category-post h2{font-size:18px}
 .category-thumb{float:none;display:block;margin:10px 0}
 .category-thumb img{width:100%;height:auto;max-height:220px}
}
