:root{
	--corporate-primary: #032A53;
}

body{
	font-family: Montserrat !important;
}

button{
	padding: 0 !important;
}
input{
	height: auto !important;
	font-size: auto !important;
}

h3{
	margin: 0 !important;    
	padding: 0 !important;
}
p{
	margin: 0 !important;
	padding: 0 !important;
}

/* Hero Section */
.hero-section {
    background-image: url('https://cdn.inspenet.com/bg-waves-bd.webp');
    background-size: cover;
    background-position: center;
    margin-left: 8%;
    margin-right: 8%;
    padding: 50px;
    border-radius: 20px;
    color: white;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
	color: white;
}

.changing-word {
    color: #ffffff;
	color: black;
    /* Change to match your brand colors */
    transition: color 0.5s ease;
}

/* Animation for Changing Word */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.changing-word {
    display: inline-block;
	color: white;
    animation: fadeInOut 2s infinite;
}

/* cbs-container for Main Content */
.cbs-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 36px;
    margin: 0;
}

.header .subtitle {
    font-size: 18px;
    color: #555;
}

/* Main Content Layout */
.content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Left Column (Filters) */
.left-column {
    flex: 1;
    min-width: 300px;
}

.filters {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.filters label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.filters select,
.filters input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filters button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.filters button:hover {
    background-color: #0056b3;
}

.multi-select-dropdown {
    position: relative;
    height: 100%;
    font-family: Montserrat;;
}

.dropdown-toggle {
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow-y: auto;
    display: none;
}

.dropdown-menu.show {
    display: flex;
    flex-wrap: wrap;
	min-width: 150px;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
	width: 100%;
	text-transform: capitalize;
	z-index: 2;
	background: white;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 10px;
}

.selected-items {
    margin-top: 10px;
}

.selected-item {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.selected-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

/* Right Column (Boxes) */
.right-column {
    flex: 1;
    min-width: 300px;
}

.box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.box h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.box p {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
}


.hero-cbs-container {
    max-width: 1200px;
	width: 100%;
    display: flex;
    margin: 1rem auto;
    justify-content: center;
    align-items: center;
}

.hero {
	width: 100%;
    border-radius: 10px;
    background-image: url('https://cdn.inspenet.com/bg-waves-bd.webp');
    background-position: center;
    background-size: cover;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
}

.hero-metainfo {
    display: none;
}

@media screen and (max-width: 820px) {
	.dropdown-field-text{
		display: none;	
	}
    .hero {
		background-image: url(https://cdn.inspenet.com/cropped-bg-waves-bd-phone-2.webp);
        padding: 2rem 1rem;
        text-align: center;
        margin: 0 auto;
        width: 90vw;
    }

    .hero h1 {
        font-size: 2rem;
        max-width: 600px;
    }

    .hero-metainfo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-metainfo p {
        color: #ffffff77;
        margin: 1rem 0 auto 0;
    }

    .hero-metainfo button {
        width: auto;
    }
}

@media screen and (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
        max-width: 600px;
    }
}


/* search seaction */

.search-cbs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px 15px;
    transition: all 0.4s ease-in-out;
    /* Smooth transition for animations */
}

.search-bar {
    display: grid;
    width: 100%;
	grid-template-columns: calc(210px + 1rem) 72% minmax(40px, 1fr);
    margin: .5rem 0;
}

.search-cbs-container.full-size {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    display: flex;
}

.search-cbs-container.full-size .search-bar {
    width: 100%;
    display: flex;
}


.search-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
	border-radius: 0;
}

.search-bar button {
    padding: 0.5rem 1rem;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
	background: var(--corporate-primary);
}

.main-content {
    display: grid;
    grid-template-columns: 210px 1fr;
	gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
	padding: 1rem 0;
	align-items: start; /* Align grid items at the top */
}

/* Sticky Sidebar */
.cbs-sidebar.sticky {
    position: sticky;
    top: 20px; /* Add some space from top */
    height: fit-content; /* Prevent height overflow */
    z-index: 2; /* Ensure sidebar stays above other content */
    align-self: start; /* Align within grid cell */
}

.cbs-sidebar {
	display: none;
	flex-direction: column;
    flex-shrink: 0;
	height: 100%;
}

@media screen and (min-width: 920px) {
	.search-cbs-container{
		padding: 0;
	}
	.cbs-sidebar {
		display: flex;		
	}
}

@media screen and (max-width: 320px) {
	 .search-bar {
        width: 90%;
	}

}


@media screen and (max-width: 320px) {
	.search-bar {
        display: grid;
        grid-template-columns: 120px 65% 1fr;
    }
}

/* Buisness Directory principal */

.BD-principal p {
    font-size: 12px;
    color: #888888;
}

.BD-principal h1 {
    margin: .5rem 0;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 18px;
    cursor: pointer;
}

.view-toggle button.active {
    background: var(--bb-primary-color);
    color: white;
}

/* alphabet */
.grid-container {
	background: white;
	padding: 1rem;
	border-radius: 1rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.grid {
	display: grid;
    grid-template-columns: repeat(6, 1fr);
	margin-bottom: 1rem;
	font-size: 1rem;
}

.grid span {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .4rem;
}

.separator {
	color: #ddd;
	font-weight: 300;
}

.reset-btn {
	padding: 1rem;
	background: none;
	border: none;
	color: gray;
	font-size: 1rem;
	cursor: pointer;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease;
}

.reset-btn:hover {
	color: #333;
	background: none;
}

.reset-btn:active, .reset-btn:focus {
	background: none;
	color: black;
}

.letter {
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.letter.hidden {
	opacity: 0.2;
}
/* ally section */
/* Modified CSS */
.ally-cbs-container {
    background-color: #F5F9FF;
    border-radius: 12px;
    max-width: 500px;
    margin: 5px auto;
    position: sticky;
    top: 20px; /* Changed from 0 to 20px to match margin */
    padding: 16px;
    z-index: 1; /* Ensures it stays above other content */
}

.ally-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1C2024;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    overflow-wrap: break-word; /* Allows text to break and wrap */
    max-width: 100%; /* Ensures heading doesn't exceed container width */
}

.ally-info-icon {
    color: #3B82F6;
    font-size: 20px;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.ally-cta-button {
    align-items: center;
    background-image: linear-gradient(144deg, #032A53, #163e9d 50%, #6896db);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(37, 99, 235, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    font-size: 15px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 160px;
    width: 100%; /* Full width to fit container */
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.ally-cta-button:active,
.ally-cta-button:hover {
    outline: 0;
	color:white;
}

.ally-cta-button span {
    background-color: var(--corporate-primary);
    /* Dark blue background */
    padding: 12px 5px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
	display: flex;
    justify-content: center;
}

.ally-cta-button:hover span {
    background: none;
}

.ally-cta-button:active {
    transform: scale(0.9);
}

.categories {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.categories h2 {
    margin-bottom: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.business-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.business-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.business-info p{
    padding: .5rem 1rem;
}


.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

@media (min-width: 640px) {
    .business-card {
        display: grid;
        grid-template-columns: 30% 70%;
        gap: 1rem;
    }
}

.business-cover {
	margin: 0 auto;
    overflow: hidden;
    /* Ensure the image doesn’t overflow */
    border-radius: 12px;
    /* Add rounded corners to the cbs-container */
}

.business-cover img{
	margin: 0 auto;
} 


.business-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.business-tags {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

@media screen and (min-width: 320px) {
    .business-logo {
        object-fit: contain;
    }
}

@media screen and (max-width: 920px) {
	.main-content{
		grid-template-columns: 1fr;
	}

	.search-bar{
		grid-template-columns: 120px 70% 1fr;
	}
	.cbs-sidebar.sticky {
        position: static; /* Disable sticky on mobile */
    }
}


@media screen and (max-width: 640px) {
	.search-cbs-container{
		padding: 0;
	}
	.search-bar{
		width: 100%;
		grid-template-columns: 15% 1fr 10%;
	}
}

.tag {
    background: var(--corporate-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 32px;
    font-size: 0.875rem;
	font-weight: bold;
	text-transform: capitalize;
}

.business-location {
    color: #666;
    margin: 0.5rem 0;
}

.business-location p {
	font-size: smaller;
}

.business-description {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-color);
}

.business-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 32px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-outline {
    border: 1px solid #192EEC;
    color: #192EEC;
    background: white;
}

.btn-primary:hover{
	color: white;
	text-decoration: auto;
}

form label {
    margin: 25px 0 10px;
    font-weight: 500;
    color: #474b50;
}

#load-more-btn {
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--corporate-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	font-size: 2rem;
    display: block;
    height: 50px;
    width: 50px;
}

#load-more-btn:hover {
    background: #0f4987;
}

#load-more-btn[disabled] {
    background: #cccccc;
    cursor: not-allowed;
}

.spin-button {
  transition: transform 0.2s, background 0.2s;
}

.spinner-icon {
  display: inline-block;
  animation: spin 1.5s linear infinite;
  will-change: transform; /* Optimize animation performance */
  font-size: 1.2em;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

