/*
Theme Name:       Gyapan
Theme URI:        https://gyapan.in
Author:           Gyapan
Author URI:       https://gyapan.in
Description:      Modern, stylish WordPress theme for the Gyapan govt-updates portal — 9 sections: Jobs, Results, Admit Cards, Tenders, Answer Keys, Admissions, Scholarships, Syllabus, Exam Dates. Auto-tracks SSC, UPSC, IBPS, Railway, Bank, and State PSC notifications. Navy + green accent palette, Inter font, glass-morphism touches, mobile-first. v1.7.0: pages and blog posts render with a live sidebar (no more blank space on both sides). v1.7.1: the homepage renders the plugin's Top Sections directly (front-page.php runs no Loop, so the plugin's auto-injection never fired there). v1.7.2: the theme defers JSON-LD to Gyapan Crawler v1.32.0+ (GYAPAN_CRAWLER_VERSION) - no more duplicate JobPosting schema on jobs posts. v1.7.3: the single-post emerald banner and sidebar CTA are category-aware - an admit-card post offers "Download Hall Ticket", a result post "Check Result", an answer key "Download Answer Key" - instead of a hardcoded "Apply Online" on every section (the KPSC admit-card banner promised the wrong action to every Google visitor). v1.8.0: a polite email subscription popup — once per session after a configurable delay, remembers dismissal/subscription in the browser, and feeds the footer form too; with no Mailchimp/Brevo URL set it stores subscribers natively (Appearance → Email Subscribers) instead of dead-submitting. v1.8.1: native-mode signups also create real WordPress users (Subscriber role) — managed in the normal Users screen, with an optional "account ready" notification mail. v1.9.0: the WP-user path is gone (owner's call — email-only, Jetpack-style); subscribers instead get notification mails on new posts — daily digest or instant mode, chunked sending that respects host mail limits, and a one-click HMAC unsubscribe link in every mail. v1.10.0: delivery moves to the real Jetpack newsletter system — with Jetpack connected, signups go straight into Jetpack Subscriptions (double opt-in confirmation mail + automatic new-post notification mails, all sent by WordPress.com) and the v1.9.0 self-hosted digest engine is retired; without Jetpack the native list keeps collecting as the fallback record.
Version:          1.13.1
Requires at least: 5.8
Tested up to:     6.6
Requires PHP:     7.4
License:          GPL v2 or later
License URI:      https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      gyapan
Tags:             jobs, results, admit-cards, tenders, government, news, two-column, right-sidebar, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — Modern Palette (v1.4.0)
   Emerald (primary action) + Indigo (info) + Amber (accent)
   ============================================================ */
:root {
    /* Primary brand — Indigo (sophisticated, trustworthy) */
    --indigo-900: #1e1b4b;
    --indigo-800: #312e81;
    --indigo-700: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --indigo-100: #e0e7ff;
    --indigo-50:  #eef2ff;

    /* Action color — Emerald (vibrant, positive) */
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    /* Accent — Amber (warm, attention-grabbing) */
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50:  #fffbeb;

    /* Legacy aliases (kept for backward compat with existing CSS) */
    --navy-900: #1e1b4b;
    --navy-800: #312e81;
    --navy-700: #4338ca;
    --navy-600: #4f46e5;
    --navy-100: #e0e7ff;
    --navy-50:  #eef2ff;

    --green-700: #047857;
    --green-600: #059669;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;

    --orange-600: #d97706;
    --orange-100: #fef3c7;

    --yellow-600: #ca8a04;
    --yellow-100: #fef3c7;

    /* Neutrals */
    --white: #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
    --font-display: 'Inter', sans-serif;

    /* Sizing */
    --container-max: 1280px; /* v1.13.1: was 1200px - pages felt squeezed on wide screens */
    --content-width: 720px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.03);

    /* Motion */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--navy-800); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--green-600); }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.site-main { padding: 32px 0 64px; min-height: 60vh; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.875rem, 1.4rem + 2.5vw, 2.5rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin: 32px 0 12px; }
h3 { font-size: 1.25rem; margin: 24px 0 8px; }
h4 { font-size: 1.125rem; margin: 20px 0 8px; }
p { margin-bottom: 16px; }
.entry-content p { font-size: 1.0625rem; line-height: 1.7; color: var(--gray-700); }
.entry-content h2 { border-bottom: 2px solid var(--navy-100); padding-bottom: 8px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
/* Header height and logo height are controlled by Customizer (Brand & Logo section) */
/* These are fallback defaults */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}
.site-branding {
    flex-shrink: 0;
}
.site-logo a {
    display: inline-flex;
    align-items: center;
    height: 40px;
}
.site-logo img {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
/* WordPress custom logo */
.custom-logo {
    height: 40px !important;
    width: auto !important;
    max-height: 80px !important;
    object-fit: contain;
}
/* Hide logo text when custom logo is set */
.has-custom-logo .site-logo-text { display: none; }
.site-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.03em;
}
.site-logo-text .accent { color: var(--green-600); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: inline-block;
}
.main-nav a:hover { color: var(--navy-800); background: var(--navy-50); }
.main-nav .current-menu-item > a { color: var(--navy-800); background: var(--navy-100); }

.header-search {
    position: relative;
    flex: 0 1 240px;
    margin-left: auto;
}
.header-search input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    background: var(--gray-50);
    transition: all var(--transition-fast);
}
.header-search input:focus {
    outline: none;
    border-color: var(--navy-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}
.header-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.menu-toggle { display: none; }

@media (max-width: 968px) {
    .header-search { display: none; }
}
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        margin-left: auto;
    }
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--gray-800);
        border-radius: 1px;
        transition: all var(--transition-fast);
    }
    /* On mobile, shrink the logo (customizer overrides) */
    .site-logo img,
    .custom-logo {
        height: 64px !important;
        max-height: 64px !important;
    }
    .header-inner { height: 80px; }
    .main-nav { top: 80px; max-height: calc(100vh - 80px); }
}

/* ============================================================
   FRONT PAGE — HERO (ANIMATED)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    color: var(--white);
    padding: 40px 0 44px;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(22, 163, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(44, 123, 176, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 76, 117, 0.1) 0%, transparent 70%);
    animation: heroGradientShift 18s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroGradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    33%      { transform: scale(1.1) rotate(2deg); opacity: 0.85; }
    66%      { transform: scale(0.95) rotate(-2deg); opacity: 0.95; }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-600);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--green-600);
    animation: floatParticle 12s linear infinite;
}
.hero-particle:nth-child(1)  { left: 10%; animation-delay: 0s;   animation-duration: 14s; }
.hero-particle:nth-child(2)  { left: 20%; animation-delay: 2s;   animation-duration: 11s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hero-particle:nth-child(3)  { left: 30%; animation-delay: 4s;   animation-duration: 16s; }
.hero-particle:nth-child(4)  { left: 40%; animation-delay: 1s;   animation-duration: 13s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hero-particle:nth-child(5)  { left: 50%; animation-delay: 3s;   animation-duration: 15s; }
.hero-particle:nth-child(6)  { left: 60%; animation-delay: 5s;   animation-duration: 12s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hero-particle:nth-child(7)  { left: 70%; animation-delay: 2s;   animation-duration: 17s; }
.hero-particle:nth-child(8)  { left: 80%; animation-delay: 4s;   animation-duration: 14s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hero-particle:nth-child(9)  { left: 90%; animation-delay: 6s;   animation-duration: 13s; }
.hero-particle:nth-child(10) { left: 15%; animation-delay: 7s;   animation-duration: 18s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.hero-particle:nth-child(11) { left: 25%; animation-delay: 8s;   animation-duration: 15s; }
.hero-particle:nth-child(12) { left: 75%; animation-delay: 9s;   animation-duration: 16s; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
@keyframes floatParticle {
    0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

.hero .container { position: relative; z-index: 2; }

/* Eyebrow with pulse */
.hero-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(22, 163, 74, 0.4);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out;
}
.hero-eyebrow::before {
    content: '●';
    margin-right: 6px;
    color: var(--green-600);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 720px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 .highlight {
    color: var(--green-600);
    position: relative;
    display: inline-block;
}
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green-600);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 1.2s ease-out 0.8s forwards;
}
@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Branded Hero Layouts */
.hero-inner {
    position: relative;
    z-index: 1;
}

/* Hero logo — animated, floating, with blend mode to fix white background */
.hero-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}
.hero-logo-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.22) 0%, rgba(15, 76, 117, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.hero-logo {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    /* CRITICAL: blend mode makes white background blend into dark hero */
    mix-blend-mode: lighten;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5)) brightness(1.05);
    animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Split layout: logo left, content right */
.hero-split .hero-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
}
.hero-split .hero-content {
    text-align: left;
}
.hero-split .hero-eyebrow { margin-bottom: 10px; }

/* Centered layout (with optional logo above) */
.hero-centered .hero-inner {
    text-align: center;
}
.hero-centered .hero-logo-wrap {
    margin-bottom: 20px;
}
.hero-centered .hero-logo {
    margin: 0 auto;
}
.hero-centered .hero-actions {
    justify-content: center;
}

/* Logo on top layout */
.hero-logo-top .hero-inner {
    text-align: center;
}
.hero-logo-top .hero-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.hero-logo-top .hero-logo {
    margin: 0 auto;
}
.hero-logo-top .hero-actions {
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-split .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .hero-split .hero-content { text-align: center; }
    .hero-split .hero-actions { justify-content: center; }
    .hero-split .hero-logo-wrap { margin-bottom: 0; }
    .hero-split .hero-logo { max-width: 140px !important; }
    .hero-centered .hero-logo,
    .hero-logo-top .hero-logo { max-width: 120px !important; }
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}
.btn-primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.btn-primary:hover {
    background: var(--green-700);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--gray-300);
}
.btn-outline:hover {
    border-color: var(--navy-800);
    background: var(--navy-50);
}

/* Hero stats strip — animated */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.hero-stat {
    text-align: center;
    transition: transform 0.3s ease;
}
.hero-stat:hover {
    transform: translateY(-4px);
}
.hero-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-stat .num .accent { color: var(--green-600); }
.hero-stat .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
    .hero-stat .num { font-size: 1.25rem; }
    .hero-stat .label { font-size: 10px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-particle,
    .hero-eyebrow::before,
    .hero-logo,
    .hero-logo-wrap::before {
        animation: none !important;
    }
    .hero h1 .highlight::after {
        transform: scaleX(1);
        animation: none !important;
    }
}

/* ============================================================
   REGULATOR GRID
   ============================================================ */
.section { padding: 32px 0; }
.section-header {
    text-align: center;
    margin-bottom: 28px;
}
.section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 8px auto 0;
}

.regulator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.regulator-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.regulator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--navy-800);
}
.regulator-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-600);
}
.regulator-card .badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--navy-100);
    color: var(--navy-800);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.regulator-card .name { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.regulator-card .count { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.regulator-card .count strong { color: var(--green-600); }

/* Regulator-specific colors */
.regulator-card[data-reg="sebi"]::before  { background: #1e40af; }
.regulator-card[data-reg="rbi"]::before   { background: #7c2d12; }
.regulator-card[data-reg="cbdt"]::before  { background: #047857; }
.regulator-card[data-reg="cbic"]::before  { background: #b45309; }
.regulator-card[data-reg="mca"]::before   { background: #6d28d9; }
.regulator-card[data-reg="epfo"]::before  { background: #be123c; }
.regulator-card[data-reg="esic"]::before  { background: #0369a1; }
.regulator-card[data-reg="dgft"]::before  { background: #15803d; }
.regulator-card[data-reg="npci"]::before  { background: #c2410c; }
.regulator-card[data-reg="gstn"]::before  { background: #4338ca; }

/* ============================================================
   NOTIFICATION CARDS (feed)
   ============================================================ */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.notification-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-600);
}
.notification-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.notification-card .regulator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--navy-100);
    color: var(--navy-800);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.notification-card .regulator-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-600);
}
.notification-card .date {
    font-size: 12px;
    color: var(--gray-400);
}
.notification-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--gray-900);
}
.notification-card h3 a { color: inherit; }
.notification-card h3 a:hover { color: var(--navy-800); }
.notification-card .excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
}
.notification-card .read-more {
    color: var(--navy-800);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.notification-card .read-more:hover { color: var(--green-600); }
.notification-card .meta-info { color: var(--gray-400); }

/* ============================================================
   SINGLE NOTIFICATION PAGE
   ============================================================ */
.single-notification .site-main { padding-top: 12px; }

.notification-breadcrumb {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.notification-breadcrumb a { color: var(--gray-600); }
.notification-breadcrumb a:hover { color: var(--navy-800); }
.notification-breadcrumb .sep { color: var(--gray-300); }

.notification-header {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--navy-800);
}
.notification-header .top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.notification-header h1 {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--gray-900);
    font-weight: 800;
}
.notification-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gray-500);
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
    margin-top: 8px;
}
.notification-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.notification-meta .meta-item strong { color: var(--gray-700); }

.notification-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
} /* v1.13.1: wider + minmax stops long URLs/tables squeezing the column */
.notification-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    line-height: 1.65;
}
.notification-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-800);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy-100);
}
.notification-content h2:first-child { margin-top: 0; }
.notification-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 16px 0 6px;
}
.notification-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 12px;
}
.notification-content ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}
.notification-content li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-700);
    padding: 6px 0 6px 24px;
    position: relative;
}
.notification-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green-600);
    font-weight: 700;
}
.notification-content strong {
    color: var(--navy-800);
    font-weight: 600;
}
.notification-content blockquote {
    border-left: 4px solid var(--green-600);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--green-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray-700);
}
.notification-content a {
    color: var(--navy-700);
    text-decoration: underline;
    text-decoration-color: var(--green-600);
    text-underline-offset: 2px;
}
.notification-content a:hover {
    color: var(--navy-800);
}

.notification-sidebar {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-600) 100%);
    margin: -14px -16px 12px -16px;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid var(--amber-500);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-card ul { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; margin: 0; }
.sidebar-card li {
    font-size: 13px;
    color: var(--gray-700);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li .impact-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}
.impact-badge.must-act { background: var(--orange-100); color: var(--orange-600); }
.impact-badge.aware { background: var(--yellow-100); color: var(--yellow-600); }
.impact-badge.optional { background: var(--gray-100); color: var(--gray-600); }

.source-link-card {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: var(--white);
    text-align: center;
}
.source-link-card h4 { color: rgba(255, 255, 255, 0.7); }
.source-link-card a {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 20px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.source-link-card a:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    color: var(--white);
}

@media (max-width: 968px) {
    .notification-body { grid-template-columns: 1fr; }
    .notification-sidebar { position: static; }
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}
.faq-item {
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--navy-800);
    transition: transform var(--transition-fast);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 8px 0;
}

/* Disclaimer */
.notification-disclaimer {
    background: var(--yellow-100);
    border-left: 4px solid var(--yellow-600);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-top: 32px;
    font-size: 14px;
}
.notification-disclaimer strong { color: var(--gray-900); }
.notification-disclaimer small {
    display: block;
    color: var(--gray-600);
    margin-top: 8px;
    font-size: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.6); max-width: 320px; }
.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--green-600); }

.footer-newsletter input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-newsletter button {
    width: 100%;
    padding: 10px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.footer-newsletter button:hover { background: var(--green-700); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}
.pagination a:hover, .pagination .current {
    background: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
}

/* 404 */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 6rem; color: var(--navy-800); margin-bottom: 16px; }
.error-404 p { font-size: 1.125rem; color: var(--gray-500); margin-bottom: 24px; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print */
@media print {
    .site-header, .site-footer, .notification-sidebar, .hero-actions { display: none; }
    body { color: black; }
    .notification-content { border: none; box-shadow: none; padding: 0; }
}

/* ============================================================
   GOV JOBS SCRAPER CONTENT — styles for .govt-section / .govt-table
   These rules style the HTML content the Python scraper
   sends via the WordPress REST API. They render inside
   .notification-content (the main article body).
   ============================================================ */

.notification-content .govt-article-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    font-size: 16px;
}

.notification-content .govt-section {
    margin-bottom: 14px;
}

.notification-content .govt-section:last-child {
    margin-bottom: 0;
}

.notification-content .govt-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notification-content .govt-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--indigo-600);
    flex-shrink: 0;
}

.notification-content .govt-section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.015em;
    position: relative;
    padding-bottom: 4px;
}

.notification-content .govt-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--indigo-600);
    border-radius: 2px;
}

.notification-content .govt-section-body {
    padding: 0;
}

/* Overview section - light indigo accent */
.notification-content .govt-section-overview .govt-section-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-800);
    background: var(--indigo-50);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--indigo-600);
    margin: 0;
}

/* ========= TABLES - Vibrant indigo headers ========= */
.notification-content .govt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.notification-content .govt-table th {
    background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-600) 100%);
    color: #fff;
    text-align: left;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 14px;
    width: 38%;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 2px solid var(--amber-500);
    vertical-align: top;
}

.notification-content .govt-table td {
    padding: 11px 16px;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
    font-size: 15px;
    background: #fff;
    vertical-align: top;
    line-height: 1.5;
}

/* Subtle stripe on alternating rows */
.notification-content .govt-table tr:nth-child(even) th {
    background: linear-gradient(135deg, var(--indigo-800) 0%, var(--indigo-700) 100%);
}

.notification-content .govt-table tr:nth-child(even) td {
    background: var(--indigo-50);
}

.notification-content .govt-table tr:hover th {
    background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-800) 100%);
}

.notification-content .govt-table tr:hover td {
    background: var(--indigo-100);
}

/* ---------- Link buttons - Vibrant solid colors ---------- */
.notification-content .govt-link-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.notification-content .govt-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(15,23,42,0.1);
}

.notification-content .govt-link-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15,23,42,0.18);
    color: #fff !important;
}

/* Apply Online - emerald gradient */
.notification-content .govt-link-apply {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
}

.notification-content .govt-link-apply:hover {
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 100%);
}

/* Notification PDF - indigo gradient */
.notification-content .govt-link-pdf {
    background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-500) 100%);
}

.notification-content .govt-link-pdf:hover {
    background: linear-gradient(135deg, var(--indigo-800) 0%, var(--indigo-600) 100%);
}

/* Official Website - amber gradient */
.notification-content .govt-link-web {
    background: linear-gradient(135deg, var(--amber-600) 0%, var(--amber-500) 100%);
}

.notification-content .govt-link-web:hover {
    background: linear-gradient(135deg, #b45309 0%, var(--amber-600) 100%);
}

.notification-content .govt-link-icon {
    flex-shrink: 0;
    opacity: 0.95;
}

.notification-content .govt-no-links {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 8px;
    color: #92400e;
    font-style: italic;
    margin: 0;
    font-size: 14px;
}

/* Extra tables section */
.notification-content .govt-section-extra {
    margin-bottom: 32px;
}

.notification-content .govt-section-extra .govt-section-title {
    font-size: 17px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .notification-content .govt-table th {
        width: 100%;
        display: block;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .notification-content .govt-table td {
        display: block;
        border-bottom: 1px solid var(--gray-100);
    }
    .notification-content .govt-link-group {
        grid-template-columns: 1fr;
    }
}

/* Apply banner (inline) — already styled inline in single.php but add fallback */
.apply-banner {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--green-600);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

/* FAQ section (legacy notification posts) */
.notification-content .faq-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.notification-content .faq-item {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--navy-700);
}

.notification-content .faq-question {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-size: 15px;
}

.notification-content .faq-answer {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   COMPACT SIDEBAR STYLES (v1.3.0)
   ============================================================ */

/* Apply Online compact card - VIBRANT EMERALD */
.sidebar-apply-compact {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%) !important;
    border: none !important;
    padding: 14px !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.sidebar-apply-btn {
    display: block;
    background: #fff;
    color: var(--emerald-700) !important;
    padding: 12px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar-apply-btn:hover {
    background: var(--indigo-600);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sidebar-pdf-link {
    display: block;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    padding: 6px;
    font-weight: 600;
    opacity: 0.95;
}

.sidebar-pdf-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Official Sources compact list - colorful */
.sidebar-source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-source-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.sidebar-source-list li:last-child {
    border-bottom: none;
}

.sidebar-source-list .label {
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
}

.sidebar-source-list a {
    color: var(--indigo-700);
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    background: var(--indigo-50);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s;
}

.sidebar-source-list a:hover {
    background: var(--indigo-600);
    color: #fff;
    text-decoration: none;
}

/* Important Dates compact list - colorful dates */
.sidebar-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-dates-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-200);
    line-height: 1.4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sidebar-dates-list li:last-child {
    border-bottom: none;
}

.sidebar-dates-list li::before {
    content: '📅';
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-dates-list strong {
    display: block;
    font-size: 13px;
    color: #dc2626;
    font-weight: 700;
}

.sidebar-dates-list span {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

/* Share compact - colorful pills */
.sidebar-share {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sidebar-share a {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.sidebar-share a:nth-child(1) {
    background: #25d366;
}

.sidebar-share a:nth-child(2) {
    background: #0088cc;
}

.sidebar-share a:nth-child(3) {
    background: #1da1f2;
}

.sidebar-share a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #fff;
    opacity: 0.9;
}

/* Related posts section - compact */
.single-notification section h2 {
    font-size: 18px !important;
    margin: 24px 0 12px !important;
}

/* Disclaimer compact */
.notification-disclaimer {
    margin-top: 16px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* Reduce hero padding on front page */
.hero {
    padding: 40px 0 !important;
}

.hero h1 {
    font-size: 32px !important;
}

.hero-subtitle {
    font-size: 14px !important;
}

.hero-stats {
    gap: 32px !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
}

.hero-stat .num {
    font-size: 22px !important;
}

/* Section padding - more compact */
.section {
    padding: 32px 0 !important;
}

.section-title {
    font-size: 24px !important;
}

.section-header {
    margin-bottom: 24px !important;
}

/* Notification card - more compact */
.notification-card {
    padding: 14px !important;
}

.notification-card h3 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

.notification-card .excerpt {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

/* ============================================================
   v1.6.0 — DENSE HOMEPAGE (sarkari-result style)
   Compact strip + Latest Updates + 9 category boxes + sidebar
   ============================================================ */

/* ---- compact strip ---- */
.hp-strip {
    background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-700) 60%, #4f46e5 100%);
    color: #fff;
    padding: 28px 0 24px;
}
.hp-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.hp-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    margin-bottom: 12px;
}
.hp-title {
    font-size: clamp(21px, 3.2vw, 30px);
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 8px;
    color: #fff;
}
.hp-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    max-width: 640px;
    margin: 0 0 16px;
    line-height: 1.55;
}
.hp-search {
    display: flex;
    max-width: 560px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 8px 24px rgba(30, 27, 75, .25);
}
.hp-search input[type="search"] {
    flex: 1;
    border: 0;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
    min-width: 0;
}
.hp-search button {
    border: 0;
    cursor: pointer;
    background: var(--emerald-600);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: background .15s ease;
}
.hp-search button:hover { background: var(--emerald-700); }

.hp-strip-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex-shrink: 0;
}
.hp-stat {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    text-align: center;
    min-width: 108px;
}
.hp-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}
.hp-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    margin-top: 3px;
    letter-spacing: .02em;
}

/* ---- trending keyword chips ---- */
.hp-chipsbar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
}
.hp-chipsbar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-chips-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--amber-600);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
.hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hp-chip {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--indigo-700);
    background: #fff;
    border: 1px solid var(--indigo-100);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}
.hp-chip:hover {
    background: var(--indigo-50);
    border-color: var(--indigo-500);
    color: var(--indigo-800);
}
.hp-chip-sm { font-size: 12px; padding: 4px 10px; }

/* ---- main grid: latest updates + sidebar ---- */
.hp-mainwrap { padding: 26px 0 10px; }
.hp-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

/* ---- generic box ---- */
.hp-box {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
}
.hp-box + .hp-box { margin-top: 18px; }
.hp-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 11px 16px;
    letter-spacing: .01em;
}
.hp-head-red    { background: linear-gradient(90deg, #dc2626, #ef4444); }
.hp-head-indigo { background: linear-gradient(90deg, var(--indigo-800), var(--indigo-600)); }
.hp-head-green  { background: linear-gradient(90deg, var(--emerald-700), var(--emerald-600)); }
.hp-head-amber  { background: linear-gradient(90deg, #b45309, var(--amber-600)); }
.hp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fecaca;
    animation: hp-pulse 1.6s ease-in-out infinite;
}
@keyframes hp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hp-head-tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255, 255, 255, .2);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* ---- latest updates list ---- */
.hp-list { list-style: none; margin: 0; padding: 0; }
.hp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px dashed var(--gray-200);
}
.hp-list li:last-child.hp-row { border-bottom: 0; }
.hp-row:hover { background: var(--indigo-50); }
.hp-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-row-link {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-row-link:hover { color: var(--indigo-700); text-decoration: underline; }
.hp-row-date {
    font-size: 11.5px;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-new {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
    background: #dc2626;
    border-radius: 3px;
    padding: 2px 5px;
    flex-shrink: 0;
}

/* ---- sidebar: categories / chips / portals ---- */
.hp-cats { list-style: none; margin: 0; padding: 0; }
.hp-cats li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px dashed var(--gray-200);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
}
.hp-cats li:last-child a { border-bottom: 0; }
.hp-cats li a:hover { background: var(--gray-50); color: var(--indigo-700); }
.hp-cats-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hp-cats-name { flex: 1; }
.hp-cats-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--indigo-700);
    background: var(--indigo-50);
    border-radius: var(--radius-full);
    padding: 2px 8px;
}
.hp-side-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 16px;
}
.hp-portals { list-style: none; margin: 0; padding: 0; }
.hp-portals li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
}
.hp-portals li:last-child a { border-bottom: 0; }
.hp-portals li a:hover { background: var(--amber-50); color: var(--amber-600); }

/* ---- 9 category sections ---- */
.hp-sections { padding: 16px 0 30px; }
.hp-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.hp-catbox {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--cat, var(--indigo-600));
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
    display: flex;
    flex-direction: column;
}
.hp-catbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--cat-bg, var(--indigo-50));
    border-bottom: 1px solid var(--gray-200);
}
.hp-catbox-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--cat, var(--indigo-700));
}
.hp-catbox-pill {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 2px 9px;
    white-space: nowrap;
}
.hp-catlist { list-style: none; margin: 0; padding: 0; flex: 1; }
.hp-catlist li a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px dashed var(--gray-200);
    text-decoration: none;
}
.hp-catlist li:last-child a { border-bottom: 0; }
.hp-catlist li a:hover { background: var(--cat-bg, var(--indigo-50)); }
.hp-catlist-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-catlist li a:hover .hp-catlist-title { color: var(--cat, var(--indigo-700)); }
.hp-catlist-date {
    font-size: 11px;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-catbox-foot {
    display: block;
    text-align: center;
    padding: 9px 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--cat, var(--indigo-700));
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    text-decoration: none;
}
.hp-catbox-foot:hover { background: var(--cat-bg, var(--indigo-50)); }

/* ---- slim trust strip ---- */
.hp-why {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 18px 0;
}
.hp-why-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    font-size: 13px;
}
.hp-why-inner strong { color: #fff; font-weight: 700; }

/* ---- empty state ---- */
.hp-empty {
    font-size: 12.5px;
    color: var(--gray-500);
    font-style: italic;
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
    .hp-main-grid { grid-template-columns: 1fr; }
    .hp-strip-inner { flex-direction: column; align-items: stretch; }
    .hp-strip-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .hp-strip { padding: 20px 0 18px; }
    .hp-strip-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-sections-grid { grid-template-columns: 1fr; }
    .hp-why-inner { justify-content: flex-start; }
    .hp-search button { padding: 10px 14px; }
}

/* ============================================================
   v1.6.1 FIXES
   1. Skip-to-content link hidden (was visible plain text)
   2. Sidebar compacted - no more blank gap beside Latest Updates
   3. Official portals 2-col, tighter boxes, View-All footers
   ============================================================ */

/* ---- 1. accessibility skip link: hidden until keyboard focus ---- */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}
.skip-link:focus {
    clip-path: none;
    width: auto;
    height: auto;
    position: fixed !important;
    left: 10px;
    top: 10px;
    z-index: 100000;
    background: #fff;
    color: var(--indigo-800, #312e81);
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .25);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* ---- 2. tighter sidebar so columns stay balanced ---- */
.hp-box + .hp-box { margin-top: 14px; }
.hp-box-head { padding: 10px 14px; }
.hp-cats li a { padding: 7px 14px; font-size: 13px; }
.hp-side-chips { padding: 12px 14px; gap: 6px; }
.hp-side-chips .hp-chip { font-size: 11.5px; padding: 4px 9px; }

/* ---- 3. official portals: compact 2-column grid ---- */
.hp-portals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 6px;
    gap: 2px;
}
.hp-portals li a {
    border-bottom: 0;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}
.hp-portals li a span { flex-shrink: 0; font-size: 11px; }
.hp-portals li a:hover { background: var(--amber-50); color: var(--amber-600); }

/* ---- Latest Updates "View All" footer ---- */
.hp-list-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    font-size: 12.5px;
}
.hp-list-foot a {
    font-weight: 800;
    color: var(--indigo-700);
    text-decoration: none;
}
.hp-list-foot a:hover { text-decoration: underline; }
.hp-list-foot .hp-foot-note { color: var(--gray-500); font-size: 11.5px; }

/* ---- main grid spacing tightened ---- */
.hp-mainwrap { padding: 22px 0 4px; }
.hp-sections { padding: 12px 0 26px; }

@media (max-width: 480px) {
    .hp-portals { grid-template-columns: 1fr; }
}


/* ============================================================
   v1.7.0 — PAGES & BLOG POSTS: LIVE SIDEBAR LAYOUT
   Guide/hub/trust pages and plain blog posts render content +
   sidebar (Latest Updates / All Sections / Official Portals)
   instead of a lonely narrow column with blank space on the
   sides. Reuses .notification-body grid (1fr 280px) which
   already collapses to a single column below 1050px.
   ============================================================ */
.sidebar-dates-list li a {
    display: block;
    color: var(--navy-800);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 2px 0;
}
.sidebar-dates-list li a:hover { color: var(--green-600); }
.sidebar-dates-list li a .cnt { color: var(--gray-500); font-weight: 500; font-size: 0.82rem; }
.page-main > h1 { margin-bottom: 16px; }
.page-main .wp-block-image,
.page-main table { margin-bottom: 16px; }
.page-body { margin-top: 4px; }

/* ============================================================
   v1.11.0 READER VIEW - small-screen safety for plugin tables.
   Fact tables (Vacancies, Important Dates, links) are wide; on phones
   they now scroll sideways instead of breaking the layout. Long
   official URLs wrap instead of overflowing. Images never exceed
   the content column.
   ============================================================ */
.notification-content table,
.page-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.notification-content table th,
.notification-content table td,
.page-body table th,
.page-body table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.notification-content a,
.page-body a {
    overflow-wrap: anywhere;
}
.notification-content img,
.page-body img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 640px) {
    .notification-content { font-size: 1rem; line-height: 1.65; }
    .notification-content h2 { font-size: 1.2rem; }
}

/* ============================================================
   

/* ============================================================
   v1.12.0 DEADLINE BADGES - sarkari-style last-date badges.
   ============================================================ */
.notification-card .date.deadline {
    color: #b45309;
    font-weight: 700;
}
.hp-catlist-date.hp-catlist-deadline {
    color: #b45309;
    font-weight: 700;
}
.hp-seo { padding: 8px 0 4px; }
.hp-seo-inner { max-width: 860px; }
.hp-seo h2 { font-size: 1.25rem; margin: 0 0 8px; }
.hp-seo p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.hp-seo a { font-weight: 600; }

/* v1.13.0: deadline highlight in the dense Latest Updates rows. */
.hp-row-deadline { color: #b45309; font-weight: 700; }

/* ============================================================
   v1.13.1 WIDE SCREENS - stop the squeezed-center look.
   9 menu items + logo + search never fit a narrow bar, so the
   mid range gets tighter nav spacing before the mobile menu
   takes over at 768px.
   ============================================================ */
@media (max-width: 1150px) and (min-width: 769px) {
    .main-nav a { padding: 8px 7px; font-size: 13px; }
    .header-inner { gap: 8px; }
    .site-branding img { max-height: 40px; width: auto; }
}


