/*
Theme Name: SG Neptun
Theme URI: https://sg-neptun-lampertheim.de/
Author: SG Neptun Lampertheim
Author URI: https://sg-neptun-lampertheim.de/
Description: Ein modernes, eigenständiges WordPress-Theme für die SG Neptun Lampertheim. Entworfen für Schwimmvereine mit Fokus auf Lesbarkeit, schnelle Ladezeiten, Barrierefreiheit und ein zeitgemäßes Erscheinungsbild in den Farben des Wassers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: sgneptun
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   1. Design Tokens
   ========================================================= */
:root {
    --neptun-deep: #012c52;
    --neptun-primary: #0a4d8c;
    --neptun-primary-dark: #063769;
    --neptun-accent: #00b4d8;
    --neptun-accent-light: #48cae4;
    --neptun-light: #caf0f8;
    --neptun-sand: #faf6f0;
    --neptun-foam: #ffffff;
    --neptun-ink: #0b1b2b;
    --neptun-text: #334155;
    --neptun-muted: #64748b;
    --neptun-border: #e2e8f0;
    --neptun-success: #10b981;
    --neptun-warning: #f59e0b;

    --neptun-gradient: linear-gradient(135deg, #012c52 0%, #0a4d8c 45%, #00b4d8 100%);
    --neptun-gradient-soft: linear-gradient(180deg, #ffffff 0%, #caf0f8 100%);

    --neptun-radius-sm: 6px;
    --neptun-radius: 14px;
    --neptun-radius-lg: 24px;

    --neptun-shadow-xs: 0 1px 2px rgba(1, 44, 82, 0.06);
    --neptun-shadow-sm: 0 4px 12px rgba(1, 44, 82, 0.08);
    --neptun-shadow-md: 0 12px 32px rgba(1, 44, 82, 0.10);
    --neptun-shadow-lg: 0 24px 60px rgba(1, 44, 82, 0.14);

    --neptun-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --neptun-font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --neptun-container: 1200px;
    --neptun-container-narrow: 820px;

    --neptun-nav-height: 76px;
    --neptun-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   2. Reset / Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--neptun-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--neptun-text);
    background: var(--neptun-foam);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--neptun-primary);
    text-decoration: none;
    transition: color var(--neptun-transition);
}
a:hover, a:focus { color: var(--neptun-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--neptun-font-head);
    color: var(--neptun-ink);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.5em;
    border-left: 4px solid var(--neptun-accent);
    background: var(--neptun-light);
    border-radius: 0 var(--neptun-radius) var(--neptun-radius) 0;
    font-style: italic;
    color: var(--neptun-ink);
}

code, pre, kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}
code {
    background: var(--neptun-sand);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--neptun-primary-dark);
}
pre {
    background: var(--neptun-ink);
    color: #cde8ff;
    padding: 1.1em 1.3em;
    border-radius: var(--neptun-radius);
    overflow-x: auto;
}
pre code { background: none; color: inherit; padding: 0; }

hr {
    border: 0;
    height: 1px;
    background: var(--neptun-border);
    margin: 2.2em 0;
}

::selection { background: var(--neptun-accent); color: #fff; }

/* Screen reader utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff;
    clip: auto; clip-path: none;
    color: var(--neptun-primary);
    display: block;
    font-weight: 700;
    height: auto; width: auto;
    left: 1rem; top: 1rem;
    line-height: normal;
    padding: 1rem 1.4rem;
    text-decoration: none;
    z-index: 100000;
    border-radius: var(--neptun-radius-sm);
    box-shadow: var(--neptun-shadow-md);
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--neptun-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container--narrow { max-width: var(--neptun-container-narrow); }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--alt { background: var(--neptun-sand); }
.section--deep { background: var(--neptun-deep); color: #cfe4f5; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--neptun-font-head);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--neptun-accent);
    margin-bottom: 0.9em;
}
.eyebrow::before {
    content: "";
    width: 28px; height: 2px;
    background: currentColor;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--neptun-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.7em;
    font-family: var(--neptun-font-head);
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--neptun-transition), box-shadow var(--neptun-transition), background var(--neptun-transition), color var(--neptun-transition), border-color var(--neptun-transition);
    line-height: 1;
    white-space: nowrap;
}
.btn:hover, .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--neptun-shadow-md);
}
.btn-primary {
    background: var(--neptun-accent);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--neptun-primary); color: #fff; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--neptun-primary); border-color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--neptun-primary);
    border-color: var(--neptun-primary);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--neptun-primary); color: #fff; }

/* =========================================================
   4. Site Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(10, 77, 140, 0.08);
    transition: box-shadow var(--neptun-transition), background var(--neptun-transition);
}
.site-header.is-scrolled {
    box-shadow: var(--neptun-shadow-sm);
    background: rgba(255,255,255,0.96);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--neptun-nav-height);
    gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; gap: 0.9rem; }
.site-branding a { display: flex; align-items: center; gap: 0.9rem; color: var(--neptun-ink); }
.site-branding a:hover { color: var(--neptun-primary); }
.site-logo-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--neptun-gradient);
    color: #fff;
    border-radius: 12px;
    font-family: var(--neptun-font-head);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--neptun-shadow-sm);
    flex-shrink: 0;
}
.site-title {
    margin: 0;
    font-family: var(--neptun-font-head);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.site-tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--neptun-accent);
    margin-top: 2px;
}
.custom-logo-link img { max-height: 48px; width: auto; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    margin: 0; padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav a {
    display: inline-block;
    padding: 0.6rem 0.95rem;
    font-weight: 500;
    color: var(--neptun-ink);
    border-radius: 999px;
    font-size: 0.96rem;
    transition: background var(--neptun-transition), color var(--neptun-transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
    background: var(--neptun-light);
    color: var(--neptun-primary-dark);
}

/* Submenu */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--neptun-radius);
    box-shadow: var(--neptun-shadow-lg);
    padding: 0.5rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--neptun-transition);
    flex-direction: column;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu a { padding: 0.55rem 0.9rem; }

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--neptun-ink);
}
.menu-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: currentColor;
    margin: 6px 0;
    transition: transform var(--neptun-transition), opacity var(--neptun-transition);
    border-radius: 2px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--neptun-border);
        padding: 1rem 1.25rem 1.5rem;
        display: none;
        box-shadow: var(--neptun-shadow-md);
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0.1rem; }
    .primary-nav a { padding: 0.75rem 1rem; width: 100%; }
    .primary-nav .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--neptun-sand);
        margin: 0.3rem 0 0.3rem 1rem;
    }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--neptun-gradient);
    color: #fff;
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(6rem, 13vw, 11rem);
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(0,180,216,0.4) 0, transparent 45%);
    z-index: -1;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.hero__content .eyebrow { color: var(--neptun-light); }
.hero__title {
    color: #fff;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    margin-bottom: 0.35em;
    line-height: 1.08;
}
.hero__title span { color: var(--neptun-accent-light); }
.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--neptun-shadow-lg), inset 0 0 0 8px rgba(255,255,255,0.15);
    background: var(--neptun-primary-dark);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, var(--neptun-accent-light) 0%, var(--neptun-primary) 70%);
    color: #fff;
    font-family: var(--neptun-font-head);
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 7rem);
    letter-spacing: -0.03em;
}

/* Wave divider under hero */
.hero__wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
}
.hero__wave svg { width: 100%; height: auto; display: block; }

/* Hero stats row */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__stat strong {
    display: block;
    font-family: var(--neptun-font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3em;
}
.hero__stat span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neptun-light);
}

/* =========================================================
   6. Features Grid
   ========================================================= */
.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: var(--neptun-radius);
    box-shadow: var(--neptun-shadow-xs);
    border: 1px solid var(--neptun-border);
    transition: transform var(--neptun-transition), box-shadow var(--neptun-transition), border-color var(--neptun-transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--neptun-shadow-md);
    border-color: transparent;
}
.feature-card__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    background: var(--neptun-light);
    color: var(--neptun-primary);
    border-radius: 14px;
    margin-bottom: 1.1rem;
    transition: background var(--neptun-transition), color var(--neptun-transition);
}
.feature-card:hover .feature-card__icon {
    background: var(--neptun-accent);
    color: #fff;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.feature-card p { color: var(--neptun-muted); margin-bottom: 0; }

/* =========================================================
   7. News / Post Cards
   ========================================================= */
.posts-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.post-card {
    background: #fff;
    border-radius: var(--neptun-radius);
    overflow: hidden;
    box-shadow: var(--neptun-shadow-xs);
    border: 1px solid var(--neptun-border);
    transition: transform var(--neptun-transition), box-shadow var(--neptun-transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--neptun-shadow-md);
}
.post-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--neptun-light);
}
.post-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media--placeholder {
    display: grid; place-items: center;
    background: var(--neptun-gradient);
    color: #fff;
}
.post-card__media--placeholder svg { width: 48px; height: 48px; opacity: 0.9; }

.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
    display: flex;
    gap: 0.9rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neptun-muted);
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.post-card__title {
    font-size: 1.2rem;
    margin: 0 0 0.6em;
    line-height: 1.3;
}
.post-card__title a { color: var(--neptun-ink); }
.post-card__title a:hover { color: var(--neptun-primary); }
.post-card__excerpt { color: var(--neptun-muted); margin-bottom: 1.1rem; flex: 1; }
.post-card__link {
    font-weight: 600;
    font-family: var(--neptun-font-head);
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--neptun-primary);
}
.post-card__link::after {
    content: "→";
    transition: transform var(--neptun-transition);
}
.post-card__link:hover::after { transform: translateX(4px); }

.post-card__cat {
    display: inline-block;
    background: var(--neptun-accent);
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* =========================================================
   8. CTA band
   ========================================================= */
.cta-band {
    background: var(--neptun-gradient);
    color: #fff;
    border-radius: var(--neptun-radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-band::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(0,180,216,0.5) 0%, transparent 60%);
    z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: 0.6em; }
.cta-band p {
    color: rgba(255,255,255,0.9);
    max-width: 580px;
    margin: 0 auto 1.8em;
    font-size: 1.1rem;
}

/* =========================================================
   9. Single post / page content
   ========================================================= */
.entry-header {
    text-align: center;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background: var(--neptun-sand);
    border-bottom: 1px solid var(--neptun-border);
}
.entry-header .container { max-width: var(--neptun-container-narrow); }
.entry-header h1 { margin-bottom: 0.5em; }
.entry-meta {
    display: inline-flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--neptun-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.entry-meta a { color: var(--neptun-muted); }
.entry-meta a:hover { color: var(--neptun-accent); }

.entry-featured {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    margin-top: calc(clamp(2rem, 4vw, 3rem) * -1);
    position: relative;
    z-index: 1;
}
.entry-featured img {
    width: 100%;
    border-radius: var(--neptun-radius-lg);
    box-shadow: var(--neptun-shadow-lg);
}

.entry-content {
    max-width: var(--neptun-container-narrow);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
    font-size: 1.08rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--neptun-radius); margin: 1.5em 0; }
.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--neptun-muted);
    margin-top: 0.6em;
}

.entry-footer {
    max-width: var(--neptun-container-narrow);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--neptun-muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--neptun-border);
}
.entry-footer a { color: var(--neptun-primary); }

.tag-list a {
    display: inline-block;
    background: var(--neptun-light);
    color: var(--neptun-primary-dark);
    padding: 0.2em 0.8em;
    border-radius: 999px;
    font-size: 0.82rem;
    margin: 0.15em 0.2em 0.15em 0;
}
.tag-list a:hover { background: var(--neptun-accent); color: #fff; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 3rem 0 1rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 999px;
    color: var(--neptun-ink);
    background: var(--neptun-sand);
    font-weight: 600;
    font-family: var(--neptun-font-head);
    transition: all var(--neptun-transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--neptun-primary);
    color: #fff;
}

/* Post navigation */
.post-navigation {
    max-width: var(--neptun-container-narrow);
    margin: 0 auto 3rem;
    padding: 0 1.25rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.post-navigation a {
    display: block;
    padding: 1.2rem 1.4rem;
    background: var(--neptun-sand);
    border-radius: var(--neptun-radius);
    color: var(--neptun-ink);
    border: 1px solid var(--neptun-border);
    transition: all var(--neptun-transition);
}
.post-navigation a:hover {
    background: #fff;
    border-color: var(--neptun-accent);
    box-shadow: var(--neptun-shadow-sm);
    color: var(--neptun-primary);
}
.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neptun-muted);
    font-weight: 600;
    margin-bottom: 0.3em;
}
.post-navigation .nav-title { font-family: var(--neptun-font-head); font-weight: 600; }

/* =========================================================
   10. Sidebar / Widgets
   ========================================================= */
.has-sidebar {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}
@media (min-width: 980px) {
    .has-sidebar { grid-template-columns: 1fr 320px; }
}
.widget-area .widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--neptun-radius);
    border: 1px solid var(--neptun-border);
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neptun-primary);
    margin-bottom: 1em;
    font-weight: 700;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 0.55em 0;
    border-bottom: 1px solid var(--neptun-border);
}
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--neptun-ink); }
.widget a:hover { color: var(--neptun-accent); }

/* Search form */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
    flex: 1;
    padding: 0.75em 1.1em;
    border: 1px solid var(--neptun-border);
    border-radius: 999px;
    background: var(--neptun-sand);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--neptun-ink);
    outline: none;
    transition: border-color var(--neptun-transition), background var(--neptun-transition);
}
.search-form input[type="search"]:focus {
    border-color: var(--neptun-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,180,216,0.15);
}
.search-form button {
    padding: 0.75em 1.3em;
    border: 0;
    border-radius: 999px;
    background: var(--neptun-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--neptun-transition);
}
.search-form button:hover { background: var(--neptun-accent); }

/* =========================================================
   11. Comments
   ========================================================= */
.comments-area {
    max-width: var(--neptun-container-narrow);
    margin: 0 auto 4rem;
    padding: 2rem 1.25rem;
}
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list li { margin-bottom: 1.5rem; }
.comment-body {
    background: var(--neptun-sand);
    border-radius: var(--neptun-radius);
    padding: 1.3rem 1.5rem;
    border: 1px solid var(--neptun-border);
}
.comment-meta { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.6rem; }
.comment-author { font-weight: 600; color: var(--neptun-ink); font-family: var(--neptun-font-head); }
.comment-metadata { color: var(--neptun-muted); font-size: 0.85rem; }
.children { list-style: none; margin: 1rem 0 0 2rem; padding: 0; }

.comment-respond { background: #fff; padding: 0; border-radius: var(--neptun-radius); }
.comment-form label { display: block; margin-bottom: 0.4em; font-weight: 600; font-size: 0.92rem; color: var(--neptun-ink); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid var(--neptun-border);
    border-radius: var(--neptun-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: var(--neptun-sand);
    transition: border-color var(--neptun-transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--neptun-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,180,216,0.15);
}
.comment-form .submit {
    background: var(--neptun-primary);
    color: #fff;
    border: 0;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--neptun-font-head);
    transition: background var(--neptun-transition);
}
.comment-form .submit:hover { background: var(--neptun-accent); }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer {
    background: var(--neptun-deep);
    color: #cfe4f5;
    padding-top: clamp(3rem, 6vw, 5rem);
}
.site-footer a { color: #cfe4f5; }
.site-footer a:hover { color: var(--neptun-accent-light); }

.footer-widgets {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-widgets .widget { background: transparent; border: 0; padding: 0; margin: 0; }
.footer-widgets .widget-title { color: #fff; }
.footer-widgets .widget li { border-bottom-color: rgba(255,255,255,0.08); }

.footer-brand h3 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6em;
}
.footer-brand p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

.social-list {
    list-style: none;
    padding: 0; margin: 1rem 0 0;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.social-list li { border: 0 !important; padding: 0 !important; }
.social-list a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    transition: background var(--neptun-transition), transform var(--neptun-transition);
}
.social-list a:hover {
    background: var(--neptun-accent);
    color: #fff;
    transform: translateY(-3px);
}
.social-list svg { width: 18px; height: 18px; }

.site-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.6rem 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.site-info nav ul {
    display: flex;
    gap: 1.3rem;
    list-style: none;
    padding: 0; margin: 0;
    flex-wrap: wrap;
}

/* =========================================================
   13. 404 / No Results
   ========================================================= */
.not-found {
    text-align: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.not-found__code {
    font-family: var(--neptun-font-head);
    font-size: clamp(5rem, 15vw, 10rem);
    line-height: 1;
    font-weight: 800;
    background: var(--neptun-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 0.3em;
    letter-spacing: -0.04em;
}
.not-found p { max-width: 560px; margin: 0 auto 1.8em; color: var(--neptun-muted); font-size: 1.1rem; }

/* =========================================================
   14. Utility & misc
   ========================================================= */
.sticky-badge {
    display: inline-block;
    background: var(--neptun-warning);
    color: #fff;
    padding: 0.2em 0.8em;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-right: 0.5em;
}

.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
    font-size: 0.88rem;
    color: var(--neptun-muted);
    text-align: center;
    margin-top: 0.6em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
