/*
Theme Name: Fundi Flani Directory
Theme URI: https://fundiflani.co.ke
Author: Fundi Flani
Author URI: https://fundiflani.co.ke
Description: A professional directory theme for finding trusted fundis (service providers) across Kenya.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fundiflani-directory
Tags: directory, listings, business, responsive
*/

/* =============================================
   1. CSS VARIABLES
   ============================================= */
:root {
    --primary:        #0B3C5D;
    --primary-light:  #1a5276;
    --primary-dark:   #072d47;
    --secondary:      #1ABC9C;
    --secondary-dark: #17a589;
    --accent:         #F39C12;
    --accent-dark:    #e08e0b;
    --text:           #1F2933;
    --text-muted:     #5a6a7a;
    --text-light:     #8496a7;
    --background:     #F7F9FB;
    --surface:        #ffffff;
    --border:         #E5E7EB;
    --border-light:   #f0f2f5;
    --shadow-xs:      0 1px 3px rgba(11,60,93,0.06);
    --shadow-sm:      0 2px 8px rgba(11,60,93,0.08);
    --shadow-md:      0 4px 16px rgba(11,60,93,0.12);
    --shadow-lg:      0 8px 32px rgba(11,60,93,0.16);
    --shadow-xl:      0 16px 48px rgba(11,60,93,0.20);
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      14px;
    --radius-xl:      20px;
    --transition:     0.22s ease;
    --transition-slow:0.4s ease;
    --font:           'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w:          1280px;
    --header-h:       64px;
}

/* =============================================
   2. RESET & BASE
   ============================================= */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; -webkit-text-size-adjust:100%; }
body {
    font-family:var(--font);
    color:var(--text);
    background:var(--background);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
img { max-width:100%; height:auto; display:block; }
a { color:var(--secondary); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--primary); }
ul,ol { list-style:none; }
button,input,select,textarea { font-family:inherit; font-size:inherit; }
p:last-child { margin-bottom:0; }
p { margin-bottom:0.85rem; }

/* =============================================
   3. TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.2; color:var(--primary); }
h1 { font-size:clamp(1.6rem,3.5vw,2.5rem); }
h2 { font-size:clamp(1.3rem,2.8vw,2rem); }
h3 { font-size:clamp(1.05rem,2.2vw,1.4rem); }
h4 { font-size:1rem; }
h5 { font-size:0.92rem; }

/* =============================================
   4. LAYOUT UTILITIES
   ============================================= */
.container { max-width:var(--max-w); margin:0 auto; padding:0 1.25rem; }
@media (min-width:768px)  { .container { padding:0 2rem; } }
@media (min-width:1200px) { .container { padding:0 2.5rem; } }

.section    { padding:4rem 0; }
.section-sm { padding:2.5rem 0; }
.section-lg { padding:5.5rem 0; }
.bg-white   { background:var(--surface); }
.bg-light   { background:var(--background); }

.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }

@media (max-width:1024px) { .grid-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:900px)  { .grid-3 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px)  {
    .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
    .section { padding:2.75rem 0; }
    .section-lg { padding:3.5rem 0; }
}

.section-header { text-align:center; margin-bottom:2.75rem; }
.section-header h2,.section-header h3 { margin-bottom:0.4rem; }
.section-header p { color:var(--text-muted); font-size:0.96rem; max-width:540px; margin:0.5rem auto 0; }
.section-divider {
    width:44px; height:3px;
    background:linear-gradient(90deg,var(--secondary),var(--accent));
    border-radius:2px; margin:0.55rem auto 0;
}

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
    display:inline-flex; align-items:center; gap:0.42rem;
    padding:0.58rem 1.3rem;
    border-radius:var(--radius-sm);
    font-weight:600; font-size:0.88rem; line-height:1.4;
    cursor:pointer; border:2px solid transparent;
    transition:all var(--transition); text-decoration:none; white-space:nowrap;
}
.btn svg { flex-shrink:0; }
.btn-primary { background:var(--secondary); color:#fff; border-color:var(--secondary); }
.btn-primary:hover { background:var(--secondary-dark); border-color:var(--secondary-dark); color:#fff; transform:translateY(-1px); box-shadow:0 4px 14px rgba(26,188,156,0.3); }
.btn-accent  { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn-accent:hover  { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; transform:translateY(-1px); }
.btn-dark    { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-dark:hover    { background:var(--primary-light); border-color:var(--primary-light); color:#fff; }
.btn-outline { background:transparent; color:var(--primary); border-color:var(--border); }
.btn-outline:hover { border-color:var(--secondary); color:var(--secondary); background:rgba(26,188,156,0.05); }
.btn-ghost   { background:rgba(255,255,255,0.12); color:#fff; border-color:rgba(255,255,255,0.3); }
.btn-ghost:hover   { background:rgba(255,255,255,0.22); color:#fff; }
.btn-sm { padding:0.38rem 0.85rem; font-size:0.79rem; }
.btn-lg { padding:0.78rem 1.85rem; font-size:1rem; }
.btn-block { width:100%; justify-content:center; }

/* =============================================
   6. HEADER
   ============================================= */
#site-header {
    position:sticky; top:0; z-index:1000;
    background:var(--surface); border-bottom:1px solid var(--border);
    transition:box-shadow var(--transition);
}
#site-header.scrolled { box-shadow:var(--shadow-md); }
.header-inner {
    display:flex; align-items:center;
    justify-content:space-between;
    height:var(--header-h); gap:1rem;
}

/* Logo — deliberately compact */
.site-logo { display:flex; align-items:center; flex-shrink:0; text-decoration:none; }
.site-logo:hover { opacity:0.82; }
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
    height:28px !important;
    width:auto !important;
    max-width:130px !important;
    display:block;
}
.custom-logo-link { display:flex; align-items:center; }

/* Primary nav */
#primary-nav { margin-left:auto; }
#primary-nav > ul { display:flex; align-items:center; gap:0; }
#primary-nav > ul > li { position:relative; }
#primary-nav > ul > li > a {
    display:block; padding:0.4rem 0.75rem;
    font-weight:500; font-size:0.86rem; color:var(--text);
    border-radius:var(--radius-sm); transition:all var(--transition);
}
#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.current-menu-item > a,
#primary-nav > ul > li.current-menu-ancestor > a {
    background:rgba(26,188,156,0.09); color:var(--secondary);
}
#primary-nav > ul > li.current-menu-item > a { font-weight:700; }

/* Dropdown */
#primary-nav ul li ul {
    display:none; position:absolute; top:calc(100% + 5px); left:0;
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); box-shadow:var(--shadow-lg);
    min-width:190px; padding:0.35rem; z-index:200; flex-direction:column;
}
#primary-nav ul li:hover > ul { display:flex; }
#primary-nav ul li ul li a {
    display:block; padding:0.42rem 0.75rem; font-size:0.86rem;
    color:var(--text); border-radius:var(--radius-sm); white-space:nowrap;
    transition:all var(--transition);
}
#primary-nav ul li ul li a:hover { background:rgba(26,188,156,0.08); color:var(--secondary); }

.header-actions { display:flex; align-items:center; gap:0.5rem; flex-shrink:0; }

/* Mobile toggle */
.mobile-toggle {
    display:none; background:none; border:1px solid var(--border);
    cursor:pointer; padding:0.35rem; color:var(--primary);
    border-radius:var(--radius-sm); transition:background var(--transition);
    align-items:center; justify-content:center;
}
.mobile-toggle:hover { background:var(--background); }
.mobile-toggle .icon-close { display:none; }

/* ── Mobile ── */
@media (max-width:840px) {
    .mobile-toggle { display:flex; }
    .header-actions .btn { display:none; }
    #primary-nav {
        display:none; position:absolute; top:var(--header-h); left:0; right:0;
        background:var(--surface); border-bottom:1px solid var(--border);
        box-shadow:var(--shadow-lg); padding:0.5rem 1.25rem 0.85rem; z-index:999;
    }
    #primary-nav.is-open { display:block; }
    #primary-nav > ul { flex-direction:column; gap:0; }
    #primary-nav > ul > li > a {
        padding:0.6rem 0.5rem; font-size:0.92rem; border-radius:0;
        border-bottom:1px solid var(--border-light);
    }
    #primary-nav > ul > li:last-child > a { border-bottom:none; }
    #primary-nav ul li ul {
        position:static; box-shadow:none; border:none; border-radius:0;
        padding:0 0 0 1rem; display:flex; flex-direction:column;
        background:var(--background);
        border-left:2px solid var(--secondary); margin:0.2rem 0 0.4rem;
    }
    .mobile-nav-cta { display:block; margin-top:0.75rem; }
}
.mobile-nav-cta { display:none; }

/* Skip link */
.skip-link {
    position:absolute; top:-60px; left:1rem; z-index:9999;
    background:var(--secondary); color:#fff;
    padding:0.45rem 1rem; border-radius:0 0 var(--radius-sm) var(--radius-sm);
    font-weight:700; font-size:0.88rem; transition:top 0.2s;
}
.skip-link:focus { top:0; }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute; width:1px; height:1px; overflow:hidden; }

/* =============================================
   7. BREADCRUMBS
   ============================================= */
.breadcrumbs {
    background:var(--surface); border-bottom:1px solid var(--border);
    padding:0.5rem 0; font-size:0.78rem;
}
.breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:center; gap:0; }
.breadcrumbs li { display:flex; align-items:center; }
.breadcrumbs li + li::before { content:'/'; color:var(--border); padding:0 0.35rem; }
.breadcrumbs a { color:var(--secondary); font-weight:500; }
.breadcrumbs a:hover { color:var(--primary); }
.breadcrumbs span { color:var(--text-muted); }

/* =============================================
   8. PAGE HERO (inner pages)
   ============================================= */
.page-hero {
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 55%,#1a6e8a 100%);
    padding:2.5rem 0 1.75rem; position:relative; overflow:hidden;
}
.page-hero::before {
    content:''; position:absolute; inset:0; pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 { color:#fff; margin-bottom:0.35rem; }
.page-hero p  { color:rgba(255,255,255,0.78); margin-bottom:0; font-size:0.95rem; }

.ph-back {
    display:inline-flex; align-items:center; gap:0.32rem;
    color:rgba(255,255,255,0.7); font-size:0.79rem; font-weight:500;
    margin-bottom:0.7rem; transition:color var(--transition);
}
.ph-back:hover { color:#fff; }
.ph-back svg { flex-shrink:0; }

.ph-badges { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.8rem; }
.ph-badge {
    display:inline-flex; align-items:center; gap:0.28rem;
    background:rgba(255,255,255,0.13); color:#fff;
    border:1px solid rgba(255,255,255,0.22);
    padding:0.22rem 0.65rem; border-radius:100px;
    font-size:0.75rem; font-weight:500;
}
.ph-badge a { color:#fff; }
.ph-badge a:hover { color:var(--secondary); }

/* =============================================
   9. CARDS
   ============================================= */
.card {
    background:var(--surface); border-radius:var(--radius-lg);
    border:1px solid var(--border); overflow:hidden;
    transition:transform var(--transition),box-shadow var(--transition),border-color var(--transition);
    display:flex; flex-direction:column;
}
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:rgba(26,188,156,0.32); }

.card-img {
    position:relative; overflow:hidden; background:#dbeaf5; flex-shrink:0;
}
.card-img.r16-10 { aspect-ratio:16/10; }
.card-img.r4-3   { aspect-ratio:4/3; }
.card-img.r16-9  { aspect-ratio:16/9; }
.card-img img {
    width:100%; height:100%; object-fit:cover;
    transition:transform var(--transition-slow);
}
.card:hover .card-img img { transform:scale(1.04); }

.card-body { padding:1rem 1.15rem; flex:1; display:flex; flex-direction:column; gap:0.3rem; }
.card-title { font-size:0.94rem; font-weight:700; color:var(--primary); line-height:1.3; margin:0; }
.card-title a { color:inherit; }
.card-title a:hover { color:var(--secondary); }
.card-meta {
    display:flex; align-items:center; gap:0.38rem;
    font-size:0.78rem; color:var(--text-muted); flex-wrap:wrap;
}
.card-meta svg { color:var(--secondary); flex-shrink:0; }
.card-foot {
    padding:0.65rem 1.15rem; border-top:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
    gap:0.5rem; background:rgba(247,249,251,0.7);
}

.count-badge {
    display:inline-flex; align-items:center; gap:0.28rem;
    background:rgba(26,188,156,0.1); color:var(--secondary);
    padding:0.18rem 0.6rem; border-radius:100px; font-size:0.76rem; font-weight:600;
}

/* =============================================
   10. RATING
   ============================================= */
.rating { display:inline-flex; align-items:center; gap:0.28rem; }
.r-stars { display:inline-flex; gap:1px; color:var(--accent); }
.r-val   { font-weight:700; font-size:0.86rem; color:var(--text); }
.r-cnt   { font-size:0.76rem; color:var(--text-muted); }

/* =============================================
   11. WORK HOURS
   ============================================= */
.hours-table { width:100%; border-collapse:collapse; font-size:0.85rem; }
.hours-table tr { border-bottom:1px solid var(--border-light); }
.hours-table tr:last-child { border-bottom:none; }
.hours-table tr.today { background:rgba(26,188,156,0.05); }
.hours-table td { padding:0.38rem 0.45rem; vertical-align:middle; }
.hours-table .day { font-weight:600; color:var(--primary); width:105px; }
.today-tag {
    display:inline-block; font-size:0.66rem; font-weight:700;
    background:var(--secondary); color:#fff;
    padding:0.03rem 0.38rem; border-radius:100px;
    margin-left:0.3rem; vertical-align:middle; text-transform:uppercase;
}
.h-closed { color:#e74c3c; font-style:italic; font-size:0.82rem; }
.h-open24 { color:var(--secondary); font-weight:600; }

/* Work hours toggle */
.hours-toggle summary {
    display:flex; align-items:center; gap:0.38rem;
    cursor:pointer; font-weight:600; font-size:0.83rem; color:var(--primary);
    list-style:none; user-select:none; padding:0.32rem 0;
}
.hours-toggle summary::-webkit-details-marker { display:none; }
.hours-toggle summary svg { flex-shrink:0; color:var(--secondary); }
.hours-toggle[open] summary { color:var(--secondary); }
.hours-toggle-body { margin-top:0.5rem; }

/* =============================================
   12. REVIEW TOPICS
   ============================================= */
.topic-bar { display:flex; align-items:center; gap:0.6rem; margin-bottom:0.5rem; }
.topic-lbl { font-size:0.8rem; font-weight:500; min-width:105px; color:var(--text); flex-shrink:0; }
.topic-track { flex:1; height:5px; background:var(--border); border-radius:3px; overflow:hidden; }
.topic-fill  { height:100%; width:0%; background:linear-gradient(90deg,var(--secondary),#16a085); border-radius:3px; transition:width 0.65s ease; }
.topic-cnt   { font-size:0.76rem; color:var(--text-muted); min-width:18px; text-align:right; }

/* =============================================
   13. ATTRIBUTE TAGS
   ============================================= */
.attr-group { margin-bottom:0.65rem; }
.attr-group-lbl {
    font-size:0.7rem; font-weight:700; text-transform:uppercase;
    letter-spacing:0.55px; color:var(--text-muted); margin-bottom:0.38rem;
}
.attr-tags { display:flex; flex-wrap:wrap; gap:0.35rem; }
.attr-tag {
    display:inline-flex; align-items:center; gap:0.28rem;
    background:rgba(26,188,156,0.08); color:var(--primary);
    padding:0.22rem 0.6rem; border-radius:var(--radius-sm);
    font-size:0.76rem; font-weight:500;
}
.attr-tag svg { color:var(--secondary); flex-shrink:0; }
.attr-tag.unavail { background:rgba(231,76,60,0.07); color:#c0392b; }
.attr-tag.unavail svg { color:#c0392b; }

/* =============================================
   14. CONTACT LIST
   ============================================= */
.contact-list { display:flex; flex-direction:column; }
.contact-item {
    display:flex; align-items:flex-start; gap:0.6rem;
    padding:0.5rem 0; border-bottom:1px solid var(--border-light);
    font-size:0.86rem; color:var(--text);
}
.contact-item:last-child { border-bottom:none; padding-bottom:0; }
.ci-icon { color:var(--secondary); flex-shrink:0; margin-top:1px; width:16px; }
.contact-item a { color:var(--secondary); font-weight:500; }
.contact-item a:hover { color:var(--primary); }

/* =============================================
   15. INFO CARDS
   ============================================= */
.info-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:1.2rem;
    margin-bottom:1.1rem;
}
.info-card:last-child { margin-bottom:0; }
.ic-title {
    display:flex; align-items:center; gap:0.4rem;
    font-size:0.82rem; font-weight:700; color:var(--primary);
    text-transform:uppercase; letter-spacing:0.5px;
    margin-bottom:0.85rem; padding-bottom:0.6rem;
    border-bottom:2px solid var(--secondary);
}
.ic-title svg { color:var(--secondary); flex-shrink:0; }

/* =============================================
   16. SINGLE POST LAYOUT
   ============================================= */
.single-wrap {
    display:grid; grid-template-columns:1fr 300px;
    gap:1.75rem; align-items:start;
}
@media (max-width:960px) { .single-wrap { grid-template-columns:1fr; } }

.single-sidebar {
    position:sticky; top:calc(var(--header-h) + 0.85rem);
}
@media (max-width:960px) { .single-sidebar { position:static; } }

.feat-img {
    border-radius:var(--radius-lg); overflow:hidden;
    aspect-ratio:16/9; background:#dbeaf5; margin-bottom:1.35rem;
}
.feat-img img { width:100%; height:100%; object-fit:cover; }

.entry-content { font-size:0.94rem; line-height:1.82; color:var(--text); }
.entry-content p { margin-bottom:0.9rem; }
.entry-content h2,.entry-content h3 { margin:1.6rem 0 0.65rem; }
.entry-content ul,.entry-content ol { padding-left:1.4rem; margin-bottom:0.9rem; }
.entry-content ul { list-style:disc; }
.entry-content ol { list-style:decimal; }
.entry-content li { margin-bottom:0.25rem; }
.entry-content a { color:var(--secondary); text-decoration:underline; text-underline-offset:3px; }
.entry-content img { border-radius:var(--radius); margin:1.1rem 0; }
.entry-content blockquote {
    border-left:3px solid var(--secondary); margin:1.35rem 0;
    padding:0.65rem 1.1rem; background:rgba(26,188,156,0.05);
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    color:var(--text-muted); font-style:italic;
}

/* =============================================
   17. FRONT PAGE HERO
   ============================================= */
#hero-section {
    position:relative; min-height:800px;
    display:flex; align-items:center; overflow:hidden;
    background-color:var(--primary);
    background-size:cover; background-position:center;
}
.hero-overlay {
    position:absolute; inset:0; z-index:1;
    background:linear-gradient(135deg,rgba(11,60,93,0.93) 0%,rgba(11,60,93,0.72) 60%,rgba(26,110,138,0.8) 100%);
}
.hero-content { position:relative; z-index:2; text-align:center; padding:4.5rem 0; width:100%; }
.hero-eyebrow {
    display:inline-flex; align-items:center; gap:0.42rem;
    background:rgba(26,188,156,0.16); color:var(--secondary);
    border:1px solid rgba(26,188,156,0.38);
    padding:0.32rem 0.85rem; border-radius:100px;
    font-size:0.76rem; font-weight:700; letter-spacing:0.55px;
    text-transform:uppercase; margin-bottom:1.25rem;
}
.hero-title {
    color:#fff; font-size:clamp(1.9rem,5vw,3.5rem);
    line-height:1.1; font-weight:800; margin-bottom:1rem;
}
.hero-title em { color:var(--secondary); font-style:normal; }
.hero-sub {
    color:rgba(255,255,255,0.8); font-size:clamp(0.9rem,2vw,1.1rem);
    max-width:560px; margin:0 auto 2rem; line-height:1.75;
}
.hero-ctas { display:flex; justify-content:center; gap:0.75rem; flex-wrap:wrap; }
.hero-stats {
    display:flex; justify-content:center; gap:2.25rem;
    margin-top:3rem; flex-wrap:wrap;
    padding-top:2.25rem; border-top:1px solid rgba(255,255,255,0.1);
}
.hs-val { display:block; font-size:1.8rem; font-weight:800; color:var(--secondary); line-height:1; }
.hs-lbl { font-size:0.77rem; color:rgba(255,255,255,0.62); margin-top:0.18rem; }
@media (max-width:600px) {
    #hero-section { min-height:680px; }
    .hero-stats { gap:1.5rem; }
    .hs-val { font-size:1.5rem; }
}

/* =============================================
   18. SEARCH WIDGET
   ============================================= */
#search-section { background:var(--surface); padding:2.75rem 0; border-bottom:1px solid var(--border); }
.search-widget {
    background:var(--surface); border-radius:var(--radius-xl);
    box-shadow:var(--shadow-xl); padding:1.75rem 2.25rem;
    border:1px solid var(--border); max-width:740px; margin:0 auto;
}
.sw-title { text-align:center; font-size:1.15rem; margin-bottom:1.25rem; color:var(--primary); }
.sw-title span { color:var(--secondary); }
.sw-row { display:grid; grid-template-columns:1fr 1fr auto; gap:0.7rem; align-items:end; }
@media (max-width:600px) { .sw-row { grid-template-columns:1fr; } }
.sf-grp { display:flex; flex-direction:column; gap:0.28rem; }
.sf-lbl { font-size:0.72rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:0.55px; }
.sf-sel {
    width:100%; padding:0.65rem 2rem 0.65rem 0.85rem;
    border:1.5px solid var(--border); border-radius:var(--radius-sm);
    font-size:0.88rem; color:var(--text); background:var(--background);
    appearance:none; cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6a7a' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 0.6rem center; background-size:14px;
    transition:border-color var(--transition),box-shadow var(--transition);
}
.sf-sel:focus { outline:none; border-color:var(--secondary); box-shadow:0 0 0 3px rgba(26,188,156,0.13); }
.sf-sel:disabled { opacity:0.48; cursor:not-allowed; }
@media (max-width:600px) { .search-widget { padding:1.35rem; } }

/* =============================================
   19. POPULAR GRID
   ============================================= */
.popular-grid {
    display:grid; grid-template-columns:repeat(5,1fr); gap:1rem;
}
@media (max-width:1200px) { .popular-grid { grid-template-columns:repeat(4,1fr); } }
@media (max-width:900px)  { .popular-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:620px)  { .popular-grid { grid-template-columns:repeat(2,1fr); } }

/* =============================================
   20. ARTICLE CARDS
   ============================================= */
.article-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
@media (max-width:640px) { .article-grid { grid-template-columns:1fr; } }

.art-card {
    display:grid; grid-template-columns:110px 1fr; gap:0.9rem;
    padding:1rem; background:var(--surface);
    border:1px solid var(--border); border-radius:var(--radius-lg);
    transition:all var(--transition);
}
.art-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); border-color:rgba(26,188,156,0.32); }
.art-img { border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:1; background:#dbeaf5; }
.art-img img { width:100%; height:100%; object-fit:cover; }
.art-body { display:flex; flex-direction:column; justify-content:center; gap:0.25rem; }
.art-date { font-size:0.72rem; font-weight:600; color:var(--secondary); text-transform:uppercase; letter-spacing:0.5px; display:flex; align-items:center; gap:0.28rem; }
.art-title { font-size:0.88rem; font-weight:700; color:var(--primary); line-height:1.3; }
.art-title a { color:inherit; }
.art-title a:hover { color:var(--secondary); }
@media (max-width:420px) {
    .art-card { grid-template-columns:1fr; }
    .art-img { aspect-ratio:16/9; }
}

/* =============================================
   21. FILTER BAR
   ============================================= */
.filter-bar {
    display:flex; flex-wrap:wrap; align-items:center; gap:0.45rem;
    padding:0.85rem 1.1rem; background:var(--surface);
    border:1px solid var(--border); border-radius:var(--radius-lg); margin-bottom:1.85rem;
}
.filter-bar-lbl { font-size:0.76rem; font-weight:700; color:var(--primary); margin-right:0.2rem; flex-shrink:0; }
.fpill {
    display:inline-flex; align-items:center; gap:0.28rem;
    padding:0.22rem 0.7rem; border-radius:100px;
    font-size:0.75rem; font-weight:500;
    border:1.5px solid var(--border); color:var(--text);
    transition:all var(--transition); background:var(--surface);
}
.fpill:hover,.fpill.active { background:var(--secondary); border-color:var(--secondary); color:#fff; }
.fpill .fc { opacity:0.62; font-size:0.7rem; }

/* =============================================
   22. PAGINATION
   ============================================= */
.pagination { display:flex; justify-content:center; gap:0.38rem; margin-top:2.5rem; flex-wrap:wrap; }
.pagination a,.pagination span {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:36px; height:36px; padding:0 0.45rem;
    border-radius:var(--radius-sm); font-weight:600; font-size:0.86rem;
    border:1.5px solid var(--border); background:var(--surface); color:var(--text);
    transition:all var(--transition);
}
.pagination a:hover { border-color:var(--secondary); color:var(--secondary); background:rgba(26,188,156,0.05); }
.pagination .current { background:var(--secondary); border-color:var(--secondary); color:#fff; }

/* =============================================
   23. FOOTER
   ============================================= */
#site-footer { background:var(--primary); color:rgba(255,255,255,0.72); padding-top:3.25rem; }
.footer-top {
    display:grid; grid-template-columns:2.1fr 1fr 1fr 1fr;
    gap:2.25rem; padding-bottom:2.25rem;
    border-bottom:1px solid rgba(255,255,255,0.1);
}
@media (max-width:960px)  { .footer-top { grid-template-columns:1fr 1fr; gap:1.75rem; } }
@media (max-width:480px)  { .footer-top { grid-template-columns:1fr; gap:1.5rem; } }

.fb-logo { height:28px; width:auto; margin-bottom:0.8rem; }
.fb-desc { font-size:0.83rem; line-height:1.72; }
.fb-socials { display:flex; gap:0.5rem; margin-top:1.1rem; }
.fb-social {
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border-radius:var(--radius-sm);
    background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.68);
    transition:all var(--transition);
}
.fb-social:hover { background:var(--secondary); color:#fff; transform:translateY(-2px); }

.fc-title { font-size:0.76rem; font-weight:700; color:#fff; text-transform:uppercase; letter-spacing:0.9px; margin-bottom:0.9rem; }
.fc-links { display:flex; flex-direction:column; gap:0.48rem; }
.fc-links a { color:rgba(255,255,255,0.65); font-size:0.84rem; transition:color var(--transition); }
.fc-links a:hover { color:var(--secondary); }

.footer-bottom {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:0.65rem; padding:1rem 0;
    font-size:0.76rem; color:rgba(255,255,255,0.38);
}
.footer-legal { display:flex; gap:1.1rem; }
.footer-legal a { color:rgba(255,255,255,0.38); transition:color var(--transition); }
.footer-legal a:hover { color:rgba(255,255,255,0.7); }

/* =============================================
   24. CTA BANNER
   ============================================= */
.cta-banner {
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 60%,#1a6e8a 100%);
    padding:3.75rem 0; text-align:center; position:relative; overflow:hidden;
}
.cta-banner::before {
    content:''; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(ellipse at 70% 50%,rgba(255,255,255,0.04) 0%,transparent 65%);
}
.cta-banner .container { position:relative; z-index:1; }
.cta-banner h2 { color:#fff; margin-bottom:0.6rem; }
.cta-banner p  { color:rgba(255,255,255,0.78); max-width:500px; margin:0 auto 1.65rem; font-size:0.96rem; }

/* =============================================
   25. EMPTY STATE
   ============================================= */
.empty-state { text-align:center; padding:3.5rem 1.5rem; color:var(--text-muted); }
.empty-state svg { margin:0 auto 1rem; opacity:0.22; }
.empty-state h3 { color:var(--primary); margin-bottom:0.35rem; }
.empty-state p { font-size:0.88rem; }

/* =============================================
   26. SPINNER
   ============================================= */
.spinner {
    display:inline-block; width:15px; height:15px;
    border:2px solid rgba(26,188,156,0.22); border-top-color:var(--secondary);
    border-radius:50%; animation:spin 0.55s linear infinite; vertical-align:middle;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* =============================================
   27. POST NAV
   ============================================= */
.post-nav { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.75rem; }
@media (max-width:480px) { .post-nav { grid-template-columns:1fr; } }
.post-nav-item {
    display:flex; flex-direction:column; gap:0.22rem;
    padding:0.85rem 1rem; background:var(--surface);
    border:1px solid var(--border); border-radius:var(--radius-lg);
    transition:all var(--transition); text-decoration:none;
}
.post-nav-item:hover { border-color:var(--secondary); box-shadow:var(--shadow-sm); }
.post-nav-item.next { text-align:right; }
.pn-dir { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.55px; color:var(--text-muted); }
.pn-title { font-size:0.88rem; font-weight:600; color:var(--primary); line-height:1.3; }

/* =============================================
   28. WP CORE
   ============================================= */
.alignnone { margin:1rem 0; }
.aligncenter,div.aligncenter { display:block; margin:1rem auto; }
.alignright { float:right; margin:0 0 1rem 1.35rem; }
.alignleft  { float:left;  margin:0 1.35rem 1rem 0; }
.wp-caption { background:var(--background); border:1px solid var(--border); padding:0.45rem; border-radius:var(--radius); max-width:100%; }
.wp-caption-text { text-align:center; font-size:0.75rem; color:var(--text-muted); margin-top:0.28rem; }
.admin-bar #site-header { top:32px; }
@media (max-width:782px) { .admin-bar #site-header { top:46px; } }

/* =============================================
   29. MISC UTILITIES
   ============================================= */
.text-center { text-align:center; }
.mt-1 { margin-top:0.5rem; }
.mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; }
.mb-2 { margin-bottom:1rem; }
.gap-sm { gap:0.5rem; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
@media (max-width:600px) { .hide-xs { display:none !important; } }
@media (max-width:840px) { .hide-sm { display:none !important; } }
