/* ========================================
   1. RESET, FONTS & VARIABLES
======================================== */
:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1e40af;
    --gold: #f59e0b;
    --bg: #f1f5f9;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --sidebar-header: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

/* Prevent horizontal scroll */
html, body { 
    background-color: var(--bg); 
    color: var(--text); 
    overflow-x: hidden; 
    width: 100%;
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ========================================
   2. NAVBAR & LOGO
======================================== */
.navbar {
    background: var(--primary); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.logo a { color: var(--white); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* --- ROUNDED SEARCH BAR (META AI STYLE) --- */
.nav-search { 
    background: #1e293b; 
    padding: 8px 20px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    width: 350px; 
    border: 1px solid #334155; 
    position: relative; 
}
.nav-search input { 
    background: transparent; 
    border: none; 
    outline: none; 
    color: var(--white); 
    width: 100%; 
    font-size: 14px; 
    margin-left: 10px; 
}
.nav-search i { color: #94a3b8; }

.suggestions-box { position: absolute; top: 100%; left: 0; width: 100%; background: white; border-radius: 0 0 8px 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: none; z-index: 1001; overflow: hidden; }
.suggestions-box.active { display: block; }
.suggestion-item { padding: 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 13px; color: var(--text); }
.suggestion-item:hover { background: #f8fafc; color: var(--accent); }

.menu-btn { color: white; font-size: 15px; cursor: pointer; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; display: none; align-items: center; gap: 8px; }

/* ========================================
   3. ANIMATED NEWS TICKER
======================================== */
.news-ticker-container {
    background: #1e293b; border-bottom: 1px solid #334155; color: white; height: 45px;
    display: flex; align-items: center; overflow: hidden; position: relative; z-index: 950;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ticker-label {
    background: #dc2626; height: 100%; display: flex; align-items: center; justify-content: center;
    padding: 0 25px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: white;
    z-index: 10; min-width: 160px; position: relative;
}
.ticker-label::after {
    content: ''; position: absolute; top: 0; right: -15px; width: 30px; height: 100%;
    background: #dc2626; transform: skewX(-20deg); z-index: -1;
}
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }

.ticker-content { 
    display: inline-block; 
    white-space: nowrap; 
    padding-left: 100%; 
    animation: marquee 100s linear infinite; 
}

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.ticker-track:hover .ticker-content { animation-play-state: paused; }
.ticker-content a { color: #e2e8f0; text-decoration: none; font-size: 13px; font-weight: 500; margin-right: 40px; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; }
.ticker-content a:hover { color: #facc15; text-decoration: underline; }

/* ========================================
   4. LAYOUT & SIDEBAR
======================================== */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: var(--white); text-align: center; padding: 50px 20px; margin-bottom: 30px; }
.hero h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.hero .highlight { color: var(--gold); }

.container-fluid { width: 96%; max-width: 1400px; margin: 0 auto 40px; padding: 0 10px; }
.layout-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 25px; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; height: fit-content; z-index: 900; }
.sidebar-box { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #e2e8f0; }
.dark-header { background: #1e293b; color: white; padding: 15px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.marquee-wrapper { padding: 5px 10px; background: #fff; height: 300px; overflow: hidden; }
.marquee-wrapper li { border-bottom: 1px dashed #cbd5e1; padding: 10px 0; font-size: 13px; line-height: 1.4; }
.marquee-wrapper a { color: var(--text); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.quick-links { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.q-link { display: block; padding: 12px; text-align: center; color: white; border-radius: 6px; font-weight: 600; font-size: 14px; }
.red { background: #dc2626; } .pink { background: #db2777; } .blue { background: #2563eb; } .green { background: #16a34a; }
.sidebar-mobile-header { display: none; }

/* ========================================
   5. JOB SECTIONS & ANIMATIONS
======================================== */
.search-header-card { background: var(--white); padding: 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); border-left: 5px solid var(--accent); margin-bottom: 20px; }
.fire-icon-box { background: #eff6ff; color: var(--accent); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 20px; }
.chip-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.chip-btn { background: white; border: 1px solid #e2e8f0; color: var(--accent); padding: 8px 18px; border-radius: 50px; cursor: pointer; transition: 0.3s; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chip-btn:hover { background: var(--accent); color: white; }

/* Social Buttons Row */
.action-buttons { 
    display: flex !important; 
    flex-direction: row !important; 
    gap: 15px; 
    margin-bottom: 30px; 
    width: 100%; 
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatPulse {
    0% { transform: translateY(0px) scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
    50% { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15); }
    100% { transform: translateY(0px) scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- SOCIAL BUTTON STYLES & ANIMATION --- */
.action-card { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 12px 10px; 
    border-radius: 50px; 
    color: white; 
    font-weight: 600; 
    font-size: 14px; 
    box-shadow: var(--shadow); 
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards; 
}

.action-card:hover {
    animation: floatPulse 1.5s infinite ease-in-out; 
    filter: brightness(1.1); 
}

/* Colors */
.whatsapp-btn { background: #25D366; animation-delay: 0.1s; } 
.telegram-btn { background: #0088cc; animation-delay: 0.2s; }
.yt-btn { background: #FF0000; animation-delay: 0.3s; }
.fb-btn { background: #1877F2; } 
.insta-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.icon-circle { background: rgba(255,255,255,0.2); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* SECTIONS GRID */
.govt-sections-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }

.category-block { 
    background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; 
    height: 100%; display: flex; flex-direction: column; 
    overflow: hidden; 
}

.cat-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.cat-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 20px; }
.central-icon { background: #eff6ff; color: var(--accent); }
.state-icon { background: #f0fdf4; color: #16a34a; }
.count-tag { margin-left: auto; background: #1e293b; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.cat-sub-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.cat-sub-grid a { text-decoration: none; color: var(--text-light); font-size: 12px; font-weight: 600; padding: 6px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; }

/* HORIZONTAL SCROLL CONTAINER */
.jobs-grid { 
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    padding-bottom: 15px; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin;
    width: 100%;
}
.jobs-grid::-webkit-scrollbar { height: 6px; }
.jobs-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* JOB CARD */
.job-card { 
    min-width: 260px; max-width: 260px; 
    background: white; padding: 18px; border-radius: 10px; border: 1px solid #e2e8f0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); position: relative; cursor: pointer; transition: 0.3s;
    flex-shrink: 0; 
}
.job-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.job-card h3 { font-size: 15px; margin: 25px 0 5px; color: var(--primary); line-height: 1.4; height: 42px; overflow: hidden; }
.apply-btn { display: block; text-align: center; margin-top: 15px; padding: 10px; background: var(--accent); color: white; border-radius: 6px; font-size: 13px; font-weight: 600; }

.full-width-block { width: 100%; margin-bottom: 30px; }
.scroll-wrapper { position: relative; display: flex; align-items: center; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; border-radius: 50%; border: 1px solid #e2e8f0; background: white; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 10; display: flex; align-items: center; justify-content: center; }
.left-arrow { left: -15px; } .right-arrow { right: -15px; }

.exam-section-box { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 30px; border: 1px solid #e2e8f0; }
.exam-header-row { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.icon-box-sm { width: 40px; height: 40px; background: #fff1f2; color: #e11d48; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.exam-text h3 { font-size: 18px; margin: 0; color: #1e293b; }
.exam-text p { font-size: 13px; color: #64748b; margin: 0; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }

/* --- EXAM CARDS ANIMATION (Pop Up) --- */
.exam-card { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 600; 
    color: #334155; 
    transition: 0.3s; 
    display: block; 
    animation: fadeInUp 0.6s ease-out backwards; 
}
.exam-card:nth-child(1) { animation-delay: 0.1s; }
.exam-card:nth-child(2) { animation-delay: 0.2s; }
.exam-card:nth-child(3) { animation-delay: 0.3s; }
.exam-card:nth-child(4) { animation-delay: 0.4s; }
.exam-card:nth-child(5) { animation-delay: 0.5s; }

.exam-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: var(--accent);
    background: white;
}

.dual-category-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.dual-cat-box { background: white; padding: 20px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid #e2e8f0; }
.dual-header { font-weight: 700; color: #1e293b; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 16px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.dual-links-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }

/* --- LINKS ZOOM ANIMATION --- */
.dual-links-grid a { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 500; 
    color: #475569; 
    transition: all 0.2s ease;
    animation: zoomIn 0.5s ease-out backwards; 
}
.dual-links-grid a:hover {
    transform: scale(1.05);
    background: #e0e7ff; 
    color: var(--accent);
    border-color: var(--accent);
}

.view-all-btn { display: block; text-align: center; color: #2563eb; font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ========================================
   6. FOOTER
======================================== */
.main-footer { background-color: #1e293b; color: #cbd5e1; padding: 60px 0 0; margin-top: 60px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 0 20px 40px; }
.footer-logo { color: #ffffff; font-size: 24px; font-weight: 700; margin-bottom: 15px; display: inline-block; }
.footer-logo span { color: var(--gold); }
.footer-col h3 { color: #ffffff; font-size: 16px; margin-bottom: 18px; border-left: 3px solid var(--accent); padding-left: 12px; }
.footer-col ul li a { color: #cbd5e1; display: block; margin-bottom: 8px; font-size: 14px; }
.footer-bottom { background: #0f172a; text-align: center; padding: 20px; border-top: 1px solid #334155; color: #64748b; font-size: 13px; }

/* Footer Social Row Styling */
.footer-social-row {
    display: flex;
    gap: 10px;
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.modal-overlay.open { display: flex; }
.modal-content { background: white; width: 90%; max-width: 600px; max-height: 85vh; border-radius: 12px; padding: 25px; overflow-y: auto; }
.state-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.state-btn { background: #f8fafc; border: 1px solid #cbd5e1; padding: 10px; border-radius: 6px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 500; }
.close-modal { background: none; border: none; font-size: 24px; cursor: pointer; }

/* ========================================
   7. 📱 MOBILE RESPONSIVE FIX (FORCE)
======================================== */
@media (max-width: 900px) {
    /* Navbar: Wrap enabled to allow Logo on top, Search+Menu below */
    .navbar { flex-wrap: wrap !important; padding-bottom: 10px; gap: 10px; justify-content: center; }
    
    /* Logo: Top Center */
    .logo { width: 100%; display: flex; justify-content: center; margin-bottom: 5px; }

    /* Nav Right (Container for Search & Menu) */
    .nav-right { 
        width: 100%; 
        display: flex; 
        align-items: center; 
        gap: 10px; /* Space between Search & Menu */
    }
    
    /* Menu Button: Keep size constant */
    .menu-btn { display: flex !important; margin-left: 0; background: rgba(255,255,255,0.1); flex-shrink: 0; }
    
    /* Search Bar: Take remaining space */
    .nav-search { 
        width: auto !important; 
        flex-grow: 1; /* Expands to fill space */
        margin-top: 0; 
        margin-left: 0; 
    }
    
    /* LAYOUT: FORCE STACKING */
    .layout-grid { display: block !important; }
    
    /* SIDEBAR */
    .sidebar { position: fixed !important; top: 0; left: -300px !important; width: 280px; height: 100vh; background: #ffffff; z-index: 10002; transition: left 0.3s ease-in-out; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.2); }
    .sidebar.active { left: 0 !important; }
    
    /* SECTIONS: Force 1 Column Stack */
    .govt-sections-wrapper, .dual-category-container, .footer-content { grid-template-columns: 1fr !important; }
    
    /* Center Footer Social Icons on Mobile */
    .footer-social-row { justify-content: center; }

    /* FIX: SECTION PADDING */
    .category-block {
        width: 100%;
        padding: 15px;
        overflow: hidden; 
    }

    /* FIX: YOUTUBE BUTTON ON PHONE VIEW (Wrap) */
    .action-buttons {
        flex-wrap: wrap !important; 
        justify-content: center; 
    }
    .action-card {
        min-width: 140px; 
        flex-grow: 1; 
    }

    /* FIX: SCROLL CENTRAL & STATE */
    .jobs-grid { 
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: auto !important; 
        flex-wrap: nowrap !important; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 15px;
        width: 100%; 
    }
    
    /* FIX: Card Sizing */
    .job-card { 
        min-width: 85vw !important; 
        max-width: 85vw !important; 
        margin-right: 15px; 
        scroll-snap-align: start; 
        flex: 0 0 auto; 
    }

    /* Menu Overlay */
    .menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10001; display: none; }
    .menu-overlay.active { display: block; }
    .sidebar-mobile-header { display: flex !important; justify-content: space-between; align-items: center; background: var(--primary); color: white; padding: 15px 20px; }
    
    /* Ticker Fix */
    .ticker-label { padding: 0 10px; min-width: 50px; font-size: 0; }
    .ticker-label i { font-size: 18px; margin: 0; }
    .ticker-label::after { display: none; }
    
    /* Spacing Fixes */
    .container-fluid { width: 100% !important; padding: 0 15px; } 
    .hero { padding: 30px 15px; }
    .hero h2 { font-size: 24px; }
    .footer-content { text-align: center; gap: 30px; }
    .footer-logo { margin: 0 auto 15px; }
}