:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f7;
    --color-surface: #ffffff;
    --color-surface-soft: #fafafa;

    --color-text: #222222;
    --color-text-soft: #666666;
    --color-heading: #111111;

    --color-border: #e6e6e6;
    --color-border-strong: #d7d7d7;

    --color-primary: #5f6f52;
    --color-primary-hover: #4e5c44;
    --color-primary-soft: #eef2ec;

    --color-accent: #1f2a44;
    --color-accent-hover: #172033;
    --color-accent-soft: #eef1f7;

    --color-gold: #c6a96b;
    --color-gold-soft: #f6efe2;

    --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.05);
    --shadow-card: 0 18px 45px rgba(17, 17, 17, 0.07);
    --shadow-topbar: 0 12px 34px rgba(17, 17, 17, 0.06);

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;

    --container-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(1200px 420px at 72% 28%,
            rgba(255, 255, 255, 0.62),
            rgba(255, 255, 255, 0.16) 40%,
            transparent 60%),
        radial-gradient(950px 320px at 22% 88%,
            rgba(255, 255, 255, 0.34),
            rgba(255, 255, 255, 0.10) 50%,
            transparent 70%),
        linear-gradient(180deg,
            #bdd5e1 0%,
            #b0cedd 34%,
            #eef1ec 66%,
            #e8dfd2 100%);
    color: var(--color-text);
    line-height: 1.7;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

body::before {
    width: 145%;
    height: 430px;
    top: -125px;
    right: -22%;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0.32) 40%,
            transparent 60%);
    transform: rotate(-8deg);
}

body::after {
    width: 120%;
    height: 320px;
    bottom: -120px;
    left: -10%;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.34) 0%,
            rgba(255, 255, 255, 0.14) 45%,
            transparent 65%);
    transform: rotate(8deg);
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 28px 22px 110px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 14px;
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    max-width: var(--container-width);
    margin: 18px auto 0;
    padding: 16px 20px;

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    box-shadow: var(--shadow-topbar);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand a {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    box-shadow: 0 0 0 6px rgba(95, 111, 82, 0.10);
    flex: 0 0 14px;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--color-text-soft);
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--color-heading);
    background: rgba(255, 255, 255, 0.72);
}

.desktop-nav a:last-child {
    background: linear-gradient(135deg, var(--color-accent), #2d3a59);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(31, 42, 68, 0.18);
}

.desktop-nav a:last-child:hover {
    background: linear-gradient(135deg, var(--color-accent-hover), #22304d);
    color: #fff;
    transform: translateY(-1px);
}

/* =========================
   GENERIC LAYOUT
========================= */
.grid {
    display: grid;
    gap: 22px;
}

.cards {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.post-layout {
    display: grid;
    gap: 22px;
}

.front-section {
    margin-bottom: 30px;
}

.front-grid-2 {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

.front-grid-3 {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

/* =========================
   PANELS / CARDS
========================= */
.front-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 250, 250, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.front-panel::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(198, 169, 107, 0.10), transparent 70%);
    pointer-events: none;
}

.front-panel:hover {
    transform: translateY(-2px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 24px 55px rgba(17, 17, 17, 0.09);
}

.meta,
.text-muted,
.front-meta {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.front-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   HEADINGS / TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--color-heading);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: 750;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin-top: 0;
    color: var(--color-text);
}

/* =========================
   IMAGES
========================= */
.front-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

/* =========================
   OPTIONAL CARD LOOK
========================= */
.card,
.stat-card,
.post-card,
.category-card {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-body,
.post-card-body,
.category-card-body {
    padding: 18px;
}

.card-title,
.post-card-title,
.category-card-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-heading);
}

.card-text,
.post-card-text,
.category-card-text {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* =========================
   BUTTONS
========================= */
.btn,
button,
input[type="submit"],
input[type="button"] {
    font-family: inherit;
}

.btn,
.front-btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary,
.front-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #708364);
    color: #fff;
    box-shadow: 0 10px 22px rgba(95, 111, 82, 0.18);
}

.btn-primary:hover,
.front-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #617353);
    transform: translateY(-1px);
}

.btn-secondary,
.front-btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-accent);
    border: 1px solid #d9dfeb;
}

.btn-secondary:hover,
.front-btn-secondary:hover {
    background: #eef1f7;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-heading);
    border: 1px solid var(--color-border-strong);
}

.btn-outline:hover {
    background: #f7f7f7;
}

/* =========================
   FORM ELEMENTS
========================= */
input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-heading);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(95, 111, 82, 0.10);
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

/* =========================
   BADGES
========================= */
.badge,
.front-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(238, 242, 236, 0.92);
    color: var(--color-primary-hover);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(95, 111, 82, 0.10);
}

.badge-accent {
    background: rgba(246, 239, 226, 0.95);
    color: var(--color-gold);
}

/* =========================
   SIDEBAR / ASIDE
========================= */
.sidebar-card,
.post-sidebar,
.front-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 250, 250, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================
   FOOTER LOOK
========================= */
.footer,
.site-footer {
    margin-top: 30px;
    padding: 28px 22px 40px;
    color: var(--color-text-soft);
}

.footer-inner,
.site-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.48);
    padding-top: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .front-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .front-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.65;
    }

    .container {
        padding: 18px 16px 96px;
    }

    .topbar {
        margin: 10px 12px 0;
        padding: 14px 16px;
        border-radius: 22px;
    }

    .brand a {
        font-size: 0.98rem;
    }

    .front-panel,
    .sidebar-card,
    .post-sidebar,
    .front-sidebar {
        padding: 18px;
        border-radius: 22px;
    }

    .front-cover {
        border-radius: 20px;
        max-height: 340px;
    }
}

.is-hidden {
    display: none !important;
}