/*
Theme Name: FreeJobAlert
Theme URI: https://example.com/freejobalert-theme
Author: Your Name
Author URI: https://example.com
Description: A government job portal WordPress theme inspired by FreeJobAlert.com. Features custom post types for jobs, results, admit cards with state-wise and category filters.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freejobalert
Tags: government-jobs, job-portal, news, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    --color-primary:        #0d2b6b;
    --color-primary-dark:   #081d4a;
    --color-primary-light:  #1a3f8f;
    --color-secondary:      #c0392b;
    --color-accent:         #f39c12;
    --color-accent-green:   #27ae60;
    --color-accent-yellow:  #f1c40f;
    --color-text:           #222222;
    --color-text-muted:     #555555;
    --color-text-light:     #888888;
    --color-link:           #0d2b6b;
    --color-link-hover:     #c0392b;
    --color-bg:             #f0f2f5;
    --color-bg-card:        #ffffff;
    --color-border:         #dde1e7;
    --color-border-light:   #eaecf0;
    --color-header-bg:      #0d2b6b;
    --color-header-text:    #ffffff;
    --color-nav-bg:         #1a3f8f;
    --color-nav-hover:      #c0392b;
    --color-state-bar-bg:   #0b2454;
    --color-footer-bg:      #0d2b6b;
    --color-footer-text:    #c8d4e8;
    --color-badge-new:      #c0392b;
    --color-badge-urgent:   #e74c3c;
    --color-section-head:   #0d2b6b;
    --font-family:          'Noto Sans', Arial, Helvetica, sans-serif;
    --font-size-base:       14px;
    --font-size-sm:         12px;
    --font-size-xs:         11px;
    --font-size-lg:         16px;
    --font-size-xl:         18px;
    --font-size-xxl:        22px;
    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semi:     600;
    --font-weight-bold:     700;
    --border-radius:        4px;
    --border-radius-sm:     2px;
    --border-radius-lg:     6px;
    --shadow-card:          0 1px 4px rgba(0,0,0,0.08);
    --shadow-card-hover:    0 3px 10px rgba(0,0,0,0.14);
    --transition:           0.2s ease;
    --container-max:        1200px;
    --sidebar-width:        280px;
    --gap:                  16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    color: var(--color-section-head);
    line-height: 1.3;
}

input, select, textarea, button { font-family: var(--font-family); font-size: var(--font-size-base); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 12px;
}

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* ============================================================
   TOP INFO BAR
   ============================================================ */
.top-info-bar {
    background: var(--color-primary-dark);
    color: #a8bcd8;
    font-size: var(--font-size-xs);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.top-info-bar a { color: #a8bcd8; }
.top-info-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar-right .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.1); font-size: 10px; color: #fff;
    transition: background var(--transition);
}
.top-bar-right .social-links a:hover { background: var(--color-accent); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding .custom-logo-link img { height: 50px; width: auto; }
.site-branding-text .site-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}
.site-branding-text .site-title span { color: var(--color-accent-yellow); }
.site-branding-text .site-description {
    font-size: 11px;
    color: #9bb8d8;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* Header Search */
.header-search { flex: 1; max-width: 380px; }
.header-search form {
    display: flex;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.header-search input[type="search"] {
    flex: 1; padding: 7px 12px;
    background: transparent; border: none; outline: none;
    color: #fff; font-size: 13px;
}
.header-search input[type="search"]::placeholder { color: rgba(255,255,255,0.5); }
.header-search button {
    background: var(--color-accent);
    border: none; padding: 7px 14px;
    color: #fff; cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: background var(--transition);
}
.header-search button:hover { background: var(--color-secondary); }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 5px;
    background: #25d366; color: #fff !important;
    padding: 6px 12px; border-radius: var(--border-radius);
    font-size: 12px; font-weight: 600;
    transition: background var(--transition);
    text-decoration: none !important;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-app {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--color-accent); color: #fff !important;
    padding: 6px 12px; border-radius: var(--border-radius);
    font-size: 12px; font-weight: 600;
    transition: background var(--transition);
    text-decoration: none !important;
}
.btn-app:hover { background: #e08d0a; }

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.primary-nav-wrapper {
    background: var(--color-nav-bg);
    border-bottom: 3px solid var(--color-accent);
}
.primary-nav-wrapper .container { position: relative; }

.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; flex-wrap: wrap; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
    display: block;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-parent > a {
    background: var(--color-nav-hover);
    color: #fff;
    text-decoration: none;
}

/* Dropdown */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-top: 3px solid var(--color-accent);
    z-index: 999;
    flex-direction: column;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a {
    color: var(--color-text);
    padding: 9px 16px;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border-light);
}
.main-navigation ul li ul li a:hover {
    background: var(--color-bg);
    color: var(--color-nav-hover);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 6px 12px;
    cursor: pointer; border-radius: var(--border-radius);
    font-size: 18px;
}

/* ============================================================
   STATE SHORTCUT BAR
   ============================================================ */
.state-bar {
    background: var(--color-state-bar-bg);
    padding: 5px 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.state-bar::-webkit-scrollbar { display: none; }
.state-bar .container { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.state-bar a {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255,255,255,0.1);
    color: #c8d4e8;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.state-bar a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.state-bar .state-sep {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    margin: 0 2px;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.news-ticker {
    background: #fff;
    border-bottom: 2px solid var(--color-border-light);
    padding: 6px 0;
    overflow: hidden;
}
.news-ticker .container { display: flex; align-items: center; gap: 0; overflow: hidden; }
.ticker-label {
    background: var(--color-secondary);
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    margin-right: 12px;
    white-space: nowrap;
}
.ticker-content {
    overflow: hidden;
    position: relative;
    flex: 1;
}
.ticker-content marquee { font-size: 12px; color: var(--color-text); }
.ticker-content marquee a { color: var(--color-primary); font-weight: 500; margin: 0 18px; }
.ticker-content marquee a:hover { color: var(--color-secondary); }

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.site-content { padding: 14px 0; }
.content-area { display: grid; grid-template-columns: 1fr var(--sidebar-width); gap: var(--gap); }

/* ============================================================
   DEADLINE COUNTDOWN SECTION
   ============================================================ */
.deadline-section { margin-bottom: var(--gap); }
.deadline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.deadline-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
    border-left: 3px solid var(--color-secondary);
}
.deadline-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
.deadline-badge {
    display: inline-block;
    background: var(--color-badge-urgent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.deadline-card h4 { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 5px; line-height: 1.35; }
.deadline-card a.apply-link {
    display: inline-block;
    font-size: 11px; color: var(--color-accent-green);
    font-weight: 600; margin-top: 4px;
}

/* ============================================================
   SECTION WIDGET / CARD
   ============================================================ */
.section-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--gap);
    overflow: hidden;
}
.section-widget-header {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.section-widget-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.section-widget-header h3 .icon { font-size: 14px; opacity: 0.9; }
.section-widget-header a.view-all {
    font-size: 11px;
    color: var(--color-accent-yellow);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.section-widget-header a.view-all:hover { color: #fff; text-decoration: underline; }

.section-widget-body { padding: 0; }

/* Job list items */
.job-list { }
.job-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition);
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: #f7f9fc; }
.job-item-bullet {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0; margin-top: 6px;
}
.job-item-content { flex: 1; min-width: 0; }
.job-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 3px;
}
.job-item-title a { color: var(--color-text); }
.job-item-title a:hover { color: var(--color-primary); text-decoration: underline; }
.job-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-muted);
}
.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-new { background: var(--color-badge-new); color: #fff; }
.badge-result { background: var(--color-accent-green); color: #fff; }
.badge-admit { background: #8e44ad; color: #fff; }
.badge-urgent { background: var(--color-badge-urgent); color: #fff; animation: pulse-badge 2s infinite; }
.badge-posts { background: #2980b9; color: #fff; }
.badge-date { background: #e8f0fe; color: var(--color-primary); }
.job-item-links { display: flex; gap: 8px; align-items: center; }
.job-item-links a {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent-green);
    white-space: nowrap;
}
.job-item-links a:hover { color: var(--color-secondary); text-decoration: underline; }

/* ============================================================
   THREE COLUMN GRID
   ============================================================ */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

/* ============================================================
   QUALIFICATION FILTER GRID
   ============================================================ */
.qualification-section { margin-bottom: var(--gap); }
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.qual-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 12px 10px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.qual-card:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.qual-card .qual-icon { font-size: 22px; margin-bottom: 6px; display: block; }
.qual-card .qual-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: 3px;
}
.qual-card:hover .qual-name { color: #fff; }
.qual-card .qual-count {
    font-size: 11px;
    color: var(--color-text-muted);
    display: block;
}
.qual-card:hover .qual-count { color: rgba(255,255,255,0.8); }

/* ============================================================
   NOTIFICATION BANNER
   ============================================================ */
.notification-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: var(--gap);
}
.notif-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition);
}
.notif-banner:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); text-decoration: none; }
.notif-banner-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.notif-banner-result   { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }
.notif-banner-telegram { background: linear-gradient(135deg, #2196f3, #1565c0); color: #fff; }
.notif-banner .icon { font-size: 28px; flex-shrink: 0; }
.notif-banner .text .title { font-size: 13px; font-weight: 700; color: #fff; display: block; }
.notif-banner .text .subtitle { font-size: 11px; color: rgba(255,255,255,0.85); display: block; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { min-width: 0; }
.widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--gap);
    overflow: hidden;
}
.widget-title {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    border-bottom: 2px solid var(--color-accent);
}
.widget-content { padding: 10px 0; }
.widget-content ul li {
    border-bottom: 1px solid var(--color-border-light);
}
.widget-content ul li:last-child { border-bottom: none; }
.widget-content ul li a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition);
}
.widget-content ul li a:before {
    content: '›';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.widget-content ul li a:hover {
    background: #f0f4ff;
    color: var(--color-primary);
    padding-left: 18px;
    text-decoration: none;
}
.widget-content ul li .badge { margin-left: auto; }

/* Category Widget Grid */
.widget-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border-light);
}
.widget-cat-grid a {
    background: var(--color-bg-card);
    display: block;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    transition: all var(--transition);
    line-height: 1.3;
}
.widget-cat-grid a:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Announcement widget */
.announcement-list li a {
    font-size: 12px !important;
    padding: 7px 14px !important;
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.entry-header { margin-bottom: 16px; }
.entry-title { font-size: 22px; font-weight: 800; color: var(--color-primary); line-height: 1.3; margin-bottom: 10px; }
.entry-meta { font-size: 12px; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.entry-meta a { color: var(--color-text-muted); }
.entry-meta a:hover { color: var(--color-primary); }

.entry-content { font-size: 14px; line-height: 1.7; color: var(--color-text); }
.entry-content h2 { font-size: 18px; font-weight: 700; color: var(--color-primary); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--color-border); }
.entry-content h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 14px 20px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 5px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.entry-content table th { background: var(--color-primary); color: #fff; padding: 9px 12px; text-align: left; font-weight: 600; }
.entry-content table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border-light); }
.entry-content table tr:nth-child(even) td { background: #f7f9fc; }
.entry-content table tr:hover td { background: #eef2ff; }

/* Important Notice Box */
.notice-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
}
.notice-box.info { background: #e8f4fd; border-color: #90caf9; border-left-color: #1565c0; }
.notice-box.success { background: #e8f5e9; border-color: #a5d6a7; border-left-color: var(--color-accent-green); }
.notice-box.danger { background: #ffebee; border-color: #ef9a9a; border-left-color: var(--color-secondary); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 16px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 13px; font-weight: 500;
    color: var(--color-primary);
    background: var(--color-bg-card);
    transition: all var(--transition);
    text-decoration: none;
}
.pagination a:hover, .pagination span.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 20px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--color-border-light); }
.comment-list .comment .comment-author .fn { font-weight: 600; font-size: 14px; }
.comment-list .comment .comment-meta { font-size: 12px; color: var(--color-text-muted); margin: 3px 0 8px; }
.comment-list .comment .comment-content { font-size: 13px; line-height: 1.6; }

.comment-form input, .comment-form textarea {
    width: 100%; padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 13px; font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg-card);
    transition: border-color var(--transition);
    margin-bottom: 10px;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,43,107,0.1);
}
.comment-form .submit {
    background: var(--color-primary); color: #fff;
    border: none; padding: 10px 24px;
    border-radius: var(--border-radius);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--color-primary-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: 20px;
}
.footer-warning {
    background: var(--color-secondary);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.footer-top { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
}
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.3px;
}
.footer-col p { font-size: 12px; line-height: 1.7; color: var(--color-footer-text); }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
    font-size: 13px;
    color: var(--color-footer-text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul li a:before { content: '›'; font-weight: 700; }
.footer-col ul li a:hover {
    color: var(--color-accent-yellow);
    padding-left: 4px;
    text-decoration: none;
}
.footer-bottom {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: var(--color-accent-yellow); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
    .three-col-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 100%; }
    .content-area { grid-template-columns: 1fr; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; }
    .main-navigation ul.toggled { display: flex; }
    .menu-toggle { display: block; }
    .three-col-grid { grid-template-columns: 1fr; }
    .notification-banners { grid-template-columns: 1fr; }
    .deadline-grid { grid-template-columns: 1fr 1fr; }
    .qualification-grid { grid-template-columns: repeat(3, 1fr); }
    .site-header .container { flex-wrap: wrap; }
    .header-search { max-width: 100%; order: 3; width: 100%; flex: 1 0 100%; }
    .header-cta { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-branding-text .site-title { font-size: 18px; }
}

@media (max-width: 480px) {
    .deadline-grid { grid-template-columns: 1fr; }
    .qualification-grid { grid-template-columns: repeat(2, 1fr); }
    .notification-banners { grid-template-columns: 1fr; }
    .top-info-bar .top-bar-left { display: none; }
    .entry-title { font-size: 18px; }
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
.new-badge-blink {
    animation: blink 1s step-start infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.text-truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.align-center { align-items: center; }

/* Section heading with accent line */
.section-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    padding: 6px 12px 6px 14px;
    border-left: 4px solid var(--color-accent);
    background: linear-gradient(90deg, #eef2ff 0%, transparent 100%);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-heading a { font-size: 12px; font-weight: 600; color: var(--color-secondary); }

/* Sticky Sidebar */
@media (min-width: 769px) {
    .sidebar-sticky { position: sticky; top: 74px; }
}

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

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 20px; right: 20px;
    background: var(--color-primary);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 999;
    border: none;
    text-decoration: none;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--color-secondary); transform: translateY(-3px); }

/* Search form */
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
    flex: 1; padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 13px;
    outline: none; transition: border-color var(--transition);
}
.search-form input[type="search"]:focus { border-color: var(--color-primary); }
.search-form button {
    background: var(--color-primary); color: #fff; border: none;
    padding: 9px 16px; border-radius: var(--border-radius);
    cursor: pointer; font-size: 13px; font-weight: 600;
    transition: background var(--transition);
}
.search-form button:hover { background: var(--color-primary-light); }

/* Category color chips */
.cat-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cat-chip-bank { background: #e3f2fd; color: #1565c0; }
.cat-chip-railway { background: #e8f5e9; color: #2e7d32; }
.cat-chip-defence { background: #fce4ec; color: #c62828; }
.cat-chip-teaching { background: #fff3e0; color: #e65100; }
.cat-chip-state { background: #f3e5f5; color: #7b1fa2; }
.cat-chip-upsc { background: #e0f7fa; color: #00838f; }

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */

/* Full-width Elementor wrapper — no container padding */
.fja-elementor-wrapper {
    width: 100%;
}
.fja-elementor-wrapper .site-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Full Width page template — no sidebar */
.fja-full-width {
    width: 100%;
    max-width: 100%;
}

/* When Elementor is active, remove card constraints */
.elementor-page .entry-content,
.elementor-page .site-main {
    max-width: 100%;
    padding: 0;
}

/* Elementor sections inside full-width template */
.fja-full-width .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--container-max);
}

/* Hide default theme article wrapper on Elementor pages */
.elementor-page .section-widget-header { display: none; }
.elementor-page article.section-widget {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}
.elementor-page .section-widget-body { padding: 0; }

/* Elementor stretched sections full-viewport fix */
.elementor-section.elementor-section-stretched {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}

/* ---- ELEMENTOR CANVAS TEMPLATE ---- */
/* Body class auto-added by WordPress for page-templates/elementor-canvas.php */
body.page-template-page-templates-elementor-canvas {
    background: #fff;
}
body.page-template-page-templates-elementor-canvas .top-info-bar,
body.page-template-page-templates-elementor-canvas .site-header,
body.page-template-page-templates-elementor-canvas .primary-nav-wrapper,
body.page-template-page-templates-elementor-canvas .state-bar,
body.page-template-page-templates-elementor-canvas .news-ticker,
body.page-template-page-templates-elementor-canvas .site-footer,
body.page-template-page-templates-elementor-canvas #back-to-top {
    display: none !important;
}

/* ---- FULL WIDTH TEMPLATE ---- */
body.page-template-page-templates-full-width .content-area {
    grid-template-columns: 1fr; /* remove sidebar column */
}
body.page-template-page-templates-full-width #secondary {
    display: none;
}
body.page-template-page-templates-full-width .site-main {
    width: 100%;
    max-width: 100%;
}

/* Elementor editor preview iframe — ensure our fonts/styles load */
.elementor-editor-active .entry-content {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
}

/* Gutenberg / Block editor wide-align support */
.alignwide {
    margin-left:  calc(-1 * var(--gap));
    margin-right: calc(-1 * var(--gap));
    max-width: calc(100% + var(--gap) * 2);
}
.alignfull {
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

