/* CitizenshipTestPro - Glassmorphic Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Design Tokens */
:root {
  /* Primary Background */
  --bg-primary: linear-gradient(135deg, #0a4a6e 0%, #1e5f7f 50%, #2d7a9e 100%);
  --bg-overlay: rgba(10, 74, 110, 0.4);

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Glow Colors */
  --glow-primary: #00d9ff;
  --glow-secondary: #0af;
  --glow-accent: #4dd0e1;
  --glow-soft: rgba(0, 217, 255, 0.5);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e0f7ff;
  --text-muted: rgba(255, 255, 255, 0.7);

  /* Shadow Layers */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Glow Shadows */
  --glow-sm: 0 0 10px var(--glow-soft);
  --glow-md: 0 0 20px var(--glow-soft);
  --glow-lg: 0 0 40px var(--glow-soft);
  --glow-xl: 0 0 60px var(--glow-soft);

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(77, 208, 225, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 175, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: var(--glow-primary);
  color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  color: var(--glow-primary);
  text-shadow: 0 0 15px var(--glow-soft);
  border-bottom: none;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--glow-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--glow-soft);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-sm) var(--space-md);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(0, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--transition-normal);
}

nav:hover {
  box-shadow:
    var(--shadow-xl),
    0 0 50px rgba(0, 217, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo a,
.logo {
  background: linear-gradient(135deg, #fff 0%, var(--glow-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  align-items: center;
}

.main-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(77, 208, 225, 0.1));
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.main-menu a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--glow-soft);
}

.main-menu a:hover::before {
  opacity: 1;
}

.main-menu a.active {
  background: rgba(0, 217, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  color: var(--glow-primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: rgba(10, 74, 110, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg), var(--glow-md);
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* Search Button */
.search-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
  transform: scale(1.1);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 60px;
  position: relative;
  margin-bottom: 0;
  background: none;
}

.hero .container {
  max-width: 1200px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow:
    var(--shadow-xl),
    0 0 60px rgba(0, 217, 255, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 10%) scale(1.1); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #fff 0%, var(--glow-primary) 50%, var(--glow-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  color: white;
}

.hero p,
.hero .hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--glow-primary) 0%, var(--glow-accent) 100%);
  color: #0a4a6e;
  font-weight: 700;
  box-shadow:
    0 4px 16px rgba(0, 217, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(0, 217, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #0a4a6e;
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0) scale(1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glow-primary);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--glow-primary);
  border: 2px solid var(--glow-primary);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow:
    0 0 30px rgba(0, 217, 255, 0.6),
    inset 0 0 20px rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
  color: var(--glow-primary);
  text-decoration: none;
}

.btn-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow:
    var(--shadow-md),
    0 0 25px rgba(0, 217, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow:
    var(--shadow-xl),
    0 0 40px rgba(0, 217, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--glow-soft);
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.card-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* ===== GLASS PANEL ===== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow:
    var(--shadow-lg),
    var(--glow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all var(--transition-normal);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--glow-primary) 0%, var(--glow-accent) 100%);
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
  filter: blur(10px);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    var(--shadow-xl),
    var(--glow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.glass-panel:hover::before {
  opacity: 0.6;
}

/* ===== FORMS ===== */
form {
  margin: 2rem 0;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label,
label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--glow-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

textarea,
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: var(--space-md) auto 0;
}

.newsletter-form input {
  flex: 1;
}

.newsletter-form button {
  white-space: nowrap;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--glow-primary) 0%, var(--glow-accent) 100%);
  color: #0a4a6e;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.newsletter-form button:hover {
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
  transform: translateY(-2px);
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  background: rgba(0, 217, 255, 0.1);
  font-weight: 600;
  color: var(--glow-primary);
  padding: 12px 16px;
  text-align: left;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ===== LISTS ===== */
ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  background: rgba(0, 217, 255, 0.05);
  border-left: 4px solid var(--glow-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-sm);
  font-style: italic;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
  color: var(--text-secondary);
}

/* ===== CODE ===== */
code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: var(--glow-primary);
  font-size: 0.9em;
}

pre {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.alert-info {
  border-color: var(--glow-primary);
  color: var(--text-secondary);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.alert-success {
  border-color: #4ade80;
  color: #bbf7d0;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.alert-warning {
  border-color: #f59e0b;
  color: #fef3c7;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.alert-danger {
  border-color: #f87171;
  color: #fee2e2;
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.2);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  box-shadow: 0 0 10px var(--glow-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--glow-primary);
  text-shadow: 0 0 10px var(--glow-soft);
  margin-top: 0;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--glow-primary);
  text-shadow: 0 0 10px var(--glow-soft);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: var(--space-xs) 0;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--glow-primary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.pagination a, .pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--glow-primary);
  display: block;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.pagination .active {
  background: linear-gradient(135deg, var(--glow-primary), var(--glow-accent));
  color: #0a4a6e;
  border-color: var(--glow-primary);
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  background: rgba(0, 217, 255, 0.1);
  color: var(--glow-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
  color: var(--text-primary);
}

/* ===== READING TIME ===== */
.reading-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--glow-primary), var(--glow-accent));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #0a4a6e;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
}

/* ===== STATISTICS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 217, 255, 0.15);
  transition: all var(--transition-normal);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 217, 255, 0.4);
  border-color: rgba(0, 217, 255, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--glow-primary), var(--glow-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--glow-primary);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s;
  color: var(--glow-primary);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 217, 255, 0.15);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow-primary), var(--glow-accent));
  color: #0a4a6e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.author-info h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.author-info p {
  color: var(--text-muted);
}

/* ===== SOCIAL SHARING ===== */
.social-share {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.social-share a:hover {
  background: rgba(0, 217, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  transform: scale(1.1);
  border-color: var(--glow-primary);
}

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts h3 {
  margin-bottom: 1.5rem;
  color: var(--glow-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ===== ARTICLE META ===== */
.article-meta {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

/* ===== TOC ===== */
.toc {
  background: rgba(0, 217, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.toc h3 {
  margin-top: 0;
  color: var(--glow-primary);
}

.toc ul {
  margin-left: 1.5rem;
}

.toc a {
  color: var(--glow-primary);
}

/* ===== READING PROGRESS ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--glow-primary), var(--glow-accent));
  box-shadow: 0 0 10px var(--glow-primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      var(--shadow-lg),
      0 0 20px rgba(0, 217, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      var(--shadow-xl),
      0 0 40px rgba(0, 217, 255, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.delay-1 {
  animation-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
  animation-delay: 0.4s;
}

.animate-on-scroll.delay-3 {
  animation-delay: 0.6s;
}

.float {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* ===== UTILITY CLASSES ===== */
/* Spacing */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-glow {
  text-shadow: 0 0 10px var(--glow-soft);
}

.text-primary { color: var(--glow-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }

/* Flex */
.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Section */
.section {
  padding: var(--space-xl) 0;
}

/* main content area needs top padding for fixed nav */
main.container {
  padding-top: 120px;
}
