
/* Roboto – self-hosted, no CDN */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Roboto/Roboto-normal.woff2') format('woff2'),
       url('assets/fonts/Roboto/Roboto[wdth,wght].ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Roboto/Roboto-italic.woff2') format('woff2'),
       url('assets/fonts/Roboto/Roboto-Italic[wdth,wght].ttf') format('truetype');
}

:root {
  --font-default:   'Roboto', sans-serif;
  --font-primary:   'Roboto', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

body, input, select, textarea, button {
  font-family: var(--font-default);
  font-size: 0.875rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
}

/* Bank Account Section background */
.bank-account-section {
  background-color: #f8f9fa;
}
/* No Account Message styles */
.no-account-message {
  margin-top: 20px;
}
.no-account-message-text {
  color: #dc3545;
  font-weight: bold;
  font-size: 16px;
}
.no-account-message-contact {
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
}
/* Market Updates image styles */
.market-img {
  height: 200px;
  object-fit: cover;
}
/* Contact Us button styles */
.contact-btn {
  padding: 12px 40px;
  font-weight: 600;
}
:root {
  --primary-color: #0050c6; /* Centenary Bank blue */
  --secondary-color: #faa81a;
  --btn-yellow: rgb(252, 232, 19);
  --light-bg: #f8f9fa;
  --page-bg: #f5f5f5;
  --dark-text: #333;
}
/* ============================================
   TIER 1 UTILITY CLASSES - INLINE STYLES REFACTORING
   ============================================ */

/* Font Size Utilities */
.fs-7 { 
  font-size: 0.85rem; 
}

.fs-8 { 
  font-size: 0.75rem; 
}

.fw-600 { 
  font-weight: 600; 
}

/* Treasury Brand Color Utilities */
.text-primary-blue { 
  color: #0050c6; 
}

.text-info-light { 
  color: #666; 
}

.text-muted-dark { 
  color: #999; 
}

.text-dark-form { 
  color: #333; 
}

.text-success-form { 
  color: #28a745; 
}

.text-error-form { 
  color: #ff6b6b; 
}

/* Background Color Utilities */
.bg-primary-light { 
  background-color: #f8fafc; 
}

.bg-secondary-light { 
  background-color: #f8f9fa; 
}

.bg-white-form { 
  background-color: white; 
}

.bg-treasury-blue { 
  background-color: #0050c6; 
}

.bg-overlay-primary {
  background: rgba(0, 80, 198, 0.35);
}

/* Status Badge Colors - Treasury Application Status */
.badge-pending {
  background-color: #ffc107;
  color: #333;
}

.badge-approved {
  background-color: #28a745;
  color: white;
}

.badge-rejected {
  background-color: #dc3545;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

/* Card and Box Utilities */
.card-treasury {
  background-color: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 80, 198, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  padding: 0.75rem 2rem 2rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.card-treasury-primary {
  background-color: #0050c6;
  border: none;
  border-radius: 8px;
  color: white;
}

.card-readonly {
  background-color: #f8f9fa;
}

/* Form Input Utilities */
.input-readonly {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.input-error {
  border-color: #ff6b6b;
  background-color: #fff5f5;
}

.form-text-helper {
  color: #999;
  font-size: 0.85rem;
}

.form-text-error {
  color: #ff6b6b;
  font-size: 0.85rem;
}

.form-text-required {
  color: #ff6b6b;
  font-weight: 600;
}

/* Typography Utilities */
.text-center-form {
  text-align: center;
}

.text-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.text-title-hero {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #0050c6;
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.8);
}

/* Border and Spacing Utilities */
.border-thin {
  border: 1px solid #e0e0e0;
}

.rounded-form {
  border-radius: 8px;
}

.rounded-card {
  border-radius: 18px;
}

.shadow-treasury {
  box-shadow: 0 8px 32px rgba(0, 80, 198, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
}

.shadow-light {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Display and Layout Utilities */
.overlay-absolute {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.overlay-dark {
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-primary {
  background: rgba(0, 80, 198, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Bar Utilities */
.progress-bar-treasury {
  background-color: #0050c6;
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-container {
  background-color: #e9ecef;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Button Utilities */
.btn-treasury-primary {
  background-color: #0050c6;
  border-color: #0050c6;
  color: white;
}

.btn-treasury-primary:hover {
  background-color: #003d99;
  border-color: #003d99;
}

.btn-treasury-outline {
  border-color: #0050c6;
  color: #0050c6;
}

.btn-treasury-outline:hover {
  background-color: #0050c6;
  color: white;
}

/* Calculator Widget Styles */
.calculator-stat {
  margin-bottom: 1.5rem;
}

.calculator-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.calculator-stat-value {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

.calculator-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

/* Image and Banner Utilities */
.img-banner {
  width: 100vw;
  min-width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.banner-container {
  position: relative !important;
  width: 100vw !important;
  max-width: 100% !important;
  overflow: hidden !important;
  height: 220px !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .card-treasury {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .text-title-hero {
    font-size: 1.5rem;
  }
  
  .text-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .card-treasury {
    padding: 0.75rem 1rem 1rem 1rem;
  }
  
  .calculator-stat-value {
    font-size: 1rem;
  }
}



/* Required field asterisk styling */
.required-asterisk {
  color: #dc3545 !important;
  font-weight: bold !important;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  transition: background 0.8s ease;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 0;
  padding: 0;
  height: 70px;
  width: 100%;
}

/* Nav backdrop: neutral on white header */
.nav-backdrop {
  background: transparent !important;
  box-shadow: none !important;
}

/* Make navbar dark blue */
.navbar {
  background-color: var(--primary-color) !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
}
.navbar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

/* Make Start Now button in navbar red */
.navbar .btn-outline-light {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff !important;
}

.navbar .btn-outline-light:hover {
  background-color: #bd2130;
  border-color: #bd2130;
  color: #ffffff !important;
}

/* Add margin to body to account for fixed header */
body {
  padding-top: 70px;
}

/* Hero section */
.hero-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Make carousel and hero fill viewport below the fixed header */
:root {
  --header-height: 70px; /* matches body padding-top */
}
.hero-section,
.hero-section .carousel,
.hero-section .carousel-inner,
.carousel-item {
  /* slightly smaller hero: cap height a bit lower */
  height: min(calc(100vh - var(--header-height)), 640px) !important;
  min-height: 460px;
  max-height: 640px;
}

/* Ensure background images cover and are centered */
.carousel-item {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Make caption fill the slide and center content vertically */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
}

/* Keep hero CTA buttons inside slides and visible */
.hero-cta {
  position: relative;
  z-index: 5;
}

/* Stats section */
.stats-section {
  /*padding: 2.5rem 0;*/
  margin-top: 0;
  margin: 0;
  padding: 0;
}

/* Ensure carousel doesn't add extra bottom space */
.carousel,
.carousel-inner,
.carousel-item {
  margin-bottom: 0;
  padding-bottom: 0;
}
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  opacity: 1;
}

.carousel-caption,
.carousel-caption .container,
.carousel-caption .row,
.carousel-caption .col-md-6 {
  margin: 0 !important;
  padding: 0 !important;
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center */
  height: 100%; /* fill carousel-item height */
  top: 0; /* reset top from Bootstrap */
}

.carousel-caption {
  padding-bottom: 0;
  margin-bottom: 0;
}
.logos-img {
  display: block;
}
#heroCarousel-wrapper {
  height: 520px; /* match slightly reduced carousel height */
  overflow: hidden; /* just in case */
}
#heroCarousel-wrapper,
.carousel-item {
  height: 85vh; /* slightly less than full viewport */
  min-height: 520px; /* fallback for small screens */
}

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

/* Reduce default heading margins inside hero to avoid gap */
.hero-section h1,
.hero-section p {
  margin-bottom: 0.5rem;
}

/* Form page background with pattern image */

/* Buy Treasury Bills page background (repeating Bg.jpg pattern) */
body.tbill-bg {
  background-image: url("../img/Bg.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

.navbar-brand img {
  height: 50px;
}

.navbar {
  background-color: transparent;
  padding: 0; /* remove internal vertical padding so navbar fills header */
  box-shadow: none;
  margin: 0;
}

/* Ensure navbar's inner containers don't add bottom spacing */
.navbar .container,
.navbar .container-fluid {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Make navbar fill header and center items vertically */
.navbar,
.navbar .container,
.navbar .container-fluid {
  height: 100%;
  display: flex !important;
  align-items: center !important;
}

/* Ensure brand image doesn't add extra space */
.navbar-brand img {
  display: block;
  margin: 0;
  height: 48px; /* slightly smaller to fit header nicely */
}

/* Remove navbar item borders/backgrounds and prevent hover outlines */
.navbar .nav-link,
.navbar-nav .nav-link,
.nav-links-container .nav-link,
.form-navbar .navbar-nav .nav-link,
.nav-backdrop .nav-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.35rem 0.6rem !important;
}

.navbar .nav-link:hover,
.navbar-nav .nav-link:hover,
.nav-links-container .nav-link:hover,
.form-navbar .navbar-nav .nav-link:hover,
.nav-backdrop .nav-link:hover,
.header-scrolled .nav-backdrop .nav-link {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.navbar .nav-link:focus,
.navbar .nav-link:active,
.navbar-nav .nav-link:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Ensure body leaves space for fixed header so content isn't pushed oddly */
body {
  padding-top: 70px !important;
}

/* Remove any top margin on hero to sit directly under header */
.hero-section,
.hero-section .container,
.hero-section .hero-container-carousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Pill-style nav links for form pages */
.form-navbar .navbar-nav .nav-link {
  border: 1px solid rgba(0, 80, 198, 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin: 0 0.25rem;
  background: rgba(0, 80, 198, 0.06);
  color: #0050c6;
  font-weight: 600;
  transition: all 0.2s ease;
}
.form-navbar .navbar-nav .nav-link:hover {
  background: rgba(0, 80, 198, 0.06);
  border-color: rgba(0, 80, 198, 0.16);
  color: #0050c6;
}
.form-navbar .navbar-nav .nav-link.active {
  background: rgba(0, 80, 198, 0.06);
  color: #0050c6;
  border-color: rgba(0, 80, 198, 0.16);
}

/* Step indicator for forms */
.form-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #4a5568;
  font-weight: 600;
  flex: 1; /* allow steps to expand so connector lines can grow */
  justify-content: center;
}
.form-step::after {
  content: "";
  display: block;
  height: 2px;
  width: 60%;
  max-width: 260px;
  min-width: 42px;
  background: rgba(0, 80, 198, 0.18);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.form-step:last-child::after {
  display: none;
}
.form-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 80, 198, 0.35);
  color: #0050c6;
  display: grid;
  place-items: center;
  background: #fff;
  font-weight: 700;
}
.form-step.active .form-step-circle {
  background: #0050c6;
  color: #fff;
  border-color: #0050c6;
  box-shadow: 0 8px 18px rgba(0, 80, 198, 0.25);
}
.form-step.active::after {
  background: rgba(0, 80, 198, 0.6);
}

/* Form step panes for multi-step forms */
.form-step-pane {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Profit calculator styling */
.profit-calculator-section .card {
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.profit-calculator-section .form-label {
  font-weight: 600;
  font-size: 0.95rem;
}
/* Full-bleed decorative background for profits calculator */
#profit-calculator,
.profit-calculator-section {
  position: relative;
  overflow: hidden;
}

#profit-calculator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-image: url("../img/house.jpg");
  background-size: cover;
  background-position: right center; /* focus more on the woman */
  opacity: 0.25;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* ensure content sits above the decorative image */
#profit-calculator > .container,
#profit-calculator .card,
.profit-calculator-section > .container {
  position: relative;
  z-index: 2;
}

/* Make calculate button in profit calculator red */
#profit-calculator #calcRun.btn-primary {
  background-color: #dc3545;
  border-color: #dc3545;
}

#profit-calculator #calcRun.btn-primary:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Make the Start Now button in profit calculator blue */
#profit-calculator .btn-primary.start-now-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

#profit-calculator .btn-primary.start-now-btn:hover {
  background-color: #003a90;
  border-color: #003a90;
}

/* Stats animations removed to restore original static grid presentation */

/* Stats section sits just below hero wave so full curve is visible */
.stats-section {
  background: #f0f7ff; /* match benefits section light blue */
  padding: 40px 0 12px 0;
  margin-top: 0; /* no overlap with wave */
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Subtle left-right motion for stat blocks */
.stats-section .stat {
  display: inline-block;
  transition: transform 0.25s ease;
  animation: statFloat 4s ease-in-out infinite;
}
.stats-section .row > .col-md-4:nth-child(1) .stat {
  animation-delay: 0s;
}
.stats-section .row > .col-md-4:nth-child(2) .stat {
  animation-delay: 0.6s;
}
.stats-section .row > .col-md-4:nth-child(3) .stat {
  animation-delay: 1.2s;
}

@keyframes statFloat {
  0% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(-6px);
  }
}

/* pause motion on hover for readability */
.stats-section .stat:hover {
  animation-play-state: paused;
}

/* Mobile: disable animation and stack cleanly */
@media (max-width: 767.98px) {
  .stats-section .stat {
    animation: none;
    transform: none;
  }
}

.section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary-color);
}

/* Red highlight for specific text in headings */
.highlight-red {
  color: #dc3545;
}

/* Make the Profits Calculator heading white over its image background */
.profit-calculator-section .section-title {
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.85);
}

/* Header overlay in hero: fixed so it floats over content */
#header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1050;
  background: transparent !important;
  box-shadow: none !important;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    padding 0.25s ease;
  pointer-events: auto;
}

/* Keep header transparent on scroll as well (no white background) */
.header-scrolled {
  box-shadow: none !important;
  background: transparent !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Center nav links and style them */
.nav-links-container {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links-container .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  background: transparent;
  border-radius: 6px;
}
.nav-links-container .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* No extra top padding needed because header is inside hero */
/* Remove any body padding introduced earlier */
body {
  padding-top: 0;
}

.hero-section {
  /* kept for backward compatibility if used elsewhere */
  background-size: cover;
  padding: 80px 0;
  color: white;
  position: relative;
}

/* Make Start Now buttons in hero section red */
.hero-section .btn-primary {
  background-color: #dc3545;
  border-color: #dc3545;
}

.hero-section .btn-primary:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Wavy SVG divider inside hero */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 150px;
}

/* Wavy divider under stats section */
.stats-wave {
  line-height: 0;
}

.stats-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* (benefits wave removed; keeping space for future decorative dividers if needed) */

/* Static hero should match the carousel sizing used previously */
.static-hero {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: white;
  padding: 60px 0;
  position: relative;
}
@media (min-width: 768px) {
  .static-hero {
    min-height: 520px;
    padding: 80px 0;
  }
}
@media (min-width: 1200px) {
  .static-hero {
    min-height: 640px;
    padding: 100px 0;
  }
}

/* CTA row pinned to bottom of hero */
.static-hero .hero-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .static-hero .hero-cta {
    bottom: 40px;
  }
}

.static-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9);
}

/* Hero polish: stronger typography, subtle shadow and CTA styles */
.static-hero .display-4 {
  font-size: 2.4rem;
  line-height: 1.02;
  font-weight: 800;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
@media (min-width: 992px) {
  .static-hero .display-4 {
    font-size: 3.2rem;
  }
}
.static-hero .lead {
  opacity: 0.95;
  font-size: 1.15rem;
}

/* Primary CTA: dark blue and lift on hover */
.btn-primary {
  background-color: #0050c6;
  border-color: #0050c6;
  box-shadow: 0 4px 12px rgba(0, 80, 198, 0.15);
}
.btn-primary:hover {
  background-color: #0040a0;
  border-color: #0040a0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 80, 198, 0.25);
}

/* Make CTA outlines lighter on hero */
.static-hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Full-container hero carousel styles */
.hero-container-carousel {
  width: 100%;
}
.hero-container-carousel .container {
  max-width: 1200px; /* increase inner content width */
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1200px) {
  .hero-container-carousel .container {
    max-width: 1400px; /* wider on very large screens */
  }
}
.hero-carousel-item {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 420px; /* slightly reduced hero height */
  display: flex;
  align-items: center;
  color: white;
  padding: 60px 0; /* reduced vertical spacing */
}
.hero-carousel-item .display-4,
.hero-carousel-item .lead {
  color: #fff;
}

@media (min-width: 768px) {
  .hero-carousel-item {
    min-height: 520px;
    padding: 80px 0;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-item {
    min-height: 640px; /* moderate size on very large screens */
    padding: 100px 0;
  }
}

/* Larger typography for hero */
.hero-carousel-item .display-4 {
  font-size: 2.1rem;
  line-height: 1.05;
  font-weight: 700;
}
.hero-carousel-item .lead {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

/* Typing caret for hero rotator */
#heroTextRotator {
  display: inline-block;
  vertical-align: bottom;
}
#heroTextRotator::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--dark-text);
  margin-left: 8px;
  vertical-align: middle;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 992px) {
  .hero-carousel-item .display-4 {
    font-size: 2.6rem;
  }
  .hero-carousel-item .lead {
    font-size: 1.25rem;
  }
}

/* Slightly larger logo inside hero */
.hero-carousel-item .logos-img {
  max-height: 64px;
}

.hero-carousel {
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-carousel .item img {
  width: 100%;
  height: 320px; /* fixed height to keep layout stable */
  display: block;
  object-fit: cover; /* crop large images cleanly */
}

/* Ensure carousel items align horizontally (OWL should handle this, but reinforce) */
.owl-carousel .owl-stage-outer {
  width: 100%;
}
.owl-carousel .owl-item {
  display: inline-block;
}

/* Bootstrap hero carousel overrides */
.hero-bootstrap-carousel {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-bootstrap-carousel .carousel-item img {
  width: 100%;
  height: 360px; /* fixed height for hero visuals */
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .hero-bootstrap-carousel .carousel-item img {
    height: 420px;
  }
}

.owl-prev,
.owl-next {
  background: rgba(0, 80, 198, 0.7) !important;
  color: white !important;
}

.owl-prev:hover,
.owl-next:hover {
  background: rgba(0, 80, 198, 1) !important;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
/* Decorative background image overlay for FAQ section */
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0; /* cover the entire parent section */
  background: none; /* remove background image */
  opacity: 0; /* fully transparent overlay */
  pointer-events: none;
  z-index: -1;
}
/* FAQ icon button (small circular info icon) */
.faq-icon-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #dc3545 !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.15s ease,
    transform 0.08s ease;
}
.faq-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}
.faq-icon-btn i {
  color: #dc3545 !important;
}
.accordion-button {
  box-shadow: none;
}

/* Individual FAQ items styling (no outer card wrapper now) */
.faq-section .accordion-item {
  border: 2px solid #e8e8e8;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 80, 198, 0.08);
  transition: all 0.3s ease;
}
.faq-section .accordion-item:hover {
  border-color: #0050c6;
  box-shadow: 0 6px 20px rgba(0, 80, 198, 0.15);
  transform: translateY(-2px);
}
.faq-section .accordion-button {
  background: transparent;
  border-radius: 0;
  color: var(--dark-text);
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.faq-section .accordion-button:not(.collapsed) {
  background: rgba(0, 80, 198, 0.05);
  color: #0050c6;
}
.faq-section .accordion-body {
  background: rgba(0, 80, 198, 0.02);
  color: var(--dark-text);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  border-top: 1px solid rgba(0, 80, 198, 0.1);
}

/* Highlight an individual FAQ item with a soft primary-blue tint */
.faq-highlight {
  background: rgba(0, 80, 198, 0.14) !important;
}
.faq-highlight .accordion-button,
.faq-highlight .accordion-body {
  color: var(--dark-text) !important;
}

/* Make body text in main homepage sections match FAQ font size */
.stats-section p,
.benefits-section p,
.profit-calculator-section p,
.csd-account-section p,
#market-updates p,
.apply-now-section p {
  font-size: 1.05rem;
}

.form-section {
  background-color: #f8fbff; /* Light blue background */
  padding: 50px 0;
  border-top: 1px solid #e6f0ff;
  border-bottom: 1px solid #e6f0ff;
}

.form-card {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 80, 198, 0.1);
  overflow: hidden;
}

.form-header-container {
  background-color: #0050c6;
  padding: 20px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.form-header-container h2 {
  font-weight: 700;
  margin-bottom: 10px;
}

.form-header-container p {
  font-size: 16px;
  opacity: 0.9;
}

.form-subheader {
  color: #0050c6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.form-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6f0ff;
}

.form-requirements {
  background-color: #f0f7ff;
  padding: 15px;
  border-left: 4px solid #0050c6;
  margin-bottom: 20px;
  border-radius: 5px;
}

.input-group {
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.input-group-text {
  background-color: #f5f8ff;
  border-color: #e2e8f0;
}

.form-control,
.form-select {
  border-color: #e2e8f0;
  padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
  border-color: #0050c6;
  box-shadow: 0 0 0 0.2rem rgba(0, 80, 198, 0.25);
}

/* Custom down-arrow for dropdown fields inside treasury forms */
.treasury-form-card select.form-control,
.treasury-form-card select.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230050c6' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem; /* space for arrow */
}

/* Hide default arrow in IE/Edge */
.treasury-form-card select.form-control::-ms-expand,
.treasury-form-card select.form-select::-ms-expand {
  display: none;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
}

/* Red asterisk for required labels on form pages */
.form-label.required::after {
  content: " *";
  color: #d93025;
  font-weight: 700;
}

#application-form .col-lg-10 {
  max-width: 90%;
  flex: 0 0 90%;
}

.btn-next,
.btn-submit {
  background-color: #0050c6;
  border-color: #0050c6;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #003c9e;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 80, 198, 0.3);
}

.camera-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  background-color: #f8f9fa;
}

/* Step indicator styling */
.step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.step-progress:before {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: bold;
  color: #6c757d;
}

.step-circle.active {
  background-color: #0050c6;
  border-color: #0050c6;
  color: white;
}

.step-title {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
}

.step-title.active {
  color: #0050c6;
}

.form-label.required:after {
  content: " *";
  color: red;
}

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

.btn-warning:hover {
  background-color: rgb(240, 220, 10);
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Outline primary buttons: use yellow body instead of just a border */
.btn-outline-primary {
  color: #000;
  background-color: var(--btn-yellow);
  border-color: var(--btn-yellow);
}

.btn-outline-primary:hover {
  color: #000;
  background-color: rgb(240, 220, 10);
}

.icon-blue {
  color: var(--primary-color);
}

footer,
footer .bg-dark {
  background: radial-gradient(circle at top left, #0b5ed7, #003b8e);
  color: white;
  padding: 40px 0 30px;
}
footer {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}
footer a.text-white {
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a.text-white:hover {
  opacity: 0.9;
  text-decoration: underline;
}

footer h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

footer .list-unstyled li {
  margin-bottom: 0.35rem;
}

/* Strong override: ensure footer uses the same primary blue as the navbar */
footer#contact,
footer#contact.bg-dark,
footer,
footer .bg-dark {
  background-color: var(--primary-color) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-top: none !important;
}

footer#contact a,
footer a.text-white {
  color: #ffffff !important;
}

footer#contact hr {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* CSD account section styling */
.csd-account-section {
  background: linear-gradient(
    180deg,
    rgba(240, 246, 255, 0.6),
    rgba(248, 249, 255, 0.9)
  );
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.csd-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(16, 40, 80, 0.08);
  border: 1px solid rgba(0, 80, 198, 0.06);
}
.csd-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.csd-card p {
  margin-bottom: 1rem;
}
.csd-yes {
  padding: 0.7rem 1.2rem;
}
.csd-no {
  padding: 0.7rem 1.2rem;
}

/* Make "No I don't have..." button red on bank account question page */
button.btn-primary[onclick="showNoAccountMessage()"] {
  background-color: #dc3545;
  border-color: #dc3545;
}

button.btn-primary[onclick="showNoAccountMessage()"]:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Make "Open a CSD account" button red on CSD account question page */
a.btn-primary[href*="open_csd"] {
  background-color: #dc3545;
  border-color: #dc3545;
}

a.btn-primary[href*="open_csd"]:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Market Updates section */
/*#market-updates {
  background: #ffffff;
}*/

#market-updates .card {
  border-radius: 8px;
  overflow: hidden;
  border: none !important;
}

#market-updates .card-title {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border-radius: 999px; /* oval / pill shape */
  background: #ffffff;
  border: 1px solid rgba(0, 80, 198, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  overflow: hidden;
}

/* Static toggle-like track inside the pill heading */
#market-updates .card-title::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 80, 198, 0.08),
    rgba(0, 80, 198, 0.02)
  );
}

/* Keep the text above the inner toggle track */
#market-updates .card-title span,
#market-updates .card-title {
  position: relative;
  z-index: 1;
}

/* Ensure market update value/label spans use normal body font size */
#market-updates ul.list-unstyled.small span {
  font-size: 1.05rem;
}

/* Make buttons in market updates section red */
#market-updates .btn-primary {
  background-color: #dc3545;
  border-color: #dc3545;
}

#market-updates .btn-primary:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Buy Treasury Bills Form Styling */
.col-lg-7 > h2 {
  color: var(--primary-color) !important;
}

#nextBtn {
  background-color: #dc3545;
  border-color: #dc3545;
}

#nextBtn:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

#submitBtn {
  background-color: #dc3545;
  border-color: #dc3545;
}

#submitBtn:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

@media (max-width: 576px) {
  .csd-card {
    padding: 1.25rem;
  }
  .csd-yes,
  .csd-no {
    width: 100%;
  }
  .d-flex.justify-content-center.gap-3 {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.step-indicator {
  display: flex;
  margin-bottom: 30px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.step:after {
  content: "";
  position: absolute;
  height: 3px;
  background-color: #ddd;
  top: 15px;
  left: 50%;
  width: 100%;
  z-index: 1;
}

.step:last-child:after {
  display: none;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

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

.benefits-section {
  padding: 100px 0;
  background-color: #ffffff; /* white background for benefits section */
  margin-top: 12px; /* ensure breathing room above benefits */
  position: relative;
  overflow: hidden;
  /* make section tall enough so image can span from top to bottom */
  min-height: 80vh;
  display: flex;
}

.benefit-card {
  height: 100%;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease;
  background: #ffffff;
  color: #333333;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 80, 198, 0.12);
}

.benefits-section > .container,
.benefits-section .benefit-card,
.benefits-section h2 {
  position: relative;
  z-index: 2;
}

/* Make Start Now button in benefits section red */
.benefits-section .btn-primary {
  background-color: #dc3545;
  border-color: #dc3545;
}

.benefits-section .btn-primary:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Ensure the inner container matches site container alignment */
.benefits-section > .container {
  box-sizing: border-box;
  padding-left: var(--bs-gutter-x, 1rem);
  padding-right: var(--bs-gutter-x, 1rem);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

/* Two-column benefits layout: cards stacked on one side, image space on the other */
.benefits-layout {
  row-gap: 2rem;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch; /* ensure both columns match height */
}

/* Inner row that wraps the benefits layout should also stretch to fill section height */
.benefits-section > .container > .row.g-4 {
  flex: 1 1 auto;
  display: flex;
}

.benefits-image-panel {
  width: 100%;
  height: 100%;
  min-height: 320px; /* ensure the image covers the full right side visually */
  border-radius: 16px;
  /* pure image from top to bottom of the section */
  /*background: url("../img/pexels.jpg") center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);*/
}

/* On desktop, let the benefits image extend to the right edge of the viewport */
@media (min-width: 992px) {
  .benefits-section .col-lg-7 {
    display: flex;
  }

  .benefits-section .col-lg-7 .benefits-image-panel {
    flex: 1 1 auto;
    margin-right: calc(50% - 50vw); /* push panel out to page edge */
    border-radius: 16px 0 0 16px; /* keep rounded edge only on the left */
  }
}

@media (max-width: 991.98px) {
  .benefits-layout {
    flex-direction: column;
  }
}

/* Crop the profits image so we mainly see the woman */
.profit-hero-image {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: right center; /* focus on the woman on the right */
  border-radius: 16px;
}

/* FAQ section separated from benefits for better structure */
.faq-section {
  padding: 60px 0;
  background: #e6f0ff;
  position: relative; /* needed for ::before background overlay */
  overflow: hidden;
}
.faq-section .col-lg-10 {
  max-width: 100%;
  /* margin-left: auto;
  margin-right: auto;*/
}

/* Orbit animation for stats section */
.stats-orbit-wrapper {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: relative;
  width: 320px;
  height: 320px;
  display: block;
  transform-origin: center center;
  animation: orbitRotate 12s linear infinite;
}
.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}
.orbit-item:nth-child(1) {
  transform: rotate(0deg) translate(140px) rotate(0deg);
}
.orbit-item:nth-child(2) {
  transform: rotate(120deg) translate(140px) rotate(-120deg);
}
.orbit-item:nth-child(3) {
  transform: rotate(240deg) translate(140px) rotate(-240deg);
}

/* keep stat content visually upright by counter-rotating */
.orbit-item .stat {
  display: inline-block;
  transform-origin: center center;
  animation: counterRotate 12s linear infinite reverse;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  min-width: 160px;
  text-align: center;
}

@keyframes orbitRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes counterRotate {
  to {
    transform: rotate(-360deg);
  }
}

/* pause orbit on hover for readability */
.orbit:hover {
  animation-play-state: paused;
}
.orbit:hover .orbit-item .stat {
  animation-play-state: paused;
}

/* Mobile / small screens: stack stats normally and disable orbit */
@media (max-width: 767.98px) {
  .stats-orbit-wrapper {
    height: auto;
  }
  .orbit {
    width: 100%;
    height: auto;
    animation: none;
  }
  .orbit-item {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 1rem;
  }
  .orbit-item .stat {
    animation: none;
    display: block;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .benefits-section::before {
    opacity: 0; /* no overlay image on mobile either */
  }
}

.benefit-card:hover {
  transform: none;
  border-color: #a3a1a1;
  background: #ffffff;
  box-shadow: none;
  color: #333333;
}

/* Keep icon and text readable and allow slight color shift on hover */
.benefit-card .card-title {
  font-weight: 700;
}

.benefit-card .benefit-icon {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.benefit-card:hover .benefit-icon {
  color: #0050c6;
  transform: translateY(-3px) scale(1.05);
}

.benefit-icon {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 15px;
}

/* Improved spacing for the Apply Now button section */
.apply-now-section {
  padding: 60px 0;
  background-color: #e6f0ff;
  margin: 0;
  margin-bottom: 0;
}

.apply-now-btn {
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
  transition: all 0.3s;
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.apply-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Styles for buy form image inside card */
.buy-form-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  margin: 0;
}

.buy-form-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .card.row.g-0.align-items-stretch {
    min-height: 320px;
  }
}

/* Left panel containing the form: light-blue background */
.form-panel {
  background: #e8f5ff; /* light blue */
}

/* Outer card boundary styling for form pages */
.outer-form-card {
  border: 1px solid rgba(0, 80, 198, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Increase vertical spacing between form rows on form pages */
.form-panel .row.gy-3 {
  row-gap: 1.75rem;
}

/* Slightly larger controls for better feel */
.form-panel .form-control,
.form-panel .form-select {
  min-height: 48px;
  font-size: 1rem;
  border: 1px solid rgba(0, 80, 198, 0.35);
  background: #ffffff;
}

.form-panel .form-control:focus,
.form-panel .form-select:focus {
  border-color: #0050c6;
  box-shadow: 0 0 0 0.15rem rgba(0, 80, 198, 0.25);
}

/* Purchase-style layout tweaks for T-Bill form */
.purchase-header h5 {
  font-weight: 600;
}

.purchase-header {
  background-color: #e6f0ff; /* light blue to match form card */
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid #c5d6ff;
}

/* Card look for purchase form (no image) */
.purchase-card {
  border-radius: 1rem;
  background: #e6f0ff; /* light blue */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Make the T-Bill purchase form visually taller */
@media (min-width: 768px) {
  .purchase-card {
    min-height: 520px;
  }
}

.purchase-summary-card {
  border-radius: 0;
  background: transparent; /* no card background */
}

.purchase-summary-card .summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.purchase-summary-card .summary-value {
  font-weight: 600;
  color: #111827;
}

@media (max-width: 767.98px) {
  .purchase-layout {
    margin-top: 0.5rem;
  }
}

/* Ensure on small screens the form panel has appropriate padding and rounded corners */
@media (max-width: 767.98px) {
  .form-panel {
    padding: 1rem !important;
    border-radius: 0.65rem 0.65rem 0 0;
  }
}

/* Camera functionality styling */
.camera-container {
  margin-top: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  display: none;
}

.camera-toggle {
  cursor: pointer;
}

/* Custom validation styling */
.is-invalid-group {
  border-left: 3px solid #dc3545;
  padding-left: 15px;
}
.logo-img {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  max-height: 95px;
  width: auto;
}

.apply-now-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: transparent;
}

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-container {
  background: #0050c6 !important;
  padding: 0 !important;
  border-radius: 25px;
}

.logo-container img {
  height: 50px;
  background: transparent !important;
  padding: 0;
  box-shadow: none;
}
.nav-links-container {
  background-color: #e6f0ff;
  border-radius: 25px;
  padding: 0 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: #0050c6 !important;
  font-weight: 600;
  padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
  color: #003080 !important;
  background-color: rgba(0, 80, 198, 0.1);
  border-radius: 5px;
}

.form-check-input[type="radio"] {
  width: 20px;
  height: 20px;
  position: relative;
  margin-right: 10px;
  /* pure image, no overlay/opacity */
  background: url("../img/IMG1_1.png") center/cover no-repeat;
  border: 2px solid #c0c0c0;
  border-radius: 50%;
  cursor: pointer;
  appearance: auto; /* Ensure native appearance */
  -webkit-appearance: auto;
  opacity: 1;
  visibility: visible;
}

.form-check-input[type="radio"]:checked {
  background-color: #0050c6;
  border-color: #0050c6;
  box-shadow: 0 0 0 2px rgba(0, 80, 198, 0.2);
}

.form-check-input[type="radio"]:hover {
  border-color: #0050c6;
}

.form-check-input[type="radio"]:focus {
  border-color: #0050c6;
  box-shadow: 0 0 0 3px rgba(0, 80, 198, 0.25);
}

/* Style the form check container */
#debitCardForm .form-check {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

#debitCardForm .form-check:hover {
  background-color: #f0f7ff;
  border-color: #dae7ff;
}

.stats-section {
  background: #f0f7ff; /* match benefits section light blue below hero as well */
  padding: 40px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.stats-section .stat {
  padding: 0.75rem 1rem;
  color: #0050c6; /* blue text for stats */
}
.stats-section .stat .display-5 {
  font-weight: 800;
}
.stats-section .stat p {
  color: #0050c6; /* blue stat captions */
  margin: 0;
}

#debitCardForm .form-check.active {
  background-color: #e6f0ff;
  border-color: #b8d4ff;
}

.form-check-label {
  margin-left: 10px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

#debitCardForm .form-check-label {
  font-weight: 500;
  padding-left: 8px;
  cursor: pointer;
  color: #333;
}

/* Add active state for the radio group heading */
#debitCardForm .form-label {
  color: #0050c6;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Hero Carousel Styling */
.hero-carousel {
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-carousel .item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hero-carousel .item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px;
}

.hero-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

.hero-carousel .owl-prev,
.hero-carousel .owl-next {
  background: rgba(0, 80, 198, 0.7) !important;
  color: white !important;
  border: none !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: all;
  transition: all 0.3s ease;
  font-size: 20px;
}

.hero-carousel .owl-prev:hover,
.hero-carousel .owl-next:hover {
  background: rgba(0, 80, 198, 1) !important;
  transform: scale(1.1);
}

.hero-carousel .owl-dots {
  text-align: center;
  margin-top: 15px;
}

.hero-carousel .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel .owl-dot.active {
  background: #0050c6;
  transform: scale(1.3);
}

/* Add an active class when radio is checked */
#debitCardForm .form-check-input:checked + .form-check-label {
  color: #0050c6;
  font-weight: 600;
}
#customerRequestSection .form-check,
#accountTypeSection .form-check,
#eCommerceSection .form-check {
  padding-left: 25px; /* Add more left padding */
  margin-left: 10px; /* Add left margin */
  position: relative;
}

/* Ensure radio buttons are positioned properly */
#customerRequestSection .form-check-input,
#accountTypeSection .form-check-input,
#eCommerceSection .form-check-input {
  margin-left: -20px; /* Pull radio button to the left */
  position: absolute;
  left: 20px; /* Position from the left edge */
}

/* Navigation backdrop for contrast when overlayed on hero */
.nav-backdrop {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  display: inline-block;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.nav-backdrop .nav-link {
  color: #fff;
  font-weight: 600;
}

/* When scrolled past hero, switch the nav backdrop to light and links to dark */
.header-scrolled {
  background: transparent !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.header-scrolled .nav-backdrop {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.header-scrolled .nav-backdrop .nav-link {
  color: #222 !important;
}

/* Make the hero container full-bleed (edge-to-edge) while keeping inner container centered */
.hero-container-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
}

/* Make carousel controls and indicators more visible over images */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.65);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Final navbar override: remove any rounding and ensure solid background */
.navbar {
  background-color: var(--primary-color) !important;
  border-radius: 0 !important;
}
.nav-backdrop {
  border-radius: 0 !important;
}
.navbar .nav-link {
  border-radius: 0 !important;
}

/* Force navbar links and outlines to white for contrast */
nav.navbar .nav-link,
.nav-backdrop .nav-link,
.nav-links-container .nav-link,
.navbar-nav .nav-link,
.form-navbar .navbar-nav .nav-link {
  color: #ffffff !important;
  border-color: transparent !important;
}

/* If nav links use outlines or borders, make them white-ish */
.nav-links-container .nav-link,
.form-navbar .navbar-nav .nav-link {
  border: none !important;
  background: transparent !important;
}

/* Hover/active states */
nav.navbar .nav-link:hover,
.nav-links-container .nav-link:hover,
.form-navbar .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

nav.navbar .nav-link.active,
.form-navbar .navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* Ensure no rounded corners on navbar or its containers (override Bootstrap utilities) */
nav.navbar,
.form-navbar,
nav.navbar .container,
nav.navbar .container-fluid {
  border-radius: 0 !important;
  overflow: visible !important;
}

/* Remove rounding on shadow utility if applied */
.shadow-sm,
.shadow {
  border-radius: 0 !important;
}

/* Make the Profits Calculator heading dark blue like other headings */
.profit-calculator-section .section-title {
  color: var(--primary-color) !important;
  text-shadow: none;
}
/* Hide helper text by default */
.helper-text {
  display: none;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Show helper text when input is focused */
.form-control:focus + .helper-text {
  display: block;
}
.csd-page {
  min-height: calc(100vh - 200px);
}

@media (max-height: 600px) {
  .csd-page {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Evenly distribute navbar items across the navbar on desktop */
@media (min-width: 992px) {
  .form-navbar .navbar-nav {
    margin-left: 0 !important;
    width: auto;
    justify-content: center;
    column-gap: 1.75rem;
  }
}
/* Circular Images for Benefits Section */
.circular-images-container {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-image {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 80, 198, 0.2);
  border: 6px solid #ffffff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    z-index 0.3s ease;
  position: absolute;
}

/* Top image (centered) */
.circular-image.img-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Bottom left image */
.circular-image.img-bottom-left {
  top: 200px;
  left: 15%;
  z-index: 2;
}

/* Bottom right image */
.circular-image.img-bottom-right {
  top: 200px;
  right: 15%;
  z-index: 2;
}

.circular-image:hover {
  transform-origin: center;
  z-index: 10;
}

.circular-image.img-top:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 16px 50px rgba(0, 80, 198, 0.35);
}

.circular-image.img-bottom-left:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 50px rgba(0, 80, 198, 0.35);
}

.circular-image.img-bottom-right:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 50px rgba(0, 80, 198, 0.35);
}

/* How It Works Section Styling */
.how-it-works-section {
  background: #ffffff;
}

.how-it-works-card {
  background: #ffffff !important;
  border: 1px solid #cccbcb;
  border-radius: 12px;
  box-shadow: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.how-it-works-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.how-it-works-icon {
  font-size: 3rem;
  color: #dc3545 !important;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
  line-height: 80px;
  text-align: center;
}
/* Treasury Bills Calculator Styling */
#tbillCalculator {
  background: linear-gradient(135deg, #002d5e 0%, #003d7a 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#tbillCalculator .card-body {
  padding: 1.5rem;
}

#tbillCalculator h6 {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#tbillCalculator .small {
  color: #b0c4de;
  font-weight: 500;
}

#tbillCalculator .row > div {
  color: #ffffff;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #faa81a;
}

#tbillCalculator div[id^="tbillCalc"] {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
}
.carousal2{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* ── Mobile navbar & dropdown ──────────────────────────── */
@media (max-width: 991.98px) {
  /* White hamburger icon on dark-blue navbar */
  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Dropdown menu blends with the dark-blue navbar on mobile */
  .navbar-nav .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.18);
    border: none;
    border-radius: 0 !important;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem 0;
    margin: 0;
  }

  .navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    white-space: normal;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover,
  .navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
  }

  /* Give the collapsed menu some breathing room */
  .navbar-collapse {
    padding-bottom: 0.75rem;
  }
}