html {
    scroll-behavior: smooth;
}

/* Styling for raw HTML blog content (fullpost.php), since Tailwind's
   preflight reset strips default heading/list styles. */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(30, 16, 41, .75);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #0B1F1C;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.75rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.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: #0F766E; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #1E1029; }
.blog-content blockquote {
    border-left: 3px solid #0F766E;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(30, 16, 41, .6);
    font-style: italic;
}
.blog-content img { border-radius: .75rem; margin: 1em 0; max-width: 100%; }

/* One-page sections: offset anchors so the sticky header doesn't cover the heading */
section[id] {
    scroll-margin-top: 6rem;
}

body {
    font-family: "Poppins", sans-serif;
    background: #F0FBF9;
    color: #0B1F1C;
    overflow-x: hidden;
}

/* Scroll-in animation, same behavior as the original site */
.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;
}

/* Custom searchable dropdown that replaces the native <select> UI
   (see js/custom-select.js). The real <select> stays in the DOM so the
   form still submits "category" normally; it's just visually hidden. */
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;
}

/* Owl Carousel dot color override to match brand */
.owl-theme .owl-dots .owl-dot span {
    background: #bfe6e1;
}
.owl-theme .owl-dots .owl-dot.active span {
    background: #0F766E;
}

/* Premium ribbon badge on listing thumbnails */
.premium-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px 0 6px 0;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #F59E0B;
    color: #0A2540;
}

/* Simple mobile nav toggle (no JS framework needed) */
.mobile-nav {
    display: none;
}
.mobile-nav.open {
    display: block;
}

/* Category pill tabs on homepage */
.category-tab {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.category-tab.active {
    background: #F59E0B;
    color: #0A2540;
}

/* Compatibility shim: apiClass.php renders AJAX "Load More" listing cards with
   these fixed class names (see ajaxList()). Styled here to match the new
   Tailwind design without touching the PHP/API logic. */
.businesscard {
    position: relative;
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; }
.businesscard .fs-5 { font-size: 1.125rem; padding: 0 1rem; }
.businesscard .fw-bold { font-weight: 700; }
.businesscard .mt-2 { margin-top: .5rem; }
.businesscard .p-3 { padding: 1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .mb-3 { margin-bottom: .75rem; color: rgba(30,16,41,.6); }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .btn {
    flex-grow: 1;
    background: #0F766E;
    color: #fff;
    text-align: center;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-weight: 600;
    display: block;
}
.businesscard .btn-sec, .businesscard .px-2 {
    padding: 0 .75rem;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .open {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px 0 6px 0;
    background-color: #F59E0B;
    color: #0A2540;
}
