/* ==========================================================================
   Department of Marine Engineering and Nautical Science - STCW Portal
   Modern Responsive Maritime Design System (Optimized Header & Mobile UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Modern Maritime Navy & Gold */
  --navy-darkest: #040d1a;
  --navy-deep: #06152d;
  --navy-primary: #0a2246;
  --navy-surface: #0f2f5e;
  --navy-card: #13386e;
  --navy-border: rgba(255, 255, 255, 0.12);

  --gold-primary: #f7941d;
  --gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f7941d 0%, #f59e0b 50%, #d97706 100%);
  --gold-glow: rgba(247, 148, 29, 0.35);

  --ocean-blue: #0284c7;
  --ocean-light: #38bdf8;
  --emerald-success: #10b981;
  --amber-warning: #f59e0b;
  --rose-danger: #f43f5e;

  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --text-body: #334155;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(6, 21, 45, 0.08), 0 2px 6px -1px rgba(6, 21, 45, 0.04);
  --shadow-lg: 0 10px 25px -4px rgba(6, 21, 45, 0.12), 0 4px 10px -2px rgba(6, 21, 45, 0.06);
  --shadow-xl: 0 18px 35px -5px rgba(6, 21, 45, 0.18);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-darkest);
  letter-spacing: -0.015em;
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   1. Compact Dark Navy Header (High Contrast for White CV Raman Logo)
   ========================================================================== */
.compact-main-header {
  background: linear-gradient(135deg, #051329 0%, #0a2042 50%, #06152d 100%);
  color: #ffffff;
  border-bottom: 3.5px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
}

.header-top-strip {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 0;
  font-size: 0.78rem;
}

.notice-pill {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}

/* Brand & Logo Container (Ensures White Logo has crisp dark contrast) */
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.brand-logo-wrap:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-primary);
}

.brand-logo-img {
  height: 52px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.brand-dept-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 2px 0 0 0;
}

.brand-univ-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
}

/* Header Quick Actions & Contact Pill */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dgs-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-quick-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.contact-quick-btn:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   2. Compact Metrics Strip & Live Matrix Indicator
   ========================================================================== */
.compact-metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.stats-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  align-items: center;
}

.stat-item-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.stat-item-compact:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.stat-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.stat-icon-circle.gold {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-circle.green {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon-circle.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.stat-number-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-darkest);
  line-height: 1.1;
}

.stat-label-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   3. Search & Interactive Filter Controls Bar
   ========================================================================== */
.controls-compact-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-primary);
  opacity: 0.65;
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 2;
}

.search-input-group input {
  width: 100%;
  height: 42px;
  padding: 8px 14px 8px 38px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
  background: #f8fafc;
  color: var(--navy-darkest);
}

.search-input-group input:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.search-input-group input:focus {
  border-color: var(--navy-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 34, 70, 0.12);
}

/* Program Select Filter Group */
.select-filter-group,
.select-capsule-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.select-filter-group .select-lead-icon,
.select-capsule-wrapper .select-lead-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-primary);
  opacity: 0.85;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.form-select-capsule,
.modern-program-select {
  width: 100%;
  height: 42px;
  padding: 8px 38px 8px 38px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-darkest);
  background-color: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%230a2246'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-select-capsule:hover,
.modern-program-select:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 34, 70, 0.06);
}

.form-select-capsule:focus,
.modern-program-select:focus {
  border-color: var(--navy-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 34, 70, 0.12);
}

.form-select-capsule option,
.modern-program-select option {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-darkest);
  background: #ffffff;
  padding: 10px 14px;
}

.view-toggle-btn-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 2px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.view-toggle-btn.active {
  background: #ffffff;
  color: var(--navy-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   4. Course-Wise Graphical Seat Fill-Up Matrix Section (Full Width Card)
   ========================================================================== */
.matrix-section-compact.full-width-matrix-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(10, 34, 70, 0.05);
  width: 100%;
}

.matrix-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.matrix-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--emerald-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chart-box-bar-full {
  width: 100%;
  height: 270px;
  position: relative;
}

@media (max-width: 768px) {
  .matrix-section-compact.full-width-matrix-card {
    padding: 14px 12px;
  }
  .chart-box-bar-full {
    height: 220px;
  }
}

/* ==========================================================================
   5. Course Cards Grid View (Responsive & Touch-Friendly)
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.course-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-primary);
}

.course-card[data-category="basic"]::before {
  background: #0284c7;
}

.course-card[data-category="advanced"]::before {
  background: #f59e0b;
}

.course-card[data-category="high_voltage"]::before {
  background: #8b5cf6;
}

.course-card[data-category="refresher"]::before {
  background: #10b981;
}

.course-card[data-category="security"]::before {
  background: #f43f5e;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.course-code-badge {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-primary);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.cat-basic {
  background: #e0f2fe;
  color: #0369a1;
}

.cat-advanced {
  background: #fef3c7;
  color: #b45309;
}

.cat-high_voltage {
  background: #f3e8ff;
  color: #7e22ce;
}

.cat-refresher {
  background: #dcfce7;
  color: #15803d;
}

.cat-security {
  background: #ffe4e6;
  color: #be123c;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 44px;
}

.course-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-body);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
}

.info-chip i {
  color: #0284c7;
}

.info-chip.date-chip i {
  color: #f7941d;
}

.fee-display-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.fee-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.fee-amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #047857;
}

/* Card Seat Progress Indicator */
.card-seat-meter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.meter-seats-text {
  color: var(--navy-primary);
}

.meter-percent-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-low {
  background: #dcfce7;
  color: #15803d;
}

.badge-mid {
  background: #fef3c7;
  color: #b45309;
}

.badge-high {
  background: #fee2e2;
  color: #b91c1c;
}

.meter-progress-track {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease-in-out;
}

.fill-low {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.fill-mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fill-high {
  background: linear-gradient(90deg, #ef4444, #f43f5e);
}

/* Card Action Button */
.btn-card-details {
  width: 100%;
  background: linear-gradient(135deg, var(--navy-primary) 0%, #112d59 100%);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  min-height: 42px;
  /* touch friendly */
}

.btn-card-details:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.35);
}

/* ==========================================================================
   6. Matrix Tabular View (Responsive Table with Horizontal Scroll)
   ========================================================================== */
.matrix-table-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.custom-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 760px;
  /* triggers table-responsive scroll on mobile */
}

.custom-matrix-table thead th {
  background: #081d3d;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border: none;
  vertical-align: middle;
}

.custom-matrix-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--transition-fast);
}

.custom-matrix-table tbody tr:hover {
  background: #f8fafc;
}

.custom-matrix-table td {
  padding: 12px 14px;
  font-size: 0.85rem;
  vertical-align: middle;
}

.table-course-title {
  font-weight: 700;
  color: var(--navy-darkest);
  display: block;
}

.table-course-code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-seat-graph {
  min-width: 150px;
}

.table-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-progress-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.btn-table-action {
  background: #e0f2fe;
  color: #0369a1;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-table-action:hover {
  background: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   7. Modal & Mandatory Instructions (Mobile Responsive)
   ========================================================================== */
.modal-marine .modal-dialog {
  margin: 12px auto;
  max-width: 900px;
}

.modal-marine .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal-marine .modal-header {
  background: linear-gradient(135deg, #051329 0%, #0a2042 100%);
  color: #ffffff;
  padding: 16px 20px;
  border-bottom: 3px solid var(--gold-primary);
}

.modal-course-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-course-badge {
  background: var(--gold-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.modal-dgs-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.modal-marine .modal-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.modal-marine .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-marine .modal-body {
  padding: 18px 20px;
  background: #f8fafc;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .modal-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-fact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.modal-fact-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

.modal-fact-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

.modal-fact-value.fee {
  color: #047857;
}

.modal-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-overview-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-body);
}

.course-overview-content p {
  margin-bottom: 0.75rem;
}

.course-overview-content p:last-child {
  margin-bottom: 0;
}

.course-overview-content ul,
.course-overview-content ol {
  padding-left: 20px;
  margin-bottom: 0.75rem;
}

.course-overview-content li {
  margin-bottom: 4px;
}

.course-overview-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.course-overview-content table td,
.course-overview-content table th {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.course-overview-content h3,
.course-overview-content h4,
.course-overview-content h5,
.course-overview-content h6 {
  color: var(--navy-darkest);
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 6px;
}

.syllabus-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.syllabus-list li {
  margin-bottom: 6px;
  color: var(--text-body);
  font-size: 0.86rem;
}

/* Mandatory DG Shipping Box */
.dgs-mandatory-box {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.dgs-mandatory-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #fef3c7;
}

.dgs-instruction-item {
  margin-bottom: 10px;
}

.dgs-instruction-item h6 {
  color: #78350f;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.dgs-instruction-item p,
.dgs-instruction-item ul {
  color: #451a03;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.dgs-instruction-item ul {
  padding-left: 16px;
}

.dgs-warning-note {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Mandatory Undertaking Agreement Checkbox */
.undertaking-agree-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-check-input.marine-check {
  width: 20px;
  height: 20px;
  border: 2px solid #16a34a;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-input.marine-check:checked {
  background-color: #16a34a;
  border-color: #16a34a;
}

.undertaking-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #14532d;
  cursor: pointer;
}

/* Modal Footer CTA */
.modal-marine .modal-footer {
  background: #ffffff;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn-proceed-register {
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px var(--gold-glow);
  transition: all var(--transition-fast);
  min-height: 42px;
}

.btn-proceed-register:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 148, 29, 0.45);
  color: #ffffff;
}

.btn-proceed-register:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

/* ==========================================================================
   8. Regulatory DGS Footer Note (Responsive & Natural Flow)
   ========================================================================== */
.footer-note-sticky {
  background: #fff3cd;
  border-top: 2px solid #f0ad4e;
  padding: 12px 16px;
  text-align: center;
  color: #856404;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 30px;
  position: relative;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-note-sticky strong {
  color: #b02a37;
  font-size: 0.88rem;
}

/* ==========================================================================
   9. Mobile Specific Tweaks (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .header-top-strip {
    display: none !important;
  }

  .header-content-row {
    padding: 12px 0 10px 0;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .brand-group {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    text-align: center;
  }

  .brand-text-col {
    display: none !important;
  }

  .brand-logo-wrap {
    padding: 4px 12px;
    border-radius: var(--radius-md);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .brand-logo-img {
    height: 42px;
    max-width: 160px;
    width: auto;
  }

  .header-actions-group {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .contact-quick-btn {
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 6px;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .contact-quick-btn i {
    font-size: 0.8rem;
  }

  .compact-metrics-strip {
    padding: 8px 0;
    margin-bottom: 14px;
  }

  .stats-inline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-item-compact {
    padding: 6px 8px;
  }

  .stat-icon-circle {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .stat-number-val {
    font-size: 1rem;
  }

  .stat-label-text {
    font-size: 0.65rem;
  }

  .controls-compact-bar {
    padding: 8px 10px;
    margin-bottom: 14px;
  }

  .matrix-section-compact {
    padding: 12px;
    margin-bottom: 18px;
  }

  .matrix-title {
    font-size: 1rem;
  }

  .chart-box-bar-full {
    height: 180px;
  }

  .footer-note-sticky {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    font-size: 0.75rem;
    padding: 10px 12px;
    margin-top: 20px;
    line-height: 1.4;
    word-break: break-word;
  }

  .footer-note-sticky strong {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .header-content-row {
    padding: 10px 0 8px 0;
    gap: 8px;
  }

  .brand-logo-img {
    height: 38px;
    max-width: 140px;
  }

  .header-actions-group {
    gap: 6px;
  }

  .contact-quick-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 4px;
  }

  .contact-quick-btn span {
    font-size: 0.74rem;
  }
}