/*
Theme Name: UDD PMI Banjarnegara
Theme URI: https://uddpmibanjarnegara.or.id
Author: UDD PMI Banjarnegara
Description: Tema WordPress resmi untuk Unit Donor Darah PMI Kabupaten Banjarnegara. Desain modern, bersih, dan responsif — dikonversi dari Horizons (React/Tailwind) ke WordPress murni.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: udd-pmi
Tags: custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, responsive-layout, news, medical
*/

/* ============================================================
   GOOGLE FONTS + RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   DESIGN TOKENS (mirroring index.css HSL vars)
   ============================================================ */
:root {
    /* Primary = PMI red  hsl(348 100% 44%) */
    --clr-primary:         hsl(348, 100%, 44%);
    --clr-primary-hover:   hsl(348, 100%, 38%);
    --clr-primary-light:   hsl(348, 100%, 96%);   /* /10 equivalent */
    --clr-primary-muted:   hsl(348, 100%, 92%);

    /* Backgrounds */
    --clr-bg:              hsl(0, 0%, 100%);
    --clr-secondary:       hsl(210, 11%, 96%);
    --clr-muted:           hsl(210, 11%, 96%);
    --clr-card:            hsl(0, 0%, 100%);

    /* Text */
    --clr-foreground:      hsl(222, 47%, 11%);
    --clr-muted-fg:        hsl(215, 16%, 47%);
    --clr-secondary-fg:    hsl(222, 47%, 11%);

    /* Border / Input */
    --clr-border:          hsl(214, 32%, 91%);
    --clr-ring:            hsl(348, 100%, 44%);

    /* Radius */
    --radius:              0.75rem;   /* 12px */
    --radius-sm:           calc(var(--radius) - 4px);
    --radius-md:           calc(var(--radius) - 2px);
    --radius-lg:           var(--radius);
    --radius-xl:           calc(var(--radius) + 4px);
    --radius-2xl:          calc(var(--radius) + 8px);
    --radius-full:         9999px;

    /* Typography */
    --font-sans:           'Outfit', sans-serif;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow:     0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-foreground);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
h1,h2,h3,h4,h5,h6 { text-wrap: balance; font-family: var(--font-sans); line-height: 1.25; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { color: var(--clr-primary-hover); }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.container-sm { max-width: 680px; margin-inline: auto; padding-inline: 1rem; }
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { position:static; }

/* ============================================================
   HEADER  (sticky, backdrop-blur, border-b)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
/* Brand */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-icon {
    width: 40px; height: 40px;
    background: var(--clr-primary);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.brand-icon span { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.5px; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-xl); }
.brand-text {}
.brand-name { display: block; font-weight: 700; font-size: 15px; color: var(--clr-foreground); line-height: 1.2; }
.brand-sub  { display: block; font-size: 13px; color: var(--clr-muted-fg); line-height: 1.2; }

/* Nav */
.main-navigation ul { display: flex; align-items: center; gap: 4px; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-foreground);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.main-navigation ul li a:hover { background: var(--clr-secondary); color: var(--clr-foreground); }
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
    background: var(--clr-primary-light);
    color: var(--clr-primary);
}
/* Dropdown */
.main-navigation ul li ul {
    display: none; position: absolute;
    top: calc(100% + 4px); left: 0;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px; padding: 6px;
    flex-direction: column; gap: 2px; z-index: 100;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a { padding: 8px 12px; font-size: 13.5px; border-radius: var(--radius-sm); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none; border: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    align-items: center; justify-content: center;
    cursor: pointer; color: var(--clr-foreground);
    transition: background 0.2s;
}
.menu-toggle:hover { background: var(--clr-secondary); }
.menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ============================================================
   HERO / CAROUSEL
   ============================================================ */
.hero-carousel { position: relative; overflow: hidden; background: var(--clr-secondary); }
.hero-slide {
    position: relative;
    width: 100%;
    height: clamp(320px, 55vw, 600px);
    display: none;
}
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.hero-caption {
    position: absolute;
    bottom: 10%; left: 5%;
    color: #fff;
    max-width: 520px;
}
.hero-caption h2 {
    font-size: clamp(22px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #fff;
    text-wrap: balance;
}
.hero-caption p { font-size: clamp(14px, 1.8vw, 18px); color: rgba(255,255,255,0.88); line-height: 1.6; }
.hero-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: rgba(255,255,255,0.5); cursor: pointer;
    border: none; transition: all 0.2s;
}
.hero-dot.active { background: #fff; width: 24px; }
.hero-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 9999px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; color: #fff;
}
.hero-btn:hover { background: rgba(255,255,255,0.35); }
.hero-btn.prev { left: 16px; }
.hero-btn.next { right: 16px; }
.hero-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section      { padding: 64px 0; }
.section-sm   { padding: 40px 0; }
.section-bg   { background: var(--clr-secondary); }

.section-header { margin-bottom: 48px; }
.section-header h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--clr-foreground);
}
.section-header p { font-size: 16px; color: var(--clr-muted-fg); max-width: 560px; line-height: 1.7; }
.section-header.center { text-align: center; }
.section-header.center p { margin-inline: auto; }

/* ============================================================
   CARD (universal)
   ============================================================ */
.card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-body { padding: 24px 28px; }
.card-header { padding: 20px 28px 0; }
.card-title { font-size: 18px; font-weight: 600; color: var(--clr-foreground); margin-bottom: 4px; }
.card-desc  { font-size: 14px; color: var(--clr-muted-fg); display: flex; align-items: center; gap: 6px; }

/* ============================================================
   ICON BOX (for feature / info items)
   ============================================================ */
.icon-box {
    width: 48px; height: 48px;
    background: var(--clr-primary-light);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--clr-primary);
}
.icon-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-box.lg { width: 56px; height: 56px; }
.icon-box.lg svg { width: 28px; height: 28px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 9999px;
    font-size: 12px; font-weight: 500; line-height: 1;
}
.badge-default   { background: var(--clr-primary); color: #fff; }
.badge-secondary { background: var(--clr-secondary); color: var(--clr-secondary-fg); border: 1px solid var(--clr-border); }
.badge-success   { background: hsl(142,72%,92%); color: hsl(142,72%,28%); }
.badge-warning   { background: hsl(45,93%,93%); color: hsl(32,95%,32%); }
.badge-danger    { background: hsl(0,72%,93%); color: hsl(0,72%,38%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px; font-weight: 500; line-height: 1;
    cursor: pointer; border: 1px solid transparent;
    transition: all 0.2s; text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn-primary:hover { background: var(--clr-primary-hover); border-color: var(--clr-primary-hover); color: #fff; }
.btn-secondary { background: var(--clr-secondary); color: var(--clr-foreground); border-color: var(--clr-border); }
.btn-secondary:hover { background: var(--clr-muted); color: var(--clr-foreground); }
.btn-outline { background: transparent; color: var(--clr-primary); border-color: var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--clr-foreground); border-color: transparent; }
.btn-ghost:hover { background: var(--clr-secondary); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   BLOOD STOCK TABLE
   ============================================================ */
.blood-table-wrap { overflow-x: auto; }
.blood-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
.blood-table th {
    text-align: left; padding: 12px 16px;
    font-weight: 600; font-size: 13px;
    color: var(--clr-muted-fg);
    border-bottom: 1px solid var(--clr-border);
    white-space: nowrap;
}
.blood-table td { padding: 14px 16px; border-bottom: 1px solid var(--clr-border); }
.blood-table tr:last-child td { border-bottom: none; }
.blood-table tr:hover td { background: var(--clr-secondary); }
.blood-type-cell { font-weight: 600; font-size: 15px; color: var(--clr-foreground); }

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
.schedule-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule-table th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 13px; color: var(--clr-muted-fg); border-bottom: 1px solid var(--clr-border); }
.schedule-table td { padding: 14px 16px; border-bottom: 1px solid var(--clr-border); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--clr-secondary); }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.article-card { display: flex; flex-direction: column; }
.article-card .card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--clr-secondary);
}
.article-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .card-img img { transform: scale(1.04); }
.article-card .card-body { flex: 1; display: flex; flex-direction: column; }
.article-card .card-meta { font-size: 12px; color: var(--clr-muted-fg); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.article-card h3 { font-size: 17px; font-weight: 600; color: var(--clr-foreground); letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.4; }
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--clr-primary); }
.article-card p { font-size: 14px; color: var(--clr-muted-fg); line-height: 1.65; flex: 1; }
.article-card .card-footer { margin-top: 16px; }
.read-more { font-size: 13px; font-weight: 500; color: var(--clr-primary); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }
.read-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-item p,
.contact-item a { font-size: 14px; color: var(--clr-muted-fg); }
.contact-item a:hover { color: var(--clr-primary); }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--clr-foreground); }
.form-control {
    width: 100%; padding: 10px 14px;
    background: var(--clr-bg); color: var(--clr-foreground);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans); font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.form-control:focus { outline: none; border-color: var(--clr-ring); box-shadow: 0 0 0 3px hsl(348,100%,44%,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-error { font-size: 12px; color: var(--clr-primary); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   NOTE / ALERT BOX
   ============================================================ */
.note-box {
    padding: 16px 20px; border-radius: var(--radius-xl);
    font-size: 14px; line-height: 1.6;
}
.note-muted { background: var(--clr-muted); color: var(--clr-muted-fg); }
.note-primary { background: var(--clr-primary-light); color: var(--clr-primary); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--clr-foreground);
}
.page-hero p { font-size: 17px; color: var(--clr-muted-fg); max-width: 560px; line-height: 1.7; }

/* ============================================================
   SIDEBAR & WIDGET
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 40px 0 64px; }
.content-layout.full { grid-template-columns: 1fr; }
.widget { margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: 600; color: var(--clr-foreground); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--clr-border); }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--clr-border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--clr-foreground); }
.widget ul li a:hover { color: var(--clr-primary); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.entry-title { font-size: clamp(24px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--clr-foreground); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--clr-muted-fg); margin-bottom: 24px; }
.entry-thumbnail { border-radius: var(--radius-2xl); overflow: hidden; margin-bottom: 32px; }
.entry-content { font-size: 16px; line-height: 1.8; color: var(--clr-foreground); }
.entry-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 14px; letter-spacing: -0.01em; }
.entry-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul { list-style: disc; margin: 0 0 18px 20px; }
.entry-content ol { list-style: decimal; margin: 0 0 18px 20px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border-left: 3px solid var(--clr-primary); padding: 12px 20px; margin: 24px 0; background: var(--clr-primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--clr-muted-fg); }
.entry-content img { border-radius: var(--radius-xl); margin: 16px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.entry-content table th { background: var(--clr-secondary); padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 1px solid var(--clr-border); }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--clr-border); }
.entry-content a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--clr-muted-fg); padding: 12px 0; }
.breadcrumb a { color: var(--clr-muted-fg); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb .sep { color: var(--clr-border); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 40px 0 0; }
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500;
    color: var(--clr-foreground);
    border: 1px solid var(--clr-border);
    transition: all 0.2s;
}
.page-numbers.current, .page-numbers:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.page-numbers.dots { border: none; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--clr-border); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); font-family: var(--font-sans); font-size: 14px; background: var(--clr-bg); color: var(--clr-foreground); }
.search-form input:focus { outline: none; border-color: var(--clr-ring); }
.search-form button { background: var(--clr-primary); color: #fff; border: 1px solid var(--clr-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 10px 16px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.search-form button:hover { background: var(--clr-primary-hover); }

/* ============================================================
   FOOTER  (bg: secondary)
   ============================================================ */
.site-footer {
    background: var(--clr-secondary);
    color: var(--clr-secondary-fg);
    border-top: 1px solid var(--clr-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
}
.footer-brand p { font-size: 14px; color: var(--clr-muted-fg); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--clr-foreground); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: var(--clr-muted-fg); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--clr-foreground); text-decoration: underline; text-underline-offset: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
    width: 36px; height: 36px;
    background: var(--clr-muted); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-muted-fg); transition: all 0.2s;
}
.social-btn:hover { background: var(--clr-primary); color: #fff; }
.social-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid var(--clr-border); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--clr-muted-fg); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--clr-muted-fg); }
.footer-bottom-links a:hover { color: var(--clr-foreground); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 42px; height: 42px;
    background: var(--clr-primary); color: #fff;
    border: none; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transition: all 0.25s; z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--clr-primary-hover); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   404
   ============================================================ */
.not-found-wrap { text-align: center; padding: 80px 0; }
.not-found-wrap .code { font-size: clamp(80px,15vw,160px); font-weight: 800; color: var(--clr-primary); line-height: 1; letter-spacing: -4px; }
.not-found-wrap h2 { font-size: 28px; font-weight: 700; margin: 12px 0 10px; }
.not-found-wrap p { color: var(--clr-muted-fg); margin-bottom: 28px; }

/* ============================================================
   WP CORE CLASSES
   ============================================================ */
.alignleft { float:left; margin:0 20px 12px 0; }
.alignright { float:right; margin:0 0 12px 20px; }
.aligncenter { display:block; margin-inline:auto; }
.wp-caption-text { font-size:13px; color:var(--clr-muted-fg); text-align:center; margin-top:5px; }
.screen-reader-text { position:absolute!important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-navigation { display: none; }
    .main-navigation.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--clr-border); box-shadow: var(--shadow-lg); padding: 12px 16px; }
    .main-navigation.open ul { flex-direction: column; gap: 2px; }
    .main-navigation.open ul li ul { position: static; box-shadow: none; border: none; background: var(--clr-secondary); margin-top: 2px; }
    .menu-toggle { display: flex; }
    .header-inner { position: relative; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .page-hero { padding: 40px 0 24px; }
}
@media (max-width: 480px) {
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-social { flex-wrap: wrap; }
}
