/* D&R Academy - Official Styling Sheet */
:root {
  --primary: #0e2447;
  --primary-dark: #07152b;
  --primary-light: #1b3a6e;
  --accent: #c98a2c;
  --accent-hover: #b0751f;
  --accent-soft: rgba(201, 138, 44, 0.12);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #15803d;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(14,36,71,0.08);
  --shadow-lg: 0 10px 28px rgba(14,36,71,0.12);
  --container-max: 1200px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 10px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-main); }
a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Disclaimer Banner */
.disclaimer-top-bar {
  background-color: #0b1c36;
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 6px 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.disclaimer-top-bar a {
  color: #f1f5f9;
  text-decoration: underline;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  border: 1px solid rgba(201,138,44,0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}
.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}
.nav-cta {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Academic Centered Hero */
.academic-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.academic-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.academic-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(201,138,44,0.3);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}
.academic-hero h1 {
  font-size: 2.85rem;
  margin-bottom: 1.25rem;
}
.academic-hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Cohort Ticker Bar */
.cohort-ticker-bar {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent);
}
.ticker-col {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 1rem;
}
.ticker-col:first-child {
  border-left: none;
  padding-left: 0;
}
.ticker-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.ticker-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: 2.2rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Academic Track Comparison Matrix */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.course-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.course-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.course-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}
.course-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.course-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.course-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.course-specs-table {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.spec-label {
  color: var(--text-muted);
}
.spec-val {
  font-weight: 600;
  color: var(--primary);
}

/* Syllabus modules listing */
.syllabus-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}
.syllabus-item {
  border-bottom: 1px solid var(--border);
}
.syllabus-item:last-child {
  border-bottom: none;
}
.syllabus-btn {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.syllabus-btn:hover {
  background-color: #f8fafc;
}
.syllabus-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-main);
  font-size: 0.95rem;
  display: block;
}

/* Feature grid 3-column */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Page Banner */
.page-header-academic {
  background: #0e2447;
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  border-bottom: 3px solid var(--accent);
}
.page-header-academic h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}
.page-header-academic p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 720px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: #e2e8f0;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--accent);
  outline: none;
}
.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Schedule Table */
.schedule-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.schedule-table th, .schedule-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--primary);
}
.schedule-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background-color: #07152b;
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  border-top: 3px solid var(--accent);
  margin-top: auto;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}
.trademark-notice {
  background: rgba(0,0,0,0.25);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

/* Split Grid Layouts */
.grid-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.grid-split-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-split-2, .grid-split-2-1 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cohort-ticker-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .ticker-col {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-left: 0;
    padding-top: 0.75rem;
  }
  .ticker-col:first-child {
    border-top: none;
    padding-top: 0;
  }
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  h1, .academic-hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h2 {
    font-size: 1.35rem;
  }
  .academic-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .academic-hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    line-height: 1.3;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.65rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .cohort-ticker-bar {
    padding: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
