html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background: #F4F6FB;
    color: #131623;
    overflow-x: hidden;
}

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

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

/* Category select dropdown can get very tall with 300+ options */
select.category-select {
    max-height: 300px;
}
select.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.custom-select-option.hidden {
    display: none;
}

/* Homepage category pill tabs */
.category-tab {
    background: #fff;
    color: rgba(19,22,35,.6);
    border: 1px solid rgba(19,22,35,.08);
}
.category-tab.active {
    background: #131623;
    color: #fff;
    border-color: #131623;
}

/* Pricing tier pill tabs */
.pricing-tab { background: rgba(14,165,161,.08); color: #0B7A77; }
.pricing-tab.active { background: #0EA5A1; color: #fff; }

/* Featured ribbon on directory thumbnails (hand-written cards) */
.premium-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FFC24B, #FB7A57);
    color: #fff;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(19, 22, 35, .75);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #131623;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.85rem; }
.blog-content h2 { font-size: 1.55rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content h4, .blog-content h5, .blog-content h6 { font-size: 1.1rem; }
.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 li { margin-bottom: .4em; }
.blog-content a { color: #0EA5A1; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #131623; }
.blog-content blockquote {
    border-left: 3px solid #0EA5A1;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(19, 22, 35, .6);
    font-style: italic;
}
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }

/*
 * Compatibility shim -- apiClass.php's ajaxList() (used by the "Load More"
 * button on listing.php) renders fixed markup with these exact class names
 * (businesscard/open/fs-5/fw-bold/btn/btn-sec/etc). Styled here to match the
 * hand-written directory cards elsewhere on the site without touching the
 * PHP/API layer.
 */
.businesscard {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(19,22,35,.06);
    margin-bottom: 1.5rem;
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 1.5rem 1.5rem 0 0; }
.businesscard .fs-5 { font-size: 1.15rem; padding: 0 1.1rem; font-weight: 800; }
.businesscard .fw-bold { font-weight: 800; }
.businesscard .mt-2 { margin-top: .75rem; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .mb-3 { margin-bottom: .75rem; color: rgba(19,22,35,.55); font-size: .9rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .btn {
    flex-grow: 1;
    background: #131623;
    color: #fff;
    text-align: center;
    border-radius: 999px;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .875rem;
    display: block;
}
.businesscard .btn-sec, .businesscard .px-2 {
    padding: 0 .8rem;
    background: rgba(14,165,161,.1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .open {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FFC24B, #FB7A57);
    color: #fff;
}
