/*
 * General Styles
 * For a clean and maintainable codebase,
 * always try to avoid inline styles and
 * use a well-structured CSS file.
 */

.hero-section {
  image-rendering: crisp-edges;
  /* or pixelated */
  -webkit-optimize-contrast: high;
}


/* --- Header & Navbar --- */
header .navbar {
  padding: 0.2rem 3px;
}

header .navbar-brand img {
  max-height: 60px;
  height: auto;
}

/* for form  ahome and bond */

/* General Variables & Utilities */
:root {
  --primary-color: #33A137;
  /*--primary-color: #046066;*/
  --light-gray: #f8f9fa;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --transition-speed: 0.3s;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* --- Header & Navbar --- */
header .navbar {
  padding: 0.2rem 3px;
}

header .navbar-brand img {
  max-height: 60px;
  height: auto;
}

/* --- Hero Section (Default for Home Page) --- */
.hero-section {
  position: relative;
  height: 60vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 15px;
}

.hero-title h1 {
  font-size: 2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.hero-title p {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--text-dark);
}

/* --- Form Styles --- */
.hero-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
}

/* Home Page Form Style (white, transparent background) */
.hero-form {
  background-color: black;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.hero-form .form-control,
.hero-form .form-select {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: var(--text-dark);
}

.hero-form .btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
}

.hero-form .btn:hover {
  background-color: #088316;
}

.btn:hover {
  background-color: #088316;
}

/* --- Suggestions List --- */

#suggestions {
  background-color: #000;
  color: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 10001;
  border-radius: 3px;
  max-height: 200px;
  overflow-y: auto;
}

.suggest-item {
  padding: 10px 15px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dotted #e0e0e0;
  font-size: 0.95rem;
  color: #222;
  background-color: #fff;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover,
.suggest-item.active {
  background-color: #f5f5f5;
}

#testInput::placeholder {
  color: gray;
  opacity: 1;
}


/* --- Bonds Page Specific Styles --- */
.sticky-top-container {
  position: sticky;
  top: 0;
  z-index: 9994;
  background: #fff;
}

.sticky-top-container .hero-section {
  height: 150px;
  background-color: black;
}

.sticky-top-container .hero-content {
  background: transparent;
}

/* Bonds Page Form Styles (transparent background, no shadow) */
.sticky-top-container .hero-form {
  background: transparent;
  box-shadow: none;
  color: white;
}

.sticky-top-container .hero-form .form-control,
.sticky-top-container .hero-form .form-select {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: white;
  color: black;
}

/* --- Media Queries (for screens <= 576px) --- */
/* --- Media Queries (for screens <= 576px) --- */
/*
 * Consolidate common styles for all mobile screens first.
 * This makes the code cleaner and easier to read.
 */


/*
 * This media query now only handles styles specific to screens below 576px
 * that are not related to the form layout.
 */
@media (max-width: 576px) {


  .hero-swiper-bg,
  .hero-overlay,
  .hero-title,
  #stickyyy {
    display: none !important;
  }


  .sticky-top-container .hero-section {
    height: 155px;
  }

  .hero-content {
    padding: 0 !important;
  }

  .hero-form-wrapper {
    background: transparent;
    padding: 15px;
  }

  .hero-form {
    padding: 15px;
    box-shadow: none;
  }
}

/* for small cards*/
.broker-card-small {
  min-height: 200px;
  /* same height for all */
  border: 2px solid #33A137;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* centers content vertically */
}

/* This media query specifically handles screens below 400px. */
@media (max-width: 400px) {
  .row.g-3 {
    flex-direction: row;
    /* Change to row layout */
    flex-wrap: wrap;
    /* Allow items to wrap */
    justify-content: space-between;
    /* Space out the inputs evenly */
  }

  .row.g-3>[class*="col-"] {
    width: 48%;
    /* Each input takes up about half the width */
    padding: 0 !important;
    /* Reset padding */
  }

  .row.g-3 button,
  .row.g-3 .btn {
    width: 100%;
    /* Make the button full-width */
    margin-top: 10px;
    /* Add space above the button */
  }
}



.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  transition: 0.3s ease;
}



.custom-nav-btn {
  width: 50px;
  /* circle size */
  height: 50px;
  /* same as width */
  border-radius: 50%;
  /* make it circular */
  border: 2px solid white;
  background: var(--primary-color);
  /* or your preferred color */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.custom-nav-btn::after {
  font-size: 18px;
  /* Swiper arrow icon size */
  color: white;



}

.broker-big {
  border: 2px solid #33A137
}


/*  dlksjfks */
.nav-tabs .nav-link.active {
  background-color: #33A137 !important;
  color: #fff !important;
  border-color: #33A137 #33A137 #fff !important;
}

.nav-tabs .nav-link {
  color: #33A137 !important;
}

/* Table header */
.table-dark th {
  background-color: #33A137 !important;
  color: #fff !important;
}

/* Custom badges */
.badge.bg-primary,
.badge.bg-secondary {
  background-color: #33A137 !important;
  color: #fff !important;
}

/* Links */
a {
  color: #33A137;
  text-decoration: none;
}

a:hover {
  color: #145826;
}

/* Success / danger text keep bootstrap defaults */


/* Login Page */
/* fot wish_view top brokers page */
/* Make sure your custom style overrides Bootstrap */
.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* space between checkbox and text */
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.filter-label:hover {
    background-color: #e9ecef;
}

/* Reset Bootstrap's absolute positioning */
.filter-label .form-check-input {
    position: static !important;
    margin: 0 !important;
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* keeps size consistent */
    cursor: pointer;
}
        
.filter-label:has(.form-check-input:checked) {
    background-color: var(--primary-color:);
    color: green;
    border-color: var(--primary-color);
}
        .broker-card {
            transition: all 0.3s ease;
        }
        
        .broker-card.hidden {
            display: none;
        }
        
        .no-results {
            display: none;
            text-align: center;
            padding: 2rem;
            grid-column: 1 / -1;
        }


/* for arrows */
/* * Your provided CSS with slight enhancements */ */
      ul.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0; /* remove extra margin */
}

ul.list-unstyled li {
  position: relative;
  padding-left: 22px;  /* reduced space for arrow */
  margin-bottom: 8px;  /* tighter gap between items */
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4; /* more compact */
  color: #34495e;
  transition: all 0.3s ease;
}

ul.list-unstyled li a {
  color: black;
  text-decoration: none; /* prevent default underline */
}

ul.list-unstyled li:hover {
  color: #33A137;
  transform: translateX(4px); /* subtle shift */
}

/* Arrow */
ul.list-unstyled li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-30deg);
  width: 0;
  height: 0;
  border-left: 7px solid #33A137; /* slightly smaller */
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.3s ease;
}

ul.list-unstyled li:hover::before {
  transform: translateY(-50%) rotate(0deg);
}

/* Hover underline */
ul.list-unstyled li::after {
  content: "";
  position: absolute;
  left: 22px; /* match reduced padding */
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #33A137;
  transition: width 0.3s ease;
}

ul.list-unstyled li:hover::after {
  width: calc(100% - 22px);
}

/* for page pagination  */

.page-item.active .page-link {
    background-color: #33A137; /* black background */
    border-color: #33A137;     /* border same as bg */
    color: #fff !important; /* white text */
}
.page-link:hover {
    background-color: grey;
    color: #fff !important;
}

.navbar-toggler {
    border: none !important;   /* remove border */
    outline: none !important;  /* remove outline */
    box-shadow: none !important; /* remove focus glow */
}
