/*
Theme Name: GRE Theme
Theme URI: https://www.gutshallrealestate.com
Description: Lightweight custom theme for Gutshall Real Estate — optimized for content, SEO and link selling.
Version: 1.1.0
Author: Gutshall Real Estate
Text Domain: gre-theme
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:      #1c2b3a;
    --navy-dark: #12202d;
    --gold:      #c9a84c;
    --gold-dark: #a8882f;
    --white:     #ffffff;
    --bg:        #f4f5f7;
    --text:      #2d3748;
    --muted:     #718096;
    --border:    #e2e8f0;
    --red:       #c0392b;
    --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    --radius:    5px;
    --shadow:    0 1px 8px rgba(0,0,0,.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,.11);
    --max-w:     1160px;
    --sidebar-w: 290px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-width: 320px;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 18px;
    width: 100%;
}

.site-wrapper  { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.site-content  { flex: 1; padding: 32px 0 48px; }

/* 2-col layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 32px;
    align-items: start;
}
.layout-full { grid-template-columns: 1fr; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    padding: 5px 0;
    overflow: hidden;
}
.top-bar .tb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.top-bar a { color: rgba(255,255,255,.5); }
.top-bar a:hover { color: var(--gold); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 62px;
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-branding > a,
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.3px;
    white-space: nowrap;
}
.site-branding .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 900;
    color: var(--navy);
    flex-shrink: 0;
    letter-spacing: 0;
}
.site-branding a:hover { color: var(--gold); }

/* Nav */
.main-nav { flex: 1; min-width: 0; }
.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.main-nav .nav-menu > li > a {
    display: block;
    color: rgba(255,255,255,.8);
    font-size: .83rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background .18s, color .18s;
}
.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li.current-menu-item > a,
.main-nav .nav-menu > li.current-menu-ancestor > a {
    background: rgba(255,255,255,.1);
    color: var(--gold);
}

/* Search */
.header-search { flex-shrink: 0; }
.header-search form {
    display: flex;
    align-items: center;
}
.header-search input[type="search"] {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-right: none;
    color: var(--white);
    padding: 5px 11px;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: .8rem;
    width: 140px;
    outline: none;
    transition: background .2s, width .3s;
    -webkit-appearance: none;
}
.header-search input[type="search"]::placeholder { color: rgba(255,255,255,.4); }
.header-search input[type="search"]:focus {
    background: rgba(255,255,255,.14);
    width: 180px;
}
.header-search button {
    background: var(--gold);
    color: var(--navy);
    padding: 5px 11px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.6;
    transition: background .2s;
    flex-shrink: 0;
}
.header-search button:hover { background: var(--gold-dark); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .28s, opacity .28s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 9px 0;
    font-size: .78rem;
    color: var(--muted);
    overflow: hidden;
}
.breadcrumb-wrap .bc-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.breadcrumb-wrap .bc-sep { padding: 0 6px; color: var(--border); }
.breadcrumb-wrap a { color: var(--muted); }
.breadcrumb-wrap a:hover { color: var(--gold); }
.breadcrumb-wrap .bc-current { color: var(--navy); font-weight: 500; }

/* ============================================================
   CATEGORY NAV STRIP (sous le header)
   ============================================================ */
.cat-strip {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    overflow: hidden;
}
.cat-strip-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip-inner a {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    padding: 10px 16px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .18s, border-color .18s;
}
.cat-strip-inner a:hover,
.cat-strip-inner a.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap {
    background: var(--navy);
    overflow: hidden;
    margin-bottom: 32px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}
.hero-img {
    overflow: hidden;
    position: relative;
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
}
.hero-cat {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
    width: fit-content;
}
.hero-cat a { color: var(--navy); }
.hero-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 14px;
}
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--gold); }
.hero-excerpt { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.6; margin-bottom: 20px; }
.hero-meta { font-size: .76rem; color: rgba(255,255,255,.4); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--navy);
    font-size: .83rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius);
    width: fit-content;
    margin-bottom: 16px;
    transition: background .2s;
}
.hero-cta:hover { background: var(--gold-dark); color: var(--navy); }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.sec-title {
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding-left: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* POST CARD */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #dde3ea;
    position: relative;
    flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1c2b3a 0%, #2c4a6e 100%);
    color: rgba(255,255,255,.25);
    font-size: 2.2rem;
}

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
    display: block;
}
.card-cat a { color: var(--gold); }

.card-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--navy);
    flex: 1;
}
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--gold); }

.card-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }

.card-meta { font-size: .73rem; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-top: auto; }
.card-meta-date::before { content: "📅 "; }
.card-meta-time::before { content: "⏱ "; }

/* ============================================================
   POST LIST (archives)
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.list-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    transition: box-shadow .22s;
    min-height: 120px;
}
.list-item:hover { box-shadow: var(--shadow-md); }

.list-thumb {
    overflow: hidden;
    background: #dde3ea;
    flex-shrink: 0;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.list-item:hover .list-thumb img { transform: scale(1.05); }
.list-thumb .no-img {
    width: 100%; height: 100%; min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1c2b3a 0%, #2c4a6e 100%);
    color: rgba(255,255,255,.2);
    font-size: 2rem;
}

.list-body { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.list-body .card-title { font-size: .92rem; margin-bottom: 6px; }
.list-body .card-excerpt { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-header { margin-bottom: 24px; }
.single-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.single-cats a {
    background: var(--gold);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
}
.single-title { font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; margin-bottom: 14px; }
.single-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.single-meta a { color: var(--muted); }
.single-meta a:hover { color: var(--gold); }

.single-thumb {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.single-thumb img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

.entry-content {
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.78;
    font-size: .96rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.entry-content h2 { font-size: 1.35rem; margin: 1.7em 0 .6em; padding-bottom: .35em; border-bottom: 2px solid var(--border); }
.entry-content h3 { font-size: 1.1rem; margin: 1.4em 0 .55em; }
.entry-content h4 { font-size: 1rem; margin: 1.2em 0 .5em; }
.entry-content p  { margin-bottom: 1.15em; }
.entry-content ul,
.entry-content ol  { margin: .8em 0 1.1em 1.4em; }
.entry-content ul  { list-style: disc; }
.entry-content ol  { list-style: decimal; }
.entry-content li  { margin-bottom: .35em; }
.entry-content a   { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy); }
.entry-content blockquote {
    border-left: 4px solid var(--gold);
    margin: 1.4em 0;
    padding: 12px 20px;
    background: rgba(201,168,76,.07);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content img { border-radius: var(--radius); margin: 1.3em 0; box-shadow: var(--shadow); max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .88rem; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td  { padding: 9px 13px; border: 1px solid var(--border); text-align: left; }
.entry-content th  { background: var(--navy); color: var(--white); font-weight: 600; }
.entry-content tr:nth-child(even) td { background: var(--bg); }
.entry-content code { background: var(--bg); border: 1px solid var(--border); padding: 1px 5px; border-radius: 3px; font-size: .86em; word-break: break-all; }
.entry-content pre  { background: var(--navy); color: #abb2bf; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; margin: 1.4em 0; }
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; word-break: normal; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav-link {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
    min-width: 0;
}
.post-nav-link:hover { box-shadow: var(--shadow-md); }
.post-nav-link .dir { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.post-nav-link a { font-weight: 600; font-size: .85rem; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-link a:hover { color: var(--gold); }
.post-nav-link.next { text-align: right; }

/* Author box */
.author-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 28px;
}
.author-box img { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.author-info .name { font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.author-info p { font-size: .83rem; color: var(--muted); margin: 0; }

/* Related */
.related-section { margin-top: 36px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 72px; min-width: 0; }

.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.widget-title {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 14px;
}

/* Search widget */
.w-search form { display: flex; }
.w-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-right: none;
    padding: 8px 12px;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: .84rem;
    outline: none;
    -webkit-appearance: none;
}
.w-search button {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 13px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 700;
    font-size: .84rem;
    flex-shrink: 0;
    transition: background .2s;
}
.w-search button:hover { background: var(--gold-dark); }

/* Recent posts widget */
.w-posts li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.w-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.w-posts .wp-thumb {
    width: 54px; height: 40px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}
.w-posts .wp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-posts .wp-title { font-size: .78rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.w-posts .wp-title a { color: var(--navy); }
.w-posts .wp-title a:hover { color: var(--gold); }
.w-posts .wp-date { font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* Categories widget */
.w-cats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: .84rem;
}
.w-cats li:last-child { border-bottom: none; }
.w-cats a { color: var(--text); font-weight: 500; }
.w-cats a:hover { color: var(--gold); }
.w-cats .count {
    background: var(--bg);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Tags */
.w-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.w-tags a {
    background: var(--bg);
    color: var(--muted);
    font-size: .76rem;
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all .18s;
}
.w-tags a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* CTA widget */
.w-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #2a4060 100%);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    padding: 24px 18px;
    margin-bottom: 20px;
}
.w-cta .cta-icon { font-size: 1.8rem; margin-bottom: 10px; }
.w-cta h4 { color: var(--gold); font-size: .95rem; margin-bottom: 6px; }
.w-cta p { font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 14px; line-height: 1.5; }
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: .8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius);
    transition: background .2s;
}
.btn-cta:hover { background: var(--gold-dark); color: var(--navy); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all .18s;
}
.pagination .page-numbers:hover { background: var(--gold); color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); }
.pagination .dots { background: none; box-shadow: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.65); margin-top: 48px; overflow: hidden; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 36px;
}

.f-col-title {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.footer-logo .logo-icon {
    width: 26px; height: 26px;
    background: var(--gold);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
    font-weight: 900;
    color: var(--navy);
    flex-shrink: 0;
}
.footer-desc { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.45); }

.f-links li { margin-bottom: 8px; }
.f-links a {
    color: rgba(255,255,255,.55);
    font-size: .83rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .18s;
}
.f-links a::before { content: "›"; color: var(--gold); font-weight: 700; }
.f-links a:hover { color: var(--gold); }

.f-recent li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.f-recent li:last-child { border-bottom: none; }
.f-recent a { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.4; display: block; }
.f-recent a:hover { color: var(--gold); }
.f-recent .post-date { font-size: .71rem; color: rgba(255,255,255,.3); margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px 0;
}
.footer-bottom .fb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.4); font-size: .78rem; }
.footer-bottom a:hover { color: var(--gold); }
.f-legal { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   UTILITY
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .88rem;
    transition: all .18s;
    cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #263c50; color: var(--white); }

/* 404 */
.page-404 { text-align: center; padding: 64px 20px; }
.page-404 .err-num { font-size: clamp(5rem, 15vw, 8rem); font-weight: 900; color: var(--border); line-height: 1; }

/* Page header band */
.page-band { background: var(--navy); padding: 32px 0; margin-bottom: 28px; overflow: hidden; }
.page-band h1 { color: var(--white); }
.page-band p { color: rgba(255,255,255,.6); margin: 6px 0 0; font-size: .9rem; }

/* Search header */
.search-head { margin-bottom: 24px; }
.search-head strong { color: var(--navy); }

/* No content box */
.no-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.no-content p { color: var(--muted); }

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    :root { --sidebar-w: 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-body { padding: 32px 32px; }
    .hero-title { font-size: 1.4rem; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Layout */
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }

    /* Header */
    .header-search { display: none; }
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--navy);
        box-shadow: 0 8px 20px rgba(0,0,0,.35);
        z-index: 998;
        padding: 10px 18px 18px;
    }
    .main-nav.open { display: block; }
    .main-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
    .main-nav .nav-menu > li > a { padding: 10px 12px; font-size: .9rem; }

    /* Hero */
    .hero-inner { grid-template-columns: 1fr; }
    .hero-img { height: 200px; }
    .hero-body { padding: 24px 20px; }

    /* Cards */
    .card-grid { grid-template-columns: 1fr 1fr; }

    /* List */
    .list-item { grid-template-columns: 140px 1fr; }

    /* Post nav */
    .post-nav { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 24px; }

    /* Entry */
    .entry-content { padding: 20px 16px; }

    /* Prevent overflow on mobile */
    .cat-strip { display: none; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .card-grid { grid-template-columns: 1fr; }
    .list-item { grid-template-columns: 1fr; }
    .list-thumb { height: 180px; }
    .widget { padding: 16px; }
    .site-content { padding: 20px 0 36px; }
    .author-box { flex-direction: column; }
    .footer-bottom .fb-inner { flex-direction: column; text-align: center; }
}
