/*
Theme Name: JobApply24
Theme URI: https://jobapply24.in
Author: JobApply24
Author URI: https://jobapply24.in
Description: A government job alert WordPress theme inspired by GeneratePress, designed for Sarkari Naukri, FreeJobAlert, Admit Card, Results portals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobapply24
Tags: news, blog, government-jobs, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
*/

/* =============================================
   ROOT VARIABLES
============================================= */
:root {
    --primary:       #1a73e8;
    --primary-dark:  #1558b0;
    --accent:        #e53935;
    --accent-hover:  #c62828;
    --dark:          #1a1a2e;
    --text:          #222222;
    --text-muted:    #666666;
    --bg:            #f4f6f9;
    --bg-white:      #ffffff;
    --border:        #e0e0e0;
    --success:       #2e7d32;
    --warning:       #f57c00;
    --header-bg:     #1a1a2e;
    --header-text:   #ffffff;
    --nav-bg:        #1565c0;
    --nav-hover:     #1a73e8;
    --ticker-bg:     #e53935;
    --ticker-text:   #ffffff;
    --table-head:    #1565c0;
    --table-alt:     #f0f4ff;
    --footer-bg:     #0d1b2a;
    --footer-text:   #cccccc;
    --font-body:     'Hind', sans-serif;
    --font-heading:  'Tiro Devanagari Hindi', 'Hind', sans-serif;
    --shadow:        0 2px 8px rgba(0,0,0,0.10);
    --radius:        6px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   LAYOUT WRAPPER
============================================= */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* =============================================
   HEADER
============================================= */
.site-header {
    background: var(--header-bg);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.site-header .site-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}
.site-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description { font-size: 12px; color: #aaa; }

/* Header Search */
.header-search { display: flex; align-items: center; gap: 8px; }
.header-search input[type="search"] {
    border: 1px solid #444;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    width: 220px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}
.header-search input[type="search"]::placeholder { color: #bbb; }
.header-search input[type="search"]:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary);
    width: 260px;
}
.header-search button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
.header-search button:hover { background: var(--primary-dark); }

/* =============================================
   NAVIGATION
============================================= */
.main-navigation {
    background: var(--nav-bg);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.main-navigation .site-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.main-navigation ul li a {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background: var(--nav-hover);
    text-decoration: none;
}

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

/* =============================================
   NEWS TICKER
============================================= */
.news-ticker {
    background: var(--ticker-bg);
    color: var(--ticker-text);
    padding: 7px 0;
    overflow: hidden;
    border-bottom: 2px solid #c62828;
}
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
    background: #b71c1c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 12px;
    white-space: nowrap;
    margin-right: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0.6; } }
.ticker-track {
    overflow: hidden;
    flex: 1;
}
.ticker-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}
.ticker-content a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.ticker-content a::before { content: "◆ "; font-size: 10px; opacity: 0.8; }
.ticker-content a:hover { text-decoration: underline; opacity: 0.9; }
@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   HERO BANNER
============================================= */
.hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1565c0 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-banner h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-banner p { font-size: 15px; color: #aac4ff; }

/* =============================================
   CATEGORY ICON GRID
============================================= */
.category-grid-section { padding: 22px 0 10px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.cat-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 14px 8px;
    transition: all 0.25s;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.cat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(21,101,192,0.15);
    border-color: var(--primary);
}
.cat-item a { text-decoration: none; color: inherit; }
.cat-item .cat-icon {
    font-size: 26px;
    margin-bottom: 6px;
    display: block;
}
.cat-item .cat-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* =============================================
   CONTENT AREA
============================================= */
.content-area { padding: 20px 0; }
.content-columns {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* =============================================
   SECTION BOXES (Tables)
============================================= */
.section-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.section-box-header {
    background: var(--table-head);
    color: #fff;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}
.section-box-header span.icon { font-size: 18px; }

.jobs-table { width: 100%; border-collapse: collapse; }
.jobs-table thead th {
    background: #e8f0fe;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}
.jobs-table tbody tr { transition: background 0.15s; }
.jobs-table tbody tr:nth-child(even) { background: var(--table-alt); }
.jobs-table tbody tr:hover { background: #dce8ff; }
.jobs-table tbody td {
    padding: 9px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.jobs-table tbody td a {
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}
.jobs-table tbody td a:hover { color: var(--primary); text-decoration: underline; }
.jobs-table .meta-badge {
    display: inline-block;
    background: #e8f5e9;
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 3px;
    border: 1px solid #c8e6c9;
}
.jobs-table .meta-badge.deadline {
    background: #fff3e0;
    color: var(--warning);
    border-color: #ffe0b2;
}
.btn-view {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn-view:hover { background: var(--primary-dark); }
.btn-check {
    display: inline-block;
    background: var(--success);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    transition: background 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn-check:hover { background: #1b5e20; }
.date-col {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* =============================================
   LATEST UPDATES TICKER (bottom)
============================================= */
.latest-updates-ticker {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.latest-updates-ticker h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    letter-spacing: 0.5px;
}
.latest-updates-ticker ul { padding: 0; }
.latest-updates-ticker ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    line-height: 1.5;
}
.latest-updates-ticker ul li a {
    color: var(--text);
    font-weight: 500;
}
.latest-updates-ticker ul li a:hover { color: var(--primary); }
.latest-updates-ticker ul li::before {
    content: "▶ ";
    color: var(--accent);
    font-size: 10px;
}

/* =============================================
   WHATSAPP CTA BOX
============================================= */
.whatsapp-cta {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.whatsapp-cta h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.whatsapp-cta p { font-size: 13px; opacity: 0.9; margin-bottom: 14px; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* =============================================
   SIDEBAR
============================================= */
.sidebar .widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.sidebar .widget-title {
    background: var(--table-head);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    margin: 0;
}
.sidebar .widget-content { padding: 12px 14px; }
.sidebar .widget ul { padding: 0; }
.sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a { color: var(--text); font-weight: 500; }
.sidebar .widget ul li a:hover { color: var(--primary); }
.sidebar .widget ul li::before {
    content: "➤ ";
    color: var(--primary);
    font-size: 10px;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 0;
    margin-top: 30px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-widget h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-widget p { font-size: 13px; line-height: 1.7; color: #aaa; }
.footer-widget ul { padding: 0; }
.footer-widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}
.footer-widget ul li a { color: #bbb; }
.footer-widget ul li a:hover { color: #fff; text-decoration: none; }
.footer-widget ul li::before { content: "→ "; color: var(--primary); }
.footer-widget .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #aaa;
}
.footer-widget .contact-item .ci-icon { color: var(--primary); flex-shrink: 0; }

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: #666;
    background: rgba(0,0,0,0.3);
    margin-top: 0;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #fff; }

/* =============================================
   SINGLE POST / PAGE
============================================= */
.entry-header { margin-bottom: 20px; }
.entry-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; line-height: 1.35; color: var(--dark); }
.entry-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.entry-content { line-height: 1.8; }
.entry-content h2,
.entry-content h3 { font-family: var(--font-heading); margin: 20px 0 10px; }
.entry-content p { margin-bottom: 15px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.entry-content table th,
.entry-content table td { border: 1px solid #ddd; padding: 9px 12px; font-size: 13px; }
.entry-content table th { background: #e8f0fe; font-weight: 700; }
.entry-content table tr:nth-child(even) { background: #f9fbff; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .content-columns { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .site-header .site-container { flex-wrap: wrap; }
    .header-search { width: 100%; }
    .header-search input[type="search"] { flex: 1; width: auto; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; }
    .main-navigation ul.active { display: flex; }
    .menu-toggle { display: block; }
    .main-navigation .site-container { flex-wrap: wrap; }
    .footer-widgets { grid-template-columns: 1fr; }
    .hero-banner h1 { font-size: 24px; }
    .jobs-table { font-size: 12px; }
    .jobs-table thead { display: none; }
    .jobs-table tbody tr { display: block; border-bottom: 2px solid var(--border); padding: 8px; }
    .jobs-table tbody td { display: block; border: none; padding: 3px 0; }
    .jobs-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        color: var(--primary-dark);
        display: block;
    }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .cat-item { padding: 10px 4px; }
    .cat-item .cat-icon { font-size: 20px; }
    .cat-item .cat-name { font-size: 10px; }
    .hero-banner { padding: 25px 15px; }
}
