/*
Theme Name: Sarkari Results Co - Premium Theme
Theme URI: https://sarkariresultsco.com
Description: Ultimate Universal Stylesheet for Sarkari Results Co
Author: Praveen Tewatia
Version: 2.1
*/

/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body { background-color: #f3f4f6; font-family: 'Inter', sans-serif; color: #334155; line-height: 1.6; }

/* =========================================
   2. HEADER & NAVIGATION
========================================= */
.jobsite-header { background: #1e3a8a; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border-bottom: 3px solid #e11d48; }
.header-container { max-width: 1250px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 70px; }
.site-logo a { color: #ffffff; font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }

.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: #f8fafc; text-decoration: none; font-weight: 600; font-size: 16px; position: relative; padding: 5px 0; transition: color 0.3s ease; }
.nav-menu a:hover { color: #93c5fd; }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background-color: #e11d48; transition: width 0.3s ease; border-radius: 2px; }
.nav-menu a:hover::after { width: 100%; }

.menu-toggle { display: none; font-size: 28px; background: none; border: none; color: #ffffff; cursor: pointer; padding: 5px; transition: transform 0.2s; }

@media(max-width: 850px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 73px; left: 0; width: 100%; background: #1e3a8a; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
    .main-nav.active { display: block !important; animation: slideDown 0.3s ease-out forwards; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .nav-menu { flex-direction: column; padding: 10px 20px 20px 20px; gap: 0; }
    .nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 17px; }
    .nav-menu a::after { display: none; }
}

/* =========================================
   3. HOMEPAGE SPECIFIC 
========================================= */
.home-wrapper { max-width: 1250px; margin: 30px auto; padding: 0 20px; }
.home-hero { text-align: center; margin-bottom: 30px; padding: 20px 0; }
.home-hero h1 { font-size: 36px; font-weight: 700; color: #1e3a8a; margin-bottom: 12px; line-height: 1.4; letter-spacing: -0.5px; }
.home-hero p { font-size: 18px; color: #64748b; font-weight: 500; max-width: 700px; margin: 0 auto; }

.home-search { display: flex; justify-content: center; margin-bottom: 40px; }
.home-search form { display: flex; width: 100%; max-width: 600px; background: #fff; padding: 6px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.home-search form:focus-within { box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15); border-color: #1e3a8a; }
.home-search input { flex: 1; padding: 12px 20px; font-size: 16px; border: none; background: transparent; outline: none; color: #1e293b; font-family: 'Inter', sans-serif; }
.home-search button { padding: 12px 30px; background: #e11d48; color: #fff; border: none; border-radius: 40px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.home-search button:hover { background: #be123c; transform: translateY(-1px); }

.job-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.job-btn { display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; font-size: 16px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); gap: 8px; }
.job-btn.latest { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
.job-btn.admit  { background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); }
.job-btn.result { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.job-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); filter: brightness(1.05); }

.ticker-wrap { background: #fff; border-left: 4px solid #e11d48; border-radius: 8px; margin-bottom: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); overflow: hidden; height: 50px; display: flex; align-items: center; position: relative; }
.ticker-label { background: #e11d48; color: white; padding: 0 16px; font-weight: 700; font-size: 14px; height: 100%; display: flex; align-items: center; position: absolute; left: 0; z-index: 2; border-radius: 0 4px 4px 0; }
.ticker { padding-left: 140px; width: 100%; overflow: hidden; }
.ticker-inner { display: inline-flex; white-space: nowrap; animation: ticker-anim 60s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-inner a { color: #1e3a8a; text-decoration: none; font-weight: 600; font-size: 15px; margin: 0 20px; transition: color 0.2s; display: flex; align-items: center; position: relative; }
@keyframes ticker-anim { 0% { transform: translateX(10%); } 100% { transform: translateX(-100%); } }

.state-pills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; margin-top: 20px; }
.state-pill { background: #ffffff; border: 2px solid #e2e8f0; color: #1e3a8a; padding: 10px 24px; border-radius: 30px; font-weight: 600; text-decoration: none; font-size: 15px; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.state-pill:hover { background: #1e3a8a; color: #ffffff; border-color: #1e3a8a; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(30, 58, 138, 0.2); }

/* Compact Homepage Grid Cards */
.three-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.home-card { background: #fff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); padding: 12px; display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); transition: 0.3s; }
.home-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.home-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #1e3a8a; }
.home-card:nth-child(2)::before { background: #0ea5e9; } 
.home-card:nth-child(3)::before { background: #10b981; } 
.home-card h3 { text-align: left; color: #1e293b; font-size: 19px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }

.home-list { list-style: none; padding-left: 0 !important; margin: 0 !important; flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.home-list li { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #1e3a8a; border-radius: 6px; padding: 8px 10px; transition: 0.2s; margin-left: 0 !important; }
.home-list li:hover { background: #1e3a8a; border-color: #1e3a8a; transform: translateX(3px) translateY(-1px); box-shadow: 0 6px 15px rgba(30, 58, 138, 0.15); }
.home-list a { text-decoration: none; color: #1e293b; font-weight: 600; display: block; font-size: 14px; line-height: 1.3; transition: 0.2s; }
.home-list li:hover a { color: #ffffff; }
.list-date { display: block; font-size: 11px; color: #64748b; margin-top: 3px; font-weight: 500; transition: 0.2s; }
.home-list li:hover .list-date { color: #cbd5e1; }
.new-label { background: #e11d48; color: #ffffff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-left: 8px; vertical-align: middle; display: inline-block; animation: pulseLabel 2s infinite; }
@keyframes pulseLabel { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

.view-all { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.view-all a { display: inline-block; text-decoration: none; color: #1e3a8a; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 30px; background: #f8fafc; transition: 0.2s; border: 1px solid #e2e8f0; }
.view-all a:hover { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }

.seo-intro-box, .seo-content-section { background: #ffffff; padding: 30px; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; text-align: center; }
.seo-content-section h2, .seo-intro-box h2 { font-size: 26px; color: #1e3a8a; margin-bottom: 16px; font-weight: 800; }
.seo-content-section p, .seo-intro-box p { color: #475569; font-size: 16px; line-height: 1.8; max-width: 800px; margin: 0 auto 30px auto; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.faq-item { background: #f8fafc; padding: 24px; border-radius: 8px; border-left: 5px solid #e11d48; text-align: left; }
.faq-item h3 { font-size: 18px; color: #1e293b; margin-bottom: 10px; font-weight: 700; }

/* =========================================
   4. INDIVIDUAL JOB POST LAYOUT (single.php)
========================================= */
.job-container { max-width: 950px; margin: 40px auto; padding: 40px; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); font-size: 16px; line-height: 1.8; color: #334155; border: 1px solid rgba(0,0,0,0.03); }
.job-title { font-size: 32px; font-weight: 800; text-align: center; background: #1e3a8a; color: #ffffff; padding: 24px; border-radius: 12px; margin-top: 0; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15); }
.section-title { font-size: 22px; font-weight: 700; color: #1e293b; margin-top: 45px; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 3px solid #e11d48; display: inline-block; }
.job-image { text-align: center; margin: 30px 0; }
.job-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }

.content-box { background: #ffffff; padding: 24px; border-radius: 8px; border: 1px solid #e2e8f0; color: #475569; }
.short-box { background: #f8fafc; border-left: 5px solid #0ea5e9; padding: 20px 24px; border-radius: 0 8px 8px 0; color: #334155; font-weight: 500; }

/* Classic Sarkari Tables */
.sarkari-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 18px; }
.sarkari-table th, .sarkari-table td { border: 1px solid #000000; padding: 12px 15px; vertical-align: top; }
.sarkari-table ul { margin: 0; padding-left: 20px; }
.sarkari-table li { padding-bottom: 8px; }
.bg-navy { background-color: #000080; color: #ffffff; text-align: center; font-size: 20px; font-weight: bold; }
.bg-maroon { background-color: #5b032f; color: #ffffff; text-align: center; font-size: 20px; font-weight: bold; margin: 0 0 10px 0; padding: 6px; }
.bg-green { background-color: #046132; color: #ffffff; text-align: center; font-size: 20px; font-weight: bold; }
.bg-red { background-color: #f53c00; color: #ffffff; text-align: center; font-size: 20px; font-weight: bold; }
.bg-blue { background-color: #06064b; color: #ffffff; text-align: center; font-size: 20px; font-weight: bold; }
.bg-yellow { background-color: #fff091; text-align: center; font-weight: bold; vertical-align: middle !important; }
.bg-yellow a { color: #0000ff; text-decoration: none; font-size: 22px; }
.bg-yellow a:hover { color: #ff0000; }
.text-red { color: #ff0000; }
.sarkari-title { color: #ef0303; font-size: 28px; font-weight: bold; text-align: center; margin-bottom: 10px; }
.sarkari-subtitle { color: #009703; font-size: 22px; font-weight: bold; text-align: center; margin-bottom: 25px; }

/* =========================================
   5. FOOTER (.jobsite-footer)
========================================= */
.jobsite-footer { background: #0f172a !important; color: #cbd5e1; margin-top: 60px; padding-top: 50px; border-top: 4px solid #1e3a8a; }
.footer-container { max-width: 1250px; margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; padding: 0 20px; }
.footer-col { margin-bottom: 30px; }
.footer-col h3, .footer-col h4 { color: #ffffff; font-size: 19px; font-weight: 700; margin-bottom: 24px; position: relative; display: inline-block; padding-bottom: 8px; }
.footer-col h3::after, .footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #e11d48; border-radius: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 15px; transition: 0.25s; display: inline-block; }
.footer-col a:hover { color: #ffffff; transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); background: #0b1120; padding: 20px 15px; font-size: 14px; color: #64748b; margin-top: 30px; }

/* =========================================
   6. GLOBAL MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 1024px) {
    .three-columns { gap: 16px; }
}

@media (max-width: 900px) {
    .three-columns { grid-template-columns: 1fr; }
    .home-hero h1 { font-size: 26px; }
    .job-buttons { grid-template-columns: 1fr; }
    .ticker-label { display: none; }
    .ticker { padding-left: 0; }
    .seo-content-section, .seo-intro-box { padding: 24px; }
    .state-pill { width: 100%; text-align: center; margin-bottom: 5px; }
    .job-container { margin: 20px 15px; padding: 24px 15px; }
    .job-title { font-size: 24px; padding: 16px; margin-bottom: 20px; }
    .section-title { font-size: 20px; margin-top: 30px; }
    .footer-container { gap: 10px; }
}

/* =========================================================
   7. HOMEPAGE LEFT-INDENT KILLER (GENERATEPRESS NUCLEAR OVERRIDE)
========================================================= */

/* Nuke GeneratePress's hardcoded 3em left-spacing inside Editor contents */
body.home .entry-content ul,
body.home .entry-content ol,
body.home .inside-article ul,
body.front-page .entry-content ul,
body.front-page .inside-article ul,
ul.wp-block-post-template,
ul.wp-block-latest-posts {
    margin-left: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

/* Force the child boxes to stretch against the absolute left edge */
body.home .entry-content li, 
body.home .inside-article li,
body.front-page .entry-content li,
li.wp-block-post,
li.wp-block-latest-posts {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Destroy invisible inner padding from WordPress Wrapper Group Blocks */
body.home .wp-block-group__inner-container,
body.front-page .wp-block-group__inner-container,
body.home .wp-block-column,
body.front-page .wp-block-column {
    padding-left: 0 !important;
}

/* Pack jobs tightly (reduce vertical space) */
body.home .entry-content li,
body.front-page .entry-content li {
    margin-bottom: 5px !important;
}
