:root {
    --text-font-condensed: 'Roboto Condensed', sans-serif;
    --text-font-sans: 'Roboto', sans-serif;
    --primary-color: #306ad7;
    --text-color: white;
    --btn-primary-bg: white;
    --btn-primary-color: #306ad7;
    --btn-secondary-bg: transparent;
    --btn-secondary-color: white;
    --btn-border-radius: 12px;
}

body {
    font-family: var(--text-font-sans);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}
#preloader {
    position: fixed;
    z-index: 9999;
    background: white;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #3484ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.home-hero-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-hero-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3; /* 30% visible = 70% transparent */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Ensure content is above the background */
.home-hero-content {
    position: relative;
    z-index: 1;
}


.home-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80%;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.business-cards-scroll-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
}


.home-hero-text {
    flex: 1 1 500px;
}

.home-hero-text h1 {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media only screen and (max-width: 550px) {
    .home-hero-text h1 {
        font-size: 20px;
    }
}

.home-hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #d9e6ff;
}

.home-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background-color: white !important;
    color: #3378F9 !important;
}

.btn-primary:hover {
    background-color: white;
    color: #3378F9;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--btn-secondary-color) !important;
    border: 2.5px solid var(--btn-secondary-color) !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.home-hero-image-placeholder {
    flex: 1 1 500px;
    height: 350px;
    background-color: red; /* Replace with image later */
    border-radius: 16px;
}

.home-hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    flex: 1 1 500px;
}

/* Background Image (cover) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /*background-size: cover;*/
    background-size: contain;
    background-position: center;
    z-index: 0;
}

#heroCoverOverlayBackground {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url('/images/home/2025/hero/magazine.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    opacity: 0.3;
}


/* Foreground Transparent PNG (cover_insta) */
.hero-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
    z-index: 1;
}


.home-search-section {
    background-color: #052B70;
    padding: 50px 20px 30px 20px;
    color: white;
    position: relative; /* Needed for overlap */
    z-index: 1;
    height: 300px;
}

@media only screen and (max-width: 950px) {
    .home-search-section {
        height: 300px !important;
    }
}


@media only screen and (max-width: 550px) {
    .home-search-section {
        height: 470px !important;
    }
}

.form__search {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.form__search__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: #001C4E;
    padding: 15px;
    border-radius: 20px;
}

.input-icon {
    position: relative;
    flex: 1 1 35%;
}

.form__search__input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #eeeeee;
    color: #333;
}

.form__search__input::placeholder {
    color: #888;
    font-weight: 500;
}

.location-input {
    padding-right: 42px;
}

.icon-location {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.location-svg {
    width: 20px;
    height: 20px;
    stroke: #888;
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    line-height: 1;
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: white; /* optional, modern browsers */
    cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
    transform: translateY(-3px); /* adjust +/-1px as needed */
}

.form__checkbox label {
    cursor: pointer;
    display: inline-block;
}


.button__search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #4070F4;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button__search:hover {
    background-color: #3366e0;
}

.button__search .search-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.alphabetical-list-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.alphabetical-list-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    overflow-x: auto;
}

@media only screen and (max-width: 760px) {
    .alphabetical-list-row {
        flex-direction: column;
    }
}

/* Wrap ul in a scrollable div on small screens */
.alphabetical-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
}

/* Hide scrollbar for Webkit (Chrome, Safari) */
.alphabetical-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
}

.alphabetical-list {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap; /* Ensure it doesn’t wrap */
    white-space: nowrap;
}

.alphabetical-list li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.3s;
    display: inline-block;
}

.alphabetical-list li a:hover {
    background-color: #ffffff22;
}

/* === Business Cards Section === */
.business-cards-wrapper {
    overflow: hidden;
    margin-top: -45px;
    z-index: 2;
    position: relative;
    padding-bottom: 60px;
    width: 100%;
}

.business-cards-scroll-outer {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* prevent visible scroll */
}

.business-cards-container {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease-in-out;
    transform: translateX(0);
}

/* Exactly 4 cards per screen */
.business-card {
    flex: 0 0 calc((100% - 90px) / 4); /* 3 gaps of 30px = 90px */
    background: white;
    border: 2px solid #d5d5d5;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Image */
.business-card img,
.business-image-placeholder {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.business-image-placeholder {
    background: #eee;
}

/* Buttons */
.card-btn {
    display: block;
    border: 2px solid #4070F4;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #4070F4;
    margin: 10px auto;
    width: 90%;
}

.card-btn.primary {
    background-color: #4070F4;
    color: white;
}

/* Scroll Buttons */
.scroll-buttons {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn img {
    width: 30px;
    height: 30px;
}

/* ✅ Attach buttons to the outer scroll container edge */
.scroll-btn.left {
    left: 0; /* now relative to .scroll-buttons */
}

.scroll-btn.right {
    right: 0;
}

/* ✅ On desktop, adjust slightly inside container */
@media only screen and (min-width: 769px) {
    .scroll-btn.left {
        left: 10px;
    }

    .scroll-btn.right {
        right: 10px;
    }
}

/* ✅ Mobile: over the cards */
@media only screen and (max-width: 768px) {
    .scroll-btn.left,
    .scroll-btn.right {
        top: 40%;
    }

    .scroll-btn {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Responsive */
@media only screen and (max-width: 1024px) {
    .business-card {
        flex: 0 0 45%;
    }
}

@media only screen and (max-width: 768px) {
    .business-card {
        flex: 0 0 90%;
    }

}

@media only screen and (max-width: 768px) {
    .business-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .business-cards-container {
        gap: 10px; /* Remove gap to avoid horizontal cutoffs */
    }

    .scroll-btn.left,
    .scroll-btn.right {
        top: 40%;
    }

    .scroll-btn {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn img {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .business-cards-scroll-outer {
        padding: 0; /* important to avoid scroll offset */
        overflow-x: hidden;
    }

    .business-cards-container {
        gap: 0; /* no horizontal gap */
    }

    .business-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}


/* Business Hero Cards Ends */

/* Stats Section */
.home-meetings-section {
    width: 100%;
}

.business-meetings-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 90%;
}

.business-stats {
    width: 90%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: -100px;
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 2px solid #052B70;
    border-radius: 20px;
}

.stat-box {
    flex: 1 1 160px;
    text-align: center;
    margin: 15px;
}

@media only screen and (max-width: 550px) {
    .business-stats {
        margin-bottom: -70px !important;
    }

    .stat-box {
        margin: 5px;
    }
}

.icon-placeholder {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.stats-picture-1 {
    background: url('/images/svg/stats/comp_registe.svg') no-repeat;
    background-position: 5px center;
    width: 45px;
    height: 45px;
}
.stats-picture-2 {
    background: url('/images/svg/stats/comp_registe_month.svg') no-repeat;
    background-position: 5px center;
    width: 45px;
    height: 45px;
}
.stats-picture-3 {
    background: url('/images/svg/stats/total_registe.svg') no-repeat;
    background-position: 5px center;
    width: 50px;
    height: 50px;
}
.stats-picture-4 {
    background: url('/images/svg/stats/years_bus.svg') no-repeat;
    background-position: 5px center;
    width: 50px;
    height: 50px;
}
.stats-picture-5 {
    background: url('/images/svg/stats/trade_value.svg') no-repeat;
    background-position: center;
    background-size: contain;
    width: 50px;
    height: 50px;
}

.stats-picture-6 {
    background: url('/images/home/2025/clicks_categories.svg') no-repeat;
    background-position: center;
    background-size: contain;
    width: 112px;
    height: 112px;
}

.stats-picture-7 {
    background: url('/images/home/2025/clicks_profile.svg') no-repeat;
    background-position: center;
    background-size: contain;
    width: 112px;
    height: 112px;
}

.stats-picture-8 {
    background: url('/images/home/2025/total_visits.svg') no-repeat;
    background-position: center;
    background-size: contain;
    width: 112px;
    height: 112px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    color: #555;
}

.home-stats-section {
    background: #052B70; /* Or use a background-image if needed */
    position: relative;
    padding-top: 120px; /* Enough space for overlap */
    padding-bottom: 80px;
    z-index: 0;
    height: 350px;
}

@media only screen and (max-width: 550px) {
    .home-stats-section {
        justify-content: center;
        align-items: center;
        display: flex;
        height: 670px;
    }
}

.business-stats {
    width: 90%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);

    /* 🟡 Key Part: Pulls it into the blue section */
    margin-bottom: -100px;
    position: relative;
    z-index: 2;
}

.stats-overlay-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media only screen and (max-width: 550px) {
    .stats-overlay-container {
        align-items: center;
        gap: 20px;
        padding-top: 50px;
    }
}

.stat-card {
    background: transparent;
    color: white;
    flex: 1 1 250px;
    padding: 20px;
    flex-direction: row;
    display: flex;
    gap: 10px;
}

@media only screen and (max-width: 550px) {
    .stat-card {
        flex: unset;
    }
}

.stat-card .icon {
    font-size: 68px;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-card span {
    font-size: 14px;
    color: #d0d0d0;
}

.data-stats {
    display: flex;
    flex-direction: column;
}

.home-web-design-banner {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Slider shell */
.banner-slider {
    position: relative;
    width: 75%;
    border-radius: 20px;
    overflow: hidden;
}

/* Track with slides */
.banner-track {
    display: flex;
    will-change: transform;
    transition: transform 600ms ease;
}

/* Each slide fills the slider */
.banner-slide {
    flex: 0 0 100%;
    position: relative;
}

/* Image styling */
.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    /* optional subtle parallax feel */
    transform: translateZ(0);
}

/* Crossfade overlay (nice effect on slide change) */
.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.08));
    pointer-events: none;
}

/* Nav arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,0.35);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 200ms ease, opacity 200ms ease;
    opacity: 0;
}
.banner-slider:hover .banner-nav { opacity: 1; }
.banner-nav:hover { background: rgba(0,0,0,0.5); }
.banner-nav.prev { left: 10px; }
.banner-nav.next { right: 10px; }

/* Dots */
.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}
.banner-dots .dot.active {
    background: rgba(255,255,255,0.95);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .banner-slider { width: 100%; border-radius: 14px; }
    .banner-slide img { border-radius: 14px; }
    .banner-nav { display: none; } /* cleaner on mobile */
}


.home-popular-businesses {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 550px) {
    .home-popular-businesses {
        width: 100%;
        justify-content: initial;
        align-items: center;
        /* margin-top: -40px; */
    }
}

.home-popular-businesses-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

@media only screen and (max-width: 550px) {
    .home-popular-businesses-title {
        padding: 1px;
    }
}

.homepage-title {
    display: flex;
    color: #343434;
    font-size: 22px;
    font-weight: bold;
}

@media only screen and (max-width: 550px) {
    .homepage-title {
        margin-left: 17px;
        margin-top: 25px;
        font-size: 26px;
        font-weight: 500;
        line-height: 30.47px;
    }
}


.popular-businesses-container {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media only screen and (max-width: 550px) {
    .popular-businesses-container {
        width: 100%;
        overflow-x: auto; /* Enable horizontal scrolling */
        align-items: center;
        justify-content: center;
    }
    .popular-businesses-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar */
    }
}

.card {
    width: 411px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgb(174 201 224);
    border-radius: 25px !important;
    margin-right: 50px;
}

@media only screen and (max-width: 550px) {
    .card {
        overflow: initial;
        height: auto;
        width: 295px;
        margin-right: 0px;
    }
}

.card-top {
    width: 100%;
    background-size: cover;
    background-position: center;
}

@media only screen and (max-width: 550px) {
    .card-top {
        width: 295px;
    }
}

.card-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 25px;  /* Match .card border-radius */
    border-top-right-radius: 25px;
}

.card-middle {
    width: 100%;
    position: relative;
    text-align: center; /* Also helps center text below */
}

@media only screen and (max-width: 550px) {
    .card-middle {
        height: 225px;
    }
}

.card-middle img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -105px;
    border-radius: 50%;
    border: 1px solid rgb(85 155 210);
}

.card-business-name {
    margin-top: 80px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

@media only screen and (max-width: 550px) {
    .card-business-name {
        font-weight: 400;
        font-size: 20px;
        line-height: 23.44px;
        color: #000000;
        margin-left: 0; /* Remove this to avoid pushing it right */
        text-align: center; /* Ensure centering on mobile */
    }
}


.card-categories {
    width: 100%;
    height: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    left: auto;
    margin-left: auto;
    margin-right: auto;
}

.card-btn-category {
    flex: 1;
    margin: 0;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    background-color: #0859A0;
    border-radius: 3px;
    width: 125px;
    height: 33px;
    overflow: hidden;
    margin-right: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

@media only screen and (max-width: 550px) {
    .card-btn-category {
        height: 31px;
    }
}

.card-business-address {
    margin: 0 auto; /* Center horizontally */
    text-align: center;
    height: auto; /* Let height adapt to content */
    margin-top: 8px;
    margin-bottom: 8px;
}


@media only screen and (max-width: 550px) {
    .card-business-address {
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        color: #575757;
        padding: 5px 15px;
        text-align: center;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}


.card-business-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    flex-direction: row;
}

@media only screen and (max-width: 550px) {
    .card-business-footer .card-business-email:first-child {
        display: none;
    }
}

.card-business-email:first-child {
    margin-right: 5px;
}
.card-business-email:nth-child(2) {
    color: #4d4d4d !important;
    font-size: 13px;
}
.card-business-email {
    display: flex;
    font-family: var(--text-font-regular);
    color: #575757;
    font-size: 12px;
}

@media only screen and (max-width: 550px) {
    .card-business-email {
        font-size: 12px;
    }
}

.with-icon2 {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    justify-content: center; /* Horizontally center content */
    gap: 8px; /* Space between icon and text */
    color: #575757;
    font-size: 13px;
    padding: 10px 20px;
}

.with-icon2::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/images/svg/green_location_mark.svg') no-repeat center center;
    background-size: contain;
}

@media only screen and (max-width: 550px) {
    .with-icon2 {
        margin-top: 0;
        margin-left: 20px;
        margin-right: 18px;
    }
}





.card-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    width: 100%;
}
/* Common button style */
.card-action-btn,
.card-shop-btn {
    width: 90%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* Specific styles */
.card-action-btn {
    border: 2px solid #4674f8;
    background: white;
    color: #333;
}

.card-shop-btn {
    background-color: #4674f8;
    color: white;
}

/* Icon stays on the left */
.card-action-btn img,
.card-shop-btn img {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
}

/* Text is centered */
.card-action-btn span,
.card-shop-btn span {
    margin: 0 auto;
}
.home-partners-section {
    position: relative;
    background: #052B70;
    padding: 80px 20px;
    z-index: 1;
}

/* Gradient overlay from left & right with transparent middle */
.home-partners-gradient-overlay {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, rgba(61,127,249,0.8) 0%, rgba(255,255,255,0) 50%, rgba(61,127,249,0.8) 100%);
    z-index: 2;
}

/* Container over the gradient */
.partners-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1350px;
    margin: 0 auto;
}

/* White background for content */
.partners-content {
    border-radius: 25px;
    text-align: center;
}

.home-partners-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.home-partners-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 35px;
}

/* Grid layout */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Partner card */
.partner-card {
    background: #fff;
    width: 180px;
    height: 110px;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.google-reviews-wrapper {
    padding-top: 60px;
    padding-bottom: 0;
    z-index: 2;
    background-color: #fff;
    text-align: center;
}

.google-reviews-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
}

.google-rating-bar {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.google-rating-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.google-rating-bar img {
    height: 40px;
}

.rating-score {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.rating-count {
    color: #777;
}

.write-review-btn {
    background: #4674f8;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.google-reviews-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: -120px; /* Overlap here */
    position: relative;
    z-index: 5;
    overflow-y: hidden;
}

.review-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 20px;
    width: 320px;
    text-align: left;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-date {
    font-size: 13px;
    color: #888;
}

.stars {
    color: #f39c12;
    font-size: 14px;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
    color: #888;
}

.review-footer img {
    width: 24px;
}

@media only screen and (max-width: 768px) {
    .google-rating-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .google-rating-left {
        flex-direction: column;
        gap: 8px;
    }

    .google-reviews-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: -60px; /* reduce overlap for mobile */
        padding: 0 15px;
    }

    .review-card {
        width: 100%;
        max-width: 90vw;
        text-align: left;
    }

    .write-review-btn {
        width: fit-content;
        margin-top: 10px;
    }
}


.why-choose-section {
    background: #00245f;
    color: white;
    padding: 160px 30px 60px; /* Top padding for overlap */
    text-align: center;
    position: relative;
    z-index: 1;
}

.why-choose-section h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.why-choose-section h2 span {
    color: #4674f8;
}

.why-choose-section p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 16px;
}

/* ===== Features Section ===== */
.features-section {
    background-color: #f9f9f9;
    padding: 80px 20px 120px;
    position: relative;
    z-index: 2;
    text-align: center;
    overflow: visible; /* 👈 Just to make sure the overlap is not clipped */
}

.features-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: -170px; /* 👈 This makes the overlap */
    overflow-y: hidden;
}

@media only screen and (max-width: 550px) {
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.feature-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.feature-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-card a {
    font-size: 14px;
    font-weight: bold;
    color: #4674f8;
    text-decoration: none;
}

.feature-card a:hover {
    text-decoration: underline;
}

/* ===== Success Stories Section ===== */
.success-stories-section {
    background-color: #00245f;
    color: white;
    padding: 100px 20px 30px; /* top padding already good */
    position: relative;
    z-index: 1;
    text-align: center;
}


.success-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-left: 100px;
}

.success-slider {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
}

.success-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    height: 365px;
}


.success-slide {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.5s ease-in-out;
}


.success-image {
    flex: 0 0 250px;
}

.success-image img {
    width: 100%;
    border-radius: 10px;
    max-height: 400px;
    object-fit: contain;
}

.success-quote {
    max-width: 600px;
    text-align: left;
    position: relative;
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 150px;
}

.success-quote p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-quote .quote-icon {
    font-size: 40px;
    color: #4674f8;
    position: absolute;
    top: -20px;
    left: -20px;
}

.success-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    margin-top: 10px;
}

@media only screen and (max-width: 768px) {
    .success-slide {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .success-image {
        width: 100%;
        flex: unset;
        max-width: 90vw;
    }

    .success-image img {
        max-height: 300px;
        object-fit: cover;
    }

    .success-quote {
        text-align: left;
        max-width: 90vw;
        margin-top: 0px;
    }

    .success-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* Arrows */
.slider-arrow {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
}

.slider-arrow.left {
    position: absolute;
    left: -40px;
}

.slider-arrow.right {
    position: absolute;
    right: -40px;
}

/* Dots */
.slider-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: white;
}

.news-section {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.news-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.news-column {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    min-height: 100%;
}

.news-column-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

/* --- News Cards --- */
.news-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.news-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.news-content {
    padding: 10px 0;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c60ff;
    margin: 10px 0 5px;
}

.news-content p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.read-more {
    font-size: 14px;
    font-weight: bold;
    color: #2c60ff;
    text-decoration: none;
}

/* --- Article Block --- */
.article-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 10px;
    font-size: 26px;
    font-weight: bold;
    color: #222;
}

.article-placeholder p {
    font-size: 22px;
    line-height: 1.4;
    margin-top: 10px;
}

/* --- Podcast Card --- */
.podcast-card {
    border: 2px solid #2c60ff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.podcast-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.podcast-label {
    font-weight: bold;
    font-size: 20px;
    color: #222;
}

@media only screen and (max-width: 768px) {
    .home-search-section {
        height: 350px;
    }

    .home-stats-section {
        justify-content: center;
        align-items: center;
        display: flex;
        height: 670px;
    }

    .stats-overlay-container {
        align-items: center;
        gap: 20px;
        padding-top: 50px;
    }

    .stat-card {
        flex: unset;
    }

    .home-popular-businesses {
        width: 100%;
        justify-content: initial;
        align-items: center;
    }

    .homepage-title {
        margin-left: 17px;
        margin-top: 25px;
        font-size: 26px;
        font-weight: 500;
        line-height: 30.47px;
    }

    .popular-businesses-container {
        width: 100%;
        overflow-x: auto;
        align-items: center;
        justify-content: center;
    }

    .popular-businesses-container::-webkit-scrollbar {
        display: none;
    }

    .card {
        overflow: initial;
        height: auto;
        width: 295px;
        margin-right: 0px;
    }

    .card-top {
        width: 295px;
    }

    .card-middle {
        height: 225px;
    }

    .card-business-name {
        font-weight: 400;
        font-size: 20px;
        line-height: 23.44px;
        color: #000000;
        margin-left: 0;
        text-align: center;
    }

    .card-btn-category {
        height: 31px;
    }

    .card-business-address {
        font-size: 13px;
        font-weight: 100;
        line-height: 24px;
        color: #575757;
    }

    .card-business-footer .card-business-email:first-child {
        display: none;
    }

    .card-business-email {
        font-size: 12px;
    }

    .with-icon2 {
        margin-top: 0;
        margin-left: 20px;
        margin-right: 18px;
    }
}

/* images stories */
/* Bigger image on desktop */
.success-image {
    /* wider image column, scales with viewport but capped */
    flex: 0 0 clamp(260px, 28vw, 380px);
}

.success-image img {
    width: 100%;
    /* taller image so it extends downward into the blue area */
    height: clamp(420px, 44vw, 505px);
    max-height: none;           /* remove the previous cap */
    object-fit: cover;          /* fill the box nicely */
    border-radius: 10px;
    display: block;
}

/* keep mobile as-is */
@media (max-width: 768px) {
    .success-image {
        flex: unset;
        width: 100%;
        max-width: 90vw;
    }
    .success-image img {
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }


    .success-title {
        margin-bottom: auto;
        margin-left: auto;
    }
}


/* === Success Stories: mobile layout === */
@media (max-width: 768px) {
    .success-stories-section {
        padding: 60px 16px 80px;      /* extra bottom space so nothing overlaps the next section */
    }

    .success-slider-wrapper {
        height: auto;                 /* no fixed height on mobile */
    }

    .success-slide {
        position: relative;
        min-height: 460px;            /* room for image + text */
        border-radius: 12px;
        overflow: hidden;             /* keep image corners tidy */
        gap: 0;
        align-items: stretch;
        text-align: left;
    }

    /* Put the picture behind the text */
    .success-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        max-width: none;
        width: 100%;
        height: 100%;
    }

    .success-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;            /* smaller, fills card without bands */
        filter: brightness(0.65);     /* darken a touch for text readability */
    }

    /* Text sits on top of the image */
    .success-quote {
        position: relative;
        z-index: 1;
        margin: 0;
        max-width: none;
        padding: 220px 16px 16px;     /* pushes copy down so faces aren't hidden */
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 40%,
            rgba(0,36,95,0.7) 80%,
            rgba(0,36,95,0.9) 100%
        );                             /* subtle fade for contrast */
    }

    .success-quote .quote-icon {
        top: auto;
        left: 12px;
        transform: translateY(-8px);
    }

    .success-meta {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.25);
    }

    /* Dots spacing so they don't collide with the card */
    .slider-dots {
        margin-top: 18px;
    }
}
