:root {
  --primary-color: #364761; /* Dark blue from the logo */
  --primary-dark: #2a3a50; /* Darker shade of the logo blue */
  --primary-light: #eef1f6; /* Light shade of blue */
  --secondary-color: #5a6b89; /* Lighter blue tone */
  --secondary-dark: #4a5d7b; /* Mid-tone blue */
  --secondary-light: #e6f0ff; /* Very light blue */
  --success-color: #4caf50;
  --danger-color: #ff6b6b;
  --warning-color: #ff9800;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --black: #000000;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;

  /* Header variables */
  --header-height: 64px;
  --header-height-sticky: 50px;
  --header-transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  z-index: 9999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
}

.section {
  padding: 4rem 0;
}

.bg-light {
  background-color: var(--gray-100);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  transition: var(--header-transition);
}

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

.text-right {
  text-align: right;
}

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

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

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-gray-600 {
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn:focus,
.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gray-200);
  border-color: var(--gray-200);
}

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

.header .btn-primary:hover,
.header .btn-primary:focus {
  background-color: var(--gray-200);
  border-color: var(--gray-200);
}

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

.main-content .btn-primary:hover,
.main-content .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

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

.header .btn-outline-primary {
  color: var(--white);
  background-color: transparent;
  border-color: var(--white);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.header .btn-outline-primary:hover,
.header .btn-outline-primary:focus {
  color: var(--primary-color);
  background-color: var(--white);
  border-color: var(--white);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Header - Enhanced with sticky behavior and animations */
.header {
  background-color: var(--primary-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--header-transition);
}

.header.sticky {
  height: var(--header-height-sticky);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Update the header container styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  height: 100%;
  transition: var(--header-transition);
}

.header.sticky .header-container {
  padding: 0.4rem 0;
}

/* Add specific styles for the logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  transition: var(--header-transition);
}

.logo-image {
  max-height: 50px;
  width: auto;
  transition: var(--header-transition);
  transform-origin: left center;
}

.header.sticky .logo-image {
  max-height: 28px;
}

/* Logo animation */
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-link {
  animation: logoEntrance 0.5s ease-out forwards;
}

.logo-link:hover .logo-image {
  transform: scale(1.05);
}

/* Adjust the nav items spacing and font size */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  transition: var(--header-transition);
}

.nav-item {
  margin-left: 1.25rem;
  transition: var(--header-transition);
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--header-transition);
  padding: 0.25rem 0;
  position: relative;
}

.header.sticky .nav-link {
  font-size: 0.9rem;
}

/* Add underline animation for nav links */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


.login-btn {
  color: var(--white);
  font-weight: 600;
}

/* Make sure buttons in the header are properly sized */
.header .btn {
  padding: 0.375rem 0.75rem;
  transition: var(--header-transition);
}

.header.sticky .btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
}

.mobile-nav-toggle {
  display: none; /* Initially hidden globally */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--header-transition);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.mobile-nav-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-toggle.active i {
  transform: rotate(180deg);
}

.header.sticky .mobile-nav-toggle {
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: var(--primary-light);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-700);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
}

/* Features Section */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--gray-600);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
}

.about-image img {
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
}

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--gray-700);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-image img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 600;
}

.testimonial-author-title {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-section .btn-outline-primary {
  color: var(--white);
  border-color: var(--white);
}

.cta-section .btn-outline-primary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.footer-title img {
  padding: 5px;
  border-radius: 4px;
}

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

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--white);
}

.footer-link i {
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 6rem;
  left: auto;
  transform: none;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 1rem;
    bottom: 7rem;
    left: auto;
    width: 35px;
    height: 35px;
    transform: none;
  }
}

/* Footer Mobile Improvements */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-column {
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: 1rem;
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  .footer-title {
    margin-bottom: 0;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .footer-title::after {
    content: "+";
    font-size: 1.25rem;
    transition: transform 0.3s ease;
  }

  .footer-column.active .footer-title::after {
    transform: rotate(45deg);
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-column.active .footer-links {
    max-height: 500px;
    padding-top: 0.5rem;
  }

  .footer-link {
    margin-bottom: 0.5rem;
  }

  .footer-link a {
    display: block;
    padding: 0.5rem 0;
  }

  .footer-bottom {
    padding-top: 1rem;
    font-size: 0.75rem;
  }
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-title {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Tabs */
.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--gray-300);
}

.tab-item {
  margin-right: 0.5rem;
}

.tab-link {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem 0.25rem 0 0;
  color: var(--gray-600);
  font-weight: 500;
}

.tab-link:hover {
  color: var(--primary-color);
}

.tab-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -1px;
}

.tab-content {
  padding: 1.5rem 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  color: var(--gray-700);
  background-color: var(--white);
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  margin-bottom: 0;
}

/* Input Group */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-700);
  text-align: center;
  white-space: nowrap;
  background-color: var(--gray-200);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Alert */
.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

/* Progress */
.progress {
  display: flex;
  height: 0.5rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: var(--gray-200);
  border-radius: var(--border-radius);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius);
}

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

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

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

/* Tables */
table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--gray-800);
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--gray-300);
}

thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--gray-300);
  font-weight: 600;
}

tbody + tbody {
  border-top: 2px solid var(--gray-300);
}

/* Utilities */
.w-100 {
  width: 100%;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cobrowsing */
.cobrowse-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: var(--transition);
}

.cobrowse-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.cobrowse-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gray-800);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cobrowse-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--gray-800);
}

.cobrowse-btn:hover .cobrowse-tooltip {
  opacity: 1;
  visibility: visible;
}

.cobrowse-cursor {
  position: absolute;
  z-index: 9998;
  pointer-events: none;
  transition: all 0.1s ease;
}

.cobrowse-cursor i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.cobrowse-cursor span {
  position: absolute;
  left: 20px;
  top: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.cobrowse-notification {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.cobrowse-notification.cobrowse-end {
  background-color: var(--success-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  overflow: auto;
}

.modal.active {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-close {
  padding: 0;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
}

body.modal-open {
  overflow: hidden;
}

/* Cobrowse Modal Enhancements */
#cobrowse-modal .modal-body {
  padding: 1.5rem 1.5rem 2rem;
}

#cobrowse-modal .contact-info {
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

#cobrowse-modal .contact-info p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

#cobrowse-modal .contact-info p:first-child {
    font-weight: 500;
    margin-bottom: 1rem;
}

#cobrowse-modal .contact-info p:last-child {
  margin-bottom: 0;
}

#cobrowse-modal .contact-info .fas {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

#cobrowse-modal hr {
  border: 0;
  height: 1px;
  background-color: var(--gray-200);
  margin: 1.5rem auto;
}

#cobrowse-modal .agent-prompt {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

#cobrowse-modal .modal-body > p.text-center {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Schedule Consultation Modal */
#schedule-consultation-modal .modal-dialog {
  max-width: 600px;
}

#calendar-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.calendar-header {
  font-weight: 600;
  color: var(--gray-600);
  padding-bottom: 0.5rem;
}

.calendar-day {
  padding: 0.75rem 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.calendar-day.disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}

.calendar-day:not(.disabled):hover {
  background-color: var(--primary-light);
}

.calendar-day.selected {
  background-color: var(--primary-color);
  color: var(--white);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.time-slot {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.time-slot:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.time-slot.selected {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#calendar-month-year {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.calendar-nav-btn {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
  background-color: var(--primary-light);
}

/* Ensure modal buttons have correct styling */
.modal .btn-primary {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal .btn-primary:hover,
.modal .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Mobile styles for scheduling modal */
@media (max-width: 576px) {
  #schedule-consultation-modal .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calendar-day {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
  .time-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Account Summary Grid */
.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.account-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-list li a {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.2s;
  border-radius: var(--border-radius);
}

.account-list li:last-child a {
  border-bottom: none;
}

.account-list li a:hover {
  background-color: var(--gray-100);
}

.account-list span {
  color: var(--gray-700);
}

.account-list strong {
  font-weight: 600;
  color: var(--gray-800);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Resource Cards */
.resource-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

/* Login Page */
.login-container {
  max-width: 500px;
  margin: 0 auto;
}

.login-card {
  margin-bottom: 1.5rem;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
}

.forgot-password {
  font-size: 0.875rem;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gray-300);
}

.login-divider span {
  position: relative;
  padding: 0 0.5rem;
  background-color: var(--white);
  color: var(--gray-600);
}

.social-login {
  margin-top: 1.5rem;
}

.social-login .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Financial Education Page */
.article-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.article-content {
  flex: 1;
}

.event-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.event-date {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-details {
  flex: 1;
}

.tool-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--primary-light);
  transition: var(--transition);
}

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

/* Customer Support Page */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  padding: 1rem;
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.faq-question.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.faq-question.active::after {
  content: "-";
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Mobile header optimizations */
  .header {
    height: auto;
    min-height: var(--header-height-sticky);
  }

  .header-container {
    padding: 0.5rem 0;
  }

  .logo-image {
    max-height: 28px;
  }

  .mobile-nav-toggle {
    display: block;
    font-size: 1.25rem;
    padding: 0.25rem;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height-sticky);
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    color: var(--white);
    padding: 0.5rem 0;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: transparent;
    color: var(--white);
  }

  .dropdown-divider {
    border-top-color: var(--gray-600);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .account-opening-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .account-opening-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    gap: 1rem;
  }
  .account-opening-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: var(--gray-300);
    z-index: 0;
  }
  .step-number {
    margin-bottom: 0;
    margin-right: 1rem;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }
  .account-opening-step div:not(.step-number) {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .account-opening-step {
    max-width: 100%;
    gap: 0.75rem;
  }
  .step-number {
    min-width: 32px;
    min-height: 32px;
    font-size: 0.9rem;
  }
  .account-opening-step div:not(.step-number) {
    font-size: 0.95rem;
  }
}

/* Onboarding Steps */
.onboarding-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.onboarding-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2rem;
  left: 1rem;
  bottom: -1.5rem;
  width: 2px;
  background-color: var(--gray-300);
  z-index: 0;
}

.onboarding-step-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.onboarding-step.completed .onboarding-step-icon {
  border-color: var(--success-color);
  color: var(--success-color);
}

.onboarding-step.current .onboarding-step-icon {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.onboarding-step-content {
  flex: 1;
}

.onboarding-step-content h4 {
  margin-bottom: 0.25rem;
}

.onboarding-step-content p {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Navigation Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.nav-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-800);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.nav-card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.nav-card h4 {
  margin-bottom: 0.5rem;
}

.nav-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Input Group */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-700);
  text-align: center;
  white-space: nowrap;
  background-color: var(--gray-200);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Alert */
.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.text-left {
  text-align: left;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: var(--gray-800);
  text-align: left;
  list-style: none;
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--gray-800);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary-color);
  text-decoration: none;
  background-color: var(--primary-light);
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

/* User Dropdown */
.user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-dropdown .fa-user-circle {
  font-size: 1.25rem;
}

/* Header Adjustments */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin-left: 1.5rem;
}

/* Mobile Navigation Adjustments */
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - var(--header-height-sticky));
    overflow-y: auto;
  }

  .nav-list.active {
    display: flex !important;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--white);
  }

  .nav-link:hover {
    background-color: var(--primary-dark);
  }

  .nav-link::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    color: var(--gray-200);
  }

  .dropdown-item:hover {
    color: var(--white);
  }

  .mobile-nav-toggle {
    display: block;
  }
}

/* Breadcrumbs */
.breadcrumbs-container {
  background-color: var(--gray-100);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--gray-500);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--gray-600);
}

/* Notification Badge */
.notification-icon {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 20%;
  transform: translateX(50%);
  width: 320px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.notification-dropdown.active {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.notification-header h3 {
  margin: 0;
  font-size: 1rem;
}

.mark-all-read {
  font-size: 0.75rem;
  color: var(--primary-color);
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: var(--gray-100);
}

.notification-item.unread {
  background-color: var(--primary-light);
}

.notification-icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

.notification-content {
  flex: 1;
}

.notification-text {
  margin: 0 0 0.25rem 0;
}

.notification-time {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.notification-footer {
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.view-all {
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Status Indicator */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 5px;
}

.status-indicator.online {
  background-color: var(--success-color);
}

.status-indicator.away {
  background-color: var(--warning-color);
}

.status-indicator.offline {
  background-color: var(--gray-500);
}

/* Status Pill */
.status-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.status-pill.success {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
}

.status-pill.warning {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--warning-color);
}

.status-pill.danger {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--danger-color);
}

.status-pill.info {
  background-color: rgba(0, 102, 204, 0.2);
  color: var(--primary-color);
}

/* Notification Toast */
#notification-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-toast {
  display: flex;
  align-items: center;
  min-width: 300px;
  max-width: 450px;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  animation: slide-in 0.3s ease-out;
}

.notification-toast.fade-out {
  animation: fade-out 0.3s ease-in forwards;
}

.notification-toast.success {
  border-left: 4px solid var(--success-color);
}

.notification-toast.warning {
  border-left: 4px solid var(--warning-color);
}

.notification-toast.error {
  border-left: 4px solid var(--danger-color);
}

.notification-toast.info {
  border-left: 4px solid var(--primary-color);
}

.notification-toast-icon {
  margin-right: 1rem;
  font-size: 1.25rem;
}

.notification-toast.success .notification-toast-icon {
  color: var(--success-color);
}

.notification-toast.warning .notification-toast-icon {
  color: var(--warning-color);
}

.notification-toast.error .notification-toast-icon {
  color: var(--danger-color);
}

.notification-toast.info .notification-toast-icon {
  color: var(--primary-color);
}

.notification-toast-content {
  flex: 1;
}

.notification-toast-content p {
  margin: 0;
}

.notification-toast-close {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile Adjustments for Notifications */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  #notification-toast-container {
    left: 1rem;
    right: 1rem;
  }

  .notification-toast {
    width: 100%;
    max-width: 100%;
  }
}

/* Improve responsive behavior */
@media (max-width: 992px) {
  .logo img {
    max-height: 28px; /* Even smaller on mobile */
  }

  .nav-item {
    margin-left: 1rem;
  }
}

/* Footer Mobile Improvements */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-column {
    padding: 0 1rem;
  }

  .footer-title {
    margin-bottom: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-link {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
  }
}

/* Account Opening Steps Mobile Improvements */
@media (max-width: 768px) {
  .account-opening-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .account-opening-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .step-line {
    display: none;
  }

  .account-opening-step div:not(.step-number) {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .account-opening-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .account-opening-step:nth-child(3) {
    grid-column: 1;
  }

  .account-opening-step:nth-child(4) {
    grid-column: 2;
  }

  .account-opening-step div:not(.step-number) {
    font-size: 0.7rem;
  }
}

/* Add support for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav-list,
  .mobile-nav-toggle i,
  .dropdown-menu {
    transition: none;
  }
}

/* Header Navigation Responsive Fixes */
@media (max-width: 992px) {
  .header-nav .mobile-nav-toggle {
    display: block;
  }
  .header-nav .nav-list {
    display: none;
    position: fixed;
    top: var(--header-height-sticky);
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - var(--header-height-sticky));
    overflow-y: auto;
  }
  .header-nav .nav-list.active {
    display: flex !important;
  }
  .header-nav .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }
  .header-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--white);
  }
  .header-nav .nav-link:hover {
    background-color: var(--primary-dark);
  }
  .header-nav .nav-link::after {
    display: none;
  }
}

.header-nav {
  display: none;
  align-items: center;
}

.bg-primary p,
.bg-primary .hero-subtitle,
.bg-primary .cta-description {
  color: var(--white);
}

.footer p,
.footer .footer-link a,
.footer .footer-bottom p {
  color: var(--gray-300);
}

.footer .footer-link a:hover {
  color: var(--white);
}

.testimonial-content p {
  color: var(--gray-700);
  font-style: italic;
  cursor: default;
}

/* Default state for header navigations: hidden until JS decides which to show */
.header-nav {
  display: none; 
  align-items: center; 
}

/* Desktop Navigation Styles */
@media (min-width: 993px) { 
  .header-nav .nav-list {
    display: flex !important; 
    flex-direction: row;
    align-items: center;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    height: auto; 
    overflow: visible; 
  }

  .header-nav .nav-item {
    margin: 0 0 0 1.5rem; 
    width: auto; 
  }
  
  .header-nav .nav-link {
    padding: 0.5rem 0; 
    display: inline-block; 
  }

  .header-nav .mobile-nav-toggle { /* Target the toggle specifically within .header-nav */
    display: none !important; /* CRITICAL: Hide hamburger on desktop */
  }

  .header-nav .dropdown {
    position: relative; 
  }
  .header-nav .dropdown-menu {
    position: absolute; 
    top: 100%;
    left: 0;
    z-index: 1001; 
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    min-width: 180px; 
    display: none; 
  }
  .header-nav .dropdown.active .dropdown-menu {
      display: block;
  }

  .header-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Header Navigation Responsive Fixes (Mobile) */
@media (max-width: 992px) {
  .header-nav .mobile-nav-toggle { 
    display: flex; 
    align-items: center;
    justify-content: center;
  }
  .header-nav .nav-list {
    display: none; 
    position: fixed;
    top: var(--header-height-sticky); 
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(0); 
    opacity: 1; 
    visibility: visible; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    z-index: 1000;
    max-height: calc(100vh - var(--header-height-sticky)); 
    overflow-y: auto; 
  }
  .header-nav .nav-list.active {
    display: flex !important; 
  }
  /* ... other mobile styles for .nav-item, .nav-link, .dropdown-menu for mobile ... */
}

/* Custom styles for notification icon */
.nav-logged-in .notification-icon {
  color: #ffffff; /* Make the bell icon white */
}

.nav-logged-in .user-dropdown .dropdown-menu {
  right: 0;
  left: auto;
}

/* Bank Link Modal Styles */
.bank-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bank-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.bank-link:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bank-link img {
  max-width: 100%;
  height: auto;
}

.form-control.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.review-summary-list {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 500;
  color: var(--gray-700);
}

.summary-value {
  color: var(--gray-900);
}

/* Account Opening Steps */
.account-opening-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.account-opening-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 120px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.account-opening-step.active .step-number {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.account-opening-step div:not(.step-number) {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.account-opening-step.active div:not(.step-number) {
  color: var(--primary-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--gray-300);
  margin: 0 -20px;
  position: relative;
  top: 20px;
  z-index: 1;
}

/* Confirmation Page */
.confirmation-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Account Opening Page */
.account-opening-container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .account-opening-steps {
    flex-direction: column;
    align-items: center;
  }
  .step-line {
    display: none;
  }
}
