/* =============================================
   RAJASTHAN EXAM CHECK — GLOBAL STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C38;
  --saffron-glow: rgba(255,107,0,0.15);
  --royal: #1A237E;
  --royal-mid: #283593;
  --royal-light: #3949AB;
  --gold: #FFD700;
  --gold-soft: #FFC107;
  --green-india: #2E7D32;
  --green-light: #43A047;
  --bg-main: #0D1117;
  --bg-card: #161B22;
  --bg-card2: #1C2128;
  --border: rgba(255,255,255,0.08);
  --text-main: #F0F4FF;
  --text-muted: #8899BB;
  --text-soft: #C8D4F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(255,107,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.4); border-radius: 4px; }

/* ---- NAVIGATION ---- */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--saffron); background: var(--saffron-glow); }
.nav-cta {
  background: linear-gradient(135deg, var(--saffron), #E65100) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
}
.nav-cta:hover { opacity: 0.88; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 62px 0 0;
  background: rgba(13,17,23,0.98); backdrop-filter: blur(20px);
  z-index: 190; padding: 24px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-soft); text-decoration: none; font-weight: 600;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-menu a:hover { border-color: var(--saffron); color: var(--saffron); }
@media(max-width:760px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 14px clamp(16px,4vw,48px);
  font-size: 0.82rem; color: var(--text-muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--saffron); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(26,35,126,0.12));
  border-bottom: 1px solid var(--border);
  padding: clamp(40px,6vw,80px) clamp(16px,4vw,48px);
  text-align: center;
}
.page-hero .section-tag {
  display: inline-block;
  background: var(--saffron-glow);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--saffron); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero h1 span {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- MAIN CONTAINERS ---- */
.main-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(16px,4vw,48px); }
.content-wrap { max-width: 800px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(16px,4vw,48px); }

/* ---- SECTION LABELS ---- */
.section-tag {
  display: inline-block;
  background: var(--saffron-glow);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--saffron); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 14px;
}
h2.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px;
}
h2.section-title span {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 36px; max-width: 580px; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,107,0,0.3); box-shadow: 0 8px 28px rgba(255,107,0,0.12); }
.card-accent {
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--saffron), var(--gold)) 1;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--saffron), #E65100);
  color: #fff; font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer;
  text-decoration: none; box-shadow: 0 6px 24px rgba(255,107,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,107,0,0.55); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-soft);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: 50px;
  border: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron-glow); color: var(--saffron);
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
  border: 1px solid rgba(255,107,0,0.3); cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,107,0,0.25); }

/* ---- FORM ELEMENTS ---- */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.form-control {
  background: var(--bg-card2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-family: inherit; font-size: 1rem; font-weight: 500;
  padding: 13px 16px; transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,0.15); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: rgba(255,107,0,0.1); color: var(--saffron-light); font-weight: 700; padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 16px; color: var(--text-soft); border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,107,0,0.04); }

/* ---- BADGES ---- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.badge-green { background: rgba(46,125,50,0.2); color: #66BB6A; border: 1px solid rgba(46,125,50,0.4); }
.badge-orange { background: var(--saffron-glow); color: var(--saffron-light); border: 1px solid rgba(255,107,0,0.35); }
.badge-blue { background: rgba(57,73,171,0.2); color: #90CAF9; border: 1px solid rgba(57,73,171,0.4); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--gold-soft); border: 1px solid rgba(255,215,0,0.3); }
.badge-red { background: rgba(239,83,80,0.12); color: #EF9A9A; border: 1px solid rgba(239,83,80,0.3); }

/* ---- DIVIDERS ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- CONTENT TYPOGRAPHY ---- */
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--saffron-light); }
.prose p { color: var(--text-soft); font-size: 0.97rem; line-height: 1.85; margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-soft); font-size: 0.95rem; line-height: 1.8; padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-main); }
.prose a { color: var(--saffron); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
mark { background: rgba(255,215,0,0.18); color: var(--gold-soft); padding: 0 4px; border-radius: 4px; }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px clamp(16px,4vw,48px);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px,4vw,60px); flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* ---- FLAG BAR ---- */
.flag-bar { height: 4px; background: linear-gradient(90deg, var(--saffron) 33.3%, #fff 33.3% 66.6%, var(--green-india) 66.6%); }

/* ---- FOOTER ---- */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: clamp(40px,5vw,64px) clamp(16px,4vw,48px) 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 40px; max-width: 1100px; margin: 0 auto 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--saffron-light); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 0 auto; font-size: 0.82rem; color: var(--text-muted); }
@media(max-width:760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---- ALERTS / INFO BOXES ---- */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin: 20px 0; font-size: 0.92rem; }
.alert-info { background: rgba(57,73,171,0.15); border: 1px solid rgba(57,73,171,0.4); color: #90CAF9; }
.alert-success { background: rgba(46,125,50,0.15); border: 1px solid rgba(46,125,50,0.4); color: #66BB6A; }
.alert-warn { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.35); color: var(--saffron-light); }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--green-india); color: #fff;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  z-index: 999; transform: translateY(80px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s; box-shadow: 0 6px 20px rgba(0,0,0,0.4); max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.warn { background: #E65100; }

/* ---- LOADERS ---- */
.loader { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--saffron); border-radius: 50%; animation: spin 0.7s linear infinite; }
.loader-wrap { display: flex; justify-content: center; padding: 32px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-in { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: none; }
.hero-animate { animation: fadeUp 0.7s ease both; }

/* ---- STATS ---- */
.stat-num { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; background: linear-gradient(135deg, var(--gold), var(--saffron)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ---- QUICK LINKS ---- */
.quick-link-card {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; text-decoration: none; color: var(--text-main);
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-link-card:hover { border-color: var(--saffron); transform: translateY(-3px); }

/* ---- PROGRESS BAR ---- */
.progress-bar-wrap { background: var(--bg-card2); border-radius: 50px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 50px; transition: width 0.5s ease; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; background: var(--bg-card); padding: 6px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.tab-btn { flex: 1; min-width: 100px; padding: 10px 16px; border: none; background: transparent; color: var(--text-muted); font-family: inherit; font-size: 0.88rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--saffron); color: #fff; }
.tab-btn:hover:not(.active) { background: var(--saffron-glow); color: var(--saffron); }
.tab-content { display: none; }
.tab-content.active { display: block; }
