/* ═══════════════════════════════════════════════════════════
   entrance-exams.css — Vidyarthi Mitra | White & Orange Theme
   ═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --orange:       #FF6B00;
  --orange-light: #FF8C35;
  --orange-pale:  #FFF3E8;
  --orange-mid:   #FFE0C2;
  --white:        #FFFFFF;
  --off-white:    #FAFAFA;
  --gray-50:      #F8F8F8;
  --gray-100:     #F0F0F0;
  --gray-300:     #D0D0D0;
  --gray-500:     #888888;
  --gray-700:     #444444;
  --dark:         #1A1A1A;
  --shadow-sm:    0 2px 12px rgba(255,107,0,.10);
  --shadow-md:    0 8px 32px rgba(255,107,0,.15);
  --shadow-lg:    0 20px 60px rgba(255,107,0,.18);
  --radius:       14px;
  --radius-lg:    22px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'sans-serif';
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--orange-mid);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(255,107,0,.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background .2s, transform .2s !important;
}

.nav-cta:hover {
  background: var(--orange-light) !important;
  transform: translateY(-1px);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  margin-top: 64px;
  min-height: 88vh;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, #FFF3E8 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, #FFE0C2 0%, transparent 50%),
    #FFFFFF;
  display: flex;
  align-items: center;
  padding: 80px 80px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-pale);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,0,.3);
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,0,.4);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--orange);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--orange-pale);
  transform: translateY(-2px);
}

/* ── HERO VISUAL ─────────────────────────────────────────── */
.hero-visual { position: relative; }

.hero-visual-inner {
  background: linear-gradient(135deg, #FF6B00 0%, #FF9A4D 100%);
  border-radius: 28px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual-inner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.hero-visual-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-stat {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
}

.hero-stat-lbl {
  font-size: .8rem;
  opacity: .85;
  margin-top: 4px;
}

/* ── SEARCH SECTION ──────────────────────────────────────── */
.search-section {
  background: var(--orange);
  padding: 50px 80px;
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.search-inner {
  max-width: 700px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.search-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
}

.search-inner p {
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}

.search-bar {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}

.search-bar input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
}

.search-bar button {
  background: var(--orange);
  color: white;
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar button:hover { background: var(--dark); }

#searchResults { margin-top: 20px; text-align: left; }

.search-result-item {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform .15s;
}

.search-result-item:hover { transform: translateX(4px); }

.sri-name { font-weight: 600; color: var(--dark); }
.sri-cat  { font-size: .8rem; color: var(--gray-500); }

.sri-level {
  background: var(--orange-pale);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 2px solid var(--gray-100);
  padding: 0 80px;
  position: sticky;
  top: 64px;
  z-index: 900;
  overflow-x: auto;
}

/* Hide scrollbar */
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar { -ms-overflow-style: none; scrollbar-width: none; }

.filter-tabs {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.filter-tab {
  padding: 16px 24px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'DM Sans', sans-serif;
}

.filter-tab:hover { color: var(--orange); }

.filter-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ── EXAM SECTIONS ───────────────────────────────────────── */
.exam-sections { padding: 0; }

.exam-section {
  padding: 70px 80px;
  border-bottom: 1px solid var(--gray-100);
}

.exam-section:nth-child(even) { background: var(--gray-50); }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.section-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid var(--orange-mid);
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.section-count {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── EXAM GRID & CARDS ───────────────────────────────────── */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.exam-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
  border-radius: 4px 0 0 4px;
}

.exam-card:hover {
  border-color: var(--orange-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.exam-card:hover::before { transform: scaleY(1); }

.exam-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.exam-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── LEVEL BADGES ────────────────────────────────────────── */
.exam-level {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.level-national { background: #FFF3E8; color: #E55A00; }
.level-state    { background: #EBF5FB; color: #1A6FA0; }
.level-upsc     { background: #EAF5EA; color: #1E7E34; }
.level-pg       { background: #F3EEF9; color: #6929C4; }
.level-intl     { background: #FEF3C7; color: #B45309; }
.level-defence  { background: #FEE2E2; color: #B91C1C; }
.level-banking  { background: #ECFDF5; color: #047857; }
.level-general  { background: var(--gray-100); color: var(--gray-700); }

.exam-name {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 14px;
}

.exam-body {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.5;
}

.exam-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.exam-conducting {
  font-size: .75rem;
  color: var(--gray-500);
}

.exam-link {
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.exam-link:hover { gap: 8px; }

/* ── PREPARATION SECTION ─────────────────────────────────── */
.prep-section {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C35 100%);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prep-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.prep-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: white;
  margin-bottom: 12px;
}

.prep-section > p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.prep-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 28px 20px;
  color: white;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prep-card:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-4px);
}

.prep-icon { font-size: 1.8rem; }

/* ── CAREER SECTION ──────────────────────────────────────── */
.career-section {
  padding: 80px;
  background: var(--off-white);
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
}

.sec-sub {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 48px;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.career-card {
  background: white;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.career-card:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.career-icon { font-size: 2rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: white;
  padding: 50px 80px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .f-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand .f-logo span { color: var(--orange); }

.footer-brand p {
  color: #888;
  font-size: .9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #888;
  font-size: .9rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: .85rem;
}

/* ── SCROLL REVEAL ANIMATION ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── FADE-IN KEYFRAME (for filter tabs) ──────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero,
  .search-section,
  .exam-section,
  .prep-section,
  .career-section,
  .footer { padding-left: 40px; padding-right: 40px; }

  .filter-bar { padding: 0 40px; }
}

@media (max-width: 900px) {
  .hero { padding: 60px 24px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { display: none; }

  .search-section,
  .exam-section,
  .prep-section,
  .career-section,
  .footer { padding-left: 24px; padding-right: 24px; }

  .filter-bar { padding: 0 16px; }

  .exam-grid { grid-template-columns: 1fr 1fr; }

  .navbar { padding: 0 24px; }

  .nav-links { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .exam-grid { grid-template-columns: 1fr; }
  .prep-grid { grid-template-columns: 1fr 1fr; }
  .career-grid { grid-template-columns: 1fr 1fr; }

  .hero h1 { font-size: 2.2rem; }

  .section-title { font-size: 1.4rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
