/* ==========================================================================
   Healthy Living LK — modern editorial theme
   Layered on top of Bootstrap 5.2.3 (styles.css). Loaded last so these
   tokens and components take precedence.
   ========================================================================== */

:root {
    /* Brand — emerald / teal wellness palette */
    --brand-50: #ecfdf5;
    --brand-100: #d1fae5;
    --brand-200: #a7f3d0;
    --brand-300: #6ee7b7;
    --brand-400: #34d399;
    --brand-500: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-800: #065f46;
    --brand-900: #064e3b;

    /* Neutrals */
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --surface: #ffffff;
    --bg: #f8fafc;

    /* Supporting accents */
    --amber-soft: #fff7ed;
    --amber-ink: #c2410c;
    --blue-soft: #eff6ff;
    --blue-ink: #1d4ed8;
    --rose-soft: #fff1f2;
    --rose-ink: #be123c;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 8px 24px rgba(15, 23, 42, .07);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);

    --font: "Inter", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink-700);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900);
    letter-spacing: -.015em;
}

a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--brand-800);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}

section[id] {
    scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    --bs-btn-border-radius: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 10px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-brand {
    background: var(--brand-600);
    border: 1px solid var(--brand-600);
    color: #fff;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .22);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
    box-shadow: 0 10px 22px rgba(5, 150, 105, .3);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-700);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

.btn-outline-brand {
    background: var(--surface);
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-800);
}

.btn-lg {
    padding: .75rem 1.35rem;
    font-size: .95rem;
}

/* Bootstrap primary -> brand */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-600);
    --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-700);
    --bs-btn-hover-border-color: var(--brand-700);
    --bs-btn-focus-shadow-rgb: 5, 150, 105;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--brand-600);
    --bs-btn-disabled-border-color: var(--brand-600);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-700);
    --bs-btn-border-color: var(--brand-300);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
    background: var(--ink-900);
    color: var(--ink-400);
    font-size: .78rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.topbar-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar-message i {
    color: var(--brand-400);
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-400);
    font-weight: 500;
}

.topbar-links a:hover {
    color: #fff;
}

.topbar-links i {
    color: var(--brand-400);
    font-size: .78rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-navbar {
    padding: 10px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.site-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 26px;
    padding: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 8px 16px rgba(5, 150, 105, .26);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink-900);
    white-space: nowrap;
}

.brand-text small {
    margin-top: 3px;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.brand-accent {
    color: var(--brand-600);
}

.site-navbar .navbar-toggler {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    box-shadow: none;
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
}

.site-navbar .navbar-nav {
    gap: 2px;
}

.site-navbar .nav-link {
    position: relative;
    padding: 10px 14px !important;
    color: var(--ink-600) !important;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-600);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--brand-700) !important;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link:focus::after,
.site-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.social-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--line-soft);
    color: var(--ink-500);
    font-size: .82rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.social-dot:hover {
    background: var(--brand-600);
    color: #fff;
    transform: translateY(-1px);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink-700);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.lang-switch:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

.lang-switch i {
    color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 52px;
    background:
        radial-gradient(680px 340px at 88% 0%, rgba(16, 185, 129, .14), transparent 70%),
        radial-gradient(520px 300px at 6% 100%, rgba(20, 184, 166, .1), transparent 70%),
        linear-gradient(165deg, #f0fdfa 0%, #ecfdf5 46%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
}

.hero-title {
    margin: 16px 0 18px;
    font-size: clamp(2.15rem, 4.3vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hero-lead {
    max-width: 560px;
    margin: 0;
    color: var(--ink-600);
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 30px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-stats strong {
    display: block;
    color: var(--ink-900);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stats span {
    color: var(--ink-500);
    font-size: .76rem;
}

.hero-media {
    position: relative;
}

.hero-media > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-media-badge {
    position: absolute;
    left: -20px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}

.hero-media-badge i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.hero-media-badge strong {
    display: block;
    color: var(--ink-900);
    font-size: .82rem;
    font-weight: 700;
}

.hero-media-badge span {
    color: var(--ink-500);
    font-size: .72rem;
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.search-section {
    position: relative;
    z-index: 5;
    margin-top: -30px;
}

.search-panel {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.search-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-500);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.search-panel .form-select,
.search-panel .form-control {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-800);
    font-size: .92rem;
    box-shadow: none;
}

.search-panel .form-select:focus,
.search-panel .form-control:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.search-actions {
    display: flex;
    gap: 8px;
}

.search-actions .btn {
    height: 46px;
    padding-inline: 18px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */

.section {
    padding: 62px 0;
}

.section-sm {
    padding: 38px 0;
}

.section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    margin-bottom: 32px;
    text-align: left;
}

.section-heading-split > div {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-700);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow i {
    font-size: .78rem;
}

.section-title {
    margin: 10px 0 10px;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-subtitle {
    margin: 0;
    color: var(--ink-500);
    font-size: .95rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 1.25rem;
}

.category-card:nth-child(2) .category-icon {
    background: var(--amber-soft);
    color: var(--amber-ink);
}

.category-card:nth-child(3) .category-icon {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.category-card:nth-child(4) .category-icon {
    background: var(--rose-soft);
    color: var(--rose-ink);
}

.category-card h3 {
    margin: 4px 0 0;
    font-size: 1.02rem;
    font-weight: 700;
}

.category-card p {
    flex: 1;
    margin: 0;
    color: var(--ink-500);
    font-size: .875rem;
    line-height: 1.65;
}

.category-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: var(--brand-700);
    font-size: .78rem;
    font-weight: 700;
}

.category-arrow i {
    transition: transform .18s ease;
}

.category-card:hover .category-arrow i {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Article cards
   -------------------------------------------------------------------------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-100);
    box-shadow: var(--shadow-lg);
}

.article-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--line-soft);
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.05);
}

.badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(6, 95, 70, .92);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: capitalize;
    backdrop-filter: blur(4px);
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.article-card-title {
    display: block;
    color: var(--ink-900);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.42;
}

.article-card-title:hover {
    color: var(--brand-700);
}

.article-card-desc {
    margin: 0;
    color: var(--ink-500);
    font-size: .875rem;
    line-height: 1.65;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.article-card-meta strong {
    display: block;
    color: var(--ink-700);
    font-size: .8rem;
    font-weight: 600;
}

.article-card-meta span {
    color: var(--ink-400);
    font-size: .74rem;
}

.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .82rem;
    font-weight: 700;
}

.avatar-lg {
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Quote / testimonial
   -------------------------------------------------------------------------- */

.quote-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 46px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-50), #f0fdfa);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-xl);
}

.quote-mark {
    color: var(--brand-300);
    font-size: 1.9rem;
}

.quote-text {
    max-width: 760px;
    margin: 16px auto 24px;
    color: var(--ink-700);
    font-size: clamp(1.02rem, 1.7vw, 1.28rem);
    font-style: italic;
    line-height: 1.75;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.quote-author strong {
    display: block;
    color: var(--ink-900);
    font-size: .92rem;
}

.quote-author span {
    color: var(--ink-500);
    font-size: .78rem;
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.page-header {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background:
        radial-gradient(560px 280px at 92% 10%, rgba(16, 185, 129, .28), transparent 70%),
        linear-gradient(135deg, var(--brand-900) 0%, #0f766e 58%, #115e59 100%);
    color: #fff;
}

.page-header .eyebrow {
    color: var(--brand-200);
}

.page-title {
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.page-subtitle {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    line-height: 1.72;
}

/* --------------------------------------------------------------------------
   Filter card (category / search)
   -------------------------------------------------------------------------- */

.filter-card {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: grid;
    grid-template-columns: 210px 1fr 170px;
    align-items: end;
    gap: 14px;
}

.filter-row .form-select,
.filter-row .form-control {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .92rem;
    box-shadow: none;
}

.filter-row .form-select:focus,
.filter-row .form-control:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.filter-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-500);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.filter-search {
    display: flex;
    gap: 8px;
}

.filter-search .btn {
    height: 46px;
    padding-inline: 18px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Prose (privacy, about, article body)
   -------------------------------------------------------------------------- */

.prose {
    color: var(--ink-600);
    font-size: 1rem;
    line-height: 1.85;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--ink-900);
    line-height: 1.3;
    letter-spacing: -.015em;
}

.prose h1 {
    margin: 0 0 .6em;
    font-size: 1.9rem;
    font-weight: 800;
}

.prose h2 {
    margin: 1.9em 0 .55em;
    font-size: 1.4rem;
    font-weight: 700;
}

.prose h3 {
    margin: 1.6em 0 .5em;
    font-size: 1.12rem;
    font-weight: 700;
}

.prose h4 {
    margin: 1.4em 0 .45em;
    font-size: 1rem;
    font-weight: 700;
}

.prose p {
    margin: 0 0 1.1em;
}

.prose ul {
    margin: 0 0 1.25em;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: .4em;
}

.prose a {
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose-card {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */

.article-shell {
    padding-top: 30px;
    padding-bottom: 10px;
}

.breadcrumb-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--ink-500);
    font-size: .82rem;
}

.breadcrumb-bar a {
    color: var(--ink-500);
}

.breadcrumb-bar a:hover {
    color: var(--brand-700);
}

.breadcrumb-bar i {
    color: var(--ink-400);
    font-size: .62rem;
}

.article-paper {
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 22px;
}

.article-header .badge-type {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.article-title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ink-500);
    font-size: .85rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--brand-600);
}

.article-hero {
    margin: 0 0 22px;
}

.article-hero img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.share-label {
    margin-right: 6px;
    color: var(--ink-400);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-600);
    font-size: .78rem;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-facebook:hover {
    background: var(--blue-soft);
    border-color: #bfdbfe;
    color: var(--blue-ink);
}

.share-twitter:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.share-whatsapp:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

.share-linkedin:hover {
    background: var(--blue-soft);
    border-color: #bfdbfe;
    color: #1e40af;
}

.article-content {
    color: var(--ink-700);
    font-size: 1.04rem;
    line-height: 1.9;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.7em 0 .55em;
    color: var(--ink-900);
    line-height: 1.3;
    font-weight: 700;
}

.article-content h2 { font-size: 1.45rem; }
.article-content h3 { font-size: 1.18rem; }
.article-content h4 { font-size: 1.02rem; }

.article-content p {
    margin: 0 0 1.15em;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.3rem;
}

.article-content li {
    margin-bottom: .45em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.article-content blockquote {
    margin: 1.6em 0;
    padding: 16px 22px;
    border-left: 3px solid var(--brand-400);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--brand-50);
    color: var(--ink-700);
    font-style: italic;
}

.article-content a {
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar-card {
    margin-bottom: 20px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--ink-900);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sidebar-title i {
    color: var(--brand-600);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-500);
    font-size: .875rem;
}

.sidebar-list a:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

.sidebar-list i {
    color: var(--brand-300);
    font-size: .55rem;
}

.sidebar-subhead {
    margin: 14px 0 6px;
    color: var(--ink-900);
    font-size: .78rem;
    font-weight: 700;
}

.sidebar-form .form-control {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .9rem;
    box-shadow: none;
}

.sidebar-form .form-control:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.empty-state {
    padding: 70px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-xl);
}

.empty-state i {
    margin-bottom: 14px;
    color: var(--brand-300);
    font-size: 2.4rem;
}

.empty-state h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: var(--ink-500);
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page {
    display: grid;
    place-items: center;
    min-height: 62vh;
    padding: 64px 0;
}

.error-card {
    max-width: 560px;
    padding: 48px 36px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.error-code {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--brand-500), #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-card h1 {
    margin: 14px 0 10px;
    font-size: 1.45rem;
    font-weight: 700;
}

.error-card p {
    margin: 0 0 24px;
    color: var(--ink-500);
    font-size: .95rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 32px;
}

.about-card {
    position: sticky;
    top: 100px;
    padding: 28px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.about-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), #0f766e);
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 12px 24px rgba(5, 150, 105, .24);
}

.about-card h2 {
    margin: 0 0 4px;
    font-size: 1.12rem;
    font-weight: 700;
}

.about-role {
    margin: 0 0 18px;
    color: var(--brand-700);
    font-size: .8rem;
    font-weight: 600;
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line-soft);
    list-style: none;
    text-align: left;
}

.about-facts li {
    display: flex;
    gap: 10px;
    color: var(--ink-500);
    font-size: .84rem;
    line-height: 1.5;
}

.about-facts i {
    margin-top: 3px;
    color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    padding: 28px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 1.2rem;
}

.contact-card h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.contact-card p {
    margin: 0 0 14px;
    color: var(--ink-500);
    font-size: .88rem;
    line-height: 1.6;
}

.contact-card a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Ad slots
   -------------------------------------------------------------------------- */

.ad-slot {
    margin: 34px auto;
    text-align: center;
    overflow: hidden;
}

.ad-slot .adsbygoogle {
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    flex-wrap: wrap;
    gap: 6px;
}

.page-link {
    min-width: 40px;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: 10px !important;
    color: var(--brand-700);
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

.page-link:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-800);
}

.page-item.active .page-link {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

.page-item.disabled .page-link {
    color: var(--ink-400);
    border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 64px;
    background: #0b1220;
    color: var(--ink-400);
}

.footer-main {
    padding: 56px 0 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr .8fr .8fr 1.2fr;
    gap: 36px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.footer-logo:hover {
    color: #fff;
}

.footer-logo .brand-text {
    color: #fff;
}

.footer-logo .brand-text small {
    color: #64748b;
}

.footer-brand p {
    max-width: 300px;
    margin: 16px 0 20px;
    color: var(--ink-400);
    font-size: .875rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    font-size: .85rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.footer-social a:hover {
    background: var(--brand-600);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h3 {
    margin: 4px 0 16px;
    color: #e2e8f0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: var(--ink-400);
    font-size: .875rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links i {
    color: var(--brand-500);
    font-size: .58rem;
}

.footer-contact-col p {
    margin: 0 0 16px;
    color: var(--ink-400);
    font-size: .86rem;
    line-height: 1.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    font-size: .84rem;
}

.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-400);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact i {
    width: 15px;
    color: var(--brand-500);
    text-align: center;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(16, 185, 129, .4);
    border-radius: var(--radius-pill);
    color: var(--brand-300);
    font-size: .8rem;
    font-weight: 700;
}

.footer-cta:hover {
    background: rgba(16, 185, 129, .12);
    border-color: var(--brand-400);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    font-size: .8rem;
}

.footer-copy {
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-bottom-links a {
    color: var(--ink-400);
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: 1.4fr .8fr .8fr;
        row-gap: 34px;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
        max-width: 520px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 48px 0 44px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-media > img {
        height: 320px;
    }

    .hero-media-badge {
        left: 16px;
    }

    .search-panel {
        grid-template-columns: 180px 1fr;
    }

    .search-actions {
        grid-column: 1 / -1;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid,
    .article-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .filter-row .filter-search {
        grid-column: 1 / -1;
    }

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

    .about-card {
        position: static;
    }

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

    .site-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 8px 0 14px;
        border-top: 1px solid var(--line-soft);
    }

    .site-navbar .nav-link {
        padding: 11px 10px !important;
    }

    .site-navbar .nav-link::after {
        display: none;
    }

    .nav-actions {
        margin: 10px 0 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--line-soft);
        border-left: 0;
    }

    .article-paper {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .topbar-links {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-message {
        white-space: normal;
    }

    .brand-text {
        font-size: .92rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .search-actions {
        grid-column: auto;
    }

    .search-actions .btn {
        flex: 1;
    }

    .category-grid,
    .article-grid,
    .article-grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-row .filter-search {
        grid-column: auto;
    }

    .filter-search {
        flex-wrap: wrap;
    }

    .filter-search .btn {
        flex: 1;
    }

    .quote-card {
        padding: 32px 22px;
    }

    .page-header {
        padding: 44px 0;
    }

    .prose-card {
        padding: 24px;
    }

    .article-paper {
        padding: 20px;
    }

    .article-share {
        gap: 6px;
    }

    .share-label {
        width: 100%;
        margin-bottom: 2px;
    }

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

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

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 42px 0 34px;
    }

    .hero-media > img {
        height: 240px;
    }

    .hero-media-badge {
        display: none;
    }

    .error-card {
        padding: 36px 22px;
    }

    .error-code {
        font-size: 3.4rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
