/*
Theme Name: Saral Seva Bharti v4
Theme URI: https://saralsevabharti.com
Author: Saral Seva Bharti
Description: Maharashtra Sarkari Naukri Portal - सरकारी नोकरी पोर्टल | Bharti, Sarav Paper, Pravesh Patra, Result
Version: 4.0
License: GNU General Public License v2 or later
Text Domain: saralseva
*/

:root {
  --saffron: #FF6B00;
  --deep: #E55A00;
  --gold: #FFB300;
  --navy: #0D1B4B;
  --deep-navy: #060E2E;
  --teal: #00897B;
  --red: #E53935;
  --light: #FFF8F0;
  --white: #fff;
  --gray: #F5F5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Baloo 2', sans-serif; background: var(--light); color: #1a1a2e; overflow-x: hidden; }

/* ===== HEADER ===== */
header { background: linear-gradient(135deg, var(--navy), var(--deep-navy)); position: sticky; top: 0; z-index: 200; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.top-bar { background: var(--saffron); text-align: center; padding: 6px; font-size: 13px; color: white; font-weight: 600; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text h1 { font-size: 20px; font-weight: 800; color: white; }
.logo-text span { font-size: 11px; color: var(--gold); }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .25s; }
nav a:hover, nav a.active { background: rgba(255,255,255,0.12); color: var(--gold); }
.nav-admin { background: var(--saffron) !important; color: white !important; border-radius: 8px; }
.nav-admin:hover { background: var(--deep) !important; }

/* ===== TICKER ===== */
.ticker { background: var(--gold); padding: 8px 0; overflow: hidden; display: flex; align-items: center; }
.ticker-label { background: var(--navy); color: white; padding: 3px 14px; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: 1px; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-text { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--navy); animation: ticker 30s linear infinite; display: inline-block; }
@keyframes ticker { from { transform: translateX(100vw) } to { transform: translateX(-100%) } }

/* ===== HERO ===== */
.hero { background: linear-gradient(160deg, var(--navy), var(--deep-navy)); padding: 60px 32px; position: relative; overflow: hidden; }
.hero::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='%23FF6B00' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.hero-inner h2 { font-size: 13px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.hero-inner h1 { font-size: 42px; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px; }
.hero-inner h1 span { color: var(--saffron); }
.hero-inner p { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--deep)); color: white; padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: 'Baloo 2', sans-serif; box-shadow: 0 6px 20px rgba(255,107,0,0.4); transition: all .3s; display: inline-block; }
.btn-primary:hover { transform: translateY(-3px); color: white; }
.btn-outline { background: transparent; color: white; padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; font-family: 'Baloo 2', sans-serif; transition: all .3s; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: flex; gap: 20px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 28px; text-align: center; transition: all .3s; }
.stat:hover { background: rgba(255,107,0,0.15); border-color: var(--saffron); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--gold); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* ===== SECTION ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 50px 24px; }
.sec-title { text-align: center; margin-bottom: 32px; }
.sec-title h2 { font-size: 28px; font-weight: 800; color: var(--navy); display: inline-block; }
.sec-title h2::after { content: ''; display: block; height: 4px; width: 60%; margin: 8px auto 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 2px; }
.sec-title p { color: #888; margin-top: 10px; font-size: 14px; }

/* ===== PILLS ===== */
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.pill { padding: 8px 20px; border-radius: 25px; font-size: 13px; font-weight: 700; cursor: pointer; border: 2px solid #E0E0E0; background: white; transition: all .25s; }
.pill:hover, .pill.active { background: var(--saffron); color: white; border-color: var(--saffron); }

/* ===== JOB CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.job-card { background: white; border-radius: 16px; padding: 22px; border: 2px solid transparent; box-shadow: 0 4px 18px rgba(0,0,0,0.06); transition: all .3s; position: relative; overflow: hidden; }
.job-card::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(180deg, var(--saffron), var(--gold)); }
.job-card:hover { transform: translateY(-5px); border-color: rgba(255,107,0,0.25); box-shadow: 0 12px 28px rgba(255,107,0,0.13); }
.job-dept { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dept-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--saffron), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.dept-name { font-size: 12px; color: #888; font-weight: 600; }
.job-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { background: var(--gray); color: #666; padding: 3px 10px; border-radius: 15px; font-size: 11px; font-weight: 600; }
.tag.hot { background: rgba(255,107,0,0.1); color: var(--saffron); }
.tag.new { background: rgba(0,137,123,0.1); color: var(--teal); }
.job-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #F0F0F0; }
.deadline { font-size: 12px; color: #888; }
.deadline span { color: var(--red); font-weight: 700; }
.action-btn { background: var(--saffron); color: white; padding: 7px 16px; border-radius: 7px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; transition: all .2s; font-family: 'Baloo 2', sans-serif; text-decoration: none; display: inline-block; }
.action-btn:hover { background: var(--deep); color: white; }
.action-btn.outline { background: transparent; border: 2px solid var(--saffron); color: var(--saffron); }
.action-btn.outline:hover { background: var(--saffron); color: white; }
.empty-msg { text-align: center; padding: 50px; color: #aaa; font-size: 16px; grid-column: 1/-1; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--deep-navy)); padding: 40px 32px; text-align: center; }
.page-hero h1 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 15px; }

/* ===== QUIZ SECTION ===== */
.quiz-bg { background: linear-gradient(160deg, var(--navy), var(--deep-navy)); padding: 60px 24px; }
.quiz-inner { max-width: 850px; margin: 0 auto; }
.quiz-head { text-align: center; margin-bottom: 32px; }
.quiz-head h2 { font-size: 28px; font-weight: 800; color: white; }
.quiz-head h2 span { color: var(--gold); }
.quiz-head p { color: rgba(255,255,255,0.55); margin-top: 8px; }
.quiz-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.q-subject { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 20px 14px; cursor: pointer; transition: all .3s; text-align: center; text-decoration: none; display: block; }
.q-subject:hover { background: rgba(255,107,0,0.2); border-color: var(--saffron); transform: translateY(-4px); }
.q-sub-icon { font-size: 32px; margin-bottom: 8px; }
.q-sub-name { font-size: 13px; font-weight: 700; color: white; }
.q-sub-count { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 3px; }

/* ===== QUIZ BOX ===== */
.quiz-box { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); margin-top: 24px; }
.quiz-progress-bar { height: 5px; background: linear-gradient(90deg, var(--saffron), var(--gold)); transition: width .5s; }
.quiz-body { padding: 30px 34px; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.q-counter { font-size: 13px; color: #888; font-weight: 600; }
.q-timer { background: linear-gradient(135deg, var(--navy), #1a2a6c); color: white; padding: 7px 16px; border-radius: 18px; font-weight: 700; font-size: 14px; }
.q-badge { display: inline-block; background: rgba(255,107,0,0.1); color: var(--saffron); padding: 4px 12px; border-radius: 15px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.q-text { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 24px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.q-opt { padding: 14px 18px; border-radius: 10px; border: 2.5px solid #E8E8E8; cursor: pointer; font-size: 13px; font-weight: 600; color: #1a1a2e; text-align: left; transition: all .25s; background: white; font-family: 'Baloo 2', sans-serif; display: flex; align-items: center; gap: 10px; }
.q-opt:hover { border-color: var(--saffron); background: rgba(255,107,0,0.04); }
.q-opt.selected { border-color: var(--saffron); background: rgba(255,107,0,0.08); }
.q-opt.correct { border-color: var(--teal); background: rgba(0,137,123,0.08); color: var(--teal); }
.q-opt.wrong { border-color: var(--red); background: rgba(229,57,53,0.08); color: var(--red); }
.opt-letter { width: 28px; height: 28px; border-radius: 7px; background: var(--gray); color: #888; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; transition: all .25s; }
.q-opt.selected .opt-letter { background: var(--saffron); color: white; }
.q-opt.correct .opt-letter { background: var(--teal); color: white; }
.q-opt.wrong .opt-letter { background: var(--red); color: white; }
.q-explain { background: rgba(0,137,123,0.06); border: 1.5px solid rgba(0,137,123,0.2); border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-size: 13px; line-height: 1.6; display: none; }
.q-explain.show { display: block; animation: fadeUp .3s; }
.q-actions { display: flex; justify-content: space-between; align-items: center; }
.q-skip { color: #888; font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: none; font-family: 'Baloo 2', sans-serif; }
.q-skip:hover { color: var(--saffron); }
.q-next { background: linear-gradient(135deg, var(--saffron), var(--deep)); color: white; border: none; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Baloo 2', sans-serif; transition: all .3s; }
.q-next:hover { transform: scale(1.05); }
.q-next:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.quiz-result { text-align: center; padding: 40px; }
.res-emoji { font-size: 64px; margin-bottom: 12px; }
.res-score { font-size: 44px; font-weight: 800; color: var(--saffron); }
.res-msg { font-size: 17px; color: var(--navy); margin: 8px 0 18px; font-weight: 600; }
.res-detail { font-size: 13px; color: #888; margin-bottom: 24px; }

/* ===== STUDENT FORM MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal { background: white; border-radius: 20px; padding: 32px; max-width: 480px; width: 90%; text-align: center; }
.modal h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.modal p { font-size: 14px; color: #666; margin-bottom: 22px; }
.modal .form-field { text-align: left; margin-bottom: 16px; }
.modal .form-field label { display: block; font-size: 12px; font-weight: 700; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.modal .form-field input { width: 100%; padding: 12px 16px; border: 2px solid #E8E8E8; border-radius: 10px; font-size: 15px; font-family: 'Baloo 2', sans-serif; outline: none; transition: border .3s; }
.modal .form-field input:focus { border-color: var(--saffron); }
.modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.modal-btns .btn-cancel { background: transparent; color: #888; border: 2px solid #DDD; padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Baloo 2', sans-serif; }

/* ===== SINGLE POST PAGE ===== */
.single-container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.info-box { background: white; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); margin-bottom: 24px; }
.info-box h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.info-item { background: var(--gray); border-radius: 10px; padding: 14px; }
.info-item .label { font-size: 11px; font-weight: 700; color: #999; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.info-item .value { font-size: 15px; font-weight: 700; color: var(--navy); }
.short-info { background: rgba(255,107,0,0.05); border: 2px solid rgba(255,107,0,0.15); border-radius: 12px; padding: 18px 22px; margin: 16px 0; font-size: 14px; line-height: 1.7; color: #444; }
.short-info strong { color: var(--navy); }
.download-section { background: linear-gradient(135deg, var(--navy), var(--deep-navy)); border-radius: 16px; padding: 28px; text-align: center; margin: 24px 0; }
.download-section h3 { color: white; font-size: 18px; margin-bottom: 8px; }
.download-section p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 20px; }

/* ===== FOOTER ===== */
footer { background: var(--deep-navy); color: rgba(255,255,255,0.55); padding: 40px 32px 24px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand h3 { color: white; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; text-align: center; font-size: 12px; max-width: 1100px; margin: 0 auto; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  .header-main { padding: 12px 16px; }
  nav a { padding: 6px 10px; font-size: 12px; }
  .hero-inner h1 { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .q-opts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner h1 { font-size: 24px; }
}
