/*
 * 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: #1e7836;
  /*--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 #1e7836;
  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 var(--primary-color);
  background: white;
  /* 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: var(--primary-color);



}

.broker-big {
  border: 2px solid #1e7836
}


/*  dlksjfks */
.nav-tabs .nav-link.active {
  background-color: #1e7836 !important;
  color: #fff !important;
  border-color: #1e7836 #1e7836 #fff !important;
}

.nav-tabs .nav-link {
  color: #1e7836 !important;
}

/* Table header */
.table-dark th {
  background-color: #1e7836 !important;
  color: #fff !important;
}

/* Custom badges */
.badge.bg-primary,
.badge.bg-secondary {
  background-color: #1e7836 !important;
  color: #fff !important;
}

/* Links */
a {
  color: #1e7836;
  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;
        }
        
        
        
        .image-div {
    background-image: url('{{ asset('images/building.png') }}');
    width: 500px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;

    /* Animation */
    animation: floatUpDown 3s ease-in-out infinite;
}

/* Keyframes for floating effect */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);   /* original position */
    }
    50% {
        transform: translateY(-10px); /* move up slightly */
    }
}
