/*
Theme Name: AlertBaba Govt Jobs
Theme URI: https://alertbaba.in/
Author: AlertBaba Studio
Description: Ultra-fast, lightweight, SEO & GEO optimized WordPress theme built specifically for Indian Government Job Portals (Latest Jobs, Admit Cards, Results, Central & State/District Jobs). Supports 3-column portal homepage (Left Sidebar + Center 4-Box Grid + Right Sidebar) and 2-column readable single job posts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alertbaba-govt-jobs
*/

:root {
    --ab-navy: #1e3a8a;
    --ab-navy-dark: #0f172a;
    --ab-blue: #2563eb;
    --ab-saffron: #9a3412;
    --ab-green: #047857;
    --ab-red: #dc2626;
    --ab-bg: #f1f5f9;
    --ab-card: #ffffff;
    --ab-border: #cbd5e1;
    --ab-text: #1e293b;
    --ab-muted: #64748b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ab-bg);
    color: var(--ab-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ab-layout-3col,
.ab-layout-2col {
    flex: 1;
}

a {
    color: var(--ab-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ab-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP UTILITY STRIP */
.ab-topbar {
    background: var(--ab-navy-dark);
    color: #e2e8f0;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* MAIN HEADER */
.ab-site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ab-border);
    padding: 12px 0;
}

.ab-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.ab-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ab-mobile-hdr-menu-btn {
    display: none;
    background: var(--ab-navy);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.ab-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.ab-brand-text {
    display: flex;
    flex-direction: column;
}
.ab-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.ab-brand .custom-logo {
    max-height: 50px;
    width: auto !important;
    height: auto !important;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.ab-site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.ab-site-title a {
    color: var(--ab-navy);
    text-decoration: none;
}

.ab-site-tagline {
    font-size: 12px;
    color: var(--ab-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* HEADER SEARCH WITH CATEGORY FILTER */
.ab-header-search {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid var(--ab-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ab-header-search:focus-within {
    border-color: var(--ab-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ab-search-cat-select {
    background: #f1f5f9;
    border: none;
    border-right: 1px solid var(--ab-border);
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ab-navy-dark);
    outline: none;
    cursor: pointer;
    max-width: 125px;
}

.ab-header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    outline: none;
}


.ab-header-search button {
    background: var(--ab-navy);
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.ab-header-search button:hover {
    background: var(--ab-blue);
}

.ab-mobile-nav-brand {
    display: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.ab-mobile-nav-top {
    display: none;
}

/* MOBILE SLIDE-OUT DRAWER */
.ab-mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.ab-mobile-drawer-backdrop.open {
    display: block;
}

.ab-mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 86vw;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 28px rgba(15, 23, 42, 0.28);
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ab-mobile-drawer.open {
    left: 0;
}

.ab-mobile-drawer-head {
    background: var(--ab-navy);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.ab-mobile-drawer-head button {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
}

.ab-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 30px 14px;
}

.ab-drawer-sec-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ab-muted);
    margin: 12px 0 6px 0;
}

.ab-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ab-drawer-links a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--ab-navy-dark);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.ab-drawer-links a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--ab-blue);
}

/* PRIMARY NAVIGATION */
.ab-main-nav {
    background: var(--ab-navy);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.admin-bar .ab-main-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ab-main-nav {
        top: 46px;
    }
}

.ab-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ab-nav-list li a {
    display: block;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.ab-nav-list li a:hover,
.ab-nav-list li.current-menu-item>a {
    background: rgba(255, 255, 255, 0.16);
}

.ab-mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin: 6px 0;
}

/* BREAKING TICKER */
.ab-ticker-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--ab-border);
    padding: 8px 0;
}

.ab-ticker-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.ab-ticker-badge {
    background: var(--ab-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ab-ticker-links {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.ab-ticker-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: abTickerScroll 42s linear infinite;
}

.ab-ticker-group {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-right: 22px;
}

.ab-ticker-links:hover .ab-ticker-track,
.ab-ticker-links:focus-within .ab-ticker-track,
.ab-ticker-links:active .ab-ticker-track {
    animation-play-state: paused;
}

@keyframes abTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ab-ticker-track { animation: none; }
    .ab-ticker-links { overflow-x: auto; }
}

.ab-ticker-links a {
    color: var(--ab-navy-dark);
}

.ab-ticker-links a:hover {
    color: var(--ab-blue);
}

/* LAYOUT GRIDS */
.ab-layout-3col {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr) 280px;
    gap: 16px;
    margin: 18px auto;
    align-items: start;
}

.ab-layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    margin: 18px auto;
    align-items: start;
}

.ab-layout-3col > main,
.ab-layout-2col > main,
.ab-sidebar-left,
.ab-sidebar-right {
    min-width: 0;
}

@media (max-width: 1100px) {
    .ab-layout-3col {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .ab-sidebar-left {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 860px) {

    .ab-layout-3col,
    .ab-layout-2col {
        grid-template-columns: 1fr;
    }

    .ab-nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .ab-nav-list.open {
        display: flex;
    }

    .ab-mobile-nav-top {
        display: flex !important;
    }

    .ab-mobile-nav-brand {
        display: inline-block;
    }

    .ab-mobile-menu-btn {
        display: inline-block;
    }

    .ab-nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* CARDS & WIDGETS */
.ab-card {
    background: var(--ab-card);
    border: 1px solid var(--ab-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ab-widget-title {
    margin: -16px -16px 12px -16px;
    padding: 10px 14px;
    background: var(--ab-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 7px 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.ab-widget-title.saffron {
    background: var(--ab-saffron);
}

.ab-widget-title.green {
    background: var(--ab-green);
}

.ab-widget-title.red {
    background: #b91c1c;
}

.ab-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ab-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ab-text);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ab-cat-list li a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--ab-blue);
    text-decoration: none;
}

/* 4-BOX SARKARI PORTAL GRID */
.ab-portal-4grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 680px) {
    .ab-portal-4grid {
        grid-template-columns: 1fr;
    }
}

.ab-portal-box {
    background: #ffffff;
    border: 1px solid var(--ab-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ab-portal-box-head {
    background: var(--ab-navy);
    color: #ffffff;
    padding: 9px 14px;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ab-portal-box-head a {
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
}

.ab-portal-box-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ab-portal-box-list li {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.ab-portal-box-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ab-portal-box-list li a {
    font-weight: 600;
    color: #0f172a;
}

.ab-portal-box-list li a:hover {
    color: var(--ab-blue);
}

.ab-new-tag {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* SINGLE POST & ARCHIVE */
.ab-post-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ab-post-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ab-navy-dark);
}

.ab-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--ab-muted);
    font-weight: 600;
}

.ab-archive-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.ab-archive-item:last-child {
    border-bottom: none;
}

.ab-archive-item h3 {
    margin: 0 0 4px 0;
    font-size: 16.5px;
}

/* FOOTER */
.ab-site-footer {
    background: var(--ab-navy-dark);
    color: #cbd5e1;
    padding: 28px 0 18px 0;
    margin-top: 28px;
    font-size: 13px;
}

.ab-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 18px;
}

.ab-site-footer h4 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 14.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 6px;
}

.ab-site-footer a {
    color: #93c5fd;
}

.ab-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
}

/* STATE -> DISTRICT ACCORDION & COUNT PILLS */
.ab-cnt-pill {
    background: #e2e8f0;
    color: #334155;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
}
.ab-state-acc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ab-text);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    list-style: none;
}
.ab-state-acc summary::-webkit-details-marker { display: none; }
.ab-state-acc summary a { color: var(--ab-text); font-weight: 700; }
.ab-state-acc summary a:hover { color: var(--ab-blue); }
.ab-dist-sublist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 6px 6px;
    margin-top: -2px;
}
.ab-dist-sublist a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ab-dist-sublist a:hover,
.ab-dist-sublist a.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--ab-blue);
    font-weight: 700;
}

/* QUICK PORTAL STATS STRIP */
.ab-hero-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 768px) {
    .ab-hero-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.ab-hero-stat-pill {
    background: #ffffff;
    border: 1px solid var(--ab-border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ab-hero-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.ab-hero-stat-pill .lbl { font-size: 12.5px; font-weight: 800; color: var(--ab-navy-dark); }
.ab-hero-stat-pill .num { font-size: 16px; font-weight: 900; }

/* MOBILE QUICK SWIPE PILLS (App-like feel on phones) */
.ab-mobile-quick-pills {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--ab-border);
    padding: 8px 10px;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ab-mobile-quick-pills::-webkit-scrollbar {
    display: none;
}

.ab-mobile-quick-pills a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.ab-mobile-quick-pills a.highlight {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* MOBILE-FIRST RESPONSIVE POLISH (< 768px) */
.ab-entry-content {
    overflow-x: hidden;
    word-wrap: break-word;
}

.ab-entry-content table,
.ab-art-table {
    max-width: 100%;
}

@media (max-width: 768px) {
    body {
        font-size: 14.5px;
    }

    .ab-container {
        padding: 0 10px;
    }

    .ab-topbar {
        display: none;
    }

    .ab-main-nav {
        display: none;
    }

    .ab-mobile-hdr-menu-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .ab-site-header {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 900;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    }

    .ab-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ab-brand {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 8px;
        min-width: 0;
    }

    .ab-brand .custom-logo {
        max-height: 36px;
        max-width: 120px;
    }

    .ab-site-title {
        font-size: 19px;
    }

    .ab-site-tagline {
        display: none;
    }

    .ab-header-search {
        max-width: 100%;
        border-radius: 8px;
        height: 38px;
    }

    .ab-search-cat-select {
        max-width: 82px;
        font-size: 11.5px;
        padding: 4px 4px 4px 8px;
    }

    .ab-header-search input[type="search"] {
        padding: 6px 8px;
        font-size: 13px;
    }

    .ab-header-search button {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .ab-header-search input[type="search"] {
        padding: 9px 10px;
        font-size: 14px;
    }

    .ab-header-search button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .ab-mobile-quick-pills {
        display: flex;
    }

    .ab-layout-3col,
    .ab-layout-2col {
        margin: 12px auto;
        gap: 12px;
    }

    .ab-card {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .ab-widget-title {
        margin: -12px -12px 10px -12px;
        padding: 9px 12px;
        font-size: 13.5px;
    }

    .ab-portal-box-list li {
        padding: 8px 0;
        font-size: 13.5px;
        line-height: 1.45;
    }

    .ab-post-title {
        font-size: 19px;
        line-height: 1.35;
    }

    .ab-post-meta {
        gap: 8px;
        font-size: 11.5px;
    }

    .ab-entry-content table,
    .ab-art-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ab-art-table th,
    .ab-art-table td {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .ab-art-btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        font-size: 13.5px !important;
    }

    .ab-site-footer {
        padding: 20px 0 16px 0;
        margin-top: 18px;
    }
}

/* PROFESSIONAL WORDPRESS COMMENTS & REPLY FORM */
.comments-area,
#comments {
    margin-top: 4px;
}

.comments-title,
.comment-reply-title {
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    font-size: 18px;
    font-weight: 800;
    color: var(--ab-navy-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-reply-title small a {
    font-size: 12px;
    font-weight: 700;
    color: var(--ab-red);
    background: #fef2f2;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

.comment-notes,
.logged-in-as {
    font-size: 13px;
    color: var(--ab-muted);
    margin: 0 0 14px 0;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.comment-form > p {
    margin: 0;
}

.comment-form-comment,
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form-url {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: 500;
    font-size: 12.5px;
    color: var(--ab-muted);
    margin: 0;
    cursor: pointer;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: var(--ab-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-form textarea {
    min-height: 115px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: var(--ab-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.comment-form .form-submit {
    margin-top: 4px;
}

.comment-form input[type="submit"],
.comment-form .submit {
    background: var(--ab-navy);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
    background: var(--ab-blue);
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
}

.comment-list .children {
    margin-left: 22px;
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid #cbd5e1;
}

.comment-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 13px 15px;
    margin-bottom: 10px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ab-navy-dark);
}

.comment-author .avatar {
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
}

.comment-metadata {
    font-size: 11.5px;
    color: var(--ab-muted);
}

.comment-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #334155;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply .comment-reply-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ab-blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.reply .comment-reply-link:hover {
    background: #dbeafe;
}

@media (max-width: 640px) {
    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form input[type="submit"],
    .comment-form .submit {
        width: 100%;
        min-height: 42px;
    }

    .comment-list .children {
        margin-left: 10px;
        padding-left: 10px;
    }
}

/* MODERN MOBILE DRAWER + THEME TOGGLE */
.ab-theme-toggle-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.ab-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.ab-mobile-theme-btn {
    display: none;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
}
@media (max-width: 768px) {
    .ab-mobile-theme-btn { display: inline-flex; align-items: center; justify-content: center; }
    .ab-desktop-theme-btn { display: none; }
}

.ab-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ab-drawer-logo .custom-logo {
    max-height: 36px;
    width: auto !important;
    height: auto !important;
    background: #ffffff;
    padding: 3px;
    border-radius: 7px;
    display: block;
}
.ab-drawer-brand-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.ab-drawer-brand-meta strong {
    font-size: 15px;
    color: #ffffff;
    font-weight: 900;
}
.ab-drawer-brand-meta span {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 600;
}
.ab-drawer-theme-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}
.ab-drawer-theme-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 2px;
    border-radius: 7px;
    gap: 2px;
}
.ab-drawer-theme-pills button {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.ab-drawer-theme-pills button.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ab-drawer-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 12px;
}
.ab-drawer-quick-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.ab-drawer-quick-grid a:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.ab-drawer-acc {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 9px;
    overflow: hidden;
    background: #ffffff;
}
.ab-drawer-acc summary {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ab-drawer-acc summary::-webkit-details-marker { display: none; }
.ab-drawer-acc summary::after { content: "▾"; font-size: 12px; color: #64748b; }
.ab-drawer-acc[open] summary { border-bottom: 1px solid #e2e8f0; }
.ab-drawer-acc .ab-drawer-links {
    padding: 8px;
    gap: 5px;
}
.ab-drawer-acc .ab-drawer-links a {
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 13px;
}
.ab-dr-cnt {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
}

/* DARK THEME SUPPORT (Persisted via localStorage) */
[data-theme="dark"] {
    --ab-bg: #0b1120;
    --ab-card: #1e293b;
    --ab-border: #334155;
    --ab-text: #e2e8f0;
    --ab-muted: #94a3b8;
    --ab-navy-dark: #f8fafc;
}
[data-theme="dark"] body {
    background: #0b1120;
    color: #e2e8f0;
}
[data-theme="dark"] a {
    color: #60a5fa;
}
[data-theme="dark"] .ab-site-header,
[data-theme="dark"] .ab-ticker-bar,
[data-theme="dark"] .ab-mobile-quick-pills,
[data-theme="dark"] .ab-portal-box,
[data-theme="dark"] .ab-hero-stat-pill,
[data-theme="dark"] .ab-mobile-drawer,
[data-theme="dark"] .ab-drawer-acc {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .ab-site-title a,
[data-theme="dark"] .ab-ticker-links a,
[data-theme="dark"] .ab-portal-box-list li a,
[data-theme="dark"] .ab-hero-stat-pill .lbl,
[data-theme="dark"] .ab-post-title,
[data-theme="dark"] .ab-drawer-acc summary,
[data-theme="dark"] .ab-drawer-quick-grid a,
[data-theme="dark"] .ab-drawer-links a {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .ab-header-search,
[data-theme="dark"] .ab-search-cat-select,
[data-theme="dark"] .ab-header-search input[type="search"],
[data-theme="dark"] .ab-cat-list li a,
[data-theme="dark"] .ab-state-acc summary,
[data-theme="dark"] .ab-dist-sublist,
[data-theme="dark"] .ab-dist-sublist a,
[data-theme="dark"] .ab-mobile-quick-pills a,
[data-theme="dark"] .ab-drawer-theme-bar,
[data-theme="dark"] .ab-drawer-acc summary,
[data-theme="dark"] .ab-drawer-quick-grid a,
[data-theme="dark"] .ab-drawer-links a,
[data-theme="dark"] .comment-body,
[data-theme="dark"] .comment-notes,
[data-theme="dark"] .logged-in-as,
[data-theme="dark"] .ab-mobile-theme-btn {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .ab-drawer-theme-pills {
    background: #1e293b;
}
[data-theme="dark"] .ab-drawer-theme-pills button.active {
    background: #334155;
    color: #ffffff;
}
[data-theme="dark"] .ab-comment-input,
[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form input[type="url"] {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}
[data-theme="dark"] .ab-art-card,
[data-theme="dark"] .ab-art-hero,
[data-theme="dark"] .ab-art-hero-hi,
[data-theme="dark"] .ab-art-breadcrumbs,
[data-theme="dark"] .ab-art-tags-bar,
[data-theme="dark"] .ab-step-box,
[data-theme="dark"] .ab-step-box-hi,
[data-theme="dark"] .ab-related-card,
[data-theme="dark"] .ab-faq-q,
[data-theme="dark"] .ab-faq-a,
[data-theme="dark"] .ab-page-wrap .ab-pg-card,
[data-theme="dark"] .ab-page-wrap .ab-pg-sec,
[data-theme="dark"] .ab-page-wrap .ab-pg-feat,
[data-theme="dark"] .ab-page-wrap .ab-pg-box {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .ab-art-table th,
[data-theme="dark"] .ab-page-wrap .ab-pg-table th {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}
[data-theme="dark"] .ab-art-table td,
[data-theme="dark"] .ab-page-wrap .ab-pg-table td {
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .ab-art-table tr:nth-child(even) {
    background: #162032 !important;
}