:root {
    --ink: #182126;
    --muted: #66747c;
    --paper: #ffffff;
    --mist: #eef6f2;
    --soft: #f7f4ed;
    --brand: #216b73;
    --brand-dark: #134b52;
    --accent: #d99b4c;
    --sage: #86a989;
    --danger: #bb3b3b;
    --line: rgba(24, 33, 38, 0.12);
    --shadow: 0 18px 50px rgba(24, 33, 38, 0.12);
}

* {
    letter-spacing: 0;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

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

.main-nav,
.navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand-mark {
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    font-size: 1.45rem;
    font-weight: 900;
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    width: 190px;
    max-width: 52vw;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-link {
    color: var(--ink) !important;
    font-weight: 700;
    margin: 0 5px;
}

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

.btn-brand {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #1f1a13;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.72rem 1.35rem;
}

.btn-brand:hover {
    background: #c98230;
    border-color: #c98230;
    color: #1f1a13;
}

.btn-nav {
    border: 1px solid var(--brand);
    color: var(--brand);
    border-radius: 999px;
    font-weight: 800;
    padding: 0.5rem 1rem;
}

.btn-nav:hover {
    background: var(--brand);
    color: #fff;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.78);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.72rem 1.35rem;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--brand-dark);
}

.eyebrow {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-hero {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 28, 33, 0.82), rgba(13, 28, 33, 0.34) 52%, rgba(13, 28, 33, 0.12));
}

.hero-inner {
    min-height: 620px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 7rem;
}

.hero-copy {
    max-width: 670px;
    color: #fff;
}

.hero-copy .eyebrow {
    color: #f3c57f;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: 0.94;
    font-weight: 900;
}

.hero-copy .lead {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.7;
}

.topic-rail {
    margin-top: -70px;
    position: relative;
    z-index: 4;
}

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

.topic-link {
    min-height: 132px;
    padding: 1.35rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-link:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 107, 115, 0.35);
    color: var(--ink);
}

.topic-link span {
    color: var(--accent);
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 0.65rem;
}

.topic-link strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.03rem;
}

.topic-link em {
    color: var(--muted);
    display: block;
    font-style: normal;
    line-height: 1.55;
}

.content-band,
.featured-band,
.newsletter-band {
    padding: 5rem 0;
}

.content-band {
    background: var(--soft);
}

.featured-band {
    background: #fff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2,
.newsletter-box h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 900;
}

.pillar-card,
.post-card,
.dashboard-panel,
.login-panel,
.featured-story,
.newsletter-box,
.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pillar-card {
    padding: 2rem;
    min-height: 270px;
}

.pillar-card span,
.post-category {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pillar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.55rem;
    font-weight: 900;
}

.pillar-card p,
.post-excerpt,
.featured-story p,
.newsletter-box p,
.site-footer p {
    color: var(--muted);
    line-height: 1.7;
}

.featured-story {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    padding: 1rem;
    align-items: center;
    box-shadow: var(--shadow);
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-panel {
    padding: 1.35rem;
    margin-bottom: 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sidebar-panel h3 {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    font-weight: 900;
}

.sidebar-panel a {
    display: block;
    padding: 0.65rem 0;
    color: var(--ink);
    border-bottom: 1px solid rgba(24, 33, 38, 0.09);
    font-weight: 800;
    text-decoration: none;
}

.sidebar-panel a:last-child {
    border-bottom: 0;
}

.sidebar-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.contact-line {
    margin-top: 0.55rem;
    color: var(--brand-dark);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.featured-story img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-story h3 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 900;
    line-height: 1.08;
}

.post-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card .card-body {
    padding: 1.25rem;
}

.post-title {
    color: var(--ink);
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
}

.post-title:hover {
    color: var(--brand);
}

.post-excerpt {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
}

.empty-state {
    padding: 3rem;
    text-align: center;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.newsletter-band {
    background: var(--mist);
}

.newsletter-box {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 430px);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form .form-control {
    min-height: 52px;
}

.site-footer {
    padding: 4rem 0 2rem;
    background: #182126;
    color: #fff;
}

.site-footer h3 {
    font-size: 1rem;
    font-weight: 900;
}

.site-footer a:not(.brand-mark):not(.brand-logo) {
    display: block;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand img {
    filter: none;
    background: #fff;
    border-radius: 8px;
}

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

.social-links a {
    margin-bottom: 0 !important;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.whatsapp-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #2bb741;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 16px 35px rgba(24, 33, 38, 0.22);
    text-decoration: none;
    font-weight: 900;
}

.whatsapp-btn:hover {
    color: #fff;
    background: #199c2e;
}

.article-page {
    background: #fff;
}

.article-hero {
    padding: 5rem 0 3rem;
    background: var(--mist);
}

.article-heading {
    max-width: 860px;
}

.article-heading h1 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1;
    font-weight: 900;
}

.article-heading p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-weight: 700;
}

.back-link {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.article-image {
    width: 100%;
    max-height: 520px;
    margin: -1rem 0 3rem;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-body {
    color: #303a40;
    font-size: 1.1rem;
    line-height: 1.9;
    padding-bottom: 4rem;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(115deg, rgba(19, 75, 82, 0.88), rgba(33, 107, 115, 0.42)),
        url('../images/pawmind-hero.png') center/cover;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-panel {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
}

.login-title {
    font-size: 2.35rem;
    font-weight: 900;
}

.login-copy {
    color: var(--muted);
    line-height: 1.7;
}

.admin-page {
    background: #f4f7f6;
}

.admin-nav {
    padding: 1rem 0;
    background: var(--brand-dark);
}

.admin-nav .brand-mark {
    color: #fff;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
}

.dashboard-panel {
    box-shadow: 0 10px 30px rgba(24, 33, 38, 0.08);
}

.table th {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 900;
}

.status-pill.published {
    background: #e2f3e5;
    color: #24743a;
}

.status-pill.draft {
    background: #f7e6cf;
    color: #9a5b15;
}

.stat-card {
    padding: 1.2rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 2rem;
}

.panel-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 900;
}

.settings-panel {
    max-width: 720px;
}

.logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 70px;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.logo-preview img {
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

.current-image {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
}

.seo-progress {
    height: 24px;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(33, 107, 115, 0.15);
}

@media (max-width: 991.98px) {
    .home-hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-overlay {
        background: rgba(13, 28, 33, 0.68);
    }

    .featured-story,
    .blog-layout,
    .newsletter-box {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .hero-copy h1 {
        font-size: 3.05rem;
    }

    .hero-copy .lead {
        font-size: 1.05rem;
    }

    .content-band,
    .featured-band,
    .newsletter-band {
        padding: 3.5rem 0;
    }

    .topic-rail {
        margin-top: -38px;
    }

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

    .featured-story {
        padding: 0.75rem;
    }

    .featured-story img {
        height: 260px;
    }

    .newsletter-box,
    .pillar-card,
    .empty-state {
        padding: 1.4rem;
    }

    .article-hero {
        padding-top: 3.5rem;
    }
}
