/* ==========================================================================
   UK GOVERNMENT TRUST - JOBS PORTAL THEME
   Palette: Royal Deep Navy (#07162c), Imperial Gold (#d4af37), Crown Red (#c8102e)
   Style: Sarkari Result Clarity & Structure + British Crown Regal Authority
   Full Responsive Design for Mobile, Tablet & Desktop (320px to 4K)
   ========================================================================== */

:root {
    --navy-dark: #040d1a;
    --navy-primary: #07162c;
    --navy-medium: #0d284f;
    --navy-light: #163e75;
    --navy-soft: #f0f4f9;

    --gold-primary: #d4af37;
    --gold-light: #f6e27a;
    --gold-dark: #997300;
    --gold-border: rgba(212, 175, 55, 0.35);
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #f6e27a 50%, #a8811d 100%);
    --gold-gradient-hover: linear-gradient(135deg, #dfbc6d 0%, #fff0a8 50%, #c49929 100%);

    --crown-red: #c8102e;
    --crown-red-hover: #a50b23;
    --emerald-green: #00875a;
    --emerald-hover: #006644;

    --text-main: #1f2937;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;

    --font-heading: 'Cinzel', 'Merriweather', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(7, 22, 44, 0.08);
    --shadow-lg: 0 10px 25px rgba(7, 22, 44, 0.12);
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 60px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Visibility helpers */
.desktop-only { display: inline-flex !important; }
.mobile-only { display: none !important; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex !important; }
}

/* --------------------------------------------------------------------------
   TOP CROWN ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.top-crown-bar {
    background-color: var(--navy-dark);
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--gold-border);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.official-crest-note {
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.official-crest-note .crown-icon {
    color: var(--gold-primary);
    font-size: 0.95rem;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accessibility-ctrl {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    padding: 1px 4px;
    gap: 2px;
}

.a11y-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 2px;
}

.a11y-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.top-bar-staff-link {
    color: #cbd5e1;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-bar-staff-link:hover {
    color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   MAIN HEADER & LOGO BRANDING
   -------------------------------------------------------------------------- */
.main-header {
    background: linear-gradient(135deg, #051224 0%, #0a1e3b 50%, #040d1a 100%);
    border-bottom: 3px solid var(--gold-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    min-width: 0;
}

.brand-logo-container {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: #07162c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-title span {
    color: var(--gold-light);
}

.brand-subtitle {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: clamp(0.68rem, 1.5vw, 0.82rem);
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

.brand-badge {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.brand-badge .verified-tick {
    color: #10b981;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-portal-btn {
    background: var(--gold-gradient);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 38px;
}

.admin-portal-btn:hover {
    background: var(--gold-gradient-hover);
    color: #000;
    transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold-border);
    color: #ffffff;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
    background: rgba(212, 175, 55, 0.25);
    color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   NAVIGATION BAR & MOBILE DRAWER
   -------------------------------------------------------------------------- */
.main-nav {
    background: #081d38;
    border-bottom: 1px solid #1a3862;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-header {
    display: none;
    padding: 1rem;
    background: var(--navy-dark);
    border-bottom: 2px solid var(--gold-primary);
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    overflow-x: auto;
    padding: 0.35rem 0;
    margin: 0;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: #f1f5f9;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    min-height: 36px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--navy-medium);
    color: var(--gold-light);
}

.nav-link.active {
    border-bottom: 2px solid var(--gold-primary);
}

.mobile-nav-search {
    display: none;
    padding: 1rem;
    background: #07162c;
    border-top: 1px solid #1e3d59;
}

.mobile-search-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #0d284f;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.mobile-search-btn {
    background: var(--gold-primary);
    color: var(--navy-dark);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 700;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 13, 26, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999;
}

/* --------------------------------------------------------------------------
   FAST CATEGORY PILLS (MOBILE HORIZONTAL TOUCH SCROLLER)
   -------------------------------------------------------------------------- */
.mobile-category-pills {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--navy-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.15s;
    min-height: 32px;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--navy-primary);
    color: var(--gold-light);
    border-color: var(--navy-primary);
}

/* --------------------------------------------------------------------------
   SARKARI FLASH TICKER / MARQUEE
   -------------------------------------------------------------------------- */
.breaking-ticker-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--crown-red);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    z-index: 2;
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0.35rem 0.75rem;
}

.ticker-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-anim 35s linear infinite;
    font-size: 0.86rem;
    font-weight: 600;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 2rem;
    color: var(--navy-primary);
}

.ticker-item:hover {
    color: var(--crown-red);
    text-decoration: underline;
}

.ticker-item .new-tag {
    background: var(--gold-primary);
    color: var(--navy-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 4px;
    text-transform: uppercase;
}

@keyframes marquee-anim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   HERO / SEARCH SECTION
   -------------------------------------------------------------------------- */
.hero-banner {
    background: linear-gradient(180deg, #07162c 0%, #0d284f 100%);
    color: #ffffff;
    padding: 2.25rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--gold-primary);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-crest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.hero-heading span {
    color: var(--gold-light);
}

.hero-subtext {
    font-size: clamp(0.85rem, 2vw, 1.02rem);
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.search-box-card {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
}

.search-input-field {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-sans);
    min-height: 44px;
}

.search-input-field:focus {
    border-color: var(--navy-primary);
}

.search-select-field {
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    outline: none;
    background: #f8fafc;
    color: var(--text-main);
    min-height: 44px;
}

.search-submit-btn {
    background: var(--navy-primary);
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 44px;
}

.search-submit-btn:hover {
    background: var(--gold-gradient);
    color: var(--navy-dark);
}

/* --------------------------------------------------------------------------
   SARKARI RESULT SIGNATURE COLOR BOXES (HOT JOB TILES)
   -------------------------------------------------------------------------- */
.sarkari-hot-tiles-section {
    max-width: 1280px;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

.sarkari-hot-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.hot-tile {
    padding: 12px 14px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid rgba(255,255,255,0.25);
    -webkit-tap-highlight-color: transparent;
}

.hot-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    color: #ffffff;
}

.hot-tile:active {
    transform: scale(0.98);
}

.hot-tile::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hot-tile.navy { background: linear-gradient(135deg, #07162c 0%, #0d284f 100%); border-left: 5px solid var(--gold-primary); }
.hot-tile.crimson { background: linear-gradient(135deg, #990000 0%, #cc0000 100%); border-left: 5px solid #ffcc00; }
.hot-tile.teal { background: linear-gradient(135deg, #005a70 0%, #0087a8 100%); border-left: 5px solid #5ce1e6; }
.hot-tile.purple { background: linear-gradient(135deg, #4a154b 0%, #611f69 100%); border-left: 5px solid #ecb22e; }
.hot-tile.amber { background: linear-gradient(135deg, #8a4b08 0%, #bf6a02 100%); border-left: 5px solid #ffde59; }
.hot-tile.emerald { background: linear-gradient(135deg, #0a5c36 0%, #107c41 100%); border-left: 5px solid #70e000; }
.hot-tile.royal-blue { background: linear-gradient(135deg, #003366 0%, #00509d 100%); border-left: 5px solid var(--gold-light); }
.hot-tile.indigo { background: linear-gradient(135deg, #2b2d42 0%, #4a4e69 100%); border-left: 5px solid #f28482; }

.tile-title {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tile-meta {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.92;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   SARKARI RESULT MULTI-COLUMN JOBS GRID & MOBILE TABS
   -------------------------------------------------------------------------- */
.sarkari-columns-section {
    max-width: 1280px;
    margin: 1.5rem auto 2.5rem auto;
    padding: 0 1rem;
}

.section-head-bar {
    background: var(--navy-primary);
    border-top: 3px solid var(--gold-primary);
    color: #ffffff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-head-bar h2 {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Tabs switcher for the 3 columns */
.mobile-column-tabs {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.mobile-col-tab {
    background: #e2e8f0;
    color: var(--navy-primary);
    border: 1px solid #cbd5e1;
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s;
    min-height: 48px;
}

.mobile-col-tab.active {
    background: var(--navy-primary);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

.sarkari-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sarkari-column-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.col-header {
    background: #081d38;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--gold-primary);
}

.col-header.nhs { border-top-color: #005ea5; }
.col-header.defence { border-top-color: var(--crown-red); }

.col-body-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.col-job-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.col-job-row:hover {
    background-color: #f1f5f9;
}

.col-job-row:last-child {
    border-bottom: none;
}

.job-row-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1.35;
}

.col-job-row:hover .job-row-title {
    color: var(--crown-red);
}

.job-row-org {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-row-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 0.74rem;
}

.badge-vacancies {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge-last-date {
    color: #b91c1c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.col-footer-link {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 0.6rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--navy-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-footer-link:hover {
    background: var(--navy-primary);
    color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   MASTER SARKARI RECRUITMENT TABLE (RESPONSIVE TABLE-TO-CARDS)
   -------------------------------------------------------------------------- */
.sarkari-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sarkari-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 0.88rem;
    background: #ffffff;
}

.sarkari-table th {
    background: var(--navy-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #1a3862;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-size: 0.88rem;
}

.sarkari-table td {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
}

.sarkari-table tr:nth-child(even) {
    background: #f8fafc;
}

.sarkari-table tr:hover {
    background: #f1f5f9;
}

/* ACTION BUTTONS */
.btn-sarkari-apply {
    background: var(--emerald-green);
    color: #ffffff !important;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 135, 90, 0.3);
    transition: all 0.2s;
    font-size: 0.85rem;
    min-height: 36px;
    white-space: nowrap;
}

.btn-sarkari-apply:hover {
    background: var(--emerald-hover);
    transform: translateY(-1px);
}

.btn-sarkari-link {
    background: var(--navy-primary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: all 0.2s;
    min-height: 36px;
    white-space: nowrap;
}

.btn-sarkari-link:hover {
    background: var(--gold-gradient);
    color: var(--navy-dark) !important;
}

/* --------------------------------------------------------------------------
   JOB DETAIL PAGE
   -------------------------------------------------------------------------- */
.job-detail-container {
    max-width: 1100px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem;
}

.job-detail-box {
    background: #ffffff;
    border: 2px solid var(--navy-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.job-detail-header {
    background: linear-gradient(135deg, #051224 0%, #0d284f 100%);
    color: #ffffff;
    padding: 1.25rem 1rem;
    border-bottom: 3px solid var(--gold-primary);
    text-align: center;
    position: relative;
}

.job-detail-header .dept-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.job-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.job-detail-subtitle {
    color: #cbd5e1;
    font-size: 0.88rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.5rem;
}

.job-detail-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* SARKARI DUAL INFO CARD: DATES & FEES */
.sarkari-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.sarkari-info-panel {
    padding: 1rem 1.25rem;
}

.sarkari-info-panel:first-child {
    border-right: 1px solid var(--border-color);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-primary);
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sarkari-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sarkari-data-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.sarkari-data-list li:last-child {
    border-bottom: none;
}

.sarkari-data-list strong { color: var(--navy-dark); }
.sarkari-data-list .highlight-red { color: var(--crown-red); font-weight: 700; }
.sarkari-data-list .highlight-green { color: var(--emerald-green); font-weight: 700; }

.age-limit-strip {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.vacancy-table-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* IMPORTANT LINKS TABLE */
.important-links-section {
    padding: 1.25rem;
    background: #ffffff;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.links-table th {
    background: var(--navy-primary);
    color: #ffffff;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border: 1px solid #1e3d59;
}

.links-table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    vertical-align: middle;
}

.links-table td:first-child {
    font-weight: 700;
    color: var(--navy-primary);
    width: 55%;
}

.links-table td:last-child {
    text-align: center;
    width: 45%;
}

/* JOB FLYER / BANNER IMAGE */
.job-banner-box {
    margin: 1.25rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: #f8fafc;
}

.job-banner-img {
    max-width: 100%;
    max-height: 450px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   APPLY BRIDGE PAGE
   -------------------------------------------------------------------------- */
.apply-bridge-card {
    max-width: 650px;
    width: 100%;
    margin: 2rem auto;
    background: #ffffff;
    border: 2px solid var(--navy-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    overflow: hidden;
}

.bridge-header {
    background: var(--navy-primary);
    color: #ffffff;
    padding: 1.25rem 1rem;
    border-bottom: 3px solid var(--gold-primary);
}

.bridge-body {
    padding: 1.5rem 1.25rem;
}

.bridge-countdown-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-primary);
    margin: 1rem auto;
    box-shadow: var(--shadow-gold);
}

.bridge-btn-proceed {
    background: var(--emerald-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.4);
    min-height: 48px;
}

.bridge-btn-proceed:hover {
    background: var(--emerald-hover);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   MOBILE STICKY QUICK BOTTOM BAR
   -------------------------------------------------------------------------- */
.mobile-quick-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: #040d1a;
    border-top: 2px solid var(--gold-primary);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}

.quick-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    gap: 3px;
    flex: 1;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.quick-bar-item i {
    font-size: 1.1rem;
}

.quick-bar-item:hover,
.quick-bar-item.active {
    color: var(--gold-light);
}

.quick-bar-item.apply-pulse {
    color: #34d399;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    background: #040d1a;
    color: #cbd5e1;
    border-top: 3px solid var(--gold-primary);
    margin-top: auto;
    padding: 2.5rem 1rem 1.5rem 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   DEEP PROFESSIONAL RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* TABLETS (Max-width: 992px) */
@media (max-width: 992px) {
    .sarkari-triple-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-column-tabs {
        display: grid;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* SMARTPHONES & SMALL TABLETS (Max-width: 768px) */
@media (max-width: 768px) {
    /* Header layout */
    .header-container {
        padding: 0.75rem 0.85rem;
        gap: 0.5rem;
    }

    .brand-logo-container {
        width: 52px;
        height: 52px;
    }

    .brand-wrapper {
        gap: 0.75rem;
    }

    .brand-badge {
        display: none; /* Hide lengthy text to keep header compact */
    }

    .admin-portal-btn .btn-text {
        display: none;
    }

    .admin-portal-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    /* Mobile off-canvas drawer navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        z-index: 10000;
        background: #07162c;
        border-left: 2px solid var(--gold-primary);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .main-nav.open {
        right: 0;
    }

    .mobile-nav-overlay.open {
        display: block;
    }

    .mobile-nav-header {
        display: flex;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        height: 100%;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        padding: 0.75rem;
        gap: 4px;
        overflow-y: auto;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
    }

    .mobile-nav-search {
        display: block;
        margin-top: auto;
    }

    .mobile-category-pills {
        display: flex;
    }

    .mobile-quick-bar {
        display: flex;
    }

    /* Search Form Stacking */
    .search-box-card {
        flex-direction: column;
        padding: 0.5rem;
        gap: 8px;
    }

    .search-input-field,
    .search-select-field,
    .search-submit-btn {
        width: 100% !important;
        font-size: 16px !important; /* Prevents auto-zoom on iOS inputs */
    }

    /* Sarkari Dual Info Box */
    .sarkari-table-grid {
        grid-template-columns: 1fr;
    }

    .sarkari-info-panel:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* TRANSFORM MASTER SARKARI TABLE INTO CLEAN MOBILE CARDS */
    .sarkari-table,
    .sarkari-table tbody,
    .sarkari-table tr,
    .sarkari-table td {
        display: block;
        width: 100% !important;
    }

    .sarkari-table thead {
        display: none !important; /* Hide column headers on mobile */
    }

    .sarkari-table tr {
        margin: 0 0 1rem 0;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-left: 4px solid var(--navy-primary);
        border-radius: 6px;
        box-shadow: var(--shadow-sm);
        padding: 1rem;
    }

    .sarkari-table td {
        border: none;
        padding: 4px 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .sarkari-table td:first-child {
        display: none; /* Hide numerical index # on mobile */
    }

    .sarkari-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        font-size: 0.75rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Action buttons on mobile card */
    .sarkari-table td:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e2e8f0;
    }

    .sarkari-table td:last-child .btn-sarkari-link,
    .sarkari-table td:last-child .btn-sarkari-apply {
        width: 100%;
        min-height: 42px;
        font-size: 0.85rem;
        margin: 0 !important;
    }

    /* Links Table on Mobile (Job Details Page) */
    .links-table,
    .links-table tbody,
    .links-table tr,
    .links-table td {
        display: block;
        width: 100% !important;
    }

    .links-table thead {
        display: none;
    }

    .links-table tr {
        background: #ffffff;
        border-bottom: 2px solid #e2e8f0;
        padding: 0.85rem;
    }

    .links-table td {
        border: none;
        padding: 4px 0;
        width: 100% !important;
    }

    .links-table td:last-child {
        margin-top: 8px;
    }

    .links-table td:last-child .btn-sarkari-apply,
    .links-table td:last-child .btn-sarkari-link {
        width: 100% !important;
        min-height: 46px;
        font-size: 0.92rem;
    }
}

/* EXTRA SMALL SCREENS & PHONES (Max-width: 480px) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .brand-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .brand-logo-container {
        width: 44px;
        height: 44px;
    }

    .sarkari-hot-tiles-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .job-detail-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .ticker-label-text {
        display: none; /* Only show bolt icon on tiny screens */
    }

    .ticker-label {
        padding: 0.45rem 0.75rem;
    }

    .bridge-btn-proceed {
        width: 100%;
        font-size: 0.92rem;
    }
}
