/* css/style.css - DSP Dental Training Center */
/* Modern Clinical Architecture & Premium Styling */

:root {
  /* Color Palette - Clinical Prestige 60-30-10 System */
  --primary: #042940;        /* Deep Academy Navy */
  --primary-rgb: 4, 41, 64;
  --primary-hover: #073a5a;
  --primary-dark: #021a29;
  
  --secondary: #007791;      /* Deep Sea Teal */
  --secondary-rgb: 0, 119, 145;
  --secondary-light: #0891b2;
  
  --accent: #00afb9;         /* Vibrant Precision Aquamarine */
  --accent-soft: #f0fdfa;
  --accent-light: #e0f2fe;
  
  --gold: var(--c-accent);           /* Academy Warm Gold */
  --gold-soft: #fef9ed;
  
  --bg-main: var(--c-bg);        /* Clinical off-white */
  --bg-light: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  
  --text-dark: var(--c-text);      /* Slate 900 */
  --text-body: #334155;      /* Slate 700 */
  --text-muted: var(--c-text-muted);     /* Slate 500 */
  --text-light: #94a3b8;     /* Slate 400 */
  --white: #ffffff;
  
  --border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(0, 119, 145, 0.4);
  
  /* Typography */
  --font-display: var(--font-sans);
  --font-main: var(--font-sans);
  --font-mono: var(--font-mono-stack);
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 32px -8px rgba(4, 41, 64, 0.12), 0 8px 16px -4px rgba(4, 41, 64, 0.06);
  --shadow-glow: 0 0 35px -5px rgba(0, 119, 145, 0.25);
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.9375rem; font-weight: 600; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* The public header is two rows (the announcement strip and the main navigation) that line up with the HERO's container. The hero panel
   (.hero-wrapper) is at most 1280px wide and centred, so on a wide screen it is inset from the window: the header rows run between exactly those two
   edges, i.e. the brand starts where the panel starts and the Enroll button ends where it ends. Up to 1280px the panel is the whole window and the hero
   keeps its text 5% in from each side (.hero-wrapper padding), so the header does the same. One token, used by both rows. */
:root {
  --hdr-max: 1280px;                                            /* the hero panel's max-width */
  --hdr-pad: 5%;                                                /* up to 1280px: the hero's own side padding */
}
@media (min-width: 1281px) {
  :root { --hdr-pad: max(16px, calc((100% - var(--hdr-max)) / 2)); }   /* wider: the panel's left/right edge (16px at least, so the brand never touches the window) */
}

/* Top Announcement Strip: two groups on opposite sides, never wrapping on a desktop. */
.top-notice-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-inner {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 8px var(--hdr-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: nowrap;
}

.top-notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.top-notice-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  white-space: nowrap;
}

.top-notice-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-notice-links a:hover {
  color: var(--accent);
}

/* narrower laptops: smaller and closer together, still one line */
@media (max-width: 1180px) {
  .top-notice-bar { font-size: 0.75rem; }
  .top-notice-links { gap: 16px; }
  .top-notice-links a { font-size: 0.73rem; gap: 5px; }
  .top-notice-inner { gap: 8px 16px; }
  nav { gap: 16px; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.88rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding-left: 1rem; padding-right: 1rem; }
}

/* tablets: not enough width for one line, so the title takes the first line (left) and the links the second (right) */
@media (max-width: 1023px) {
  .top-notice-inner { flex-wrap: wrap; row-gap: 4px; }
  .top-notice-links { margin-left: auto; gap: 14px; }
}

/* Header & Strict 3-Zone Top Bar */
header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem var(--hdr-pad);
  max-width: none;
  margin: 0;
}

/* Zone 1: Brand Wordmark */
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(4, 41, 64, 0.2);
  font-size: 1.1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

/* Zone 2: Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Zone 3: Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--bg-main);
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #064063 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(4, 41, 64, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #073a5a 0%, var(--secondary) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 145, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(4, 41, 64, 0.2);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 41, 64, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
}

/* Editorial Hero Section */
.hero-wrapper {
  background: linear-gradient(180deg, #031c2d 0%, #042940 45%, #053b5c 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 80px 5% 100px;
}

.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 175, 185, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(8, 145, 178, 0.22) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-kicker .kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-content h1 {
  color: var(--white);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #bae6fd;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-content p.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #00afb9 0%, #007791 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 175, 185, 0.4);
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #042940 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 175, 185, 0.5);
}

.hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Hero Trust Strip */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin-left: -8px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--secondary);
}

.avatar-circle:first-child {
  margin-left: 0;
}

.trust-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.trust-text strong {
  color: var(--white);
  display: block;
}

/* Hero Clinical Interactive Showcase Card */
.hero-visual {
  position: relative;
}

.clinical-preview-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.station-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.station-indicator .status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.station-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.clinical-diagram-art {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(4, 41, 64, 0.6) 0%, rgba(0, 119, 145, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.diagram-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.clinical-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.spec-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.floating-pill-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.floating-pill-card.card-bottom-left {
  bottom: -25px;
  left: -20px;
}

.floating-pill-card.card-top-right {
  top: -20px;
  right: -15px;
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
}

.floating-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.2;
}

.floating-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Statistics Strip - Zero Pill Discipline, Tabular Figures */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  background: var(--bg-surface);
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: left;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-item:hover .stat-number {
  color: var(--secondary);
}

.stat-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Main Sections */
section {
  padding: 90px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Asymmetric Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

/* Bento & Standard Cards */
.card, .bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover, .bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 119, 145, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(4, 41, 64, 0.06), rgba(0, 119, 145, 0.12));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-body {
  flex-grow: 1;
}

.card-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

/* Feature List Inside Cards */
.feature-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.45;
}

.feature-list li i {
  color: var(--secondary);
  margin-top: 3px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Clinical Modules Visual Card (RESTO, RPD, FPD, CD) */
.module-art-banner {
  width: calc(100% + 64px);
  margin: -32px -32px 24px -32px;
  height: 160px;
  background: linear-gradient(135deg, #032030 0%, #005c53 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-art-banner svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

.card:hover .module-art-banner svg {
  transform: scale(1.05);
  opacity: 1;
}

.module-number-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(3, 32, 48, 0.7);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-meta-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Interactive Tabs Component */
.interactive-tabs-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-top: 30px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-details h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.tab-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tab-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-meta-item i {
  color: var(--secondary);
}

.tab-visual-box {
  background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Interactive Batch & Installment Calculator */
.calc-wrapper {
  background: linear-gradient(135deg, #042940 0%, #073a5a 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calc-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.calc-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.calc-control-group {
  margin-bottom: 20px;
}

.calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #bae6fd;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(0, 175, 185, 0.3);
}

.calc-select option {
  background: var(--primary);
  color: var(--white);
}

.calc-summary-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.calc-price-display {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.calc-breakdown-row:last-child {
  border-bottom: none;
}

/* Testimonials Section */
.testimonial-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
  position: relative;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, #032030 0%, #042940 50%, #005c53 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 5%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 60px auto;
  max-width: 1280px;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(0, 175, 185, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Facilities Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gallery-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #042940 0%, #0891b2 100%);
  color: var(--white);
  padding: 20px;
  text-align: center;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-visual {
  transform: scale(1.04);
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--white);
}

.gallery-item-badge {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 0.94rem;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--bg-main);
}

/* Forms */
.form-container {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 119, 145, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.sidebar {
  background: var(--bg-surface);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}

.sidebar-user {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-user img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 3px solid var(--bg-light);
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.sidebar-nav a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dashboard-card {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Page Header Banner */
.page-header {
  background: linear-gradient(135deg, #032030 0%, #042940 50%, #005c53 100%);
  padding: 80px 5% 70px;
  text-align: center;
  color: var(--white);
  position: relative;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

/* Global Footer */
footer {
  background-color: #021a29;
  color: var(--white);
  padding: 80px 5% 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 50px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-trust-bar {
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 1;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .calc-grid {
    grid-template-columns: minmax(0, 1fr); /* plain 1fr lets a long <select> option stretch the track past the screen */
  }
  
  .tab-pane.active {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Header, tablets and phones (up to 1100px): the full navigation does not fit, so the links become the hamburger panel. The panel hangs from the bottom
   edge of the sticky header (top: 100%), so it is right below it whatever the header's height is. */
@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    background: var(--bg-surface);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 8px 0;
  }
}

/* Announcement strip on phones: compact. The title on one line, then the enrolment and phone links; the station is left for the Facilities page. */
@media (max-width: 768px) {
  .top-notice-bar { font-size: 0.72rem; }
  .top-notice-inner { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 3px; padding: 6px var(--hdr-pad); }
  .top-notice-title { max-width: 100%; }
  .top-notice-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .top-notice-links { margin-left: 0; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
  .top-notice-links a { font-size: 0.72rem; min-height: 0; }
  .top-notice-extra { display: none !important; }
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 60px 5% 70px;
  }

  .stats-container {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-wrapper {
    padding: 28px 20px;
  }
  
  .calc-summary-card {
    padding: 20px;
  }
  
  .calc-price-display {
    font-size: 2.2rem;
  }
}

/* FullCalendar toolbar: wrap instead of overflowing on phones */
@media (max-width: 600px) {
  .fc .fc-toolbar { flex-wrap: wrap; gap: 8px; }
  .fc .fc-toolbar-title { font-size: 1.1rem; }
}

/* Public nav on large phones (up to 600px): the brand's subtitle steps aside and the buttons are a little smaller, so brand, Login, Enroll and the menu button fit one row */
@media (max-width: 600px) {
  .logo-sub { display: none; }
  .logo { gap: 8px; }
  .logo-title { font-size: 1.05rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.85rem; }
}

/* Public nav on small phones: keep brand + one action + menu button on one row */
@media (max-width: 480px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.85rem; }
  #nav-signup { display: none !important; }
}
@media (max-width: 480px) {
  .logo-sub { display: none; }
  .logo { min-width: 0; gap: 8px; }
  .logo-text { min-width: 0; }
  .logo-title { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { flex-shrink: 0; }
}
@media (max-width: 340px) {
  .nav-actions .btn { padding: 8px 10px; }
}

.calc-select, .calc-grid select, .calc-grid input { max-width: 100%; min-width: 0; }

/* Touch comfort (phones, tablets and any touchscreen): every tap target is at least 44px tall; mouse layouts on large screens keep their compact sizes. */
@media (pointer: coarse), (max-width: 768px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .logo, .nav-links a, .nav-actions a, .menu-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-toggle { min-width: 44px; justify-content: center; }
}
