:root {
    --purple: #6a0dad;
    --teal: #008080;
    --gold: #caa54b;
    --ink: #2a1a3e;
    --paper: #f8f5ff;
    --white: #ffffff;
    --soft-purple: #f6edff;
    --soft-teal: #eefcf9;
    --soft-gold: #fff7e6;
    --muted: #5f5369;
    --line: rgba(106, 13, 173, .18);
    --shadow: 0 18px 48px rgba(42, 26, 62, .13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Poppins, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* EXACT HOMEPAGE TOP BAR */
.topline {
    background: linear-gradient(90deg, var(--purple), var(--teal));
    color: #fff;
    text-align: center;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
}

.topline a {
    color: #fff;
    text-decoration: none;
    margin: 0 6px;
}

/* EXACT HOMEPAGE HEADER LOOK */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 245, 255, .95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--purple);
    text-decoration: none;
}

.brand img {
    width: 92px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
}

.brand span {
    display: flex;
    flex-direction: column;
}

.brand strong {
    display: block;
    font-family: Cinzel, serif;
    font-size: 24px;
    color: var(--purple);
    line-height: 1.05;
    font-weight: 600;
}

.brand small {
    display: block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav > a {
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
    color: var(--purple);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    color: #fff !important;
    font: 600 14px Poppins, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(106, 13, 173, .25);
}

.nav-button {
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--purple);
    color: #fff;
    border-radius: 9px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* BLOG HERO USES THE SAME HOME-PAGE COLOUR SYSTEM */
.hero {
    padding: 72px 0 62px;
}

.blog-hero {
    background:
        radial-gradient(circle at 86% 15%, rgba(0, 128, 128, .12), transparent 28%),
        linear-gradient(145deg, var(--paper), #fff);
}

.blog-hero-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, var(--soft-purple) 0%, #fff 46%, var(--soft-teal) 100%);
    border: 2px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: clamp(32px, 5vw, 58px);
}

.blog-hero-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--teal), var(--gold));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 13px;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: Cinzel, serif;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 5.4vw, 64px);
    line-height: 1.08;
}

.blog-title-purple,
.blog-title-teal {
    display: block;
}

.blog-title-purple {
    color: var(--purple);
}

.blog-title-teal {
    color: var(--teal);
    font-size: .68em;
    margin-top: 10px;
}

.lead {
    max-width: 850px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.blog-search {
    margin-top: 28px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(246, 237, 255, .9), rgba(238, 252, 249, .9));
    border: 1px solid var(--line);
}

.blog-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--purple);
    font-weight: 600;
}

.blog-search > div {
    display: flex;
    gap: 12px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

/* ARTICLE LISTING */
.section {
    padding: 72px 0;
}

.content-card,
.service-card {
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.content-card {
    background: #fff;
    padding: clamp(26px, 5vw, 56px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 24px;
    background: #fff;
    transition: .25s;
}

.service-card:nth-child(3n+1) {
    background: var(--soft-purple);
}

.service-card:nth-child(3n+2) {
    background: var(--soft-teal);
}

.service-card:nth-child(3n) {
    background: var(--soft-gold);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 128, 128, .38);
    box-shadow: 0 18px 40px rgba(106, 13, 173, .15);
}

.blog-grid h2,
.blog-grid h3 {
    color: var(--purple);
    font-family: Poppins, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.35;
}

.blog-grid a {
    color: inherit;
    text-decoration: none;
}

.post-meta {
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    color: var(--teal) !important;
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a {
    padding: 9px 13px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: var(--purple);
    text-decoration: none;
}

.pagination a[aria-current] {
    background: linear-gradient(135deg, var(--purple), var(--teal));
    color: #fff;
    font-weight: 700;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.article {
    max-width: 900px;
    margin: auto;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
}

.article-body h2,
.article-body h3 {
    color: var(--purple);
    margin-top: 36px;
}

.article-body a {
    color: var(--teal);
    text-decoration: underline;
}

.blog-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--soft-purple), var(--soft-teal));
}

.blog-cta h2 {
    color: var(--purple);
}

/* SAME DARK FOOTER FAMILY AS HOMEPAGE */
.site-footer {
    margin-top: 25px;
    padding: 42px 0;
    background: var(--ink);
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 35px;
}

.site-footer p {
    margin-bottom: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: flex-start;
}

.site-footer a {
    color: #fff;
}

.site-footer strong {
    font-family: Cinzel, serif;
    font-size: 19px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .site-header .nav-shell {
        position: relative;
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 100%;
        z-index: 40;
        background: #fff;
        border: 1px solid #e1d5eb;
        border-radius: 14px;
        padding: 12px;
        box-shadow: 0 12px 30px #2b173b33;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a,
    .site-nav > a.button {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 13px;
        text-align: center;
    }

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

    .blog-search > div {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .brand img {
        width: 72px;
        height: 58px;
    }

    .hero {
        padding: 34px 0 24px;
    }

    .blog-hero-card {
        padding: 26px 24px 28px 30px;
    }

    h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .article-body {
        font-size: 16px;
    }
}
