/* ═══════════════════════════════════════════════════════════════
   KulaKingdom — HistoryPress Replica Theme
   Royal Blue #0A1C3A + Gold #D4AF37
   ═══════════════════════════════════════════════════════════════ */

:root {
    --royal-blue: #0A1C3A;
    --royal-blue-light: #153260;
    --royal-blue-soft: #1E3A66;
    --gold: #D4AF37;
    --gold-hover: #E5C158;
    --gold-dark: #B8962E;
    --white: #ffffff;
    --off-white: #F7F8FA;
    --bg-light: #EEF1F5;
    --parchment: #F1EDE4;
    --text: #1A1A1A;
    --text-muted: #6A7280;
    --border: #E2E6EB;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(10, 28, 58, 0.06);
    --shadow: 0 10px 30px rgba(10, 28, 58, 0.08);
    --shadow-lg: 0 25px 60px rgba(10, 28, 58, 0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* ← prevents horizontal scrollbar */
    max-width: 100%;
    /* ← hard-clips viewport width */
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* ← double guard on body */
    max-width: 100%;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

/* ───── Typography ───── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
    color: var(--royal-blue);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* ───── Layout ───── */
.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.center {
    text-align: center;
    margin-top: 2.5rem;
}

.text-muted {
    color: var(--text-muted);
}

/* ───── Header ───── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 28, 58, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — single-layer background, mobile-optimized
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 6rem 0 5rem;
    box-sizing: border-box;

    /* Single-layer background: overlay + image + solid fallback */
    background:
        linear-gradient(rgba(10, 28, 58, 0.85), rgba(10, 28, 58, 0.92)),
        url('/static/images/hero.jpg') center / cover no-repeat,
        var(--royal-blue);

    color: var(--white);
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
    line-height: 1.1;
}

.hero-lede {
    font-family: var(--font-head);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-inline: auto;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE (≤768px) — shorter, tighter, no zoom
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        min-height: 0;
        height: auto;
        padding: 3.5rem 0 2.5rem;
        align-items: flex-start;
        /* Crop at upper third — where faces/subjects usually are */
        background-position: center 25%;
    }

    .hero-content {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 7.5vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 0.9rem;
    }

    .hero-lede {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        max-width: 300px;
        margin-inline: auto;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }

    .scroll-hint {
        bottom: 0.6rem;
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EXTRA SMALL (≤400px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-lede {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }

    .hero-cta .btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.74rem;
    }
}

/* ───── Buttons ───── */
.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-gold {
    background: var(--gold);
    color: var(--royal-blue);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--royal-blue);
}

.btn-outline-dark {
    border-color: var(--royal-blue);
    color: var(--royal-blue);
}

.btn-outline-dark:hover {
    background: var(--royal-blue);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ───── Sections ───── */
.section {
    padding: 5.5rem 0;
}

.section-parchment {
    background: var(--parchment);
}

.section-navy {
    background: var(--royal-blue);
    color: var(--white);
}

.bg-light {
    background: var(--bg-light);
}

.bg-navy {
    background: var(--royal-blue);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
    color: var(--white);
}

.section-navy p {
    color: rgba(255, 255, 255, 0.8);
}

.section-navy .eyebrow {
    color: var(--gold);
}

.bg-navy h2,
.bg-navy h3 {
    color: var(--white);
}

.bg-navy p {
    color: rgba(255, 255, 255, 0.8);
}

.section-head {
    max-width: 760px;
    margin-bottom: 3rem;
}

.section-head.text-center {
    margin-inline: auto;
    text-align: center;
}

.section-head-light h2 {
    color: var(--white);
}

.section-head-light .eyebrow {
    color: var(--gold);
}

/* ───── Grids ───── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

/* ───── Cards ───── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Card media: background-image wrapper. 800×500 px recommended */
.card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background-color: var(--royal-blue-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 28, 58, 0.15));
}

.card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card-body h3 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: var(--gold-dark);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.card-body .cat {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 700;
}

.card-body .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    display: inline-block;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
}

.read-more:hover {
    color: var(--royal-blue);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* ───── Feature + Sidebar ───── */
.split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.feature {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Feature media: 1200×675 px recommended */
.feature-media {
    aspect-ratio: 16 / 9;
    background-color: var(--royal-blue-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-body {
    padding: 2.5rem;
}

.feature-body h2 {
    margin: 0.5rem 0 1rem;
}

.feature-body .cat {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 700;
}

/* Sidebar widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.widget h4 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    color: var(--royal-blue);
}

.link-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
}

.link-list li:last-child {
    border-bottom: 0;
}

.link-list a {
    color: var(--text);
}

.link-list a:hover {
    color: var(--gold-dark);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--bg-light);
    border-radius: 99px;
    font-size: 0.82rem;
    color: var(--royal-blue);
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--gold);
    color: var(--royal-blue);
}

.widget-news p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.widget-news form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-news input,
.widget-news button {
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.widget-news input:focus {
    outline: none;
    border-color: var(--gold);
}

.widget-news button {
    background: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
    cursor: pointer;
    font-weight: 600;
}

.widget-news button:hover {
    background: var(--gold);
    color: var(--royal-blue);
    border-color: var(--gold);
}

/* ───── Project Cards ───── */
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    margin: 0.5rem 0 0.8rem;
}

.project-card .cat {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 700;
}

/* ───── Event Cards ───── */
.event-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.3rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--royal-blue);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1;
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    flex-shrink: 0;
    text-align: center;
}

.event-date small {
    font-size: 0.65rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

.event-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.event-card h3 a {
    color: var(--white);
}

.event-card h3 a:hover {
    color: var(--gold);
}

.event-card p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ───── Large Quote ───── */
.large-quote {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.6;
    max-width: 900px;
    margin: 2rem auto;
    color: var(--gold);
    font-style: italic;
}

.quote-author {
    color: var(--white);
    font-weight: 600;
}

/* ───── Page Hero (sub-pages) ───── */
.page-hero {
    background: linear-gradient(135deg, var(--royal-blue) 0%, #051124 100%);
    padding: 7rem 0 5.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.page-hero h1 {
    color: var(--white);
}

.page-hero-sub {
    color: var(--gold);
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ───── Article layouts ───── */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.article-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-body {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-content h2,
.article-body h2 {
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--border);
}

.article-content h2:first-child,
.article-body h2:first-child {
    margin-top: 0;
}

.article-content h3,
.article-body h3 {
    margin: 2rem 0 1rem;
}

.article-content p,
.article-body p {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
}

.article-content blockquote,
.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.2rem 1.8rem;
    margin: 2rem 0;
    background: var(--off-white);
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--royal-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content ul,
.article-content ol,
.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul li,
.article-body ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: #333;
}

.article-content ol li,
.article-body ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
    color: #333;
}

.community-list {
    columns: 2;
    column-gap: 2rem;
}

.rite-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    color: #333;
}

.rite-list li:last-child {
    border-bottom: 0;
}

/* Inline article images — 1200×675 px */
.article-figure {
    margin: 2rem 0;
    text-align: center;
}

.article-figure img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    margin: 0 auto;
}

.article-figure figcaption {
    margin-top: 0.8rem;
    font-family: var(--font-head);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* King portrait — 600×800 px */
.king-portrait {
    margin: 0 0 2rem;
    text-align: center;
}

.king-portrait img {
    max-width: 380px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.king-portrait figcaption {
    margin-top: 1rem;
    font-family: var(--font-head);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ───── Gallery ───── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--gold);
    background: var(--royal-blue);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.35);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(10, 28, 58, 0.95));
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-item p strong {
    color: var(--gold);
}

/* ───── Footer ───── */
.site-footer {
    background: var(--royal-blue);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.site-footer h4 {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.site-footer ul li {
    margin-bottom: 0.7rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--gold);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--royal-blue);
    border-color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ───── Footer Credit ───── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Adds space between the copyright and the credit line */
}

.footer-credit {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    /* Slightly dimmer to make the main copyright pop */
    letter-spacing: 0.05em;
}

.footer-credit strong {
    color: var(--gold);
    /* Highlights the company name in your brand gold */
    font-weight: 600;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ───── Admin ───── */
.admin-body {
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-header {
    background: var(--royal-blue);
    border-bottom: 3px solid var(--gold);
    padding: 1rem 0;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header .logo img {
    height: 50px;
}

.admin-header .logo-text {
    font-size: 1.1rem;
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-nav a:hover {
    color: var(--gold);
}

.admin-nav .logout {
    color: #ff9a9a;
}

.admin-main {
    padding: 3rem 0;
}

.admin-container {
    max-width: 1100px;
}

.admin-login-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    border-top: 4px solid var(--gold);
    text-align: center;
}

.login-logo {
    height: 70px;
    margin: 0 auto 1.5rem;
}

.admin-login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.admin-form-wide {
    max-width: 800px;
    margin: 0 auto;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--royal-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.admin-form .hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.admin-form .content-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.admin-form input[type="file"] {
    padding: 0.6rem;
    border: 1.5px dashed var(--gold);
    background: var(--off-white);
    cursor: pointer;
}

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem !important;
    text-transform: none !important;
}

.checkbox-label input {
    width: auto !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    border-left: 4px solid #DC2626;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
    text-align: center;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--royal-blue);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-collapse: collapse;
}

.admin-table thead th {
    background: var(--royal-blue);
    color: var(--white);
    text-align: left;
    padding: 1rem 1.2rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.admin-table tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
}

.admin-table tbody tr:hover {
    background: var(--off-white);
}

.admin-table code {
    background: var(--off-white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.admin-table .actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-table .link {
    color: var(--royal-blue);
    font-weight: 600;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
}

.admin-table .link:hover {
    color: var(--gold-dark);
}

.admin-table .link-danger {
    color: #DC2626;
}

.admin-table .link-danger:hover {
    color: #991B1B;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.image-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
}

.image-preview img {
    max-width: 300px;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--royal-blue);
        padding: 1.5rem;
        display: none;
        border-bottom: 2px solid var(--gold);
    }

    .nav-toggle:checked~.main-nav {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .main-nav a {
        padding: 0.7rem 0;
        display: block;
    }

    .hero {
        padding: 6rem 0 5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .article-content,
    .article-body {
        padding: 2rem 1.5rem;
    }

    .community-list {
        columns: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-login-card {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.7rem;
    }

    .king-portrait img {
        max-width: 100%;
    }
}