/* ====================================================
   Trinity Music Class Studies — Public Website
   ==================================================== */

:root {
  --tm-primary: #6c2bd9;
  --tm-primary-dark: #5621ad;
  --tm-primary-light: #8b5ce6;
  --tm-accent: #ffb703;
  --tm-bg: #fafbff;
  --tm-dark: #1e1432;
  --tm-text: #2b2540;
  --tm-muted: #6b6785;
  --tm-border: #e6e7f0;
  --tm-card: #ffffff;
  --tm-success: #2bb673;
  --tm-shadow: 0 8px 32px rgba(40, 25, 90, 0.08);
  --tm-shadow-lg: 0 20px 60px rgba(40, 25, 90, 0.12);
  --tm-radius: 16px;
  --tm-nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--tm-bg);
  color: var(--tm-text);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

/* ============ NAVBAR ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tm-border);
  transition: box-shadow 0.25s ease;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tm-nav-height);
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tm-dark);
  flex-shrink: 0;
}

.site-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tm-primary-light), var(--tm-primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(108, 43, 217, 0.4);
}

.site-brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.site-brand-text span {
  font-size: 11px;
  color: var(--tm-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tm-text);
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--tm-dark);
  cursor: pointer;
  padding: 4px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 43, 217, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(108, 43, 217, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--tm-primary);
  border: 2px solid var(--tm-primary);
}

.btn-outline:hover {
  background: rgba(108, 43, 217, 0.06);
  color: var(--tm-primary);
}

.btn-accent {
  background: var(--tm-accent);
  color: var(--tm-dark);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============ SECTIONS ============ */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tm-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--tm-dark);
}

.section-desc {
  color: var(--tm-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-desc {
  margin-inline: auto;
}

/* ============ HERO ============ */
.hero {
  padding-top: calc(var(--tm-nav-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #1e1432 0%, #2c1f4a 40%, #3d2870 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(108, 43, 217, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 183, 3, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.hero-badge i {
  color: var(--tm-accent);
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero h2 span {
  background: linear-gradient(90deg, var(--tm-accent), #ffd166);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--tm-accent);
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--tm-radius);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tm-primary-light), var(--tm-primary));
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.hero-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.hero-float {
  position: absolute;
  background: var(--tm-card);
  color: var(--tm-text);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--tm-shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-float i {
  color: var(--tm-success);
  font-size: 20px;
}

.hero-float--top {
  top: -16px;
  right: -16px;
}

.hero-float--bottom {
  bottom: -16px;
  left: -16px;
}

/* ============ INTRO ============ */
.intro {
  background: var(--tm-card);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--tm-bg);
  border-radius: 12px;
}

.intro-feature i {
  color: var(--tm-primary);
  font-size: 20px;
  margin-top: 2px;
}

.intro-feature strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.intro-feature span {
  font-size: 13px;
  color: var(--tm-muted);
}

.intro-visual {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.08), rgba(255, 183, 3, 0.08));
  border-radius: var(--tm-radius);
  padding: 40px;
  text-align: center;
}

.intro-visual-icon {
  font-size: 80px;
  color: var(--tm-primary);
  margin-bottom: 16px;
}

/* ============ CARDS GRID ============ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--tm-card);
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.course-card-thumb {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: #fff;
}

.course-card-thumb--piano { background: linear-gradient(135deg, #6c2bd9, #9b59b6); }
.course-card-thumb--keyboard { background: linear-gradient(135deg, #5b4fc7, #7b68ee); }
.course-card-thumb--guitar { background: linear-gradient(135deg, #e67e22, #f39c12); }
.course-card-thumb--violin { background: linear-gradient(135deg, #8e44ad, #c39bd3); }
.course-card-thumb--vocal { background: linear-gradient(135deg, #e63946, #ff6b6b); }
.course-card-thumb--drums { background: linear-gradient(135deg, #2c3e50, #566573); }
.course-card-thumb--theory { background: linear-gradient(135deg, #2980b9, #5dade2); }
.course-card-thumb--rock { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.course-card-thumb--exam { background: linear-gradient(135deg, #6c2bd9, #5621ad); }
.course-card-thumb--digital { background: linear-gradient(135deg, #16a085, #1abc9c); }

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-primary);
  margin-top: 4px;
  transition: gap 0.18s;
}

.course-card-link:hover {
  gap: 10px;
  color: var(--tm-primary-dark);
}

.course-card.hidden {
  display: none;
}

/* ============ COURSES PAGE ============ */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.course-filter-btn {
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--tm-border);
  background: var(--tm-card);
  color: var(--tm-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.course-filter-btn:hover {
  border-color: var(--tm-primary-light);
  color: var(--tm-primary);
}

.course-filter-btn.active {
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 43, 217, 0.35);
}

.category-section {
  margin-bottom: 56px;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-section.hidden {
  display: none;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tm-border);
}

.category-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

.category-header h2 {
  margin: 0;
  font-size: 22px;
}

.category-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--tm-muted);
}

.courses-intro-bar {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.courses-intro-bar p {
  margin: 0;
  font-size: 15px;
  color: var(--tm-muted);
  max-width: 640px;
}

.courses-intro-bar strong {
  color: var(--tm-text);
}

.course-card-body {
  padding: 22px;
}

.course-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tm-primary);
  background: rgba(108, 43, 217, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.course-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.course-card-body p {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0 0 16px;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--tm-muted);
}

/* ============ INSTRUMENTS ============ */
.instruments {
  background: var(--tm-dark);
  color: #fff;
}

.instruments .section-title {
  color: #fff;
}

.instruments .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.instrument-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tm-radius);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.22s, transform 0.22s;
}

.instrument-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.instrument-item i {
  font-size: 36px;
  color: var(--tm-accent);
  margin-bottom: 12px;
  display: block;
}

.instrument-item span {
  font-size: 14px;
  font-weight: 600;
}

/* ============ GRADE PATH ============ */
.grade-path {
  background: var(--tm-card);
}

.grade-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.grade-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  position: relative;
}

.grade-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-light));
  z-index: 0;
}

.grade-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(108, 43, 217, 0.35);
}

.grade-step:first-child .grade-circle {
  background: linear-gradient(135deg, var(--tm-accent), #ffd166);
  color: var(--tm-dark);
}

.grade-step span {
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text);
}

.grade-step small {
  display: block;
  font-size: 11px;
  color: var(--tm-muted);
  margin-top: 4px;
}

/* ============ GRADE LEARNING PATH (§6) ============ */
.path-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.path-timeline-step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.18s;
}

.path-timeline-step:hover {
  background: rgba(108, 43, 217, 0.06);
}

.path-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-light));
  z-index: 0;
}

.path-timeline-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(108, 43, 217, 0.3);
}

.path-timeline-step:first-child .path-timeline-circle {
  background: linear-gradient(135deg, var(--tm-accent), #ffd166);
  color: var(--tm-dark);
}

.path-timeline-step:last-child .path-timeline-circle {
  background: linear-gradient(135deg, #1e1432, #3d2870);
}

.path-timeline-step span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-text);
}

.path-timeline-step small {
  display: block;
  font-size: 10px;
  color: var(--tm-muted);
  margin-top: 3px;
}

.path-levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.path-level-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.path-level-card:hover {
  border-color: var(--tm-primary-light);
  box-shadow: var(--tm-shadow);
}

.path-level-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.path-level-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 43, 217, 0.1);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.path-level-titles { flex: 1; min-width: 180px; }

.path-level-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tm-primary);
  margin-bottom: 4px;
}

.path-level-titles h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.path-level-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--tm-muted);
}

.path-level-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-level-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(108, 43, 217, 0.1);
  color: var(--tm-primary);
}

.path-level-badge--optional {
  background: rgba(255, 183, 3, 0.15);
  color: #b8860b;
}

.path-level-suitable {
  margin-bottom: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(108, 43, 217, 0.05));
  border-radius: 10px;
  font-size: 13px;
}

.path-level-suitable strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tm-muted);
}

.path-level-suitable ul {
  margin: 0;
  padding-left: 18px;
  color: var(--tm-text);
}

.path-level-suitable li { margin-bottom: 4px; }

.path-level-items strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tm-muted);
}

.path-level-items ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-level-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--tm-text);
}

.path-level-items i {
  color: var(--tm-success);
  margin-top: 3px;
  flex-shrink: 0;
}

.path-level-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.path-level-link:hover {
  color: var(--tm-primary-dark);
}

.path-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.path-preview-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.path-preview-card:hover {
  border-color: var(--tm-primary-light);
  box-shadow: var(--tm-shadow);
}

.path-preview-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--tm-text);
}

.path-preview-card p {
  margin: 0;
  font-size: 12px;
  color: var(--tm-muted);
  line-height: 1.5;
}

@media (max-width: 991px) {
  .path-levels-grid { grid-template-columns: 1fr; }
  .path-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .path-timeline-step { min-width: 80px; }
}

/* ============ CLASS MODES ============ */
.class-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.mode-card:hover {
  border-color: var(--tm-primary-light);
  box-shadow: var(--tm-shadow);
}

.mode-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.mode-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.mode-card p {
  margin: 0;
  font-size: 14px;
  color: var(--tm-muted);
}

/* ============ ACHIEVEMENTS ============ */
.achievements {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.04), rgba(255, 183, 3, 0.06));
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.achievement-card {
  background: var(--tm-card);
  border-radius: var(--tm-radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--tm-border);
}

.achievement-card i {
  font-size: 32px;
  color: var(--tm-accent);
  margin-bottom: 12px;
}

.achievement-card strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--tm-primary);
  margin-bottom: 4px;
}

.achievement-card span {
  font-size: 14px;
  color: var(--tm-muted);
}

/* ============ TEACHERS ============ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teacher-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.teacher-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary-light), var(--tm-primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.teacher-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.teacher-instrument {
  font-size: 13px;
  color: var(--tm-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.teacher-card p {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0 0 14px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.teacher-tag {
  font-size: 11px;
  background: var(--tm-bg);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--tm-muted);
}

/* ============ TUTORS PAGE ============ */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tutor-profile-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}

.tutor-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tm-shadow);
}

.tutor-profile-card.hidden {
  display: none;
}

.tutor-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tutor-profile-header .teacher-avatar {
  margin: 0;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.tutor-profile-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  text-align: left;
}

.tutor-profile-header .teacher-instrument {
  margin: 0;
  text-align: left;
}

.tutor-profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--tm-bg);
  border-radius: 10px;
}

.tutor-profile-meta div {
  margin: 0;
}

.tutor-profile-meta dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--tm-muted);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tutor-profile-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-text);
}

.tutor-profile-card > p {
  font-size: 14px;
  color: var(--tm-muted);
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}

.tutor-profile-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tutor-batches {
  margin-bottom: 18px;
}

.tutor-batches strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--tm-text);
  margin-bottom: 8px;
}

.tutor-batches ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutor-batches li {
  font-size: 13px;
  color: var(--tm-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--tm-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-batches li:last-child {
  border-bottom: none;
}

.tutor-batches li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tm-primary);
  flex-shrink: 0;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--tm-dark);
  color: #fff;
}

.testimonials .section-title {
  color: #fff;
}

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tm-radius);
  padding: 28px;
}

.testimonial-stars {
  color: var(--tm-accent);
  font-size: 14px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tm-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
}

.testimonial-author span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ PRICING ============ */
.pricing-section-alt {
  background: #f3f0fa;
}

.pricing-grid {
  display: grid;
  gap: 24px;
}

.pricing-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.pricing-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.pricing-card--featured {
  border-color: var(--tm-primary);
  box-shadow: var(--tm-shadow);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--tm-accent);
  color: var(--tm-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: 999px;
}

.pricing-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 43, 217, 0.1);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.pricing-card-icon--grade { background: rgba(108, 43, 217, 0.1); color: var(--tm-primary); }
.pricing-card-icon--exam { background: rgba(86, 33, 173, 0.1); color: var(--tm-primary-dark); }
.pricing-card-icon--mock { background: rgba(43, 182, 115, 0.1); color: var(--tm-success); }
.pricing-card-icon--theory { background: rgba(41, 128, 185, 0.1); color: #2980b9; }

.pricing-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.pricing-card-desc {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tm-border);
}

.pricing-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--tm-primary);
}

.pricing-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--tm-dark);
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--tm-muted);
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tm-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.pricing-features li i {
  color: var(--tm-success);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pricing-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-note-card {
  display: flex;
  gap: 16px;
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 24px;
}

.pricing-note-card > i {
  font-size: 28px;
  color: var(--tm-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.pricing-note-card p {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0;
  line-height: 1.6;
}

.pricing-note-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-primary);
  transition: gap 0.18s ease;
}

.pricing-note-link:hover {
  gap: 10px;
  color: var(--tm-primary-dark);
}

/* ============ CTA ============ */
.cta {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-dark));
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 183, 3, 0.2) 0%, transparent 50%);
}

.cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 14px;
  position: relative;
}

.cta-box p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--tm-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 28px;
}

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

.footer-brand p {
  font-size: 14px;
  margin: 14px 0 0;
  line-height: 1.65;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--tm-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 600px;
  margin-top: 8px;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding-top: calc(var(--tm-nav-height) + 48px);
  padding-bottom: 56px;
  background: linear-gradient(160deg, #1e1432 0%, #2c1f4a 60%, #3d2870 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto;
}

.page-hero .hero-badge {
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.18s;
}

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

.breadcrumb i {
  font-size: 11px;
}

/* ============ CONTACT PAGE ============ */
.contact-section {
  padding: 72px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 12px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.contact-info-card:hover {
  border-color: var(--tm-primary-light);
  box-shadow: var(--tm-shadow);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-info-card a,
.contact-info-card span {
  font-size: 14px;
  color: var(--tm-muted);
}

.contact-info-card a:hover {
  color: var(--tm-primary);
}

.contact-quick-links {
  margin-top: 36px;
}

.contact-quick-links h3 {
  font-size: 16px;
  margin: 0 0 14px;
}

.contact-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-text);
  margin-bottom: 10px;
  transition: border-color 0.22s, background 0.22s, color 0.22s;
}

.contact-quick-link i {
  color: var(--tm-primary);
  font-size: 18px;
}

.contact-quick-link:hover,
.contact-quick-link.active {
  border-color: var(--tm-primary);
  background: rgba(108, 43, 217, 0.04);
  color: var(--tm-primary);
}

.contact-form-wrap {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 36px 32px;
  box-shadow: var(--tm-shadow);
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-header .section-title {
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tm-text);
}

.form-required {
  color: #e04545;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--tm-text);
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--tm-primary-light);
  box-shadow: 0 0 0 3px rgba(108, 43, 217, 0.12);
}

.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
  border-color: #e04545;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6785' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(43, 182, 115, 0.08);
  border: 1px solid rgba(43, 182, 115, 0.25);
  border-radius: 12px;
  margin-bottom: 24px;
}

.form-success i {
  color: var(--tm-success);
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--tm-text);
}

.form-success p {
  margin: 0;
  font-size: 14px;
  color: var(--tm-muted);
}

/* ============ ABOUT PAGE ============ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mission-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-light));
}

.mission-card--vision::before {
  background: linear-gradient(90deg, var(--tm-accent), #ffd166);
}

.mission-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.mission-card--vision .mission-card-icon {
  background: rgba(255, 183, 3, 0.12);
  color: #c99200;
}

.mission-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.mission-card p {
  margin: 0;
  color: var(--tm-muted);
  font-size: 15px;
  line-height: 1.7;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-step {
  text-align: center;
  position: relative;
}

.method-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(108, 43, 217, 0.3);
}

.method-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.method-step p {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0;
}

.approach-section {
  background: var(--tm-dark);
  color: #fff;
}

.approach-section .section-title {
  color: #fff;
}

.approach-section .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 20px;
}

.approach-list i {
  color: var(--tm-accent);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.approach-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.approach-list span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.approach-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tm-radius);
  padding: 36px;
}

.approach-grade-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approach-grade-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.approach-grade-label {
  width: 56px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.approach-grade-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.approach-grade-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tm-primary-light), var(--tm-accent));
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.experience-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 32px 28px;
  text-align: center;
}

.experience-card i {
  font-size: 36px;
  color: var(--tm-primary);
  margin-bottom: 16px;
  display: block;
}

.experience-card strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--tm-dark);
  margin-bottom: 6px;
}

.experience-card span {
  font-size: 14px;
  color: var(--tm-muted);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary-light), var(--tm-primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}

.story-content h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.story-meta {
  font-size: 13px;
  color: var(--tm-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.story-content p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--tm-muted);
  line-height: 1.65;
}

.story-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-success);
  background: rgba(43, 182, 115, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
}

.story-result i {
  font-size: 14px;
}

/* ============ BLOG PAGE ============ */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--tm-card);
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.blog-card.hidden {
  display: none;
}

.blog-card-thumb {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: #fff;
}

.blog-card-thumb--exam { background: linear-gradient(135deg, #6c2bd9, #5621ad); }
.blog-card-thumb--practice { background: linear-gradient(135deg, #e67e22, #f39c12); }
.blog-card-thumb--digital { background: linear-gradient(135deg, #16a085, #1abc9c); }
.blog-card-thumb--theory { background: linear-gradient(135deg, #2980b9, #5dade2); }
.blog-card-thumb--sight { background: linear-gradient(135deg, #8e44ad, #c39bd3); }
.blog-card-thumb--parents { background: linear-gradient(135deg, #e63946, #ff6b6b); }

.blog-card-body {
  padding: 22px;
}

.blog-card-body h2 {
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-card-body > p {
  font-size: 14px;
  color: var(--tm-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--tm-muted);
  margin-bottom: 12px;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-articles {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.03), rgba(255, 183, 3, 0.04));
}

.blog-article-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.blog-article {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 32px 36px;
  scroll-margin-top: calc(var(--tm-nav-height) + 24px);
}

.blog-article-header {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tm-border);
}

.blog-article-header h3 {
  font-size: 22px;
  margin: 10px 0 12px;
}

.blog-article-content p {
  font-size: 15px;
  color: var(--tm-muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.blog-article-content p:last-child {
  margin-bottom: 0;
}

.blog-article-content strong {
  color: var(--tm-text);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.resource-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  text-align: center;
}

.resource-card i {
  font-size: 32px;
  color: var(--tm-primary);
  margin-bottom: 14px;
  display: block;
}

.resource-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.resource-card p {
  font-size: 14px;
  color: var(--tm-muted);
  margin: 0;
  line-height: 1.65;
}

.resources-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--tm-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.resources-note a {
  color: var(--tm-primary);
  font-weight: 600;
}

/* ============ EXAM PREPARATION PAGE ============ */
.exam-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.exam-process-step {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 24px 18px;
  text-align: center;
}

.exam-process-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 12px;
}

.exam-process-step h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.exam-process-step p {
  font-size: 12px;
  color: var(--tm-muted);
  margin: 0;
  line-height: 1.5;
}

.prep-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.prep-area-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.prep-area-card:hover {
  border-color: var(--tm-primary-light);
  box-shadow: var(--tm-shadow);
}

.prep-area-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}

.prep-area-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.prep-area-content > p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--tm-muted);
  line-height: 1.65;
}

.prep-area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prep-area-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--tm-text);
}

.prep-area-list i {
  color: var(--tm-success);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.instruments-light {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.04), rgba(255, 183, 3, 0.06));
}

.instruments-light .instruments-grid .instrument-item {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  color: var(--tm-text);
}

.instruments-light .instruments-grid .instrument-item:hover {
  border-color: var(--tm-primary-light);
  background: var(--tm-card);
}

.instruments-light .instruments-grid .instrument-item i {
  color: var(--tm-primary);
}

.digital-exam-block {
  background: var(--tm-dark);
  color: #fff;
  border-radius: var(--tm-radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.digital-exam-block h2 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 14px;
}

.digital-exam-block > div > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.7;
}

.digital-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.digital-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
}

.digital-checklist i {
  color: var(--tm-accent);
  font-size: 20px;
  flex-shrink: 0;
}

.digital-checklist strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.digital-checklist span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.digital-exam-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tm-radius);
  padding: 32px;
  text-align: center;
}

.digital-exam-visual i {
  font-size: 64px;
  color: var(--tm-accent);
  margin-bottom: 16px;
  display: block;
}

.digital-exam-visual p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feedback-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 28px;
  text-align: center;
}

.feedback-card i {
  font-size: 32px;
  color: var(--tm-primary);
  margin-bottom: 14px;
  display: block;
}

.feedback-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feedback-card p {
  margin: 0;
  font-size: 14px;
  color: var(--tm-muted);
}

.grade-note {
  background: rgba(108, 43, 217, 0.06);
  border: 1px solid rgba(108, 43, 217, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--tm-muted);
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.grade-note i {
  color: var(--tm-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ MUSIC THEORY PAGE ============ */
.page-hero--theory {
  background: linear-gradient(160deg, #142638 0%, #1a3a52 55%, #2980b9 100%);
}

.prep-area-icon--theory {
  background: rgba(41, 128, 185, 0.12);
  color: #2980b9;
}

.theory-intro-visual {
  border-color: rgba(41, 128, 185, 0.2);
}

.theory-level-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.theory-level-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 32px;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.theory-level-card:hover {
  border-color: rgba(41, 128, 185, 0.35);
  box-shadow: var(--tm-shadow);
}

.theory-level-card--advanced {
  border-color: rgba(41, 128, 185, 0.25);
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.04), var(--tm-card));
}

.theory-level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2980b9;
  background: rgba(41, 128, 185, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.theory-level-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.theory-level-card > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--tm-muted);
  line-height: 1.65;
}

.theory-level-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theory-level-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tm-text);
}

.theory-level-list i {
  color: #2980b9;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.theory-level-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--tm-muted);
}

.theory-level-meta i {
  color: #2980b9;
  margin-right: 4px;
}

.digital-exam-block--theory {
  background: linear-gradient(135deg, #142638 0%, #1e4a6e 100%);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .course-grid,
  .blog-grid,
  .resources-grid,
  .teachers-grid,
  .tutor-grid,
  .testimonials-grid,
  .class-modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .mission-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

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

  .exam-process,
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prep-area-grid,
  .theory-level-grid,
  .digital-exam-block {
    grid-template-columns: 1fr;
  }

  .pricing-grid--3 {
    grid-template-columns: 1fr;
  }

  .pricing-notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--tm-nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-actions .btn-ghost-nav {
    display: none;
  }

  .site-nav {
    position: relative;
  }

  .course-grid,
  .blog-grid,
  .resources-grid,
  .teachers-grid,
  .tutor-grid,
  .testimonials-grid,
  .class-modes-grid,
  .instruments-grid,
  .achievements-grid,
  .pricing-grid--4 {
    grid-template-columns: 1fr;
  }

  .blog-article {
    padding: 24px 20px;
  }

  .intro-features {
    grid-template-columns: 1fr;
  }

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

  .hero-float--top,
  .hero-float--bottom {
    display: none;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .method-grid,
  .experience-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    flex-direction: column;
    text-align: center;
  }

  .story-avatar {
    margin-inline: auto;
  }

  .tutor-profile-meta {
    grid-template-columns: 1fr;
  }

  .courses-intro-bar {
    flex-direction: column;
    text-align: center;
  }

  .course-filters {
    gap: 8px;
  }

  .course-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .exam-process,
  .feedback-grid,
  .prep-area-grid {
    grid-template-columns: 1fr;
  }

  .prep-area-card {
    flex-direction: column;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .digital-exam-block {
    padding: 32px 24px;
  }
}

/* ============ COURSE DETAIL HEADER (§5.1) ============ */
.course-header-card,
.course-detail-header {
  background: linear-gradient(135deg, #1e1432 0%, #2c1f4a 55%, #3d2870 100%);
  color: #fff;
  border-radius: var(--tm-radius);
  padding: 32px;
  margin-bottom: 32px;
}

.course-detail-header .hierarchy-breadcrumb {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.course-header-main {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.course-header-info { flex: 1; min-width: 280px; }

.course-header-title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
}

.course-header-desc {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
}

.course-header-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.course-header-field {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}

.course-header-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.course-header-field-label i { margin-right: 4px; }

.course-header-field-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.course-header-field-value--price {
  font-size: 22px;
  color: var(--tm-accent);
}

.course-header-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.course-header-aside {
  flex-shrink: 0;
  min-width: 200px;
}

.course-header-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-header-actions .btn { width: 100%; justify-content: center; }

.course-detail-section {
  padding: 48px 0;
}

.course-overview-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tm-muted);
  max-width: 720px;
  margin: 0;
}

.course-curriculum-wrap {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 24px;
}

.course-detail-section .section-title {
  margin-bottom: 16px;
}

.course-detail-section .section-desc {
  margin-bottom: 0;
}

.course-detail-section:nth-child(even) {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.03), rgba(255, 183, 3, 0.04));
}

.course-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.course-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--tm-muted);
}

.course-detail-list i {
  color: var(--tm-success);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .course-header-fields { grid-template-columns: repeat(2, 1fr); }
  .course-header-aside { width: 100%; }
  .course-detail-list { grid-template-columns: 1fr; }
  .course-detail-header { padding: 24px 20px; }
}

.page-hero--compact {
  padding-top: calc(var(--tm-nav-height) + 24px);
  padding-bottom: 24px;
}

.hierarchy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.hierarchy-breadcrumb span { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

.course-header-card .hierarchy-breadcrumb { justify-content: flex-start; }

.module-accordion { display: flex; flex-direction: column; gap: 10px; }

.module-block {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  overflow: hidden;
}

.module-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  background: #fafafe;
  border: none;
  width: 100%;
  text-align: left;
}

.module-block-header h6 { margin: 0; font-size: 14px; flex: 1; }

.module-block-header .module-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tm-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.module-block-body { display: none; padding: 0 18px 16px; border-top: 1px solid var(--tm-border); }
.module-block.open .module-block-body { display: block; }
.module-block.open .module-chevron { transform: rotate(180deg); }
.module-chevron { color: var(--tm-muted); transition: transform 0.2s; margin-left: auto; }

.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tm-border);
  font-size: 13px;
}

.lesson-row:last-child { border-bottom: none; }

.lesson-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(108, 43, 217, 0.08);
  color: var(--tm-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.badge-soft {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-soft-purple { background: rgba(108, 43, 217, 0.1); color: var(--tm-primary); }
.badge-soft-green { background: rgba(43, 182, 115, 0.12); color: #1f9d6a; }
.badge-soft-orange { background: rgba(255, 183, 3, 0.15); color: #b8860b; }
.badge-soft-gray { background: #eee; color: #666; }
.badge-soft-blue { background: rgba(58, 169, 255, 0.12); color: #2a8fd4; }
