/* =========================================================
   MY JOB ALERT INDIA - ULTRA-FAST, VIBRANT & ATTRACTIVE CSS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@500;700;800&display=swap');

:root {
    --brand-primary: #dc2626;
    --brand-primary-dark: #991b1b;
    --brand-accent: #f59e0b;
    --brand-blue: #0284c7;
    --brand-green: #10b981;
    --brand-purple: #8b5cf6;
    --brand-teal: #0d9488;
    
    --nav-bg: #0f172a;
    --nav-hover: #1e293b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --link-color: #0b57d0;
    --link-hover: #dc2626;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.55;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.18s ease-in-out;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Bar (High Contrast Dark Slate Header Bar) */
.top-bar {
    background: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
    position: relative;
    z-index: 100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #ef4444;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

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

.top-bar-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.18s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.top-bar-links a:hover {
    transform: translateY(-1.5px);
    filter: brightness(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-decoration: none;
}

/* Indian Flag Subtle Watermark Waves (Soft & Elegant) */
.tricolor-wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.tricolor-wave-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.22; /* Soft Watermark Look */
    filter: blur(0.5px);
}

.tricolor-wave-svg.wave-cross {
    transform: scaleY(-1);
    opacity: 0.14; /* Delicate Cross Watermark */
}

/* Main Brand Header (Light with Crossing Tricolor Waves) */
.site-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    color: #0f172a;
    padding: 24px 0 20px 0;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(220, 38, 38, 0.04) 0%, rgba(2, 132, 199, 0.04) 50%, transparent 75%);
    pointer-events: none;
}

.header-content-box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.domain-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e3a8a;
    padding: 4px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
}

.domain-badge-pill:hover {
    border-color: #FF671F;
    box-shadow: 0 4px 14px rgba(255, 103, 31, 0.2);
}

.brand-title {
    font-size: clamp(24px, 3.8vw, 36px);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.brand-title a {
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-title .title-myjob {
    background: linear-gradient(180deg, #0f172a 20%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9));
    white-space: nowrap;
}

.brand-title .title-accent {
    background: linear-gradient(180deg, #FF671F 0%, #ea580c 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 103, 31, 0.45));
    letter-spacing: 0.5px;
    font-weight: 900;
}

/* Vertical Flipping / Scrolling India Rotator Component */
.india-rotator-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 1.25em;
    line-height: 1.25;
    vertical-align: middle;
    min-width: 165px;
    text-align: left;
}

@media (max-width: 600px) {
    .india-rotator-wrapper {
        min-width: 115px;
    }
}

.india-rotator-word {
    display: inline-block;
    white-space: nowrap;
    will-change: transform, opacity;
}

.india-rotator-word.active {
    position: relative;
    transform: translateY(0);
    opacity: 1;
}

.india-rotator-word.next {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.india-flag-icon {
    font-size: 26px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: flagWaving 3s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes flagWaving {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.08); }
    100% { transform: rotate(-5deg) scale(1); }
}

.brand-tagline {
    font-size: 14.5px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.85);
    padding: 3px 14px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.brand-tagline span.star {
    color: #f59e0b;
}

/* Main Navigation */
.main-nav {
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 15px;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.18s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 #fbbf24;
}

/* Mobile Category Navigation Menu Toggle Button */
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    margin: 6px 0;
    transition: all 0.2s ease;
}

.nav-mobile-toggle:hover,
.nav-mobile-toggle.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #f87171;
}

.nav-mobile-toggle .hamburger-icon {
    font-size: 18px;
    margin-right: 8px;
}

.nav-mobile-toggle .toggle-text {
    flex-grow: 1;
    text-align: left;
}

.nav-mobile-toggle .toggle-arrow {
    font-size: 12px;
    color: #fbbf24;
}

/* Mobile Responsive Navigation (Screen width <= 768px) */
@media screen and (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 6px 10px;
    }

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

    .nav-links {
        display: none !important; /* Collapsed by default on mobile so categories don't flood the page! */
        flex-direction: column;
        width: 100%;
        background: #0f172a;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 6px;
        margin-top: 6px;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

    .nav-links.show {
        display: flex !important; /* Revealed smoothly on tap */
        animation: navSlideDown 0.22s ease-out forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 11px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 13.5px;
    }

    .nav-search {
        width: 100%;
        margin-top: 6px;
    }

    .nav-search form {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar in Nav */
.nav-search {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.nav-search form {
    display: flex;
    align-items: center;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search form:focus-within {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.nav-search input {
    border: none;
    background: transparent;
    padding: 7px 12px;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    width: 190px;
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search button {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    padding: 7px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: filter 0.15s;
}

.nav-search button:hover {
    filter: brightness(1.15);
}

/* Breaking News / Marquee */
.marquee-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--brand-primary);
    margin: 14px auto;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.marquee-label {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-weight: 800;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.marquee-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content marquee, .marquee-content a {
    font-weight: 700;
    color: #0b57d0;
}

.marquee-content a:hover {
    color: #dc2626;
}

/* 🔴 Live Status Ticker & Countdown Bar */
.live-status-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 14px 0 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.live-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: livePulseGlow 1.6s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes livePulseGlow {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

.countdown-clock {
    font-family: monospace;
    font-weight: 900;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    letter-spacing: 1px;
}

.hot-badge-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ⚡ Live Real-Time Activity Toast Notification */
.live-activity-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #22c55e;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    animation: toastSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.toast-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}

.toast-close:hover {
    color: #0f172a;
}

[data-theme="dark"] .live-activity-toast,
.dark-theme .live-activity-toast {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
    border-left-color: #22c55e;
}

[data-theme="dark"] .toast-title,
.dark-theme .toast-title {
    color: #f8fafc;
}
.hot-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin: 14px auto 18px auto;
}

.hot-card {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 13.5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.hot-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
    pointer-events: none;
}

.hot-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.1);
    filter: brightness(1.08);
}

.hot-card.c1 { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.hot-card.c2 { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.hot-card.c3 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.hot-card.c4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.hot-card.c5 { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.hot-card.c6 { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.hot-card.c7 { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }
.hot-card.c8 { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }

/* Notice Banner */
.notice-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 13.5px;
    color: #92400e;
    box-shadow: var(--shadow-sm);
}

/* Category Columns Grid */
.portal-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.portal-columns-grid.secondary {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.portal-col {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-col:hover {
    box-shadow: var(--shadow-lg);
}

.portal-col-header {
    padding: 10px 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.col-result .portal-col-header { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.col-admit .portal-col-header { background: linear-gradient(135deg, #0284c7, #0369a1); }
.col-jobs .portal-col-header { background: linear-gradient(135deg, #059669, #047857); }
.col-answer .portal-col-header { background: linear-gradient(135deg, #ea580c, #c2410c); }
.col-syllabus .portal-col-header { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.col-admission .portal-col-header { background: linear-gradient(135deg, #d97706, #b45309); }
.col-bank .portal-col-header { background: linear-gradient(135deg, #0f766e, #115e59); }
.col-cert .portal-col-header { background: linear-gradient(135deg, #0f766e, #115e59); }
.col-important .portal-col-header { background: linear-gradient(135deg, #4338ca, #312e81); }

.portal-col-body {
    padding: 0;
    flex: 1;
}

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

.portal-list li {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 12px;
    font-size: 13px;
    position: relative;
    line-height: 1.4;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.portal-list li:hover {
    background-color: #f8fafc;
    padding-left: 15px;
}

.portal-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #0b57d0;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
}

.portal-post-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    max-height: 2.7em;
    word-break: break-word;
}


.portal-list li a:hover .portal-post-title {
    color: #dc2626;
    text-decoration: underline;
}

.portal-post-date {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
}

.portal-list li:hover .portal-post-date {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

[data-theme="dark"] .portal-post-link,
.dark-theme .portal-post-link {
    color: #60a5fa;
}

[data-theme="dark"] .portal-post-date,
.dark-theme .portal-post-date {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

[data-theme="dark"] .portal-list li:hover .portal-post-date,
.dark-theme .portal-list li:hover .portal-post-date {
    background: #450a0a;
    color: #fca5a5;
    border-color: #991b1b;
}

.portal-list li::before {
    content: none !important;
    display: none !important;
}

.portal-col-footer {
    padding: 8px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.view-more-btn {
    font-size: 12px;
    font-weight: 800;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
}

.view-more-btn:hover {
    color: #7f1d1d;
    background: #fee2e2;
    text-decoration: none;
}

/* Post Details Page Structure */
.post-detail-card {
    background: #ffffff;
    border: 2px solid #b91c1c;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 18px auto 28px auto;
    box-shadow: var(--shadow-lg);
}

.post-header-area {
    text-align: center;
    border-bottom: 2px solid #fee2e2;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.post-org-title {
    font-size: 21px;
    font-weight: 900;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.post-exam-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0;
}

.post-short-desc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

/* Dual Column Structured Tables */
.dual-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.sarkari-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.65;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sarkari-table th {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: 0.3px;
}

.sarkari-table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Important Links Table */
.links-table th {
    background: linear-gradient(135deg, #0d9488, #0f766e) !important;
}

.link-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff !important;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.25);
    transition: all 0.15s ease;
}

.link-action-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(220, 38, 38, 0.35);
}

/* Advertisement Slots */
.ad-container {
    margin: 16px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-placeholder {
    background: #e2e8f0;
    border: 1px dashed #94a3b8;
    color: #475569;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

/* Footer Area */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    color: #94a3b8;
    padding: 36px 0 20px 0;
    margin-top: 40px;
    border-top: 4px solid var(--brand-primary);
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
    padding-bottom: 4px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

.footer-disclaimer {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    font-size: 12.5px;
    color: #64748b;
}

/* Action Share & Print Toolbar */
.post-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
}

.action-btn-group button, .action-btn-group a {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.action-btn-group button:hover, .action-btn-group a:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .portal-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-columns-grid.secondary {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .portal-columns-grid, .portal-columns-grid.secondary {
        grid-template-columns: 1fr;
    }
    .dual-table-grid {
        grid-template-columns: 1fr;
    }
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }
    .nav-search {
        padding: 6px 12px 10px 12px;
    }
    .nav-search form {
        width: 100%;
    }
    .nav-search input {
        width: 100%;
    }
    .brand-title {
        font-size: 26px;
    }
}

/* =========================================================
   FLOATING ACTION BUTTONS (WHATSAPP & SCROLL TO TOP)
   ========================================================= */

/* Left-Bottom Floating WhatsApp Channel Button (High-Focus Animations) */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), 0 0 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    animation: waAttentionBounce 3.5s infinite ease-in-out;
}

.floating-wa-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: waIconRotate 7s infinite ease-in-out;
}

.floating-wa-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.8), 0 0 25px rgba(37, 211, 102, 0.6);
}

/* Dual Pulse Rings for Maximum Visibility */
.floating-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: waPulse 2s infinite ease-out;
    pointer-events: none;
}

.floating-wa-pulse.pulse-ring-2 {
    animation-delay: 0.8s;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes waAttentionBounce {
    0%, 80%, 100% { transform: translateY(0) scale(1); }
    85% { transform: translateY(-10px) scale(1.12); }
    90% { transform: translateY(0) scale(0.95); }
    93% { transform: translateY(-5px) scale(1.06); }
    96% { transform: translateY(0) scale(1); }
}

@keyframes waIconRotate {
    0%, 88%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(-15deg); }
    92% { transform: rotate(15deg); }
    94% { transform: rotate(-10deg); }
    96% { transform: rotate(10deg); }
}

/* Persistent Animated Badge Label Next to Floating Button */
.floating-wa-badge-pill {
    position: absolute;
    left: 68px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid #25D366;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    animation: badgePulseGlow 2.5s infinite ease-in-out;
    letter-spacing: 0.3px;
}

.wa-badge-live-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #25D366;
    animation: liveDotBlink 1.2s infinite;
}

@keyframes badgePulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 10px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 18px rgba(37, 211, 102, 0.8); }
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}
}

/* Right-Bottom Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    outline: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

/* =========================================================
   OTR & OPERATOR PORTAL BADGES & CARDS
   ========================================================= */
.otr-pill-badge {
    background: linear-gradient(135deg, #FF671F, #dc2626);
    color: #ffffff;
    font-weight: 800;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.operator-pill-badge {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 800;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =========================================================
   UNIVERSAL FORM & INPUT CONTROLS DESIGN SYSTEM
   ========================================================= */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

.candidate-form .form-control:focus,
.otr-card-wrap .form-control:focus,
.login-box .form-control:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Styled Select Dropdown */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

/* Textarea styling */
textarea.form-control {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    cursor: pointer;
}

input[type="file"].form-control:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

/* Form Layout Grids */
.form-row, .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

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

/* Post Badges (NEW & UPDATED) */
.badge-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.badge-new {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    animation: badgePulse 2s infinite;
}

.badge-updated {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

@keyframes badgePulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Dark Mode Theme Overrides */
body.dark-theme {
    background-color: #0b0f19 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .top-bar {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: #1e293b !important;
}

body.dark-theme .portal-col,
body.dark-theme .admin-card,
body.dark-theme .post-detail-card,
body.dark-theme div[style*="background:#ffffff"],
body.dark-theme div[style*="background: #ffffff"] {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #f3f4f6 !important;
}

body.dark-theme .portal-list li {
    border-bottom-color: #1f2937 !important;
}

body.dark-theme .portal-list a,
body.dark-theme a[style*="color:#0b57d0"] {
    color: #38bdf8 !important;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4 {
    color: #f9fafb !important;
}

body.dark-theme .form-control {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border-color: #374151 !important;
}

body.dark-theme #themeToggleBtn {
    background: #1f2937 !important;
    color: #fbbf24 !important;
    border-color: #374151 !important;
}

/* Printable PDF & Paper Print Styles */
@media print {
    .top-bar,
    .site-header,
    .main-nav,
    .site-footer,
    .post-action-bar,
    .floating-wa-btn,
    .scroll-top-btn,
    #webPushBanner,
    .ad-banner-box,
    #pdfModal,
    .nav-search {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .post-detail-card {
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        padding: 15px !important;
    }

    .sarkari-table th {
        background: #333333 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        text-decoration: none !important;
        color: #000000 !important;
    }
}

/* =========================================================
   DARK MODE THEME SYSTEM (High-Contrast & Easy Reading)
   ========================================================= */
[data-theme="dark"] {
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --link-color: #38bdf8;
    --link-hover: #f87171;
    --bg-page: #0b1120;
    --bg-card: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.7);
}

[data-theme="dark"] body {
    background-color: #0b1120;
    color: #f8fafc;
}

[data-theme="dark"] .top-bar {
    background: #020617;
    border-color: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .top-bar-links a {
    color: #e2e8f0;
}

[data-theme="dark"] .top-bar-links a:hover {
    background: #334155;
    color: #ffffff;
}

[data-theme="dark"] .main-header {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme="dark"] .portal-col,
[data-theme="dark"] .post-details-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .custom-portal-card,
[data-theme="dark"] .notice-box {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-theme="dark"] .portal-col-header {
    border-color: #334155;
    color: #ffffff !important;
}

[data-theme="dark"] .portal-col ul li {
    border-color: #334155;
}

[data-theme="dark"] .portal-col ul li a {
    color: #38bdf8;
}

[data-theme="dark"] .sarkari-table {
    border-color: #334155;
    background: #1e293b;
}

[data-theme="dark"] .sarkari-table th {
    background: #0f172a;
    color: #ffffff;
    border-color: #334155;
}

[data-theme="dark"] .sarkari-table td {
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .sarkari-table tr:nth-child(even) {
    background: #0f172a;
}

[data-theme="dark"] .sarkari-table tr:hover {
    background: #334155;
}

[data-theme="dark"] input.form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

[data-theme="dark"] input.form-control:focus,
[data-theme="dark"] select.form-control:focus,
[data-theme="dark"] textarea.form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .site-footer {
    background: #020617;
    border-color: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .footer-col h4 {
    color: #f8fafc;
}

[data-theme="dark"] .footer-disclaimer {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .post-short-desc {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .login-box {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .login-box label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .login-box input.form-control,
[data-theme="dark"] .login-box select.form-control {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .post-detail-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .marquee-bar {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .brand-title .title-myjob,
.dark-theme .brand-title .title-myjob {
    background: linear-gradient(180deg, #ffffff 20%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* Inline Dark Colors Overrides for Dark Mode High Contrast & Text Visibility */
[data-theme="dark"] [style*="color:#0f172a"],
[data-theme="dark"] [style*="color: #0f172a"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color: #1e293b"],
[data-theme="dark"] [style*="color:#334155"],
[data-theme="dark"] [style*="color: #334155"],
[data-theme="dark"] [style*="color:#475569"],
[data-theme="dark"] [style*="color: #475569"],
[data-theme="dark"] [style*="color:#000000"],
[data-theme="dark"] [style*="color: #000000"],
[data-theme="dark"] [style*="color:#000"],
.dark-theme [style*="color:#0f172a"],
.dark-theme [style*="color: #0f172a"],
.dark-theme [style*="color:#1e293b"],
.dark-theme [style*="color: #1e293b"],
.dark-theme [style*="color:#334155"],
.dark-theme [style*="color: #334155"],
.dark-theme [style*="color:#475569"],
.dark-theme [style*="color: #475569"] {
    color: #f8fafc !important;
}

[data-theme="dark"] [style*="color:#0b57d0"],
[data-theme="dark"] [style*="color: #0b57d0"],
.dark-theme [style*="color:#0b57d0"],
.dark-theme [style*="color: #0b57d0"] {
    color: #38bdf8 !important;
}

[data-theme="dark"] .portal-list a,
.dark-theme .portal-list a {
    color: #38bdf8 !important;
}

[data-theme="dark"] .post-org-title,
.dark-theme .post-org-title {
    color: #38bdf8 !important;
}

[data-theme="dark"] .post-exam-name,
.dark-theme .post-exam-name {
    color: #f8fafc !important;
}

/* Universal Dark Mode Overrides for All Special Pages (Category, Search, OTR, Resume Builder, Documents, Verification) */
[data-theme="dark"] .modal-content,
.dark-theme .modal-content {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .modal-header,
.dark-theme .modal-header {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .modal-footer,
.dark-theme .modal-footer {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .card,
.dark-theme .card,
[data-theme="dark"] .custom-portal-card,
.dark-theme .custom-portal-card,
[data-theme="dark"] .resume-card,
.dark-theme .resume-card,
[data-theme="dark"] .doc-card,
.dark-theme .doc-card {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .pagination a,
.dark-theme .pagination a {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .pagination .active,
.dark-theme .pagination .active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .alert-info,
.dark-theme .alert-info {
    background: #0f2744 !important;
    color: #7dd3fc !important;
    border-color: #0284c7 !important;
}

[data-theme="dark"] .alert-success,
.dark-theme .alert-success {
    background: #064e3b !important;
    color: #6ee7b7 !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .alert-warning,
.dark-theme .alert-warning {
    background: #451a03 !important;
    color: #fde047 !important;
    border-color: #d97706 !important;
}

[data-theme="dark"] .alert-error,
.dark-theme .alert-error {
    background: #451212 !important;
    color: #fca5a5 !important;
    border-color: #dc2626 !important;
}

[data-theme="dark"] .portal-col-footer,
.dark-theme .portal-col-footer {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

[data-theme="dark"] .view-more-btn,
.dark-theme .view-more-btn {
    color: #f87171 !important;
}

[data-theme="dark"] .view-more-btn:hover,
.dark-theme .view-more-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .portal-list li:hover,
.dark-theme .portal-list li:hover {
    background-color: #0f172a !important;
}

/* =========================================================
   LATEST INFORMATION SECTION STYLES
   ========================================================= */
.latest-info-card {
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.12);
    margin-bottom: 25px;
    overflow: hidden;
}

.latest-info-header {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.latest-info-header h2 {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.latest-info-header .view-all-link {
    background: #ffffff;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.latest-info-header .view-all-link:hover {
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.latest-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1px;
    background: #e2e8f0;
}

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

.latest-info-item {
    background: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}

.latest-info-item:hover {
    background-color: #f8fafc;
    border-left-color: #dc2626;
}

.category-pill-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.latest-info-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-info-item:hover .latest-info-title {
    color: #b91c1c;
    text-decoration: underline;
}

.info-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 2px;
}

.info-arrow {
    font-weight: 900;
    color: #dc2626;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.latest-info-item:hover .info-arrow {
    transform: translateX(4px);
}

/* Dark Mode Overrides */
[data-theme="dark"] .latest-info-card,
.dark-theme .latest-info-card {
    background: #1e293b;
    border-color: #ef4444;
}

[data-theme="dark"] .latest-info-tabs,
.dark-theme .latest-info-tabs {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .info-tab-btn,
.dark-theme .info-tab-btn {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

[data-theme="dark"] .info-tab-btn.active,
.dark-theme .info-tab-btn.active {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

[data-theme="dark"] .latest-info-grid,
.dark-theme .latest-info-grid {
    background: #0f172a;
}

[data-theme="dark"] .latest-info-item,
.dark-theme .latest-info-item {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .latest-info-title,
.dark-theme .latest-info-title {
    color: #f8fafc;
}

[data-theme="dark"] .latest-info-item:hover,
.dark-theme .latest-info-item:hover {
    background: #334155;
    border-color: #ef4444;
}


[data-theme="dark"] .latest-info-item:hover,
.dark-theme .latest-info-item:hover {
    background: #0f172a;
}

[data-theme="dark"] .latest-info-title,
.dark-theme .latest-info-title {
    color: #f1f5f9;
}

/* Accessibility Keyboard Focus Indicator Rules for 100/100 Lighthouse Score */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2.5px solid #0284c7 !important;
    outline-offset: 2px !important;
}

/* =========================================================
   GLOBAL FORM CONTROLS, BUTTONS & SARKARI TOOLS SUITE
   ========================================================= */
.form-control {
    width: 100%;
    padding: 9px 13px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-control:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13.5px;
    font-family: inherit;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease-in-out;
    text-decoration: none !important;
}

.btn-primary {
    background: #0284c7;
    color: #ffffff !important;
    border-color: #0284c7;
}

.btn-primary:hover {
    background: #0369a1;
    border-color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border-color: #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
}

/* Sarkari Tools Responsive Workspace */
.tool-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 26px;
    align-items: start;
}

@media (max-width: 920px) {
    .tool-grid {
        grid-template-columns: 1fr !important;
    }
}

.bg-color-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bg-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.doc-filter-btn {
    transition: all 0.15s ease;
}

.doc-filter-btn:hover {
    background: #f0fdf4 !important;
    border-color: #059669 !important;
}

/* Smart Responsive Sliding Pagination */
.smart-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 30px 0;
    width: 100%;
}

.smart-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.smart-pagination .page-item {
    display: inline-block;
}

.smart-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.smart-pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.smart-pagination .page-item.active .page-link {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
    cursor: default;
    pointer-events: none;
}

.smart-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    opacity: 0.7;
}

.smart-pagination .page-link.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    padding: 0 4px;
    min-width: auto;
    font-weight: 900;
}

@media (max-width: 640px) {
    .smart-pagination .page-link {
        min-width: 30px;
        height: 32px;
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* =========================================================
   COMPREHENSIVE MOBILE PHONE OPTIMIZATION RULES (320px - 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* Prevent horizontal page overflow on small devices */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Auto scrollable wrapper for tables to prevent layout breaking */
    .sarkari-table, table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent iOS Safari auto-zoom on input focus */
    input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
        font-size: 16px !important;
    }

    /* Post details mobile enhancements */
    .post-detail-card {
        padding: 14px !important;
        margin: 10px auto 20px auto !important;
    }

    .post-org-title {
        font-size: 18px !important;
    }

    .post-exam-name {
        font-size: 16px !important;
    }

    /* Floating WhatsApp button position & responsive badge on mobile (Lifted above sticky bottom bar) */
    .floating-wa-btn {
        bottom: 78px !important;
        left: 14px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .floating-wa-badge-pill {
        left: 56px !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
        max-width: calc(100vw - 90px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scroll-top-btn {
        bottom: 78px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* Hero section & tools hub mobile layout */
    .hero-section {
        padding: 24px 16px !important;
    }

    .hero-section h2 {
        font-size: 22px !important;
    }

    /* Modal adjustments on phones */
    .modal-card {
        padding: 20px 14px !important;
        max-width: 95% !important;
    }
}



