/* ============================================================
   Müzik Okulu Takip Sistemi — Tasarım Sistemi v3
   ============================================================ */

@import url('_variables.css');

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  font-size: var(--fs-base);
}

@media (min-width: 768px) {
  html {
    font-size: var(--fs-md);
  }
}

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-ink-2);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ff-display);
  color: var(--c-ink);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
}

/* ---------- Animations ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(var(--sp-5));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--c-primary-rgb), 0.3); }
  50% { box-shadow: 0 0 40px rgba(var(--c-primary-rgb), 0.5); }
}

.animate-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.animate-in-delay-1 { animation-delay: 100ms; }
.animate-in-delay-2 { animation-delay: 200ms; }
.animate-in-delay-3 { animation-delay: 300ms; }
.animate-in-delay-4 { animation-delay: 400ms; }

/* ---------- Navbar ---------- */

.navbar-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: box-shadow var(--duration-normal) var(--ease-default),
              background-color var(--duration-normal) var(--ease-default);
}

.navbar-header.navbar-scrolled {
  background-color: var(--c-ink);
}

.navbar-app {
  background-color: var(--c-ink);
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
  transition: background-color var(--duration-normal) var(--ease-default),
              padding var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.navbar-header.navbar-scrolled .navbar-app {
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
  box-shadow: 0 4px 20px -4px rgba(26, 23, 20, 0.5);
}

.navbar-app .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-tight);
  color: #fff;
  text-decoration: none;
}

.navbar-app .navbar-brand:hover {
  color: rgba(255, 255, 255, 0.9);
}

.brand-logo {
  flex-shrink: 0;
  stroke: var(--c-gold);
  transition: stroke var(--duration-fast) var(--ease-default);
}

.navbar-app .navbar-brand:hover .brand-logo {
  stroke: var(--c-primary-light);
}

.brand-text {
  white-space: nowrap;
}

.navbar-app .nav-link {
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.navbar-app .nav-link:hover,
.navbar-app .nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar-app .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

.navbar-app .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--c-gold), var(--c-primary-light));
}

.navbar-app .nav-link .bi {
  margin-right: var(--sp-1);
  font-size: 0.95em;
}

/* Hamburger animation */
.navbar-toggler {
  border: 0;
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-full);
  transition: transform var(--duration-normal) var(--ease-default),
              opacity var(--duration-fast) var(--ease-default);
  transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* User avatar */
.user-avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.navbar-app .dropdown-menu {
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-1);
  animation: fadeIn var(--duration-fast) var(--ease-default);
}

.navbar-app .dropdown-item {
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  transition: all var(--duration-fast) var(--ease-default);
}

.navbar-app .dropdown-item:hover {
  background-color: rgba(var(--c-primary-rgb), 0.08);
  color: var(--c-primary);
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.card-header {
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.card-footer {
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: var(--r-sm);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(var(--c-primary-rgb), 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 4px 12px -2px rgba(var(--c-primary-rgb), 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  --bs-btn-color: var(--c-primary);
  --bs-btn-border-color: var(--c-primary);
  --bs-btn-hover-bg: var(--c-primary);
  --bs-btn-hover-border-color: var(--c-primary);
  --bs-btn-active-bg: var(--c-primary-dark);
  --bs-btn-active-border-color: var(--c-primary-dark);
}

.btn-outline-secondary {
  --bs-btn-hover-bg: var(--c-ink-2);
  --bs-btn-hover-border-color: var(--c-ink-2);
  --bs-btn-active-bg: var(--c-ink);
  --bs-btn-active-border-color: var(--c-ink);
}

.btn-light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ---------- Tables ---------- */

.table {
  --bs-table-hover-bg: rgba(var(--c-primary-rgb), 0.04);
}

.table thead th {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
  background-color: var(--c-gray-100);
  border-bottom-width: 1px;
  white-space: nowrap;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}

.table tbody td {
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--c-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(var(--c-primary-rgb), 0.02);
}

.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(var(--c-primary-rgb), 0.04);
}

.list-group .list-group-item:nth-child(odd) {
  background-color: rgba(var(--c-primary-rgb), 0.02);
}

.list-group .list-group-item:hover {
  background-color: rgba(var(--c-primary-rgb), 0.04);
}

/* ---------- Scroll boxes ---------- */

.scroll-box {
  max-height: 400px;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray-300) transparent;
}

.scroll-box::-webkit-scrollbar {
  width: 6px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: var(--c-gray-300);
  border-radius: var(--r-full);
}

/* ---------- Badges ---------- */

.badge {
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}

/* ---------- Forms ---------- */

.form-label {
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}

.form-control,
.form-select {
  border-radius: var(--r-sm);
  border-color: var(--c-border-strong);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--c-primary-rgb), 0.12);
}

.form-check-input:checked {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

/* ---------- Alerts ---------- */

.alert {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

/* ---------- Page header ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-6);
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-accent) 55%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.page-header h1 {
  font-family: var(--ff-display);
  color: #fff;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: var(--fs-sm);
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumb-item a:hover {
  color: var(--c-primary);
}

.breadcrumb-item.active {
  color: var(--c-heading);
  font-weight: var(--fw-medium);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--c-muted);
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.75);
}

.page-header .breadcrumb-item a:hover {
  color: #fff;
}

/* ---------- About story ---------- */

.about-story {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-accent) 55%, var(--c-primary) 100%);
  color: #fff;
}

.about-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  background: rgba(197, 151, 62, 0.15);
  border: 1px solid rgba(197, 151, 62, 0.3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.about-story-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  color: #fff;
}

.about-story-text {
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.about-visual-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 151, 62, 0.3), transparent 70%);
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.about-visual-svg {
  width: 100%;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

/* ---------- Mission / Vision ---------- */

.mission-card {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  height: 100%;
  transition: box-shadow var(--duration-normal) var(--ease-default);
}

.mission-card:hover {
  box-shadow: var(--shadow-md);
}

.mission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}

.mission-icon-primary {
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.15), rgba(var(--c-primary-rgb), 0.08));
  color: var(--c-primary);
}

.mission-icon-gold {
  background: linear-gradient(135deg, rgba(197, 151, 62, 0.15), rgba(197, 151, 62, 0.08));
  color: var(--c-gold);
}

.mission-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  margin-bottom: var(--sp-3);
}

.mission-text {
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
}

/* ---------- Values ---------- */

.value-card {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  text-align: center;
  height: 100%;
  transition: box-shadow var(--duration-normal) var(--ease-default);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}

.value-icon-primary {
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.15), rgba(var(--c-primary-rgb), 0.08));
  color: var(--c-primary);
}

.value-icon-accent {
  background: linear-gradient(135deg, rgba(var(--c-accent-rgb), 0.15), rgba(var(--c-accent-rgb), 0.08));
  color: var(--c-accent);
}

.value-icon-gold {
  background: linear-gradient(135deg, rgba(197, 151, 62, 0.15), rgba(197, 151, 62, 0.08));
  color: var(--c-gold);
}

.value-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  margin-bottom: var(--sp-2);
}

.value-text {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
}

/* ---------- Team ---------- */

.team-card {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  text-align: center;
  height: 100%;
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 0 auto var(--sp-3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.team-name {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  margin-bottom: var(--sp-1);
}

.team-courses {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}

.team-bio {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
}

/* ---------- Stat cards ---------- */

.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background-color: var(--c-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-lg);
  font-size: 1.35rem;
}

.stat-card .stat-value {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}

.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* ---------- Feature cards (portal) ---------- */

.feature-card {
  border-radius: var(--r-lg);
  background: var(--c-surface);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px -8px rgba(26, 23, 20, 0.12);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-md);
  transition: transform var(--duration-normal) var(--ease-default);
}

.feature-card:hover .feature-icon {
  transform: scale(1.12);
}

/* Brand palette icon boxes — amber / terracotta / navy (rotating) */

.palette-amber {
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  color: #fff;
}

.palette-terracotta {
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #fff;
}

.palette-navy {
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
}

.palette-amber.feature-icon {
  box-shadow: 0 8px 20px -10px rgba(197, 151, 62, 0.6);
}

.palette-terracotta.feature-icon {
  box-shadow: 0 8px 20px -10px rgba(var(--c-primary-rgb), 0.6);
}

.palette-navy.feature-icon {
  box-shadow: 0 8px 20px -10px rgba(var(--c-accent-rgb), 0.6);
}

.feature-icon-primary {
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.15), rgba(var(--c-primary-rgb), 0.08));
  color: var(--c-primary);
}

.feature-icon-accent {
  background: linear-gradient(135deg, rgba(var(--c-accent-rgb), 0.15), rgba(var(--c-accent-rgb), 0.08));
  color: var(--c-accent);
}

.feature-icon-gold {
  background: linear-gradient(135deg, rgba(197, 151, 62, 0.15), rgba(197, 151, 62, 0.08));
  color: var(--c-gold);
}

.feature-title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  color: var(--c-heading);
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
}

/* ---------- Hero (portal) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-accent) 55%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
  padding: var(--sp-8) var(--sp-6);
  min-height: 420px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -40%;
  right: -15%;
  background: radial-gradient(circle, rgba(var(--c-primary-rgb), 0.35), transparent 70%);
  animation: float 7s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  bottom: -30%;
  left: -10%;
  background: radial-gradient(circle, rgba(var(--c-accent-rgb), 0.3), transparent 70%);
  animation: float 9s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 30%;
  background: radial-gradient(circle, rgba(197, 151, 62, 0.25), transparent 70%);
  animation: float 11s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  background: rgba(197, 151, 62, 0.15);
  border: 1px solid rgba(197, 151, 62, 0.3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  color: #fff;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 28rem;
  margin-bottom: var(--sp-6);
  line-height: var(--lh-relaxed);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
  color: var(--c-ink);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px -2px rgba(197, 151, 62, 0.45);
  transition: all var(--duration-normal) var(--ease-default);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(197, 151, 62, 0.55);
  color: var(--c-ink);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: var(--fw-medium);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
  transition: all var(--duration-normal) var(--ease-default);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Hero illustration */

.hero-illustration {
  width: 100%;
  max-width: 380px;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.hero-note {
  animation: float 5s ease-in-out infinite;
}

.hero-note-1 { animation-delay: 0s; }
.hero-note-2 { animation-delay: 1.5s; }
.hero-note-3 { animation-delay: 3s; }

/* Scroll hint */

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll-hint .bi {
  font-size: 1.1rem;
}

/* Section wave divider */

.section-wave {
  margin-top: -1px;
  margin-bottom: var(--sp-6);
  line-height: 0;
}

.section-wave svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* ---------- Stats band ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 0 var(--sp-4);
  border-left: 1px solid var(--c-border);
}

.stats-item:first-child {
  border-left: none;
}

.stats-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stats-number {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  line-height: 1;
}

.stats-suffix {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
}

.stats-label {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  font-weight: var(--fw-medium);
}

.stats-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  transition: transform var(--duration-normal) var(--ease-default);
}

.stats-item:hover .stats-icon {
  transform: scale(1.1);
}

@media (max-width: 575.98px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4) 0;
    padding: var(--sp-5) var(--sp-3);
  }

  .stats-item {
    border-left: none;
    border-top: 1px solid var(--c-border);
    padding: var(--sp-4) 0 0;
  }

  .stats-item:nth-child(-n+2) {
    border-top: none;
  }

  .stats-item:nth-child(odd) {
    border-left: none;
  }
}

/* ---------- Course card (portal) ---------- */

.course-card {
  border: none;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -8px rgba(26, 23, 20, 0.18);
}

.course-card-banner {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.course-card:hover .course-card-banner-img {
  transform: scale(1.05);
}

.course-card-banner-icon {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform var(--duration-normal) var(--ease-default);
}

.course-card:hover .course-card-banner-icon {
  transform: scale(1.1) rotate(-3deg);
}

.course-card-banner-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.course-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  color: var(--c-heading);
}

.course-card-desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
}

.course-card-link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  transition: color var(--duration-fast) var(--ease-default),
              gap var(--duration-fast) var(--ease-default);
}

.course-card:hover .course-card-link {
  color: var(--c-primary-light);
  gap: var(--sp-2);
}

/* ---------- Footer ---------- */

.footer {
  flex-shrink: 0;
  width: 100%;
  background-color: var(--c-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-8) 0 var(--sp-5);
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: #fff;
  margin-bottom: var(--sp-3);
}

.footer-brand svg {
  stroke: var(--c-gold);
}

.footer-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--sp-3);
}

.footer-social {
  display: flex;
  gap: var(--sp-2);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-default);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--sp-2);
}

.footer-links a {
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width var(--duration-fast) var(--ease-default);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-relaxed);
}

.footer-contact i {
  margin-top: 3px;
  color: var(--c-gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-default);
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-sub {
  opacity: 0.5;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

/* ---------- Auth (login) ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-accent) 55%, var(--c-primary) 100%);
}

.auth-page .auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--c-surface);
  border: none;
  border-radius: var(--r-2xl);
  box-shadow: 0 24px 60px -16px rgba(26, 23, 20, 0.7);
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-primary), var(--c-gold));
  color: #fff;
  margin-bottom: var(--sp-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -6px rgba(var(--c-primary-rgb), 0.6);
}

.auth-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  margin-bottom: var(--sp-1);
}

.auth-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: 0;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.auth-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-alert-success {
  background: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

.auth-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-heading);
  margin-bottom: var(--sp-1);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 2.75rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-heading);
  font-size: var(--fs-sm);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.auth-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.12);
}

.auth-input:focus + .auth-input-icon,
.auth-input:focus ~ .auth-input-icon {
  color: var(--c-primary);
}

.auth-input::placeholder {
  color: var(--c-muted);
  opacity: 0.6;
}

.auth-error {
  display: block;
  font-size: var(--fs-xs);
  color: #dc3545;
  margin-top: var(--sp-1);
  line-height: var(--lh-relaxed);
}

.auth-check-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.auth-forgot-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-forgot-link:hover {
  color: var(--c-primary-light);
}

.auth-submit {
  width: 100%;
  padding: var(--sp-3);
  border: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(var(--c-primary-rgb), 0.4);
  transition: all var(--duration-normal) var(--ease-default);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(var(--c-primary-rgb), 0.5);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-back-link {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-back-link:hover {
  color: var(--c-heading);
}

/* ---------- Section headers ---------- */

.section-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  position: relative;
  padding-bottom: var(--sp-3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
}

/* ---------- Info card (about, contact) ---------- */

.info-card {
  border: none;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.info-card .info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-lg);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Misc ---------- */

.text-muted {
  color: var(--c-muted) !important;
}

.nav-tabs .nav-link {
  font-weight: var(--fw-medium);
}

.nav-tabs .nav-link.active {
  font-weight: var(--fw-semibold);
}

.list-group-item {
  border-color: var(--c-border);
}

.breadcrumb {
  font-size: var(--fs-sm);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------- Focus-visible (keyboard accessibility) ---------- */

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.35);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.35);
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---------- Status pages ---------- */

.status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  max-width: 28rem;
  width: 100%;
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

.status-code {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--c-primary), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-3);
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.12), rgba(197, 151, 62, 0.12));
  color: var(--c-primary);
  font-size: 1.75rem;
  margin: 0 auto var(--sp-4);
}

.status-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-heading);
  margin-bottom: var(--sp-3);
}

.status-desc {
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.status-code block {
  font-family: monospace;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  background: var(--c-bg);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  display: inline-block;
  margin-top: var(--sp-3);
}
