/*
Theme Name: SarkariAtlas
Theme URI: https://sarkariatlas.com/
Author: SarkariAtlas Team
Author URI: https://sarkariatlas.com/
Description: A clean, fast, and professional information portal for Central Government employees, job aspirants, and anyone seeking reliable government-related information — jobs, salary, rules, promotions, pension, deputation, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: sarkariatlas
Tags: blog, news, education, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2c3e50;
    background-color: #f7f9fc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a3a6c; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #c0392b; }
:focus-visible { outline: 3px solid #e67e22; outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a6c;
    margin: 0 0 .6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }

.sa-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.sa-main { padding: 2rem 0; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a3a6c;
    color: #fff;
    padding: .5rem 1rem;
    z-index: 1000;
}
.skip-link:focus { top: 0; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.sa-header {
    background: #fff;
    border-bottom: 3px solid #1a3a6c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.sa-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}
.sa-brand { display: flex; align-items: center; gap: .6rem; }
.sa-brand a { color: #1a3a6c; font-weight: 800; font-size: 1.35rem; letter-spacing: -.3px; }
.sa-brand img { max-height: 44px; width: auto; }
.sa-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sa-brand-tagline { font-size: .72rem; color: #6c7a89; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }

.sa-nav { display: flex; align-items: center; }
.sa-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}
.sa-primary-menu li { position: relative; }
.sa-primary-menu a {
    display: block;
    padding: .55rem .85rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: .92rem;
    border-radius: 4px;
}
.sa-primary-menu a:hover,
.sa-primary-menu a:focus,
.sa-primary-menu .current-menu-item > a,
.sa-primary-menu .current_page_item > a {
    background: #1a3a6c;
    color: #fff;
}
.sa-primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    border-top: 2px solid #e67e22;
    list-style: none;
    padding: .4rem 0;
    margin: 0;
    z-index: 50;
}
.sa-primary-menu li:hover > .sub-menu,
.sa-primary-menu li:focus-within > .sub-menu { display: block; }
.sa-primary-menu .sub-menu a { padding: .55rem 1rem; font-size: .88rem; border-radius: 0; }

.sa-header-search { display: flex; align-items: center; gap: .4rem; }
.sa-header-search form { display: flex; }
.sa-header-search input[type="search"] {
    padding: .45rem .7rem;
    border: 1px solid #d0d7de;
    border-radius: 4px 0 0 4px;
    font-size: .88rem;
    width: 180px;
}
.sa-header-search button {
    padding: .45rem .85rem;
    background: #1a3a6c;
    color: #fff;
    border: 0;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}
.sa-header-search button:hover { background: #0f2a52; }

.sa-menu-toggle {
    display: none;
    background: #1a3a6c;
    color: #fff;
    border: 0;
    padding: .55rem .8rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.sa-hero {
    background: linear-gradient(135deg, #1a3a6c 0%, #2c5282 100%);
    color: #fff;
    padding: 3.5rem 1rem;
    text-align: center;
}
.sa-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    max-width: 820px;
    margin: 0 auto .8rem;
}
.sa-hero p {
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto 1.8rem;
    color: #e8eef7;
}
.sa-hero-search {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.sa-hero-search input {
    flex: 1;
    padding: 1rem 1.1rem;
    border: 0;
    font-size: 1rem;
    color: #2c3e50;
    outline: none;
}
.sa-hero-search button {
    padding: 0 1.6rem;
    background: #e67e22;
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.sa-hero-search button:hover { background: #d35400; }

.sa-section { padding: 2.5rem 0; }
.sa-section-title {
    font-size: 1.6rem;
    margin-bottom: .3rem;
    position: relative;
    padding-bottom: .6rem;
}
.sa-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #e67e22;
    border-radius: 2px;
}
.sa-section-subtitle { color: #6c7a89; margin-bottom: 1.6rem; }

.sa-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.sa-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.sa-card {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 1.3rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26,58,108,.10);
    border-color: #1a3a6c;
}
.sa-card-icon {
    width: 44px;
    height: 44px;
    background: #eaf0f8;
    color: #1a3a6c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .8rem;
}
.sa-card h3 {
    font-size: 1.08rem;
    margin-bottom: .35rem;
}
.sa-card h3 a { color: #1a3a6c; }
.sa-card h3 a:hover { color: #c0392b; }
.sa-card p { font-size: .92rem; color: #55637a; margin: 0; }
.sa-card-link {
    margin-top: auto;
    padding-top: .9rem;
    font-size: .88rem;
    font-weight: 600;
    color: #1a3a6c;
}
.sa-card-link:hover { color: #e67e22; }

.sa-updates-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sa-update {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.sa-update-meta {
    display: flex;
    gap: .6rem;
    font-size: .78rem;
    color: #6c7a89;
    flex-wrap: wrap;
}
.sa-update-meta .sa-cat {
    background: #eaf0f8;
    color: #1a3a6c;
    padding: .15rem .55rem;
    border-radius: 3px;
    font-weight: 600;
}
.sa-update h3 { font-size: 1.05rem; margin: 0; }
.sa-update h3 a { color: #1a3a6c; }
.sa-update h3 a:hover { color: #c0392b; }
.sa-update p { font-size: .92rem; color: #55637a; margin: 0; }

.sa-view-all {
    display: inline-block;
    margin-top: 1.4rem;
    padding: .7rem 1.4rem;
    background: #1a3a6c;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
}
.sa-view-all:hover { background: #0f2a52; color: #fff; }

.sa-browse {
    background: #fff;
    border-top: 1px solid #e4e8ee;
    border-bottom: 1px solid #e4e8ee;
    padding: 2.2rem 0;
}
.sa-browse-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem 1rem;
}
.sa-browse-list a {
    display: block;
    padding: .55rem .75rem;
    background: #f7f9fc;
    border-radius: 5px;
    color: #1a3a6c;
    font-weight: 600;
    font-size: .94rem;
    border: 1px solid transparent;
}
.sa-browse-list a:hover {
    background: #eaf0f8;
    border-color: #1a3a6c;
    color: #1a3a6c;
}

.sa-footer {
    background: #102a4c;
    color: #d6dfea;
    padding: 2.5rem 0 1.2rem;
    margin-top: 2rem;
}
.sa-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1.8rem;
}
.sa-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}
.sa-footer ul { list-style: none; padding: 0; margin: 0; }
.sa-footer li { margin-bottom: .45rem; }
.sa-footer a { color: #d6dfea; font-size: .92rem; }
.sa-footer a:hover { color: #e67e22; }
.sa-footer-about p { font-size: .92rem; color: #b9c5d4; }
.sa-footer-bottom {
    border-top: 1px solid #1e3a63;
    padding-top: 1rem;
    text-align: center;
    font-size: .85rem;
    color: #9fb0c4;
}

.sa-breadcrumbs {
    font-size: .85rem;
    color: #6c7a89;
    padding: .8rem 0 0;
}
.sa-breadcrumbs a { color: #1a3a6c; }
.sa-breadcrumbs span { margin: 0 .35rem; color: #9aa7b8; }

.sa-entry-header { margin-bottom: 1.2rem; }
.sa-entry-header h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.sa-entry-meta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    font-size: .85rem;
    color: #6c7a89;
    margin-bottom: 1rem;
}
.sa-entry-meta a { color: #1a3a6c; font-weight: 600; }
.sa-entry-content {
    background: #fff;
    padding: 1.8rem;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    margin-bottom: 1.6rem;
}
.sa-entry-content p, .sa-entry-content li { font-size: 1rem; }
.sa-entry-content h2 { margin-top: 1.4rem; }
.sa-entry-content h3 { margin-top: 1.1rem; }
.sa-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.sa-entry-content th, .sa-entry-content td {
    border: 1px solid #d0d7de;
    padding: .55rem .75rem;
    text-align: left;
}
.sa-entry-content th { background: #eaf0f8; color: #1a3a6c; }
.sa-entry-content blockquote {
    border-left: 4px solid #e67e22;
    background: #f7f9fc;
    padding: .8rem 1rem;
    margin: 1rem 0;
    color: #55637a;
}
.sa-entry-content img { border-radius: 6px; }

.sa-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}
.sa-post-nav a {
    background: #fff;
    border: 1px solid #e4e8ee;
    padding: .8rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    flex: 1;
    min-width: 220px;
}
.sa-post-nav a:hover { border-color: #1a3a6c; }

.sa-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}
.sa-pagination .page-numbers {
    display: inline-block;
    padding: .5rem .85rem;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    color: #1a3a6c;
    font-weight: 600;
    font-size: .92rem;
}
.sa-pagination .page-numbers.current,
.sa-pagination a.page-numbers:hover {
    background: #1a3a6c;
    color: #fff;
    border-color: #1a3a6c;
}

.sa-comments {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 1.5rem;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
    padding: 1rem 0;
    border-bottom: 1px solid #e4e8ee;
}
.comment-list .comment:last-child { border-bottom: 0; }
.comment-author { font-weight: 700; color: #1a3a6c; }
.comment-meta { font-size: .82rem; color: #6c7a89; margin-bottom: .4rem; }

.sa-search-header { margin-bottom: 1.5rem; }
.sa-search-header h1 { font-size: 1.6rem; }

.sa-404 {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
}
.sa-404 h1 { font-size: 3rem; color: #e67e22; }

.sa-widget {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}
.sa-widget h3 {
    font-size: 1.05rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e67e22;
}
.sa-widget ul { list-style: none; padding: 0; margin: 0; }
.sa-widget li { padding: .4rem 0; border-bottom: 1px solid #f0f3f7; }
.sa-widget li:last-child { border-bottom: 0; }
.sa-widget a { color: #1a3a6c; }

@media (max-width: 960px) {
    .sa-menu-toggle { display: inline-block; }
    .sa-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e4e8ee;
        padding: 1rem;
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }
    .sa-nav.is-open { display: block; }
    .sa-primary-menu { flex-direction: column; gap: 0; }
    .sa-primary-menu a { padding: .8rem 1rem; border-bottom: 1px solid #f0f3f7; }
    .sa-primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-top: 0;
        background: #f7f9fc;
        display: none;
    }
    .sa-primary-menu li.is-open > .sub-menu { display: block; }
    .sa-header-search input[type="search"] { width: 140px; }
    .sa-hero h1 { font-size: 1.7rem; }
    .sa-hero { padding: 2.5rem 1rem; }
}
@media (max-width: 520px) {
    .sa-header-inner { flex-wrap: wrap; }
    .sa-header-search { order: 3; width: 100%; margin-top: .6rem; }
    .sa-header-search input[type="search"] { flex: 1; width: auto; }
    .sa-hero h1 { font-size: 1.45rem; }
    .sa-hero-search { flex-direction: column; }
    .sa-hero-search input { padding: .9rem 1rem; }
    .sa-hero-search button { padding: .9rem; }
    .sa-entry-content { padding: 1.1rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
}

@media print {
    .sa-header, .sa-footer, .sa-hero, .sa-breadcrumbs, .sa-pagination { display: none; }
    body { background: #fff; color: #000; }
}