/*
 * Theme Name: Aurelux Academy
 * Theme URI: https://aureluxacademy.com
 * Author: Aurelux Academy
 * Author URI: https://aureluxacademy.com
 * Description: Official theme for Aurelux Academy Learning Management System. A premium educational platform for coaching centers.
 * Version: 1.0.1
 * Requires at least: 6.4
 * Tested up to: 6.7
 * Requires PHP: 8.1
 * License: Proprietary
 * License URI: https://aureluxacademy.com/license
 * Text Domain: aurelux-academy
 * Tags: education, lms, coaching, dark-mode
 */

/* ═══════════════════════════════════════════════════════════════════════════
   § 1 — DESIGN TOKENS (Light — default)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand palette ─────────────────────────────────────────────────────── */
  --alms-primary:       #1a3060;
  --alms-primary-dark:  #0f2044;
  --alms-gold:          #c9a227;
  --alms-gold-light:    #f5d97a;
  --alms-accent:        #5b6ef5;
  --alms-accent-dark:   #4a5ad4;

  /* ── Surfaces ──────────────────────────────────────────────────────────── */
  --alms-bg:            #f5f7fc;
  --alms-card:          #ffffff;
  --alms-surface:       #ebeff8;
  --alms-surface-2:     #e0e5f2;
  --alms-border:        rgba(26, 48, 96, 0.16);
  --alms-border-strong: rgba(26, 48, 96, 0.24);

  /* ── Typography ────────────────────────────────────────────────────────── */
  --alms-text:          #111827;
  --alms-text-secondary:#374669;
  --alms-muted:         #4e5a7c;
  --alms-text-inverse:  #ffffff;

  /* ── Feedback ──────────────────────────────────────────────────────────── */
  --alms-success:       #16a34a;
  --alms-danger:        #dc2626;
  --alms-warning:       #d97706;
  --alms-info:          #2563eb;

  /* ── Radii ─────────────────────────────────────────────────────────────── */
  --alms-radius-sm:     8px;
  --alms-radius:        14px;
  --alms-radius-lg:     22px;

  /* ── Shadows ───────────────────────────────────────────────────────────── */
  --alms-shadow-sm:     0 1px 3px rgba(26, 48, 96, 0.08);
  --alms-shadow:        0 4px 20px rgba(26, 48, 96, 0.10);
  --alms-shadow-lg:     0 12px 40px rgba(26, 48, 96, 0.14);
  --alms-shadow-glow:   0 0 30px rgba(91, 110, 245, 0.18);

  /* ── Misc ──────────────────────────────────────────────────────────────── */
  --alms-font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --alms-transition:    220ms ease;
  --alms-header-h:      72px;
  --alms-max-w:         1280px;

  /* ── LMS Plugin aliases (for shortcodes rendered in theme context) ──────── */
  --alms-navy:           var(--alms-primary);
  --alms-navy-dark:      var(--alms-primary-dark);
  --alms-bg-card:        var(--alms-card);
  --alms-bg-surface:     var(--alms-surface);
  --alms-bg-input:       var(--alms-surface-2);
  --alms-text-muted:     var(--alms-muted);
  --alms-text-faint:     rgba(17,24,39,0.45);
  --alms-glass-bg:       rgba(255,255,255,0.88);
  --alms-glass-blur:     blur(20px);
  --alms-input-text:     var(--alms-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 1b — DARK THEME TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --alms-primary:       #4a6cf7;
  --alms-primary-dark:  #3b5de7;
  --alms-gold:          #f5d97a;
  --alms-gold-light:    #c9a227;
  --alms-accent:        #7b8eff;
  --alms-accent-dark:   #5b6ef5;

  --alms-bg:            #0f0f1a;
  --alms-card:          #1a1a2e;
  --alms-surface:       #16213e;
  --alms-surface-2:     #1e2a4a;
  --alms-border:        rgba(255, 255, 255, 0.10);
  --alms-border-strong: rgba(255, 255, 255, 0.16);

  --alms-text:          #e8e8f0;
  --alms-text-secondary:#c4c4d8;
  --alms-muted:         #9999bb;
  --alms-text-inverse:  #0f0f1a;

  --alms-shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.30);
  --alms-shadow:        0 4px 16px rgba(0, 0, 0, 0.40);
  --alms-shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.50);
  --alms-shadow-glow:   0 0 30px rgba(91, 110, 245, 0.25);

  /* ── LMS Plugin aliases (dark) ────────────────────────────────── */
  --alms-navy:           var(--alms-accent);
  --alms-navy-dark:      var(--alms-accent-dark);
  --alms-bg:             #0f0f1a;
  --alms-bg-card:        var(--alms-card);
  --alms-bg-surface:     var(--alms-surface);
  --alms-bg-input:       var(--alms-surface);
  --alms-text-muted:     var(--alms-muted);
  --alms-text-faint:     rgba(255,255,255,0.35);
  --alms-glass-bg:       rgba(22,22,42,0.80);
  --alms-glass-blur:     blur(20px);
  --alms-input-text:     var(--alms-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 2 — RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--alms-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--alms-text);
  background: var(--alms-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--alms-accent);
  text-decoration: none;
  transition: color var(--alms-transition);
}

a:hover {
  color: var(--alms-primary);
}

[data-theme="dark"] a:hover {
  color: var(--alms-gold);
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--alms-accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 3 — TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--alms-text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

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

.alms-lead {
  font-size: 1.15rem;
  color: var(--alms-muted);
  line-height: 1.7;
}

blockquote {
  border-left: 4px solid var(--alms-gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--alms-surface);
  border-radius: 0 var(--alms-radius-sm) var(--alms-radius-sm) 0;
  font-style: italic;
  color: var(--alms-text-secondary);
}

code {
  background: var(--alms-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background: var(--alms-primary-dark);
  color: #e8e8f0;
  padding: 1.25em;
  border-radius: var(--alms-radius);
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--alms-border);
  margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 4 — LAYOUT SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-container {
  width: 100%;
  max-width: var(--alms-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.alms-container--wide {
  max-width: 1440px;
}

.alms-container--narrow {
  max-width: 800px;
}

.alms-main-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - var(--alms-header-h) - 200px);
}

.alms-content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.alms-content-full {
  grid-column: 1 / -1;
}

/* Flex utilities */
.alms-flex { display: flex; }
.alms-flex-col { flex-direction: column; }
.alms-flex-wrap { flex-wrap: wrap; }
.alms-items-center { align-items: center; }
.alms-justify-between { justify-content: space-between; }
.alms-justify-center { justify-content: center; }
.alms-gap-xs { gap: 0.5rem; }
.alms-gap-sm { gap: 0.75rem; }
.alms-gap-md { gap: 1rem; }
.alms-gap-lg { gap: 1.5rem; }
.alms-gap-xl { gap: 2rem; }

/* Grid utilities */
.alms-grid { display: grid; }
.alms-grid-2 { grid-template-columns: repeat(2, 1fr); }
.alms-grid-3 { grid-template-columns: repeat(3, 1fr); }
.alms-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════════════════════════════════════
   § 5 — BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--alms-radius-sm);
  border: none;
  font-family: var(--alms-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--alms-transition);
  position: relative;
  overflow: hidden;
}

.alms-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.alms-btn:hover::after {
  transform: translateX(100%);
}

/* Primary — Navy */
.alms-btn--primary {
  background: linear-gradient(135deg, var(--alms-primary), var(--alms-primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 48, 96, 0.25);
}

.alms-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 48, 96, 0.35);
  color: #fff;
}

/* Gold / CTA */
.alms-btn--gold {
  background: linear-gradient(135deg, var(--alms-gold), #e0b830);
  color: var(--alms-primary-dark);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.30);
}

.alms-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.40);
  color: var(--alms-primary-dark);
}

/* Accent — Blue-Purple */
.alms-btn--accent {
  background: linear-gradient(135deg, var(--alms-accent), var(--alms-accent-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 110, 245, 0.25);
}

.alms-btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 110, 245, 0.35);
  color: #fff;
}

/* Outline */
.alms-btn--outline {
  background: transparent;
  color: var(--alms-primary);
  border: 2px solid var(--alms-border-strong);
}

.alms-btn--outline:hover {
  border-color: var(--alms-primary);
  background: rgba(26, 48, 96, 0.05);
  color: var(--alms-primary);
}

[data-theme="dark"] .alms-btn--outline {
  color: var(--alms-accent);
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .alms-btn--outline:hover {
  border-color: var(--alms-accent);
  background: rgba(91, 110, 245, 0.1);
}

/* Ghost */
.alms-btn--ghost {
  background: transparent;
  color: var(--alms-muted);
  padding: 10px 16px;
}

.alms-btn--ghost:hover {
  color: var(--alms-text);
  background: var(--alms-surface);
}

/* Sizes */
.alms-btn--sm { padding: 8px 16px; font-size: 0.8rem; }
.alms-btn--lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--alms-radius); }
.alms-btn--block { width: 100%; }

.alms-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 6 — CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-card {
  background: var(--alms-card);
  border: 1px solid var(--alms-border);
  border-radius: var(--alms-radius);
  overflow: hidden;
  box-shadow: var(--alms-shadow-sm);
  transition: transform var(--alms-transition), box-shadow var(--alms-transition);
}

.alms-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--alms-shadow-lg);
}

.alms-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.alms-card__body {
  padding: 1.25rem;
}

.alms-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--alms-text);
}

.alms-card__title a {
  color: inherit;
}

.alms-card__title a:hover {
  color: var(--alms-accent);
}

.alms-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--alms-muted);
  margin-bottom: 0.75rem;
}

.alms-card__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.alms-card__excerpt {
  font-size: 0.9rem;
  color: var(--alms-text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alms-card__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--alms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Glass card variant */
.alms-card--glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .alms-card--glass {
  background: rgba(26, 26, 46, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Post card grid */
.alms-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Placeholder image */
.alms-card__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--alms-primary), var(--alms-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 7 — FORMS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-form-group {
  margin-bottom: 1.25rem;
}

.alms-form-group label,
.alms-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--alms-text);
  margin-bottom: 0.5rem;
}

.alms-input,
.alms-select,
.alms-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--alms-card);
  border: 1px solid var(--alms-border-strong);
  border-radius: var(--alms-radius-sm);
  color: var(--alms-text);
  font-family: var(--alms-font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--alms-transition), box-shadow var(--alms-transition);
}

.alms-input:focus,
.alms-select:focus,
.alms-textarea:focus {
  border-color: var(--alms-accent);
  box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.16);
}

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

.alms-input::placeholder {
  color: var(--alms-muted);
}

/* Search form */
.alms-search-form {
  display: flex;
  gap: 0;
}

.alms-search-form .alms-input {
  border-radius: var(--alms-radius-sm) 0 0 var(--alms-radius-sm);
  border-right: none;
}

.alms-search-form .alms-btn {
  border-radius: 0 var(--alms-radius-sm) var(--alms-radius-sm) 0;
  padding: 12px 20px;
}

/* WordPress forms */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--alms-card);
  border: 1px solid var(--alms-border-strong);
  border-radius: var(--alms-radius-sm);
  color: var(--alms-text);
  font-family: var(--alms-font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--alms-transition), box-shadow var(--alms-transition);
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form .search-field:focus {
  border-color: var(--alms-accent);
  box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.16);
}

.comment-form .submit,
.search-form .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--alms-primary), var(--alms-primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--alms-radius-sm);
  font-family: var(--alms-font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--alms-transition);
}

.comment-form .submit:hover,
.search-form .search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 48, 96, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 8 — TABLES
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--alms-card);
  border-radius: var(--alms-radius);
  overflow: hidden;
  border: 1px solid var(--alms-border);
}

.alms-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--alms-muted);
  background: var(--alms-surface);
  border-bottom: 2px solid var(--alms-border);
}

.alms-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--alms-border);
  color: var(--alms-text-secondary);
}

.alms-table tr:last-child td {
  border-bottom: none;
}

.alms-table tr:hover td {
  background: var(--alms-surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 9 — BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.alms-badge--primary {
  background: rgba(26, 48, 96, 0.10);
  color: var(--alms-primary);
}

[data-theme="dark"] .alms-badge--primary {
  background: rgba(74, 108, 247, 0.15);
  color: var(--alms-accent);
}

.alms-badge--gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--alms-gold);
}

.alms-badge--success {
  background: rgba(22, 163, 74, 0.10);
  color: var(--alms-success);
}

.alms-badge--danger {
  background: rgba(220, 38, 38, 0.10);
  color: var(--alms-danger);
}

.alms-badge--warning {
  background: rgba(217, 119, 6, 0.10);
  color: var(--alms-warning);
}

.alms-badge--info {
  background: rgba(37, 99, 235, 0.10);
  color: var(--alms-info);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 10 — ALERTS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-alert {
  padding: 16px 20px;
  border-radius: var(--alms-radius-sm);
  border-left: 4px solid;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.alms-alert--success {
  background: rgba(22, 163, 74, 0.06);
  border-color: var(--alms-success);
  color: var(--alms-success);
}

.alms-alert--danger {
  background: rgba(220, 38, 38, 0.06);
  border-color: var(--alms-danger);
  color: var(--alms-danger);
}

.alms-alert--warning {
  background: rgba(217, 119, 6, 0.06);
  border-color: var(--alms-warning);
  color: var(--alms-warning);
}

.alms-alert--info {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--alms-info);
  color: var(--alms-info);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 11 — SITE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--alms-header-h);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--alms-border);
  transition: box-shadow var(--alms-transition), background var(--alms-transition);
}

.alms-site-header--scrolled {
  box-shadow: var(--alms-shadow);
}

[data-theme="dark"] .alms-site-header {
  background: rgba(15, 15, 26, 0.88);
}

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

/* Logo */
.alms-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.alms-logo img {
  height: 48px;
  width: auto;
}

/* Mode-aware logo variants: navy/gold on light, light/gold on dark. */
.alms-logo__img--dark {
  display: none;
}

[data-theme="dark"] .alms-logo__img--light {
  display: none;
}

[data-theme="dark"] .alms-logo__img--dark {
  display: block;
}

.alms-logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--alms-primary);
  letter-spacing: -0.02em;
}

.alms-logo__text span {
  color: var(--alms-gold);
}

[data-theme="dark"] .alms-logo__text {
  color: var(--alms-text);
}

/* Navigation */
.alms-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.alms-nav a,
.alms-nav__item {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--alms-text-secondary);
  border-radius: var(--alms-radius-sm);
  transition: all var(--alms-transition);
  position: relative;
}

.alms-nav a:hover,
.alms-nav__item:hover {
  color: var(--alms-primary);
  background: var(--alms-surface);
}

[data-theme="dark"] .alms-nav a:hover {
  color: var(--alms-accent);
}

.alms-nav .current-menu-item > a,
.alms-nav .current_page_item > a {
  color: var(--alms-primary);
  font-weight: 600;
}

[data-theme="dark"] .alms-nav .current-menu-item > a {
  color: var(--alms-accent);
}

/* Dropdown */
.alms-nav .sub-menu,
.alms-nav .children {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--alms-card);
  border: 1px solid var(--alms-border);
  border-radius: var(--alms-radius);
  box-shadow: var(--alms-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--alms-transition);
  z-index: 100;
}

.alms-nav li:hover > .sub-menu,
.alms-nav li:hover > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alms-nav .sub-menu a,
.alms-nav .children a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--alms-radius-sm);
  font-size: 0.85rem;
}

.alms-nav .sub-menu a:hover,
.alms-nav .children a:hover {
  background: var(--alms-surface);
}

/* Nav items as list */
.alms-nav li {
  position: relative;
}

/* Header right actions */
.alms-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Dark mode toggle */
.alms-theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--alms-border);
  border-radius: 50%;
  background: var(--alms-surface);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--alms-transition);
  color: var(--alms-muted);
}

.alms-theme-toggle:hover {
  border-color: var(--alms-gold);
  color: var(--alms-gold);
  transform: rotate(30deg);
}

/* Dark mode toggle icon visibility */
.alms-icon-moon { display: block; }
.alms-icon-sun  { display: none; }
[data-theme="dark"] .alms-icon-moon { display: none; }
[data-theme="dark"] .alms-icon-sun  { display: block; }

/* Mobile hamburger */
.alms-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.alms-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--alms-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.alms-hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.alms-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.alms-hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.alms-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--alms-header-h);
  background: var(--alms-card);
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
  animation: alms-slide-down 0.3s ease;
}

.alms-mobile-nav.is-open {
  display: block;
}

@keyframes alms-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alms-mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--alms-text);
  border-bottom: 1px solid var(--alms-border);
}

.alms-mobile-nav a:hover {
  color: var(--alms-accent);
}

.alms-mobile-nav .sub-menu {
  padding-left: 1.5rem;
}

.alms-mobile-nav .sub-menu a {
  font-size: 0.95rem;
  color: var(--alms-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 12 — BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--alms-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.alms-breadcrumb a {
  color: var(--alms-muted);
}

.alms-breadcrumb a:hover {
  color: var(--alms-accent);
}

.alms-breadcrumb__sep {
  opacity: 0.4;
}

.alms-breadcrumb__current {
  color: var(--alms-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 13 — PAGE HEADER / HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-page-header {
  background: linear-gradient(135deg, var(--alms-primary), var(--alms-primary-dark));
  padding: 3rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.alms-page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.alms-page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.alms-page-header__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.alms-page-header__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 14 — SINGLE POST
   ═══════════════════════════════════════════════════════════════════════════ */
/* Featured image hero */
.alms-post-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--alms-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--alms-shadow-lg);
}

/* Post content */
.alms-post-content {
  max-width: 760px;
}

.alms-post-content h2 { margin-top: 2rem; }
.alms-post-content h3 { margin-top: 1.5rem; }

.alms-post-content p {
  line-height: 1.8;
}

.alms-post-content img {
  border-radius: var(--alms-radius);
  margin: 1.5em 0;
}

.alms-post-content ul,
.alms-post-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.alms-post-content ul { list-style: disc; }
.alms-post-content ol { list-style: decimal; }

.alms-post-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: var(--alms-text-secondary);
}

/* Author box */
.alms-author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--alms-surface);
  border-radius: var(--alms-radius);
  margin: 2.5rem 0;
  align-items: center;
}

.alms-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--alms-gold);
}

.alms-author-box__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--alms-text);
}

.alms-author-box__bio {
  font-size: 0.85rem;
  color: var(--alms-muted);
  margin: 0;
}

/* Post navigation */
.alms-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.alms-post-nav__item {
  padding: 1.25rem;
  background: var(--alms-card);
  border: 1px solid var(--alms-border);
  border-radius: var(--alms-radius);
  transition: all var(--alms-transition);
}

.alms-post-nav__item:hover {
  border-color: var(--alms-accent);
  box-shadow: var(--alms-shadow);
}

.alms-post-nav__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--alms-muted);
  margin-bottom: 0.25rem;
}

.alms-post-nav__title {
  font-weight: 600;
  color: var(--alms-text);
  font-size: 0.9rem;
}

.alms-post-nav__item--next {
  text-align: right;
}

/* Related posts */
.alms-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--alms-border);
}

.alms-related__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Posted meta */
.alms-post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--alms-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.alms-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.alms-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.alms-post-tags a {
  padding: 4px 12px;
  background: var(--alms-surface);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--alms-muted);
  transition: all var(--alms-transition);
}

.alms-post-tags a:hover {
  background: var(--alms-accent);
  color: #fff;
}

/* Comments */
.alms-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--alms-border);
}

.alms-comments .comment-list {
  list-style: none;
}

.alms-comments .comment {
  padding: 1.25rem;
  background: var(--alms-surface);
  border-radius: var(--alms-radius);
  margin-bottom: 1rem;
}

.alms-comments .comment .children {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--alms-border);
}

.alms-comments .comment-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.alms-comments .comment-metadata {
  font-size: 0.75rem;
  color: var(--alms-muted);
  margin-bottom: 0.5rem;
}

.alms-comments .comment-content p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 15 — FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-site-footer {
  background: #0f2044;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .alms-site-footer {
  background: #0a1226;
}

.alms-site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.alms-footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 1;
}

.alms-footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.alms-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--alms-gold);
  border-radius: 2px;
}

.alms-footer-col p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.alms-footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  transition: all var(--alms-transition);
}

.alms-footer-col a:hover {
  color: var(--alms-gold);
  padding-left: 6px;
}

.alms-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.alms-footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

/* Newsletter */
.alms-newsletter {
  margin-top: 1.25rem;
}

.alms-newsletter-form {
  display: flex;
  gap: 0;
}

.alms-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--alms-radius-sm) 0 0 var(--alms-radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.alms-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.alms-newsletter-form input:focus {
  border-color: var(--alms-gold);
}

.alms-newsletter-form button {
  padding: 10px 18px;
  background: var(--alms-gold);
  border: none;
  border-radius: 0 var(--alms-radius-sm) var(--alms-radius-sm) 0;
  color: #0f2044;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--alms-transition);
}

.alms-newsletter-form button:hover {
  background: var(--alms-gold-light);
}

/* Social icons */
.alms-social-links {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

.alms-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  padding: 0;
  transition: all var(--alms-transition);
}

.alms-social-links a:hover {
  background: var(--alms-gold);
  color: var(--alms-primary-dark);
  padding-left: 0;
  transform: translateY(-2px);
}

/* Footer bottom bar */
.alms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

.alms-footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  padding: 0;
}

.alms-footer-bottom a:hover {
  color: var(--alms-gold);
  padding-left: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 16 — SIDEBAR / WIDGETS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-sidebar .widget {
  background: var(--alms-card);
  border: 1px solid var(--alms-border);
  border-radius: var(--alms-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.alms-sidebar .widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--alms-surface);
  color: var(--alms-text);
}

.alms-sidebar .widget ul {
  list-style: none;
}

.alms-sidebar .widget ul li {
  border-bottom: 1px solid var(--alms-border);
}

.alms-sidebar .widget ul li:last-child {
  border-bottom: none;
}

.alms-sidebar .widget ul li a {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--alms-text-secondary);
  transition: color var(--alms-transition);
}

.alms-sidebar .widget ul li a:hover {
  color: var(--alms-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 17 — PAGINATION
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 3rem 0;
}

.alms-pagination a,
.alms-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--alms-radius-sm);
  border: 1px solid var(--alms-border);
  color: var(--alms-text-secondary);
  transition: all var(--alms-transition);
}

.alms-pagination a:hover {
  border-color: var(--alms-accent);
  color: var(--alms-accent);
  background: rgba(91, 110, 245, 0.06);
}

.alms-pagination .current {
  background: var(--alms-primary);
  border-color: var(--alms-primary);
  color: #fff;
}

[data-theme="dark"] .alms-pagination .current {
  background: var(--alms-accent);
  border-color: var(--alms-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 18 — 404 PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-404 {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.alms-404__number {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--alms-primary), var(--alms-accent), var(--alms-gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: alms-gradient-shift 4s ease infinite;
  margin-bottom: 0.25em;
}

@keyframes alms-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.alms-404__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.alms-404__desc {
  color: var(--alms-muted);
  margin-bottom: 2rem;
}

/* CSS-only animated illustration */
.alms-404__illustration {
  width: 160px;
  height: 120px;
  margin: 0 auto 2rem;
  position: relative;
}

.alms-404__book {
  position: absolute;
  width: 40px;
  height: 30px;
  background: var(--alms-accent);
  border-radius: 2px 6px 6px 2px;
  opacity: 0.7;
}

.alms-404__book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 2px 0 0 2px;
}

.alms-404__book:nth-child(1) {
  bottom: 0;
  left: 20px;
  background: var(--alms-primary);
  animation: alms-book-float 3s ease-in-out infinite;
}

.alms-404__book:nth-child(2) {
  bottom: 0;
  left: 55px;
  height: 35px;
  background: var(--alms-gold);
  animation: alms-book-float 3s ease-in-out 0.3s infinite;
}

.alms-404__book:nth-child(3) {
  bottom: 0;
  left: 90px;
  height: 28px;
  background: var(--alms-accent);
  animation: alms-book-float 3s ease-in-out 0.6s infinite;
}

.alms-404__cap {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: var(--alms-primary-dark);
  border-radius: 50%;
  animation: alms-cap-float 3s ease-in-out infinite;
}

.alms-404__cap::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15px;
  background: var(--alms-primary-dark);
  border-radius: 4px 4px 0 0;
}

.alms-404__cap::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -12px;
  width: 20px;
  height: 2px;
  background: var(--alms-gold);
  transform: rotate(30deg);
  border-radius: 2px;
}

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

@keyframes alms-cap-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
  50%      { transform: translateX(-50%) translateY(-12px) rotate(5deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 19 — BACK TO TOP
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alms-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--alms-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--alms-transition);
  z-index: 99;
}

.alms-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alms-back-to-top:hover {
  background: var(--alms-accent);
  transform: translateY(-3px);
  box-shadow: var(--alms-shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 20 — SEARCH RESULTS
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-search-results__count {
  font-size: 0.9rem;
  color: var(--alms-muted);
  margin-bottom: 1.5rem;
}

.alms-search-highlight {
  background: rgba(201, 162, 39, 0.20);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--alms-text);
}

[data-theme="dark"] .alms-search-highlight {
  background: rgba(245, 217, 122, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 21 — ARCHIVE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-archive-header {
  margin-bottom: 2rem;
}

.alms-archive-header__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--alms-gold);
  margin-bottom: 0.25rem;
}

.alms-archive-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.alms-archive-header__desc {
  color: var(--alms-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 22 — ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes alms-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes alms-fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes alms-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes alms-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.alms-animate-in {
  animation: alms-fade-in 0.4s ease both;
}

.alms-stagger > * {
  animation: alms-fade-in-up 0.5s ease both;
}

.alms-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.alms-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.alms-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.alms-stagger > *:nth-child(4) { animation-delay: 0.20s; }
.alms-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.alms-stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* Skeleton loading */
.alms-skeleton {
  background: linear-gradient(90deg, var(--alms-surface) 25%, var(--alms-surface-2) 50%, var(--alms-surface) 75%);
  background-size: 200% 100%;
  animation: alms-shimmer 1.5s infinite;
  border-radius: var(--alms-radius-sm);
}

@keyframes alms-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 23 — UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.alms-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.alms-text-center { text-align: center; }
.alms-text-right  { text-align: right; }
.alms-text-muted  { color: var(--alms-muted) !important; }
.alms-text-gold   { color: var(--alms-gold) !important; }
.alms-text-accent { color: var(--alms-accent) !important; }

.alms-mt-0 { margin-top: 0 !important; }
.alms-mb-0 { margin-bottom: 0 !important; }
.alms-mt-1 { margin-top: 0.5rem; }
.alms-mt-2 { margin-top: 1rem; }
.alms-mt-3 { margin-top: 1.5rem; }
.alms-mt-4 { margin-top: 2rem; }
.alms-mb-1 { margin-bottom: 0.5rem; }
.alms-mb-2 { margin-bottom: 1rem; }
.alms-mb-3 { margin-bottom: 1.5rem; }
.alms-mb-4 { margin-bottom: 2rem; }

.alms-glassmorphism {
  background: rgba(255, 255, 255, 0.7) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .alms-glassmorphism {
  background: rgba(26, 26, 46, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 24 — WORDPRESS SPECIFIC
   ═══════════════════════════════════════════════════════════════════════════ */
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }

.wp-caption {
  max-width: 100%;
  margin-bottom: 1em;
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--alms-muted);
  text-align: center;
  padding-top: 0.5em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 1.5em 0;
}

.gallery-item img {
  border-radius: var(--alms-radius-sm);
}

.sticky .alms-card {
  border-left: 4px solid var(--alms-gold);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

/* Admin bar offset */
.admin-bar .alms-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .alms-site-header {
    top: 46px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 25 — RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .alms-content-sidebar {
    grid-template-columns: 1fr;
  }

  .alms-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .alms-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  .alms-nav {
    display: none;
  }

  .alms-hamburger {
    display: flex;
  }

  .alms-header-actions .alms-btn {
    display: none;
  }

  .alms-header-actions .alms-theme-toggle,
  .alms-header-actions .alms-hamburger {
    display: flex;
  }

  .alms-post-grid {
    grid-template-columns: 1fr;
  }

  .alms-grid-2,
  .alms-grid-3 {
    grid-template-columns: 1fr;
  }

  .alms-container {
    padding: 0 16px;
  }

  .alms-page-header {
    padding: 2rem 0;
  }

  .alms-post-hero {
    height: 240px;
    border-radius: var(--alms-radius);
  }

  .alms-post-nav {
    grid-template-columns: 1fr;
  }

  .alms-author-box {
    flex-direction: column;
    text-align: center;
  }

  .alms-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .alms-footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .alms-404__number {
    font-size: 5rem;
  }
}

/* Small — ≤ 480px */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .alms-btn--lg {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .alms-card__body {
    padding: 1rem;
  }

  .alms-search-form {
    flex-direction: column;
  }

  .alms-search-form .alms-input {
    border-radius: var(--alms-radius-sm);
    border-right: 1px solid var(--alms-border-strong);
  }

  .alms-search-form .alms-btn {
    border-radius: var(--alms-radius-sm);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   § 26 — PRINT
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .alms-site-header,
  .alms-site-footer,
  .alms-back-to-top,
  .alms-sidebar,
  .alms-post-nav,
  .alms-comments,
  .alms-related {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a { color: #000; text-decoration: underline; }

  .alms-container { max-width: 100%; padding: 0; }
}
