/*
Theme Name: JobPortal Pro
Theme URI: https://taiyari.in
Author: Taiyari.in
Author URI: https://taiyari.in
Description: Professional Job Portal & Mock Test WordPress Theme with Mobile-First Design
Version: 1.0.0
License: GPL v2 or later
Text Domain: jobportal-pro
Tags: job-portal, mock-test, government-jobs, responsive, mobile-first
*/

/* ================================================
   CSS VARIABLES - COLOR SYSTEM
   ================================================ */
:root {
  /* Primary - Deep Navy Blue (Trust & Authority) */
  --primary: #1a2b5e;
  --primary-light: #2d4a9e;
  --primary-dark: #0f1a3d;
  --primary-rgb: 26, 43, 94;

  /* Accent - Vibrant Orange (Energy & Action) */
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --accent-dark: #e5531e;

  /* Success Green */
  --success: #22c55e;
  --success-light: #dcfce7;

  /* Warning Yellow */
  --warning: #f59e0b;
  --warning-light: #fef3c7;

  /* Danger Red */
  --danger: #ef4444;
  --danger-light: #fee2e2;

  /* Info Blue */
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Neutral Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Background */
  --bg-body: #f0f4ff;
  --bg-card: #ffffff;
  --bg-dark: #0f1a3d;

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-focus: #2d4a9e;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(26,43,94,0.10);
  --shadow-md: 0 8px 24px rgba(26,43,94,0.14);
  --shadow-lg: 0 16px 48px rgba(26,43,94,0.18);
  --shadow-card: 0 2px 12px rgba(26,43,94,0.08);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;

  /* Spacing */
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-secondary); }

.hindi-text { font-family: var(--font-hindi); }

/* ================================================
   HEADER - APP LIKE
   ================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--primary);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.site-logo .logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

/* Desktop Nav */
.desktop-nav { display: none; }
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .desktop-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
  }
  .desktop-nav a:hover, .desktop-nav a.active {
    background: rgba(255,255,255,0.15);
    color: white;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-search-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-search-toggle:hover { background: rgba(255,255,255,0.2); }

.btn-login-header {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: none;
}
@media (min-width: 480px) { .btn-login-header { display: block; } }
.btn-login-header:hover { background: var(--accent-dark); transform: translateY(-1px); }

.header-profile-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  overflow: hidden;
}
.header-profile-btn img { width: 100%; height: 100%; object-fit: cover; }
.header-profile-btn:hover { transform: scale(1.05); }

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  transition: var(--transition);
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================
   MOBILE SIDEBAR MENU
   ================================================ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1099;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

.mobile-sidebar {
  position: fixed;
  top: 0; left: -300px;
  width: 280px; height: 100%;
  background: var(--bg-card);
  z-index: 1100;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-sidebar.active { left: 0; }

.sidebar-header {
  background: var(--primary);
  padding: 20px 16px 16px;
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.sidebar-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
  border: 3px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.sidebar-user-name {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}
.sidebar-user-email {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

.sidebar-nav { padding: 12px 0; }
.sidebar-nav-section {
  padding: 8px 16px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(26,43,94,0.07);
  color: var(--primary);
  border-left-color: var(--primary);
}
.sidebar-nav a .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-nav .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-login-btns {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ================================================
   BOTTOM NAV (Mobile App-Like)
   ================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 999;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 6px 4px;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item .bnav-icon { font-size: 1.3rem; }
.bottom-nav-item.active .bnav-icon { transform: scale(1.1); }
.bottom-nav-item .bnav-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
}

/* ================================================
   MAIN CONTENT WRAPPER
   ================================================ */
.main-content {
  margin-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: calc(100vh - var(--header-height));
}
@media (min-width: 768px) { .main-content { padding-bottom: 0; } }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 40px 16px 50px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.hero h1 {
  color: white;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}
.hero h1 .highlight {
  color: var(--accent);
  display: block;
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.85rem, 2vw, 1rem);
  max-width: 500px;
  margin: 0 auto 28px;
}

/* Search Bar */
.search-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto 20px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: none;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.search-bar button:hover { background: var(--accent-dark); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.hero-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
}
.hero-tag:hover { background: rgba(255,255,255,0.2); color: white; }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 0;
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}
.hero-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ================================================
   SECTION STYLES
   ================================================ */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.section-title span { color: var(--accent); }
.section-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--accent); }

/* Category Pills */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(26,43,94,0.25);
}

/* ================================================
   JOB CARDS
   ================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
}

.job-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(26,43,94,0.15);
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.job-card:hover::before { opacity: 1; }

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.job-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.job-info { flex: 1; min-width: 0; }
.job-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
  font-family: var(--font-display);
}
.job-org {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.job-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-secondary);
}
.job-tag.vacancies { background: var(--info-light); color: var(--info); }
.job-tag.date { background: var(--warning-light); color: #92400e; }
.job-tag.salary { background: var(--success-light); color: #166534; }
.job-tag.new { background: var(--accent); color: white; }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.job-deadline {
  font-size: 0.72rem;
  color: var(--danger);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-apply {
  background: var(--primary);
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.btn-apply:hover { background: var(--accent); transform: scale(1.02); }

/* Featured Badge */
.badge-featured {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, var(--warning), #f97316);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ================================================
   MOCK TEST CARDS
   ================================================ */
.tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .tests-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tests-grid { grid-template-columns: repeat(4, 1fr); }
}

.test-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.test-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient, linear-gradient(90deg, var(--primary), var(--accent)));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.test-card:hover::after { transform: scaleX(1); }

.test-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.test-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.test-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.btn-start-test {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-start-test:hover { background: var(--accent); }

.test-free-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--success);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ================================================
   NOTICES & ALERTS SECTION
   ================================================ */
.notices-list { display: flex; flex-direction: column; gap: 10px; }

.notice-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.notice-item:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.notice-item.urgent { border-left-color: var(--danger); }
.notice-item.success { border-left-color: var(--success); }

.notice-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--info-light);
}
.notice-item.urgent .notice-icon { background: var(--danger-light); }

.notice-body { flex: 1; min-width: 0; }
.notice-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.notice-new {
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 4px 16px rgba(26,43,94,0.3); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(255,107,53,0.3); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 30px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* ================================================
   SEARCH OVERLAY
   ================================================ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}
.search-overlay input {
  width: 100%;
  background: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 1.1rem;
  outline: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   LOGIN / REGISTER PAGE
   ================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 40px;
}

.auth-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-box-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo-icon {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
  color: white;
  font-weight: 800;
  font-family: var(--font-display);
}
.auth-box h2 { font-size: 1.4rem; margin-bottom: 4px; text-align: center; }
.auth-box p { text-align: center; font-size: 0.85rem; }

.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: white;
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,43,94,0.1); }
.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 42px; }
.form-input-icon .input-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.btn-google {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn-google img { width: 20px; height: 20px; }

/* ================================================
   PROFILE PAGE
   ================================================ */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 24px 16px 60px;
  text-align: center;
  margin-top: var(--header-height);
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  overflow: hidden;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: white;
  border: 2px solid white;
}
.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.profile-email { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

.profile-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: -30px 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.profile-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.profile-stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}
.profile-stat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.profile-body { padding: 20px 16px; }

.profile-menu-list { display: flex; flex-direction: column; gap: 8px; }
.profile-menu-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.profile-menu-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.profile-menu-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.profile-menu-text { flex: 1; }
.profile-menu-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.profile-menu-sub { font-size: 0.72rem; color: var(--text-muted); }
.profile-menu-arrow { color: var(--text-muted); font-size: 0.85rem; }

/* ================================================
   MOCK TEST PAGE
   ================================================ */
.test-detail-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 24px 16px;
  color: white;
}
.test-detail-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,0.2);
}
.test-detail-name { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 8px; }
.test-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.test-meta-chip {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; gap: 5px;
}

/* Quiz Container */
.quiz-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.3s;
}
.quiz-progress-text { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.quiz-question { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.quiz-option:hover { border-color: var(--primary-light); background: rgba(26,43,94,0.04); }
.quiz-option.selected { border-color: var(--primary); background: rgba(26,43,94,0.06); color: var(--primary); }
.quiz-option.correct { border-color: var(--success); background: var(--success-light); color: #166534; }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-light); color: #991b1b; }
.quiz-option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Timer */
.quiz-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--danger-light);
  color: var(--danger);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ================================================
   NOTICE BOARD (Ticker)
   ================================================ */
.ticker-bar {
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  display: flex;
  gap: 0;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  padding: 8px 30px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ticker-item a:hover { color: var(--accent); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo-text { color: white; margin: 12px 0 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.social-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: white; }

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.78rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Notification Toast */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 12px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--gray-800);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .toast { bottom: 20px; }
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 480px) {
  .hero { padding: 28px 16px 36px; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 20px 0; }
  .auth-box { padding: 24px 16px; }
}
