/* White to Blue — Course Pages Shared CSS */

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

:root {
  --navy: #1a2744;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --cream: #faf9f7;
  --warm-white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --text: #1f2937;
  --text-light: #6b7280;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
}

/* SITE HEADER */
.site-header {
  background: var(--navy);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--warm-white);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-logo span { color: var(--gold); }

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.header-nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.header-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.header-nav a.active {
  color: var(--navy);
  background: var(--gold);
  font-weight: 600;
}

/* HERO / MODULE HEADER */
.module-hero {
  width: 100%;
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.module-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.module-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 36px;
  background: linear-gradient(to top, rgba(26,39,68,0.98) 0%, rgba(26,39,68,0.7) 60%, transparent 100%);
}

.module-hero-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.module-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.module-hero h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.module-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.module-hero-meta span {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.module-hero-meta .highlight {
  color: var(--gold-light);
  font-weight: 600;
}

/* CONTENT AREA */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* QUICK STATS BAR */
.quick-stats {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* SECTION HEADINGS */
.content-wrap h2 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  line-height: 1.25;
}

.content-wrap h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 36px 0 14px;
}

/* PARAGRAPH AND LISTS */
.content-wrap p {
  margin-bottom: 22px;
  color: var(--text);
}

.content-wrap ul, .content-wrap ol {
  margin: 0 0 24px 28px;
}

.content-wrap li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* CALLOUT BOXES */
.callout {
  border-radius: 10px;
  padding: 22px 26px;
  margin: 32px 0;
}

.callout-blue {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
}

.callout-gold {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
}

.callout-green {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.callout-navy {
  background: #f0f4ff;
  border-left: 4px solid var(--navy);
}

.callout strong {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

/* SALARY TABLE */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 36px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.salary-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.salary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}

.salary-table tr:last-child td { border-bottom: none; }
.salary-table tr:nth-child(even) td { background: var(--gray-100); }

.salary-table .salary-high {
  font-weight: 700;
  color: #166534;
}

/* WHITE COLLAR CALLOUTS */
.white-collar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.wc-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 22px;
  border-top: 3px solid var(--blue);
}

.wc-card h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wc-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--gray-600);
  font-family: var(--sans);
}

/* DAY IN THE LIFE */
.day-section {
  background: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.day-section h2 {
  border-bottom-color: var(--navy);
  margin-top: 0;
}

.timeline {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.timeline li {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-left: 0;
}

.timeline-time {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  min-width: 75px;
  padding-top: 2px;
}

.timeline-event {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* ACTION STEPS */
.action-steps {
  counter-reset: steps;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.action-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  padding-left: 0;
}

.action-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--blue);
  color: white;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
  margin: 2px 0 0 18px;
  flex-shrink: 0;
}

.action-steps li > div {
  padding-right: 16px;
}

.action-steps li strong {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.action-steps li p {
  font-size: 15px;
  margin-bottom: 0;
  color: var(--gray-600);
  font-family: var(--sans);
}

/* MODULE NAVIGATION */
.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 60px 0 40px;
  padding: 24px 0;
  border-top: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid var(--gray-200);
  color: var(--navy);
  background: white;
}

.nav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

.nav-btn.nav-next {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.nav-btn.nav-next:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.nav-btn.nav-index {
  font-size: 13px;
  color: var(--text-light);
}

/* STORY QUOTE */
.story-block {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
  position: relative;
}

.story-block::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.story-block blockquote {
  font-size: 19px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  padding-left: 20px;
}

.story-block cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  font-style: normal;
  padding-left: 20px;
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-family: var(--sans);
  font-size: 14px;
  margin-top: 80px;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

/* COURSE INDEX SPECIFIC */
.course-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1e3d 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.course-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.course-hero h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.course-hero h1 span { color: var(--gold); }

.course-hero p {
  font-family: var(--sans);
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: normal;
}

.course-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.course-progress-pill {
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

/* MODULE LIST */
.module-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.module-grid-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
}

.module-card {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  align-items: flex-start;
}

.module-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.module-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: var(--navy);
  color: white;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
  flex-shrink: 0;
}

.module-card:hover .module-number {
  background: var(--blue);
}

.module-card-content { flex: 1; }

.module-card-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.module-card:hover .module-card-title { color: var(--blue); }

.module-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.module-card-meta span {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-light);
}

.module-card-meta .meta-salary {
  color: #166534;
  font-weight: 600;
}

.module-card-arrow {
  font-size: 20px;
  color: var(--gray-400);
  align-self: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.module-card:hover .module-card-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .module-hero img { height: 280px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .white-collar-grid { grid-template-columns: 1fr; }
  .day-section { padding: 20px; }
  .module-nav { flex-direction: column; }
  .nav-btn { width: 100%; justify-content: center; }
  .story-block { padding: 24px 20px; }
  .module-card { flex-direction: column; gap: 12px; }
}

/* === MOBILE RESPONSIVENESS IMPROVEMENTS === */

/* Tablet breakpoint (768px) */
@media (max-width: 768px) {
  .white-collar-grid { grid-template-columns: 1fr 1fr; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .module-card { flex-direction: row; }
  .day-section { padding: 22px 24px; }
  .content-wrap { padding: 0 20px 60px; }
}

/* Mobile (max 480px) - strict single column */
@media (max-width: 480px) {
  .white-collar-grid { grid-template-columns: 1fr; }
  .module-card { flex-direction: column; gap: 12px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-btn { min-height: 48px; font-size: 14px; }
}

/* All images responsive by default */
img { max-width: 100%; height: auto; }

/* === CONTENT IMAGE STYLES === */
.content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 36px 0 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.content-image-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 32px;
  font-style: italic;
  line-height: 1.5;
}

.content-image-wrap {
  margin: 36px 0;
}

.content-image-wrap .content-image {
  margin-bottom: 8px;
}

/* CTA Buttons - minimum 48px tap target */
.btn, .nav-btn, .nav__cta, .cta__btn {
  min-height: 48px;
}

/* Back to home link */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold-light);
  text-decoration: none;
  padding: 6px 0;
  margin-bottom: 8px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.back-to-home:hover { opacity: 1; }
.back-to-home::before { content: '\2190'; font-size: 16px; }
