*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    --prime: #00215E;
    --sec: #00215E;
    --ter: #C9971C;
    --ltblu:#324a7a;
    scroll-behavior: smooth;
}

body {
    background: #F4F7FB;
    overflow-x: hidden;
}
.form-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.businesscard h3{
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* min-height: 30px; */
    display: -webkit-box;
}
.businesscard p{
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
        min-height: 50px;
    display: -webkit-box;
}
a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
}

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

.bg-accent {
    background: #ccc9;
}

.bg-prime {
    background: var(--prime);
}

.bg-sec {
    background: var(--sec);
}

.bg-ltblu {
    background: var(--ltblu);
}

.btn-prime {
    background: var(--prime);
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    color: #fff;
    min-height: 42px;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
}

.btn-sec {
    border: 1px solid var(--prime);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    color: var(--prime);
    min-height: 42px;
    padding: 7px 16px;
    border-radius: 6px;
}

.w-fit {
    width: fit-content;
}

.mw-750 {
    max-width: 750px;
}

@media (min-width:768px) {
    .w-md-50 {
        width: 50%;
    }
}


.fs-7 {
    font-size: 14px;
}

header {
    background: var(--ter);
    position: sticky;
    top: 0;
    box-shadow: 0px 4px 4px 0px #0000001F;
    z-index: 999;
}

.navbar-nav .nav-link {
    color: #000;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    font-weight: 600;
    color: var(--sec);
}

#navbar-toggler:checked~.collapse {
    display: block;
}

footer {
    background: var(--prime);
    color: #fff;
}

footer .pages {
    display: grid;
    grid-template-columns: 2fr 3fr;
}

footer .contact,
footer .pages>div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

footer p,
footer .contact a,
footer .pages a {
    color: #fff;
    transition: all .3s ease-in-out;
    font-size: 14px;
}

footer .pages a:hover {
    transform: translateX(6px);
    transition: all .3s ease-in-out;
}

footer .contact a {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 6px;
}

footer .contact a img {
    width: 24px;
}

footer .social-media a {
    height: 30px;
    width: 30px;
}

footer .social-media,
footer .pages,
footer .contact {
    margin-bottom: 20px;
}

.footer-credit {
    background: var(--sec);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}


/* Forms */

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

select,
input,
textarea {
    border: 1px solid transparent;
    outline: none;
    border-radius: 5px;
    padding: 10px 20px;
    background: #fff;
    width: 100%;
}


select {
    padding: 11px 20px;
}

select:focus,
input:focus,
textarea:focus {
    border: 1px solid var(--prime);
    background: #fff;
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--prime);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.form-range:focus {
    outline: none;
    border: none;
}

.listing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width:678px) {
    .listing {
        grid-template-columns: 1fr;
    }
}

.businesscard {
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0px 4px 60px 0px #0001;
}

.businesscard:hover {
    box-shadow: 0px 4px 60px 0px #0002;
}

.businesscard img.img-fluid {
    border-radius: 8px;
}


/* how does it work section */
.howdoessection label input,
.howdoessection .howdoescont {
    display: none;
}

.howdoessection label {
    cursor: pointer;
    padding: 4px 8px 8px;
    border-bottom: 5px solid transparent;
    flex-shrink: 0;
    flex-grow: 1;
    text-align: center;
    color:#fff9;
}

.howdoessection label:has(input:checked) {
    position: relative;
    color: #fff;
    font-weight: 600;
}

.howdoessection label:has(input:checked)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20%;
    width: 60%;
    height: 5px;
    background: #fff9;
    border-radius: 6px;
}


.howdoessection:has(input#mobileoptimis:checked) .howdoescont#mocont,
.howdoessection:has(input#explorelist:checked) .howdoescont#explcont,
.howdoessection:has(input#clicktocall:checked) .howdoescont#ctoccont {
    display: block;
}

/* onload animation with animation timeline */
@media (prefers-reduced-motion: no-preference) {

    .animate-this {
        opacity: 0;
        transform: translateY(50px);
    }

    .animate-this.animated {
        animation: fade-in 0.8s ease-in-out forwards;
    }

    @keyframes fade-in {
        to {
            opacity: 1;
            transform: translateY(0px);
        }
    }
}

/*Premium css*/
.psdrs {
    position: relative;
    height: 220px;
    width: 320px;
}
.tp-feature-image {
    width: 100%;
    height: 100%;
}
.open {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px 0px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #50D437;
    color: #fff;
}