/*============================================================
  TENSOR ACADEMY — COMPLETE DESIGN SYSTEM
  Modern AI Academic Website
  Version: 1.0 — Production-Ready
============================================================*/

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

/*====================
  2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
====================*/
:root {
  /* ---- Color System: Light Mode (Default) ---- */
  --color-primary: #0b1622;        /* Deep Navy */
  --color-primary-light: #132033;
  --color-accent: #3b82f6;         /* Electric Blue */
  --color-accent-hover: #2563eb;
  --color-accent-light: rgba(59, 130, 246, 0.08);
  --color-accent-glow: rgba(59, 130, 246, 0.25);
  --color-highlight: #06b6d4;      /* Cyan */
  --color-highlight-hover: #0891b2;
  --color-highlight-light: rgba(6, 182, 212, 0.08);

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-surface-elevated: #ffffff;

  --color-text: #1e293b;
  --color-text-heading: #0f172a;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;

  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.08);
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  --color-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --color-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --color-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --color-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --color-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --color-shadow-accent: 0 4px 14px 0 rgba(59, 130, 246, 0.3);

  /* ---- Gradient Tokens ---- */
  --gradient-hero: linear-gradient(135deg, #0b1622 0%, #132033 50%, #0f1d2e 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-accent-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
  --gradient-dark-surface: linear-gradient(180deg, #111827 0%, #0f172a 100%);

  /* ---- Typography ---- */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-persian: 'Vazirmatn', 'Inter', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --section-padding-y: 5rem;
  --section-padding-y-sm: 3rem;

  /* ---- Border Radius ---- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --header-height: 72px;

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/*====================
  3. DARK MODE TOKENS
====================*/
[data-theme="dark"] {
  --color-primary: #1a2940;
  --color-primary-light: #1e3350;
  --color-accent: #60a5fa;
  --color-accent-hover: #3b82f6;
  --color-accent-light: rgba(96, 165, 250, 0.1);
  --color-accent-glow: rgba(96, 165, 250, 0.3);
  --color-highlight: #22d3ee;
  --color-highlight-hover: #06b6d4;
  --color-highlight-light: rgba(34, 211, 238, 0.1);

  --color-bg: #0a0f1a;
  --color-bg-alt: #0d1321;
  --color-surface: #111827;
  --color-surface-alt: #1a2332;
  --color-surface-elevated: #1e293b;

  --color-text: #e2e8f0;
  --color-text-heading: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #0f172a;

  --color-border: #1e293b;
  --color-border-light: #1a2332;

  --color-success-bg: rgba(16, 185, 129, 0.12);

  --color-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --color-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --color-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --color-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --color-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --color-shadow-accent: 0 4px 18px 0 rgba(96, 165, 250, 0.35);

  --gradient-hero: linear-gradient(135deg, #060a12 0%, #0a0f1a 50%, #0d1321 100%);
  --gradient-accent-subtle: linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, rgba(34, 211, 238, 0.06) 100%);
  --gradient-dark-surface: linear-gradient(180deg, #1a2332 0%, #111827 100%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* RTL: Persian/Dari font */
[dir="rtl"] body,
[dir="rtl"] {
  font-family: var(--font-persian);
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::selection {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--color-text);
}

/*====================
  5. TYPOGRAPHY
====================*/
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: var(--color-text-heading);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: var(--leading-relaxed);
}

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

.text-accent {
  color: var(--color-accent);
}

.text-highlight {
  color: var(--color-highlight);
}

/*====================
  6. LAYOUT & CONTAINER
====================*/
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background: var(--gradient-hero);
  color: var(--color-text-inverse);
}

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section--dark .section-subtitle,
.section--dark .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/*====================
  7. HEADER & NAVIGATION
====================*/
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
  height: var(--header-height);
}

[data-theme="dark"] .header {
  background-color: rgba(10, 15, 26, 0.92);
  border-bottom-color: var(--color-border);
}

.header--scrolled {
  box-shadow: var(--color-shadow-md);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text-heading);
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
}

.header__logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-normal);
  display: block;
  line-height: 1;
}

/* ---- Desktop Navigation ---- */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.header__nav-link--active {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

/* ---- Header Actions ---- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  height: 40px;
}

.header__btn--icon {
  width: 40px;
  padding: 0;
  border-radius: var(--radius);
  color: var(--color-text);
  background: transparent;
}

.header__btn--icon:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-accent);
}

.header__btn--primary {
  background: var(--gradient-accent);
  color: #ffffff;
  font-weight: var(--weight-semibold);
  box-shadow: var(--color-shadow-accent);
}

.header__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

/* ---- Mobile Menu Toggle ---- */
.header__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.header__menu-toggle:hover {
  background-color: var(--color-surface-alt);
}

/* ---- Mobile Navigation Overlay ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: var(--z-overlay);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  animation: fadeSlideIn 0.3s ease;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav__link {
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.mobile-nav__link:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-accent);
}

.mobile-nav__divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-3) 0;
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}

.mobile-nav__actions .header__btn {
  width: 100%;
  justify-content: center;
}

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

/*====================
  8. HERO SECTION
====================*/
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #ffffff;
  padding-top: var(--space-20);
  padding-bottom: var(--space-24);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: var(--z-base);
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-highlight);
  background: rgba(6, 182, 212, 0.12);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: var(--space-6);
}

.hero__title-highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

/* ---- Hero Stats ---- */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
  font-weight: var(--weight-medium);
}

.hero__stat-icon {
  display: inline-block;
  margin-right: var(--space-2);
  color: var(--color-highlight);
}

/*====================
  9. BUTTONS (GLOBAL)
====================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius);
  transition: all var(--transition-spring);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  min-height: 48px;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--color-shadow-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline-dark:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
}

.btn--ghost:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 56px;
  border-radius: var(--radius-md);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/*====================
  10. CARDS (GLOBAL)
====================*/
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  box-shadow: var(--color-shadow-sm);
}

.card:hover {
  box-shadow: var(--color-shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-border);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .card--glass {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(255, 255, 255, 0.06);
}

.card--accent-border {
  border-top: 3px solid var(--color-accent);
}

.card--highlight-border {
  border-top: 3px solid var(--color-highlight);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.card__icon--accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card__icon--highlight {
  background: var(--color-highlight-light);
  color: var(--color-highlight);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-heading);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/*====================
  11. ABOUT SECTION
====================*/
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.about__info-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.about__info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.about__info-item:last-child {
  border-bottom: none;
}

.about__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.2rem;
}

.about__info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.about__info-value {
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  font-size: var(--text-sm);
}

/*====================
  12. COURSES SECTION
====================*/
.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.course-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.6rem;
  background: var(--gradient-accent-subtle);
  color: var(--color-accent);
}

.course-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-heading);
}

.course-card__description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.course-card__levels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.course-card__level-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/*====================
  13. LEVELS SECTION
====================*/
.levels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.level-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

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

.level-card--featured {
  background: var(--gradient-accent-subtle);
  border-color: var(--color-accent);
  border-width: 2px;
}

.level-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.level-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.level-card__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/*====================
  14. CERTIFICATES SECTION
====================*/
.certificates__preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--color-shadow-md);
}

.certificates__info h3 {
  margin-bottom: var(--space-4);
}

.certificates__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.certificates__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.certificates__feature-icon {
  color: var(--color-success);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.certificates__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificates__mock-card {
  width: 100%;
  max-width: 340px;
  background: var(--gradient-hero);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--color-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.certificates__mock-badge {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.certificates__mock-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.certificates__mock-text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

/*====================
  15. VERIFICATION SECTION
====================*/
.verify-section {
  background: var(--gradient-accent-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
}

.verify-section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.verify-section__subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.verify-form {
  display: flex;
  gap: var(--space-3);
  max-width: 560px;
  margin: 0 auto;
}

.verify-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  transition: all var(--transition-fast);
  min-height: 48px;
  letter-spacing: 0.02em;
}

.verify-form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
  outline: none;
}

.verify-form__input::placeholder {
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  letter-spacing: 0;
}

.verify-result {
  margin-top: var(--space-8);
  display: none;
}

.verify-result--show {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

.verify-result__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--color-shadow-md);
}

.verify-result__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}

.verify-result__status--valid {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.verify-result__status--invalid {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/*====================
  16. VERIFY PAGE (verify.html)
====================*/
.verify-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--container-padding);
}

.verify-page__container {
  width: 100%;
  max-width: 600px;
}

.verify-page__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--color-shadow-lg);
  text-align: center;
}

.verify-page__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.verify-page__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.verify-page__subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/*====================
  17. CERTIFICATE DETAIL PAGE
====================*/
.certificate-page {
  padding: var(--space-12) var(--container-padding);
  min-height: calc(100vh - var(--header-height));
}

.certificate-detail {
  max-width: 900px;
  margin: 0 auto;
}

.certificate-detail__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.certificate-detail__status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.certificate-detail__id {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.03em;
}

.certificate-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.certificate-detail__info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.certificate-detail__info h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.certificate-detail__field {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.certificate-detail__field:last-child {
  border-bottom: none;
}

.certificate-detail__field-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.certificate-detail__field-value {
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  text-align: right;
  font-size: var(--text-sm);
}

[dir="rtl"] .certificate-detail__field-value {
  text-align: left;
}

.certificate-detail__score {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-accent);
}

.certificate-detail__grade {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.certificate-detail__achievements {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.certificate-detail__achievements h3 {
  margin-bottom: var(--space-4);
}

.certificate-detail__achievement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
}

.certificate-detail__achievement-icon {
  color: var(--color-highlight);
  flex-shrink: 0;
  margin-top: 2px;
}

.certificate-detail__pdf-section {
  margin-top: var(--space-8);
  text-align: center;
}

.certificate-detail__pdf-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.certificate-detail__pdf-viewer {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-shadow-lg);
  background: #ffffff;
}

.certificate-detail__pdf-viewer iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/*====================
  18. CONTACT SECTION
====================*/
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  box-shadow: var(--color-shadow-md);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.4rem;
}

.contact-card__title {
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.contact-card__value {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  word-break: break-all;
}

.contact-card__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

/*====================
  19. FAQ SECTION
====================*/
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition-fast);
  background: var(--color-surface);
}

.faq__item:hover {
  border-color: var(--color-accent);
}

.faq__item--open {
  border-color: var(--color-accent);
  box-shadow: var(--color-shadow-md);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-4);
}

[dir="rtl"] .faq__question {
  text-align: right;
}

.faq__question-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  transition: transform var(--transition-base);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
}

.faq__item--open .faq__question-icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

/*====================
  20. FOOTER
====================*/
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
}

.footer__link:hover {
  color: #ffffff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/*====================
  21. PRIVACY & TERMS PAGES
====================*/
.legal-page {
  padding: var(--space-12) var(--container-padding);
  min-height: calc(100vh - var(--header-height));
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-8);
  text-align: center;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text-heading);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

[dir="rtl"] .legal-content ul {
  padding-left: 0;
  padding-right: var(--space-6);
}

.legal-content .last-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-8);
  font-style: italic;
}

/*====================
  22. LANGUAGE SWITCHER
====================*/
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--color-border);
}

.lang-switcher__btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  min-height: 30px;
  letter-spacing: 0.02em;
}

.lang-switcher__btn--active {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--color-shadow-sm);
}

.lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  background: rgba(255, 255, 255, 0.05);
}

/*====================
  23. THEME TOGGLE
====================*/
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

/*====================
  24. BADGES & TAGS
====================*/
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge--highlight {
  background: var(--color-highlight-light);
  color: var(--color-highlight);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/*====================
  25. NOTIFICATION TOAST
====================*/
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--color-shadow-lg);
  z-index: var(--z-toast);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transform: translateY(120%);
  transition: transform var(--transition-spring);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toast--show {
  transform: translateY(0);
}

[dir="rtl"] .toast {
  right: auto;
  left: var(--space-6);
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/*====================
  27. ANIMATIONS
====================*/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease forwards;
}

/* Intersection Observer animation support */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/*====================
  28. SKELETON LOADING
====================*/
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/*====================
  29. SCROLL TO TOP
====================*/
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--color-shadow-accent);
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.scroll-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: var(--space-6);
}

/*====================
  30. RESPONSIVE DESIGN
====================*/

/* Tablet Landscape (≤1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding-y: 4rem;
    --header-height: 64px;
  }

  .header__nav {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .levels__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .certificates__preview {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__stat-value {
    font-size: var(--text-3xl);
  }
}

/* Tablet Portrait (≤768px) */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 3rem;
    --container-padding: 1rem;
    --header-height: 60px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }

  .hero {
    min-height: auto;
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

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

  .levels__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .verify-form {
    flex-direction: column;
  }

  .verify-form .btn {
    width: 100%;
  }

  .certificate-detail__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .header__logo-tagline {
    display: none;
  }

  .header__logo-text {
    font-size: var(--text-base);
  }

  .header__actions .header__btn--primary {
    display: none;
  }

  .header__actions .lang-switcher {
    display: none;
  }

  .mobile-nav__lang-switcher {
    display: flex;
    justify-content: center;
  }

  .verify-page__card {
    padding: var(--space-8);
  }

  .certificates__preview {
    padding: var(--space-6);
  }

  .legal-content h1 {
    font-size: var(--text-3xl);
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  :root {
    --section-padding-y: 2.5rem;
    --header-height: 56px;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__description {
    font-size: var(--text-base);
  }

  .hero__eyebrow {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .card,
  .course-card,
  .contact-card {
    padding: var(--space-6);
  }

  .verify-section {
    padding: var(--space-6);
  }

  .certificate-detail__pdf-viewer iframe {
    height: 400px;
  }

  .header__logo-img {
    height: 32px;
  }

  .faq__question {
    font-size: var(--text-sm);
    padding: var(--space-4);
  }

  .faq__answer-content {
    padding: 0 var(--space-4) var(--space-4);
  }

  .legal-content {
    font-size: var(--text-sm);
  }
}

/*====================
  31. RTL SUPPORT
====================*/
[dir="rtl"] .header__nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .header__actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero__content {
  text-align: right;
}

[dir="rtl"] .hero__stats {
  flex-direction: row-reverse;
}

[dir="rtl"] .section-header {
  text-align: center;
}

[dir="rtl"] .faq__question {
  text-align: right;
}

[dir="rtl"] .verify-result__card {
  text-align: right;
}

[dir="rtl"] .about__info-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .certificates__feature {
  flex-direction: row-reverse;
}

[dir="rtl"] .certificate-detail__field {
  flex-direction: row-reverse;
}

[dir="rtl"] .course-card::before {
  transform-origin: right;
}

[dir="rtl"] .footer__inner {
  direction: rtl;
}

/* RTL: Mirror hero decorative elements */
[dir="rtl"] .hero::before {
  right: auto;
  left: -30%;
}

[dir="rtl"] .hero::after {
  left: auto;
  right: -20%;
}

/* RTL: Toast position */
[dir="rtl"] .toast {
  right: auto;
  left: var(--space-6);
}

/*====================
  32. PRINT STYLES
====================*/
@media print {
  .header,
  .footer,
  .scroll-top,
  .mobile-nav,
  .hero,
  .verify-section,
  .faq__list,
  .contact__grid,
  .courses__grid,
  .certificates__preview,
  .certificate-detail__pdf-actions,
  .btn {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .certificate-detail {
    max-width: 100%;
  }

  .certificate-detail__grid {
    grid-template-columns: 1fr;
  }

  .certificate-detail__info,
  .certificate-detail__achievements {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .certificate-detail__pdf-viewer {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .certificate-detail__pdf-viewer iframe {
    height: 500px;
  }
}

/*====================
  33. ACCESSIBILITY
====================*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --color-border: #666;
    --color-text-muted: #444;
  }
}

/*====================
  34. CUSTOM SCROLLBAR
====================*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/*====================
  END OF CSS
  Version 1.0 — Tensor Academy
  All styles complete & production-ready
====================*/
