/* =============================================
   RAJASTHAN EXAM — STYLE.CSS
   Theme: Light | Trust + Govt Exam Feel
   ============================================= */

/* Fonts loaded via <link> in head.php for better performance */

/* =============================================
   COLOR VARIABLES
   ============================================= */
:root {
  /* Primary — Dark Blue (Trust + Govt) */
  --primary:        #1E3A8A;
  --primary-dark:   #162D6E;
  --primary-light:  #2563EB;
  --primary-bg:     #EFF6FF;
  --primary-border: #BFDBFE;

  /* Accent — Reddish Orange (Rajasthan CTA) */
  --secondary:         #C84B1F;
  --secondary-dark:    #A33A14;
  --secondary-light:   #E05A2B;
  --secondary-bg:      #FEF3EE;
  --secondary-border:  #FDBA9A;

  /* Highlight — Gold */
  --accent:           #FFD54F;
  --accent-dark:      #F59E0B;
  --accent-bg:        #FFFBEB;
  --accent-border:    #FDE68A;

  /* Success / Green */
  --green:          #15803D;
  --green-bg:       #F0FDF4;
  --green-border:   #BBF7D0;

  /* Error / Red */
  --red:            #B91C1C;
  --red-bg:         #FEF2F2;
  --red-border:     #FECACA;

  /* Backgrounds */
  --bg:       #FFFFFF;
  --bg-light:        #F8FAFC;
  --bg-card:        #FFFFFF;

  /* Text */
  --text-main:   #111827;
  --text-light: #6B7280;
  --text-muted:     #9CA3AF;
  --text-white:     #FFFFFF;

  /* Borders */
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.1);
  --shadow-primary: 0 6px 20px rgba(30,58,138,0.25);
  --shadow-secondary:  0 6px 20px rgba(200,75,31,0.3);

  /* Radius */
  --radius:    14px;
  --radius-sm:  8px;
  --radius-xs:  6px;
}

/* =============================================
   RESET
   ============================================= */
*, *::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);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--primary);
  border-bottom: 3px solid var(--secondary);
  padding: 0 clamp(16px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: var(--shadow);
}
.nav-logo {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-white); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  padding: 8px 13px; border-radius: var(--radius-xs);
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-links a.active { color: var(--accent); background: rgba(255,255,255,0.1); }
.nav-cta {
  background: var(--secondary) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: 50px !important;
  font-weight: 700 !important; box-shadow: var(--shadow-secondary) !important;
}
.nav-cta:hover { background: #A63E17 !important; transform: translateY(-1px); }
.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: #fff; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0;
  background: var(--primary); z-index: 190; padding: 20px;
  flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600;
  padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15); font-size: 0.97rem;
  transition: all 0.2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.12); color: var(--accent); }
@media(max-width:760px){ .nav-links { display: none; } .hamburger { display: flex; } }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 12px clamp(16px,4vw,48px);
  font-size: 0.82rem; color: var(--text-main);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4fcf 100%);
  border-bottom: 3px solid var(--secondary);
  padding: clamp(40px,6vw,80px) clamp(16px,4vw,48px);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero .section-tag {
  display: inline-block;
  background: rgba(255,213,79,0.2); border: 1px solid rgba(255,213,79,0.5);
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 50px; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 14px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* =============================================
   CONTAINERS
   ============================================= */
.main-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(32px,5vw,64px) clamp(16px,4vw,48px); }
.content-wrap { max-width: 800px; margin: 0 auto; padding: clamp(32px,5vw,64px) clamp(16px,4vw,48px); }

/* =============================================
   SECTION LABELS
   ============================================= */
.section-tag {
  display: inline-block;
  background: var(--primary-bg); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
h2.section-title { font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 10px; color: var(--text-main); }
h2.section-title span { color: var(--primary); }
.section-desc { color: var(--text-main); font-size: 1rem; margin-bottom: 32px; max-width: 580px; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary-border); box-shadow: var(--shadow-lg); }
.card-accent { border-top: 3px solid var(--secondary); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); 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: var(--shadow-secondary);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover { background: #A63E17; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,75,31,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 12px 24px; border-radius: 50px;
  border: 2px solid var(--primary); cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-bg); color: var(--primary);
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
  border: 1px solid var(--primary-border); cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* =============================================
   FORMS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.07em; }
.form-control {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-family: inherit; font-size: 0.97rem; font-weight: 500;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; width: 100%; -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.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; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--bg); }
th { background: var(--primary); color: #fff; font-weight: 700; padding: 13px 16px; text-align: left; border-bottom: 2px solid var(--primary-dark); white-space: nowrap; }
td { padding: 12px 16px; color: var(--text-main); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg-light); }
tr:hover td { background: var(--primary-bg); }

/* =============================================
   BADGES
   ============================================= */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-green  { background: var(--green-bg);   color: var(--green);   border: 1px solid var(--green-border); }
.badge-secondary { background: var(--secondary-bg);  color: var(--secondary);  border: 1px solid var(--secondary-border); }
.badge-blue   { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-accent   { background: var(--accent-bg);    color: #92400E;        border: 1px solid var(--accent-border); }
.badge-red    { background: var(--red-bg);     color: var(--red);     border: 1px solid var(--red-border); }

/* =============================================
   DIVIDER
   ============================================= */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* =============================================
   PROSE / CONTENT
   ============================================= */
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 14px; color: var(--text-main); }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; color: var(--primary); }
.prose p { color: var(--text-main); font-size: 0.97rem; line-height: 1.85; margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-main); 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(--primary-light); text-decoration: none; font-weight: 600; }
.prose a:hover { text-decoration: underline; }
mark { background: var(--accent-bg); color: #92400E; padding: 1px 6px; border-radius: 4px; font-weight: 600; border: 1px solid var(--accent-border); }

/* =============================================
   GRIDS
   ============================================= */
.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(--primary-bg); border-top: 1px solid var(--primary-border); border-bottom: 1px solid var(--primary-border);
  padding: 16px 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(--primary); }

/* =============================================
   FLAG BAR
   ============================================= */
.flag-bar { height: 4px; background: linear-gradient(90deg, #FF9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--primary); border-top: 3px solid var(--secondary); 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: #FFFFFF; font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h3 { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: #FFFFFF; font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 0 auto; font-size: 0.8rem; color: #FFFFFF; }
@media(max-width:760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }

/* =============================================
   ALERTS
   ============================================= */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 0.92rem; }
.alert-info    { background: var(--primary-bg); border: 1px solid var(--primary-border); color: var(--primary); }
.alert-success { background: var(--green-bg);   border: 1px solid var(--green-border);   color: var(--green); }
.alert-warn    { background: var(--secondary-bg);  border: 1px solid var(--secondary-border);  color: var(--secondary-dark); }
.alert-gold    { background: var(--accent-bg);    border: 1px solid var(--accent-border);    color: #92400E; }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--green); color: #fff;
  padding: 14px 20px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  z-index: 999; transform: translateY(80px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s; box-shadow: var(--shadow-lg); max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.warn { background: var(--secondary); }

/* =============================================
   LOADER
   ============================================= */
.loader { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); 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(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-in.visible { opacity: 1; transform: none; }
.hero-animate { animation: fadeUp 0.6s ease forwards; }

/* =============================================
   STATS
   ============================================= */
.stat-num { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-main); font-weight: 600; margin-top: 2px; }

/* =============================================
   QUICK LINKS
   ============================================= */
.quick-link-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px;
  text-align: center; text-decoration: none; color: var(--text-main);
  transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-link-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--primary); }

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar-wrap { background: var(--border); border-radius: 50px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 50px; transition: width 0.5s ease; }

/* =============================================
   TABS
   ============================================= */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; background: var(--bg-light); padding: 5px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.tab-btn { flex: 1; min-width: 100px; padding: 9px 14px; border: none; background: transparent; color: var(--text-main); font-family: inherit; font-size: 0.88rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { background: var(--primary-bg); color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }