/*
Theme Name: Sarkari Portal
Author: Custom
Description: Custom WordPress theme for government jobs and information portal – Bharatjobresult style.
Version: 2.0.0
Text Domain: sarkari-portal
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --primary:   #c0392b;   /* red - main brand color */
    --primary-dark: #962d22;
    --green:     #1a7a3c;
    --orange:    #e67e22;
    --blue:      #1565c0;
    --purple:    #6a1b9a;
    --teal:      #00695c;
    --dark:      #1a1a2e;
    --white:     #ffffff;
    --light-bg:  #f5f6f8;
    --border:    #dde1e7;
    --text:      #2c2c2c;
    --muted:     #666;
    --badge-new: #e53935;
    --badge-green: #2e7d32;
    --badge-orange: #e65100;
    --badge-purple: #6a1b9a;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--light-bg);
    font-size: 15px;
    line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; }

.container {
    width: min(1200px, 96%);
    margin: 0 auto;
}

/* ============================================================
   HEADER – TOPBAR
============================================================ */
.header-topbar {
    background: var(--dark);
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-brand {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    color: #ffd700;
}
.topbar-social { display: flex; gap: 8px; }
.social-btn {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.social-btn.whatsapp  { background: #25d366; }
.social-btn.youtube   { background: #ff0000; }
.social-btn.telegram  { background: #0088cc; }
.social-btn:hover { opacity: .85; color: #fff; }

/* ============================================================
   HEADER – MAIN (logo + search)
============================================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-main { padding: 12px 0; background: #fff; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 65px; width: auto; }
.site-logo-text a {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-tagline { font-size: 12px; color: var(--muted); margin-top: 2px; }
.header-search { max-width: 340px; width: 100%; }
.search-form { display: flex; }
.search-form input[type="search"] {
    flex: 1;
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--primary); }
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
}
.search-form button:hover { background: var(--primary-dark); }

/* ============================================================
   NAVIGATION
============================================================ */
.main-navigation {
    background: var(--primary);
    border-top: 2px solid var(--primary-dark);
}
.nav-inner { display: flex; align-items: center; }
.main-navigation #primary-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-navigation #primary-menu > li > a {
    display: block;
    color: #fff;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.main-navigation #primary-menu > li > a:hover,
.main-navigation #primary-menu > li.current-menu-item > a {
    background: rgba(0,0,0,.2);
    text-decoration: none;
}
.menu-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    padding: 7px 14px;
    margin: 8px 0;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}

/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.news-ticker {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 0;
}
.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.ticker-label {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 3px;
    flex-shrink: 0;
}
.ticker-scroll-wrap { overflow: hidden; flex: 1; }
.ticker-scroll {
    display: flex;
    gap: 50px;
    animation: ticker-move 40s linear infinite;
    white-space: nowrap;
}
.ticker-scroll a {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.ticker-scroll a:hover { color: var(--primary); }
@keyframes ticker-move {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   MAIN AREA
============================================================ */
.site-main { padding: 20px 0 30px; }

/* ============================================================
   HERO BANNER (quick link buttons)
============================================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 14px 0;
    margin-bottom: 20px;
}
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-link {
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.3);
    transition: background .2s;
}
.hero-link:hover { background: rgba(255,255,255,.28); color: #fff; }
.hero-link.yojana-link { background: var(--orange); border-color: var(--orange); }
.hero-link.yojana-link:hover { background: #d35400; color: #fff; }

/* ============================================================
   HOME MAIN GRID (left wide + right narrow)
============================================================ */
.home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-bottom: 20px;
}
.home-left { display: flex; flex-direction: column; gap: 20px; }
.home-right { display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   HOME SECTION (left column boxes)
============================================================ */
.home-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    padding: 10px 14px;
}
.section-head h2 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}
.section-icon { font-size: 18px; }
.section-head.green-head  { background: var(--green); }
.section-head.orange-head { background: var(--orange); }
.section-head.purple-head { background: var(--purple); }
.section-head.blue-head   { background: var(--blue); }

.view-all-link {
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.4);
    padding: 3px 10px;
    border-radius: 12px;
}
.view-all-link:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ============================================================
   POST LIST (left column)
============================================================ */
.post-list { padding: 0; }
.post-list-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.45;
}
.post-list-item:last-child { border-bottom: none; }
.post-list-item a {
    color: var(--text);
    font-size: 14px;
    flex: 1;
}
.post-list-item a:hover { color: var(--primary); }
.last-date {
    display: inline-block;
    background: #fff3e0;
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    margin-left: 6px;
    border: 1px solid #ffcc80;
}

/* ============================================================
   NEW / HOT BADGES
============================================================ */
.new-badge {
    display: inline-block;
    background: var(--badge-new);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .5px;
    flex-shrink: 0;
    margin-top: 2px;
    text-transform: uppercase;
}
.green-badge  { background: var(--badge-green); }
.orange-badge { background: var(--badge-orange); }
.purple-badge { background: var(--badge-purple); }

/* ============================================================
   SARKARI YOJANA SECTION – extra highlight
============================================================ */
.yojana-section { border: 2px solid var(--orange); }

/* ============================================================
   SIDEBAR SECTIONS (right column)
============================================================ */
.sidebar-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.sidebar-head.green-head  { background: var(--green); }
.sidebar-head.orange-head { background: var(--orange); }
.sidebar-head.blue-head   { background: var(--blue); }
.sidebar-head.purple-head { background: var(--purple); }
.sidebar-head.teal-head   { background: var(--teal); }
.sidebar-head.dark-head   { background: #37474f; }
.sidebar-head.red-head    { background: var(--primary); }
.sidebar-head a {
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 600;
}
.sidebar-head a:hover { color: #fff; }

.sidebar-list { padding: 0; }
.sidebar-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.sidebar-list li::before {
    content: '▶';
    color: var(--primary);
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 3px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text); }
.sidebar-list li a:hover { color: var(--primary); }

/* ============================================================
   BOTTOM QUAD GRID (4 columns)
============================================================ */
.home-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.quad-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.quad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.quad-head.teal-head   { background: var(--teal); }
.quad-head.blue-head   { background: var(--blue); }
.quad-head.purple-head { background: var(--purple); }
.quad-head.green-head  { background: var(--green); }
.quad-head a { color: rgba(255,255,255,.85); font-size: 11px; }
.quad-head a:hover { color: #fff; }

/* ============================================================
   NO POSTS
============================================================ */
.no-posts {
    padding: 14px;
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* ============================================================
   CARD (generic)
============================================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}

/* ============================================================
   SINGLE POST / JOB
============================================================ */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 25px;
}
.job-title { font-size: 26px; line-height: 1.3; margin-top: 0; }
.job-meta  { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 20px;
    background: #fff;
}
.info-table th,
.info-table td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    font-size: 14px;
    text-align: left;
}
.info-table th { background: #f1f3f5; width: 35%; font-weight: 700; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 4px;
    color: #fff;
    background: var(--primary);
    font-weight: 600;
    margin: 4px;
    font-size: 14px;
    transition: opacity .2s;
}
.btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.btn-green  { background: var(--green); }
.btn-orange { background: var(--orange); }

/* ============================================================
   SECTION HEADING (archive pages)
============================================================ */
.section-title {
    background: var(--primary);
    color: #fff;
    padding: 10px 15px;
    margin: 0 0 16px;
    font-size: 18px;
    border-radius: 4px 4px 0 0;
}

/* ============================================================
   WIDGET
============================================================ */
.widget {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 6px;
}
.widget-title {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 15px;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    margin-top: 30px;
}
.footer-widgets { padding: 30px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.site-footer h3 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.site-footer a  { color: #bbb; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #333;
    padding: 12px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination { margin: 20px 0; }
.pagination .page-numbers {
    display: inline-block;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--border);
    margin-right: 3px;
    border-radius: 3px;
    font-size: 13px;
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb { margin-bottom: 16px; font-size: 13px; color: var(--muted); }

/* ============================================================
   FAQ
============================================================ */
.faq-item { border: 1px solid var(--border); margin-bottom: 6px; background: #fff; border-radius: 4px; }
.faq-question {
    width: 100%; border: 0; background: #f8f9fa;
    text-align: left; padding: 12px 14px;
    font-weight: 700; cursor: pointer; font-size: 14px;
}
.faq-answer { display: none; padding: 14px; font-size: 14px; }
.faq-item.active .faq-answer { display: block; }

/* ============================================================
   TABLET  (max 1024px)
============================================================ */
@media (max-width: 1024px) {
    .home-quad-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SMALL TABLET (max 900px)
============================================================ */
@media (max-width: 900px) {
    .home-main-grid { grid-template-columns: 1fr; }
    .home-right { flex-direction: row; flex-wrap: wrap; }
    .sidebar-section { flex: 1 1 calc(50% - 10px); }
    .content-layout  { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {
    .site-header { position: relative; }
    .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .header-search { max-width: 100%; }
    .menu-toggle { display: block; }
    .main-navigation #primary-menu { display: none; flex-direction: column; }
    .main-navigation #primary-menu.active { display: flex; }
    .hero-links { gap: 7px; }
    .hero-link  { padding: 7px 12px; font-size: 12px; }
    .home-quad-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid    { grid-template-columns: 1fr; }
    .topbar-inner   { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ============================================================
   SMALL MOBILE (max 575px)
============================================================ */
@media (max-width: 575px) {
    .home-quad-grid { grid-template-columns: 1fr; }
    .home-right     { flex-direction: column; }
    .sidebar-section { flex: 1 1 100%; }
    .ticker-scroll  { animation-duration: 25s; }
}


/* ============================================================
   DETAIL PAGE LAYOUT  (2-column: main + sidebar)
============================================================ */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding: 20px 0 40px;
}

/* ── BREADCRUMB ── */
.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 5px;
    border: 1px solid var(--border);
}
.detail-breadcrumb a { color: var(--primary); }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb span { color: #bbb; }
.bc-current {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* ── MAIN CARD ── */
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

/* ── TITLE ROW ── */
.detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.detail-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark);
    margin: 0 0 10px;
    flex: 1;
    min-width: 0;
}
.detail-lastdate-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3e0;
    color: var(--orange);
    border: 1.5px solid #ffcc80;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── META BAR ── */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    padding: 10px 0 14px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
}
.detail-meta a { color: var(--primary); }

/* ── FEATURED IMAGE ── */
.detail-featured-img {
    margin: 0 -24px 22px;
    overflow: hidden;
}
.detail-featured-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ── CONTENT ── */
.detail-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}
.detail-content h2 { font-size: 20px; margin: 28px 0 10px; color: var(--dark); border-left: 4px solid var(--primary); padding-left: 10px; }
.detail-content h3 { font-size: 17px; margin: 22px 0 8px; color: var(--dark); }
.detail-content p  { margin: 0 0 14px; }
.detail-content ul,
.detail-content ol { padding-left: 22px; margin: 0 0 14px; }
.detail-content li { margin-bottom: 6px; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.detail-content table th,
.detail-content table td { border: 1px solid var(--border); padding: 9px 12px; }
.detail-content table th { background: #f1f3f5; }
.detail-content img { border-radius: 6px; margin: 10px 0; }
.detail-content a { color: var(--primary); }
.detail-content a:hover { text-decoration: underline; }
.detail-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 16px 0;
    padding: 12px 18px;
    background: #fef9f9;
    color: #555;
    font-style: italic;
}

/* ── SECTION BLOCKS (job details) ── */
.detail-section { margin: 24px 0 0; }
.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 10px 16px;
    margin: 0 0 0;
    border-radius: 5px 5px 0 0;
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    font-size: 14px;
}
.detail-table tr:nth-child(even) td,
.detail-table tr:nth-child(even) th { background: #fafbfc; }
.detail-table th,
.detail-table td {
    border: 1px solid #e9ecef;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.detail-table th {
    background: #f1f3f5;
    width: 38%;
    font-weight: 700;
    color: var(--dark);
}

/* ── TAGS ── */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--muted);
}
.tag-pill {
    background: #f0f4ff;
    color: var(--blue);
    border: 1px solid #c5d5f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-pill:hover { background: var(--blue); color: #fff; }

/* ── POST NAVIGATION ── */
.detail-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.post-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8f9fa;
    color: var(--text);
    transition: border-color .2s, background .2s;
}
.post-nav-btn:hover { border-color: var(--primary); background: #fff5f5; color: var(--text); }
.post-nav-next { text-align: right; }
.nav-dir  { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nav-title { font-size: 13px; font-weight: 600; color: var(--primary); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ── Widget Box ── */
.sw-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
}

/* ── Widget Head ── */
.sw-head {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    letter-spacing: .2px;
}
.sw-head.green-head  { background: var(--green); }
.sw-head.blue-head   { background: var(--blue); }
.sw-head.orange-head { background: var(--orange); }
.sw-head.purple-head { background: var(--purple); }
.sw-head.red-head    { background: var(--primary); }

/* ── Widget Body (search) ── */
.sw-body { padding: 12px; }
.sw-body .search-form input[type="search"] { font-size: 13px; padding: 8px 10px; }

/* ── Simple List ── */
.sw-list { padding: 0; margin: 0; list-style: none; }
.sw-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 14px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
    line-height: 1.4;
}
.sw-item:last-child { border-bottom: none; }
.sw-item a { color: var(--text); flex: 1; }
.sw-item a:hover { color: var(--primary); }
.sw-arrow { color: var(--primary); font-size: 9px; flex-shrink: 0; margin-top: 3px; }
.sw-date { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.sw-lastdate {
    display: block;
    font-size: 11px;
    color: var(--orange);
    font-weight: 700;
    margin-top: 3px;
}

/* ── Thumbnail Item ── */
.sw-item-thumb { gap: 10px; align-items: flex-start; padding: 10px 14px; }
.sw-thumb { display: block; flex-shrink: 0; width: 64px; height: 56px; overflow: hidden; border-radius: 4px; }
.sw-thumb img { width: 64px; height: 56px; object-fit: cover; display: block; }
.sw-item-text { flex: 1; min-width: 0; }
.sw-item-text a { font-size: 13px; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-item-text a:hover { color: var(--primary); }

/* ── Category List ── */
.sw-cat-list { padding: 6px 0; margin: 0; list-style: none; }
.sw-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
}
.sw-cat-list li:last-child { border-bottom: none; }
.sw-cat-list a { display: flex; align-items: center; gap: 8px; color: var(--text); }
.sw-cat-list a:hover { color: var(--primary); }
.sw-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 13px;
    flex-shrink: 0;
}
.sw-cat-count {
    background: var(--light-bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 28px;
    text-align: center;
}

/* ── View All link ── */
.sw-viewall {
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}
.sw-viewall a { font-size: 13px; font-weight: 700; color: var(--primary); }
.sw-viewall a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE – DETAIL PAGE
============================================================ */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
}

@media (max-width: 860px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { flex-direction: row; flex-wrap: wrap; }
    .sw-box { flex: 1 1 calc(50% - 10px); }
}

@media (max-width: 600px) {
    .detail-card { padding: 16px; }
    .detail-featured-img { margin: 0 -16px 16px; }
    .detail-title { font-size: 19px; }
    .detail-title-row { flex-direction: column; }
    .detail-post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
    .detail-sidebar { flex-direction: column; }
    .sw-box { flex: 1 1 100%; }
    .detail-meta { gap: 8px; }
    .bc-current { max-width: 180px; }
}


/* ============================================================
   ARCHIVE PAGES
============================================================ */

/* ── Archive Header Banner ── */
.arc-header {
    border-radius: 7px 7px 0 0;
    padding: 18px 20px;
    margin-bottom: 0;
    background: var(--primary);
}
.arc-header.green-head  { background: var(--green); }
.arc-header.orange-head { background: var(--orange); }
.arc-header.blue-head   { background: var(--blue); }
.arc-header.purple-head { background: var(--purple); }
.arc-header.teal-head   { background: var(--teal); }
.arc-header.dark-head   { background: #37474f; }
.arc-header.red-head    { background: var(--primary); }

.arc-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.arc-header-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.arc-header-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}
.arc-header-desc {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    margin: 0;
}
.arc-header-count {
    margin-left: auto;
    background: rgba(0,0,0,.2);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Archive List Container ── */
.arc-list {
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 7px 7px;
    overflow: hidden;
}

/* ── Single Archive Item ── */
.arc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    transition: background .15s;
}
.arc-item:last-of-type { border-bottom: none; }
.arc-item:hover { background: #fafbfc; }

/* Thumbnail */
.arc-thumb {
    display: block;
    flex-shrink: 0;
    width: 80px;
    height: 70px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid var(--border);
}
.arc-thumb img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.arc-item:hover .arc-thumb img { transform: scale(1.05); }

/* Body */
.arc-item-body { flex: 1; min-width: 0; }

.arc-item-title {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}
.arc-item-title a { color: var(--text); flex: 1; }
.arc-item-title a:hover { color: var(--primary); }
.arc-item-title .new-badge { flex-shrink: 0; margin-top: 3px; }

/* extra badge colors for archive */
.new-badge.red-badge    { background: #e53935; }
.new-badge.dark-badge   { background: #37474f; }
.new-badge.blue-badge   { background: var(--blue); }
.new-badge.teal-badge   { background: var(--teal); }

.arc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.arc-lastdate {
    color: var(--orange);
    font-weight: 700;
    background: #fff3e0;
    padding: 1px 8px;
    border-radius: 3px;
    border: 1px solid #ffcc80;
}
.arc-item-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Button */
.arc-item-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.arc-read-btn {
    display: inline-block;
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .2s;
}
.arc-read-btn:hover { background: var(--primary-dark); color: #fff; }

/* ── No Posts ── */
.arc-no-posts {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}
.arc-no-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.arc-no-posts p { font-size: 15px; margin: 0; }

/* ── Pagination ── */
.arc-pagination {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}
.arc-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.arc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    transition: all .2s;
}
.arc-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.arc-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.arc-pagination .page-numbers.dots { border: none; background: none; pointer-events: none; }

/* ============================================================
   RESPONSIVE – ARCHIVE PAGES
============================================================ */
@media (max-width: 600px) {
    .arc-header-inner { flex-wrap: wrap; gap: 10px; }
    .arc-header-count { margin-left: 0; }
    .arc-header-title { font-size: 17px; }
    .arc-item { flex-wrap: wrap; }
    .arc-item-action { width: 100%; }
    .arc-read-btn { width: 100%; text-align: center; padding: 9px; }
    .arc-thumb { width: 65px; height: 58px; }
    .arc-thumb img { width: 65px; height: 58px; }
}


/* ============================================================
   SARKARI KAM SECTION
============================================================ */
.sarkari-kam-section {
    margin: 24px 0 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #1565c0;
}

/* ── Section Head ── */
.sarkari-kam-head {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 16px 20px;
}
.kam-head-icon {
    font-size: 34px;
    flex-shrink: 0;
    line-height: 1;
}
.sarkari-kam-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}
.sarkari-kam-head p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

/* ── Grid of service cards ── */
.sarkari-kam-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    background: #fff;
}

/* ── Individual Kam Item ── */
.kam-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px 10px 14px;
    border-right: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    text-decoration: none;
    text-align: center;
    transition: background .18s, transform .18s;
    position: relative;
    overflow: hidden;
}
.kam-item:hover {
    background: #f0f6ff;
    transform: translateY(-2px);
    z-index: 1;
}
/* Remove right border on last in row */
.kam-item:nth-child(8n)  { border-right: none; }
/* Remove bottom border on last row (items 9-16) */
.kam-item:nth-last-child(-n+8) { border-bottom: none; }

.kam-icon {
    font-size: 26px;
    line-height: 1;
    display: block;
}
.kam-label {
    font-size: 12px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
}
.kam-arrow {
    font-size: 11px;
    color: #aaa;
    display: block;
}
.kam-item:hover .kam-arrow { color: var(--primary); }

/* Color accents — top border strip */
.kam-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .2s;
}
.kam-item:hover::before { transform: scaleX(1); }

.kam-orange::before { background: var(--orange); }
.kam-blue::before   { background: var(--blue); }
.kam-green::before  { background: var(--green); }
.kam-teal::before   { background: var(--teal); }
.kam-red::before    { background: var(--primary); }
.kam-purple::before { background: var(--purple); }
.kam-dark::before   { background: #37474f; }

/* Hero link for Sarkari Kam */
.hero-link.kam-link { background: #1565c0; border-color: #1565c0; }
.hero-link.kam-link:hover { background: #0d47a1; color: #fff; }

/* ============================================================
   RESPONSIVE – SARKARI KAM
============================================================ */
@media (max-width: 1024px) {
    .sarkari-kam-grid { grid-template-columns: repeat(6, 1fr); }
    .kam-item:nth-child(8n)       { border-right: 1px solid #e8ecf0; }
    .kam-item:nth-last-child(-n+8){ border-bottom: 1px solid #e8ecf0; }
    .kam-item:nth-child(6n)       { border-right: none; }
    .kam-item:nth-last-child(-n+4){ border-bottom: none; }
}

@media (max-width: 768px) {
    .sarkari-kam-grid { grid-template-columns: repeat(4, 1fr); }
    .kam-item:nth-child(6n)       { border-right: 1px solid #e8ecf0; }
    .kam-item:nth-last-child(-n+4){ border-bottom: 1px solid #e8ecf0; }
    .kam-item:nth-child(4n)       { border-right: none; }
    .kam-item:nth-last-child(-n+4):nth-child(4n+1) ~ .kam-item { border-bottom: none; }
    .sarkari-kam-head h2 { font-size: 17px; }
}

@media (max-width: 480px) {
    .sarkari-kam-grid { grid-template-columns: repeat(3, 1fr); }
    .kam-icon  { font-size: 22px; }
    .kam-label { font-size: 11px; }
    .kam-item  { padding: 14px 6px 10px; }
}
