html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    background: #F5F9FC;
    color: #0B1B2B;
    overflow-x: hidden;
}

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

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

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

/* Category select can get very tall with 300+ options */
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(0,48,137,.2); 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(11,27,43,.08);
    box-shadow: 0 1px 2px rgba(11,27,43,.05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-chip:hover { box-shadow: 0 12px 24px -8px rgba(0,48,137,.18); transform: translateY(-2px); border-color: rgba(0,134,198,.3); }
.category-chip .chip-icon {
    height: 44px; width: 44px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0086C6, #003089);
}
.category-chip .chip-icon svg { height: 20px; width: 20px; fill: #fff; }
.category-chip p { font-size: .75rem; font-weight: 700; margin: 0; color: #0B1B2B; }

/* Listing rail loading spinner */
.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(0,134,198,.2); border-top-color: #0086C6;
    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 fixed markup with these exact class names
 * (businesscard/fs-5/fw-bold/btn-prime/btn-sec/open/psdrs). index.php's own
 * PHP-rendered listing cards use the same classes so the whole site shares
 * one visual card component.
 */
.businesscard {
    position: relative;
    background: #fff;
    border: 1px solid rgba(11,27,43,.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(11,27,43,.05), 0 8px 24px -8px rgba(0,48,137,.12);
    transition: box-shadow .2s ease, transform .2s ease;
}
.businesscard:hover { box-shadow: 0 20px 40px -12px rgba(0,48,137,.22); transform: translateY(-3px); }
.businesscard .img-fluid, .businesscard .aks { width: 100%; height: 190px; object-fit: cover; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .fs-5 { font-size: 1.05rem; font-weight: 800; color: #0B1B2B; font-family: "Outfit", sans-serif; }
.businesscard .fw-bold { font-weight: 800; }
.businesscard .opacity-75 { color: #5B6B7A; font-size: .875rem; margin-top: .35rem; margin-bottom: .75rem; }
.businesscard .color_white { color: #0B1B2B; }
.businesscard .mb-2 { margin-bottom: .6rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .wrap { flex-wrap: wrap; }
.businesscard .grid_center { align-items: center; }
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .w-100 { width: 100%; }
.btn-prime {
    display: block; text-align: center; background: #0086C6; color: #fff !important;
    border-radius: .6rem; padding: .6rem 1rem; font-weight: 700; font-size: .85rem; transition: background .2s ease;
}
.btn-prime:hover { background: #00699C; color: #fff; }
.btn-sec {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,134,198,.1); border-radius: .6rem; padding: 0 .8rem; transition: background .2s ease;
}
.btn-sec:hover { background: rgba(0,134,198,.2); }
.btn-sec img { height: 16px; width: 16px; }
.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, #009AD2, #003089); 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(11,27,43,.08); color: #5B6B7A; transition: all .2s ease;
}
.tabs-wrapper input:checked + label { background: #0086C6; border-color: #0086C6; 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 category filter */
.blog-card.hidden { display: none; }

/* Raw blog body content (fullpost.php) */
.blog-content { font-size: 1.05rem; line-height: 1.8; color: rgba(11,27,43,.8); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #0B1B2B; font-weight: 800; line-height: 1.3; margin-top: 1.75em; margin-bottom: .6em; font-family: "Outfit", 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: #0086C6; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #0B1B2B; }
.blog-content blockquote { border-left: 3px solid #0086C6; padding-left: 1em; margin: 1.2em 0; color: rgba(11,27,43,.65); font-style: italic; }
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }
