/* 
  Steady Driving School - Main Stylesheet
  
  Color Scheme:
  Primary: #2C3E50 (navy)
  Secondary: #E74C3C (red)
  Accent: #F39C12 (orange)
  Background: #F8F9FA (light grey)
  Text: #333333 (dark grey)
*/

/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0F315B;
  --secondary: #E74C3C;
  --accent: #F39C12;
  --background: #F8F9FA;
  --text: #333333;
  --light: #ECF0F1;
  --success: #2ECC71;
  --warning: #F1C40F;
  --danger: #E74C3C;
  --info: #3498DB;
  --spacing: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* Keep Bootstrap tooltips consistent with app typography */
.tooltip,
.tooltip .tooltip-inner {
  font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1a2530;
  border-color: #1a2530;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #d35400;
  border-color: #d35400;
  color: white;
}

/* Text colors */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-light {
  background-color: var(--background) !important;
}

/* Navbar Styles */
.navbar {
  background-color: var(--primary);
  padding: calc(var(--spacing) / 2) var(--spacing);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: white !important;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: calc(var(--spacing) / 2) var(--spacing);
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: white !important;
}

.navbar-nav .nav-link.free-quiz-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: linear-gradient(135deg, var(--accent), #e67e22);
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.95rem;
  margin-top: 0.3rem;
  margin-left: 0.4rem;
  box-shadow: 0 6px 14px rgba(243, 156, 18, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.navbar-nav .nav-link.free-quiz-link:hover,
.navbar-nav .nav-link.free-quiz-link:focus {
  color: #ffffff !important;
  filter: brightness(1.1);
}

.navbar-nav .nav-link.free-quiz-link.active {
  color: #ffffff !important;
}

.navbar-nav .nav-link.free-quiz-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link.free-quiz-link {
    margin-left: 0;
    margin-top: 0.45rem;
  }
}

.navbar-nav .dropdown-menu {
  background-color: var(--primary);
  border: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--spacing);
  overflow: hidden;
}

.card-header {
  background-color: var(--primary);
  color: white;
  padding: var(--spacing);
  font-weight: 500;
}

.card-header.bg-secondary {
  background-color: var(--secondary) !important;
}

.card-header.bg-accent {
  background-color: var(--accent) !important;
}

.card-body {
  padding: var(--spacing);
}

.card-footer {
  background-color: rgba(0, 0, 0, 0.03);
  padding: var(--spacing);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  margin-bottom: var(--spacing);
  padding: calc(var(--spacing) * 0.75) var(--spacing);
}

/* Table Styles */
.table {
  margin-bottom: var(--spacing);
}

.table thead th {
  background-color: var(--primary);
  color: white;
  border-bottom: none;
  padding: calc(var(--spacing) * 0.75) var(--spacing);
  font-weight: 500;
}

/* Compact icon actions inside tables */
.table td .btn-group.btn-group-sm > .btn,
.table td > .btn.btn-sm {
  padding: 0.38rem 0.68rem;
  line-height: 1.1;
}

.table td .btn-group.btn-group-sm > .btn i,
.table td > .btn.btn-sm i {
  font-size: 0.95rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table td {
  padding: calc(var(--spacing) * 0.75) var(--spacing);
  vertical-align: middle;
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 0.75);
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-group {
  margin-bottom: var(--spacing);
}

.form-label {
  margin-bottom: calc(var(--spacing) * 0.25);
  font-weight: 500;
}

/* Footer Styles */
footer {
  background-color: var(--primary);
  color: white;
  padding: calc(var(--spacing) * 2) 0;
  margin-top: calc(var(--spacing) * 3);
}

footer h5 {
  color: white;
  margin-bottom: calc(var(--spacing) * 1.5);
  font-weight: 600;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: calc(var(--spacing) * 0.5);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--spacing) 0;
  margin-top: calc(var(--spacing) * 2);
}

/* Hero Section */
.hero {
  background-color: var(--primary);
  color: white;
  padding: calc(var(--spacing) * 4) 0;
  position: relative;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 1.5);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacing) * 2);
}

/* Dashboard Styles */
.dashboard-stat {
  text-align: center;
  padding: calc(var(--spacing) * 1.5);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--spacing);
}

.dashboard-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: calc(var(--spacing) * 0.5) 0;
}

.dashboard-stat .icon {
  font-size: 2.25rem;
  margin-bottom: calc(var(--spacing) * 0.5);
  color: var(--primary);
}

.dashboard-stat .label {
  color: var(--text);
  font-weight: 500;
}

.dashboard-stat.accent .number {
  color: var(--accent);
}


.dashboard-stat.secondary {
  background-color: rgba(15, 49, 91, 0.08);
}

.dashboard-stat.secondary .number {
  color: var(--primary);
}

.dashboard-stat.success .number {
  color: var(--success);
}

.dashboard-stat.success {
  background-color: rgba(46, 204, 113, 0.1);
}

.dashboard-stat.danger {
  background-color: rgba(231, 76, 60, 0.12);
}

.dashboard-stat.danger .number {
  color: var(--danger);
}

.dashboard-stat.warning {
  background-color: rgba(243, 156, 18, 0.12);
}

.dashboard-stat.warning .number {
  color: var(--warning);
}

/* Profile Styles */
.profile-header {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: calc(var(--spacing) * 2);
  margin-bottom: var(--spacing);
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-info h3 {
  margin-bottom: calc(var(--spacing) * 0.5);
}

.profile-info p {
  color: var(--text);
  margin-bottom: calc(var(--spacing) * 0.25);
}

/* Badges */
.badge-primary {
  background-color: var(--primary);
}

.badge-secondary {
  background-color: var(--secondary);
}

.badge-accent {
  background-color: var(--accent);
}

.badge-success {
  background-color: var(--success);
}

.badge-warning {
  background-color: var(--warning);
}

.badge-danger {
  background-color: var(--danger);
}

/* Progress indicators */
.progress {
  height: 10px;
  margin-bottom: var(--spacing);
  border-radius: 5px;
}

.progress-bar {
  background-color: var(--primary);
}

/* Flyer Enhancement Styles */
.flyer-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
  /*background: rgba(255, 255, 255, 0.95);*/
  padding: 6px;
  /*border-radius: 8px;*/
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);*/
  /*border: 1px solid rgba(255, 255, 255, 0.3);*/
  /*backdrop-filter: blur(10px);*/
}

.flyer-container:hover {
  transform: scale(1.03);
  /*box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);*/
  border-color: var(--accent);
}

.flyer-image {
  border-radius: 8px;
  max-width: 350px;
  transition: transform 0.3s ease;
  display: block;
}

.flyer-container:hover .flyer-image {
  transform: scale(1.02);
}

.flyer-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  /*background: rgba(0, 0, 0, 0.75);*/
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /*transition: opacity 0.3s ease;*/
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
}

.flyer-overlay i {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.flyer-container:hover .flyer-overlay {
  opacity: 1;
}

/* Flyer Modal Custom Sizing */
.flyer-modal-dialog {
  max-width: fit-content;
  width: auto;
}

.flyer-modal-dialog .modal-content {
  width: auto;
  min-width: 400px;
  border: 10px solid white;
  /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);*/
}

.flyer-modal-dialog .modal-body img {
  border-radius: 0;
}

/* Custom modal backdrop for better dimming */
#flyerModal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Mobile responsiveness for flyer */
@media (max-width: 768px) {
  .flyer-container {
    margin-top: 1.5rem;
    padding: 4px;
  }
  
  .flyer-image {
    max-width: 280px !important;
  }
  
  .flyer-overlay {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }
  
  .flyer-modal-dialog {
    max-width: 95vw;
    margin: 1rem;
  }
  
  .flyer-modal-dialog .modal-content {
    min-width: auto;
    /*border: 6px solid white;*/
  }
}

.progress-bar-accent {
  background-color: var(--accent);
}

.progress-bar-secondary {
  background-color: var(--secondary);
}

/* Utilities */
.section-padding {
  padding: calc(var(--spacing) * 3) 0;
}

/* Pulse Button Animation */
.pulse-button {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(243, 156, 18, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(243, 156, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
  }
}

.mb-spacing {
  margin-bottom: var(--spacing);
}

.mb-spacing-2 {
  margin-bottom: calc(var(--spacing) * 2);
}

.mt-spacing {
  margin-top: var(--spacing);
}

.mt-spacing-2 {
  margin-top: calc(var(--spacing) * 2);
}

/* Schedule & Calendar */
.schedule-table th, 
.schedule-table td {
  text-align: center;
}

.schedule-table th {
  background-color: var(--primary);
  color: white;
}

.schedule-slot {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: white;
  border-left: 5px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.schedule-slot.available {
  border-left-color: var(--success);
}

.schedule-slot.booked {
  border-left-color: var(--accent);
}

.bg-primary {
  color: white !important;
}

.bg-primary h1, 
.bg-primary h2, 
.bg-primary h3, 
.bg-primary h4, 
.bg-primary h5, 
.bg-primary h6 {
  color: white !important;
}

.card-header.bg-primary,
.bg-primary.card-header {
  color: white !important;
}

.card-header.bg-primary h1, 
.card-header.bg-primary h2, 
.card-header.bg-primary h3, 
.card-header.bg-primary h4, 
.card-header.bg-primary h5, 
.card-header.bg-primary h6,
.bg-primary.card-header h1,
.bg-primary.card-header h2,
.bg-primary.card-header h3,
.bg-primary.card-header h4,
.bg-primary.card-header h5,
.bg-primary.card-header h6 {
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .dashboard-stat {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  
  .profile-header {
    text-align: center;
  }
  
  .profile-picture {
    margin-bottom: var(--spacing);
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .card-header, .card-body, .card-footer {
    padding: calc(var(--spacing) * 0.75);
  }
  
  .table thead th, .table td {
    padding: calc(var(--spacing) * 0.5);
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .no-print {
    display: none !important;
  }
  
  body {
    background-color: white;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .card-header {
    background-color: #f8f9fa;
    color: var(--primary);
  }
}

/* 2026 Theme Refresh */
:root {
  --primary: #12305f;
  --primary-deep: #071a33;
  --primary-soft: #1c457d;
  --secondary: #ef6b3b;
  --accent: #f4b63d;
  --accent-deep: #d98a18;
  --background: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-muted: #edf3f8;
  --text: #152238;
  --text-muted: #607089;
  --border-soft: rgba(18, 48, 95, 0.1);
  --border-strong: rgba(18, 48, 95, 0.18);
  --shadow-sm: 0 12px 30px rgba(7, 26, 51, 0.08);
  --shadow-md: 0 20px 50px rgba(7, 26, 51, 0.12);
  --shadow-lg: 0 30px 80px rgba(7, 26, 51, 0.16);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: none;
}

.site-main {
  position: relative;
  z-index: 1;
  padding: 2rem 0 0;
}

.site-main-home {
  padding-top: 1.5rem;
}

.home-shell {
  width: min(1360px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-heading,
.home-display {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.03em;
}

p,
li,
label,
input,
select,
textarea,
button,
.navbar-nav .nav-link,
.dropdown-item {
  font-family: 'Outfit', sans-serif;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--secondary);
}

.btn,
.card,
.form-control,
.form-select,
.modal-content {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.82rem 1.25rem;
  border-width: 1px;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
}

.btn-lg {
  padding: 1rem 1.55rem;
}

.btn-primary,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(18, 48, 95, 0.22);
}

.btn-primary:hover,
.btn-primary:focus:hover {
  background: linear-gradient(135deg, #0d2548, #153c70);
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(18, 48, 95, 0.28);
}

.btn-accent,
.btn-accent:focus {
  background: linear-gradient(135deg, var(--accent), #ff9c3d);
  border-color: transparent;
  color: var(--primary-deep);
  box-shadow: 0 18px 38px rgba(244, 182, 61, 0.26);
}

.btn-accent:hover,
.btn-accent:focus:hover {
  background: linear-gradient(135deg, #ffca5f, #ff8c32);
  color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(244, 182, 61, 0.34);
}

.btn-outline-light,
.btn-outline-light:focus {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.btn-outline-light:hover,
.btn-outline-light:focus:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp,
.btn-whatsapp:focus {
  background: #25d366;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus:hover {
  background: #20bc5b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(37, 211, 102, 0.28);
}

.pulse-button {
  animation: pulse 2.4s infinite;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.95rem 0;
  background: rgba(7, 26, 51, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(7, 26, 51, 0.14);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-right: 1rem;
}

.navbar-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.navbar-brand-mark img {
  height: 31px;
  margin-right: 0;
}

.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.navbar-brand-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
}

.navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.navbar-nav .nav-link {
  border-radius: 999px;
  padding: 0.7rem 1rem !important;
  font-size: 0.96rem;
  font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.navbar-nav .nav-link.free-quiz-link {
  margin-left: 0.3rem;
  padding: 0.65rem 1rem !important;
  color: var(--primary-deep) !important;
  box-shadow: 0 12px 24px rgba(244, 182, 61, 0.28);
}

.navbar-nav .nav-link.free-quiz-link:hover,
.navbar-nav .nav-link.free-quiz-link:focus {
  background: linear-gradient(135deg, var(--accent), #e67e22) !important;
  color: var(--primary-deep) !important;
  filter: brightness(1.12);
}

.nav-cta-btn {
  margin-left: 0.85rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.site-navbar .dropdown-menu,
.navbar-nav .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 48, 95, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 0.55rem;
  margin-top: 0.8rem;
  backdrop-filter: blur(20px);
}

.site-navbar .dropdown-item,
.navbar-nav .dropdown-item {
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-weight: 500;
}

.site-navbar .dropdown-header,
.navbar-nav .dropdown-header {
  padding: 0.55rem 0.9rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 48, 95, 0.58);
}

.site-navbar .dropdown-divider,
.navbar-nav .dropdown-divider {
  margin: 0.35rem 0;
  border-top-color: rgba(18, 48, 95, 0.08);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus,
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: var(--surface-muted);
  color: var(--primary);
}

#branchSelector {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

#branchSelector:hover,
#branchSelector:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.6rem 0.75rem;
}

.card {
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-footer {
  border-top: 1px solid var(--border-soft);
  background: transparent;
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 48, 95, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(28, 69, 125, 0.32);
  box-shadow: 0 0 0 0.25rem rgba(28, 69, 125, 0.12);
}

.table thead th {
  background: var(--primary);
}

.modal-content {
  border: none;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

.modal-header,
.modal-footer {
  border-color: var(--border-soft);
}

.modal-header.bg-primary {
  background: var(--primary) !important;
}

.site-footer {
  z-index: 1;
  background: #071a33;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-container-app {
  z-index: 1080;
}

.site-footer::before {
  content: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-mark img {
  height: 34px;
}

.footer-eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 215, 112, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.8rem;
}

.footer-copy,
.footer-meta {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-item i {
  color: rgba(255, 215, 112, 0.96);
  margin-top: 0.25rem;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.footer-social a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f7d783;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background: #071a33;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero::before {
  content: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(7, 26, 51, 0.48);
  background-image: url('../assets/demio.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  opacity: 0.56;
  filter: blur(1.5px) saturate(0.9);
  transform: scale(1.015);
  z-index: 0;
}

.home-display {
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #ffffff;
  max-width: 8ch;
  margin: 0.9rem 0 1rem;
  animation: fade-up 0.85s both;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  max-width: 32rem;
  animation: fade-up 0.85s 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 0.8rem;
  animation: fade-up 0.85s 0.16s both;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: fade-up 0.85s 0.26s both;
}

.hero-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.hero-trust-list i {
  color: #ffd370;
}

.hero-visual-card {
  animation: fade-up 0.85s 0.18s both;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.hero-visual-media {
  position: relative;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: #16233d;
  flex: 0 0 auto;
}

.hero-visual-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 51, 0.16);
  pointer-events: none;
  z-index: 1;
}

.hero-visual-carousel-inner,
.hero-visual-carousel .carousel-item {
  height: 100%;
}

.hero-visual-carousel .carousel-item {
  position: relative;
  overflow: hidden;
}

.hero-visual-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel-control {
  width: 16%;
  opacity: 1;
  z-index: 2;
}

.hero-carousel-control-prev {
  justify-content: flex-start;
  padding-left: 0.9rem;
}

.hero-carousel-control-next {
  justify-content: flex-end;
  padding-right: 0.9rem;
}

.hero-carousel-control .carousel-control-prev-icon,
.hero-carousel-control .carousel-control-next-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background-color: rgba(9, 25, 46, 0.58);
  background-size: 42% 42%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.hero-carousel-indicators {
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  right: auto;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
}

.hero-carousel-indicators [data-bs-target] {
  width: 0.78rem;
  height: 0.78rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.hero-carousel-indicators .active {
  width: 2rem;
  background-color: #ffd370;
  transform: translateY(-1px);
}

.hero-visual-caption {
  padding: 1.15rem 0.35rem 0.2rem;
  color: #ffffff;
}

.hero-visual-label {
  display: inline-flex;
  color: #ffd370;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.hero-visual-caption h2 {
  color: #ffffff;
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.hero-visual-caption p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
  max-width: 28rem;
}

.home-section {
  padding: 2.2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  color: var(--secondary);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.section-copy {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 42rem;
  margin: 0.7rem 0 0;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.brand-pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.brand-pill i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: rgba(244, 182, 61, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card,
.program-card,
.timeline-card,
.quote-card,
.cta-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-card {
  padding: 1.6rem;
}

.feature-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 35px rgba(18, 48, 95, 0.16);
  margin-bottom: 1rem;
}

.feature-card h3,
.program-card h3,
.timeline-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.program-card {
  padding: 1.7rem;
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: none;
}

.program-badge {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 48, 95, 0.06);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.program-card ul,
.cta-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.program-card li,
.cta-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.program-card li {
  color: var(--text-muted);
}

.program-card li i {
  color: var(--secondary);
  margin-top: 0.2rem;
}

.timeline-card {
  padding: 1.6rem;
}

.timeline-index {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--primary-deep);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 18px 30px rgba(244, 182, 61, 0.26);
}

.quote-card {
  padding: 1.7rem;
}

.quote-stars {
  color: #f4b63d;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.quote-card blockquote {
  font-size: 1.03rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.quote-author {
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.cta-band {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.cta-panel {
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.cta-panel-dark {
  background: rgba(7, 26, 51, 0.96);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.cta-panel-dark h2,
.cta-panel-dark h3,
.cta-panel-dark p {
  color: #ffffff;
}

.cta-list li {
  color: rgba(255, 255, 255, 0.82);
}

.cta-list i {
  color: #ffd370;
  margin-top: 0.18rem;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.35rem;
}

.contact-card a,
.contact-card-value {
  color: #ffffff;
  font-size: 1rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .navbar-brand-tag {
    display: none;
  }

  .navbar-nav {
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 1rem;
  }

  .nav-cta-btn,
  .navbar-nav .nav-link.free-quiz-link {
    margin-left: 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust-list {
    gap: 0.6rem;
  }

  .hero-visual-media {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .home-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .site-main {
    padding-top: 1rem;
  }

  .home-hero {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .home-display {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-list {
    display: grid;
  }

  .hero-trust-list span {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual-card {
    padding: 0.8rem;
  }

  .hero-visual-media {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .section-heading {
    font-size: 2rem;
  }

  .page-title {
    font-size: 1.9rem;
  }
}
