html { scroll-behavior: smooth; }

body {
    font-family: "Albert Sans", sans-serif;
    background: #F4F6FD;
    color: #0F1A33;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: "Hanken Grotesk", sans-serif;
}

section[id] { scroll-margin-top: 6rem; }

.animate-this {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-this.animated { opacity: 1; transform: translateY(0); }

select.category-select { max-height: 300px; }

/* Horizontal-scroll category chip rail */
.category-rail {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
}
.category-rail::-webkit-scrollbar { height: 6px; }
.category-rail::-webkit-scrollbar-thumb { background: rgba(55,109,236,.25); border-radius: 6px; }
.category-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    padding: 1rem .5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15,26,51,.08);
    box-shadow: 0 1px 2px rgba(15,26,51,.05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-chip:hover { box-shadow: 0 12px 24px -8px rgba(55,109,236,.22); transform: translateY(-2px); border-color: rgba(110,117,234,.4); }
.category-chip .chip-icon {
    height: 44px; width: 44px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #376DEC, #6E75EA);
}
.category-chip .chip-icon svg { height: 20px; width: 20px; fill: #fff; }
.category-chip p { font-size: .75rem; font-weight: 700; margin: 0; color: #0F1A33; }

.preloader-inline { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.preloader-inline .spin {
    height: 2rem; width: 2rem; border-radius: 999px;
    border: 3px solid rgba(55,109,236,.2); border-top-color: #376DEC;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*
 * Compatibility layer -- apiClass.php's ajaxList() (used by listing.php's
 * "Load More" button) renders .businesscard markup with Bootstrap utility
 * classes (covered by co-loaded bootstrap.min.css) plus .btn-prime/.btn-sec
 * already defined in css/style.css, driven by --prime/--sec (retheme above
 * -- --prime already equalled the logo's exact blue).
 */
.businesscard {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15,26,51,.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,26,51,.05), 0 8px 24px -8px rgba(55,109,236,.16);
    transition: box-shadow .2s ease, transform .2s ease;
}
.businesscard:hover { box-shadow: 0 20px 40px -12px rgba(55,109,236,.26); transform: translateY(-3px); }
.businesscard .img-fluid, .businesscard .aks { width: 100%; height: 190px; object-fit: cover; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .fs-5 { font-size: 1.05rem; font-weight: 800; color: #0F1A33; font-family: "Hanken Grotesk", sans-serif; }
.businesscard .fw-bold { font-weight: 800; }
.businesscard .opacity-75 { color: #5C6B85; font-size: .875rem; margin-top: .35rem; margin-bottom: .75rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .w-100 { width: 100%; }
.psdrs { position: relative; }
.open {
    position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 4px 10px;
    background: linear-gradient(135deg, #F3B41B, #6E75EA); color: #fff;
}

/* Homepage tabs (radio-driven, no JS) */
.tabs-wrapper { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tabs-wrapper input { display: none; }
.tabs-wrapper label {
    cursor: pointer; padding: .6rem 1.1rem; border-radius: .6rem; font-weight: 700; font-size: .85rem;
    background: #fff; border: 1px solid rgba(15,26,51,.08); color: #5C6B85; transition: all .2s ease;
}
.tabs-wrapper input:checked + label { background: #376DEC; border-color: #376DEC; color: #fff; }
.content-wrapper .tab-content { display: none; }
.tabs-wrapper input#mobile-optimised:checked ~ .content-wrapper .tab-content[data-tab="mobile-optimised"],
.tabs-wrapper input#explore-listing:checked ~ .content-wrapper .tab-content[data-tab="explore-listing"],
.tabs-wrapper input#click-to-call:checked ~ .content-wrapper .tab-content[data-tab="click-to-call"] { display: block; }

.blog-card.hidden { display: none; }

.blog-content { font-size: 1.05rem; line-height: 1.8; color: rgba(15,26,51,.8); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #0F1A33; font-weight: 800; line-height: 1.3; margin-top: 1.75em; margin-bottom: .6em; font-family: "Hanken Grotesk", sans-serif;
}
.blog-content h1 { font-size: 1.85rem; }
.blog-content h2 { font-size: 1.55rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content p { margin-bottom: 1.1em; }
.blog-content ul, .blog-content ol { margin: 1em 0 1.2em 1.4em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content a { color: #376DEC; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #0F1A33; }
.blog-content blockquote { border-left: 3px solid #F3B41B; padding-left: 1em; margin: 1.2em 0; color: rgba(15,26,51,.65); font-style: italic; }
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }
