html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", sans-serif;
    background: #FFFFFF;
    color: #26374D;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
}

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

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

/* Category select dropdown can get very tall with 300+ options */
select.category-select {
    max-height: 300px;
}

/* Bootstrap-era utility classes removed from markup, but keep a d-none
   shim in case any leftover markup / third-party snippet still uses it
   (Tailwind's own reset doesn't define this). */
.d-none { display: none !important; }

/*
 * Compatibility shim -- apiClass.php's ajaxList() (used by the "Load More"
 * button on listing.php) renders fixed markup with these exact class names
 * (businesscard/img-fluid/fs-5/fw-bold/opacity-75/d-flex/gap-2/btn-sec/
 * flex-grow-1/bg_none/px-2). Styled here in the Airy Sky palette 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.75rem;
    overflow: hidden;
    box-shadow: 0 10px 26px -10px rgba(38,55,77,.14);
    transition: transform .25s ease, box-shadow .25s ease;
    margin: 0 0 1.5rem 0;
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(238,62,95,.10);
}
.businesscard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px -12px rgba(238,62,95,.30);
}
.businesscard .img-fluid {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.businesscard .fs-5 {
    font-size: 1.1rem;
    padding: 0 1.15rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.businesscard .fw-bold {
    font-weight: 700;
}
/* apiClass.php echoes text-white on card title/address -- override to ink
   since cards sit on a light card background in this theme, not an image
   overlay. */
.businesscard h3.text-white,
.businesscard p.text-white {
    color: #26374D !important;
}
.businesscard .mt-2 { margin-top: .6rem; display: block; }
.businesscard .p-3.pb-2 { padding: 1.15rem 1.15rem .75rem; flex-grow: 1; display: flex; flex-direction: column; }
.businesscard p.opacity-75 {
    color: #26374D;
    opacity: .55 !important;
    font-size: .88rem;
    margin-top: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.businesscard .d-flex { display: flex; margin-top: auto; padding-top: .85rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }

/* Premium ribbon used on hand-written listing/premium cards */
.psdrs { position: relative; }
.open {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    background: #FF7A5C;
    color: #fff;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px rgba(255,122,92,.4);
}

/* Generic flex helpers still referenced by fixed apiClass markup */
.d-flex { display: flex; }
.flex-grow-1 { flex-grow: 1; }

/* Pill buttons -- used across hand-written forms/cards and by apiClass.php's
   ajaxList() fragment (btn-sec / btn-sec.bg_none). */
.btn-prime,
.btn-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: fit-content;
    min-height: 44px;
    padding: 9px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    text-decoration: none !important;
}
.btn-prime {
    background: #FF7A5C;
    color: #fff;
    box-shadow: 0 10px 22px -6px rgba(255,122,92,.55);
}
.btn-prime:hover {
    background: #E8613F;
    transform: translateY(-2px);
    color: #fff;
}
.btn-sec {
    background: #EE3E5F;
    color: #fff;
}
.btn-sec:hover {
    background: #CA3551;
    color: #fff;
    transform: translateY(-2px);
}
.btn-sec.bg_none,
.businesscard .bg_none {
    background: #fff;
    border: 2px solid rgba(238,62,95,.25);
    color: #EE3E5F;
    box-shadow: none;
    min-height: 44px;
}
.btn-sec.bg_none:hover {
    background: #EE3E5F;
    border-color: #EE3E5F;
    color: #fff;
}
.btn-sec.bg_none img,
.businesscard .bg_none img {
    filter: none;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(38,55,77,.78);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #26374D;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.7rem; }
.blog-content h2 { font-size: 1.45rem; }
.blog-content h3 { font-size: 1.2rem; }
.blog-content h4, .blog-content h5, .blog-content h6 { font-size: 1.05rem; }
.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: #EE3E5F; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #26374D; }
.blog-content blockquote {
    border-left: 4px solid #FF7A5C;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(38,55,77,.65);
    font-style: italic;
}
.blog-content img { margin: 1em 0; max-width: 100%; border-radius: 1rem; }

/* Quick category links (index.php hero) -- give them a colored badge
   background so the (white) SVG icons don't disappear against a white
   card. */
.banner-anchors { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 2px solid rgba(238,62,95,.12);
    border-radius: 1.25rem;
    padding: 1rem .75rem;
    width: 104px;
    text-align: center;
    box-shadow: 0 6px 16px -6px rgba(38,55,77,.10);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-link:hover { transform: translateY(-3px); border-color: #EE3E5F; }
.category-link .cat-icon {
    background: #EE3E5F;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    padding: 9px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-link .cat-icon svg { width: 100%; height: 100%; display: block; }
.category-link:hover .cat-icon { background: #FF7A5C; }
.category-link p { margin: 0; font-size: .78rem; font-weight: 800; color: #26374D; }

/* Soft airy blob decorations used behind hero/section headers */
.sky-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
}

/* ============================================================
   Structural layout patterns -- "Full-Bleed Image Hero + Floating
   Glass Search Card + Masonry Listings + Tabbed FAQ". Additive only:
   nothing above this block is modified, this just gives the new
   layouts (index.php, listing.php, business-details.php, blogs.php,
   fullpost.php) some shared, named hooks.
   ============================================================ */

/* Glassmorphic floating card -- the hero search card on index.php and
   the overlapping business info card on business-details.php. */
.glass-card {
    background: rgba(255,255,255,.20);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.35);
}

/* Pinterest-style masonry listing layout (index.php trending strip,
   listing.php results, blogs.php grid) -- CSS multi-column flow
   instead of a uniform equal-height grid. Pair with Tailwind's
   `columns-1 sm:columns-2 lg:columns-3` on the container. */
.masonry-col {
    column-gap: 1.5rem;
}
.masonry-col > * {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Tabbed FAQ (index.php "How does it work?") -- panel switching
   instead of accordion expand/collapse. */
.faq-tab {
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.faq-tab.is-active {
    background: #EE3E5F !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -6px rgba(238,62,95,.45);
}
