/* ============================================================
   DGP Theme — screen.css
   Deliberate Golf Practice custom Ghost 5 theme
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
    --color-navy:       #21457a;
    --color-navy-dark:  #162f55;
    --color-cyan:       #00ccff;
    --color-cyan-light: #80e5ff;
    --color-red:        #e40206;
    --color-white:      #f2f2f2;
    --color-light:      #f0f4f8;
    --color-text:       #1e2a3a;
    --color-text-muted: #5a6e84;
    --color-border:     #dde6ef;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;

    /* Ghost font variables — required by theme validator */
    --gh-font-heading: var(--font-sans);
    --gh-font-body:    var(--font-sans);

    --nav-height:       72px;
    --section-pad:      80px;
    --inner-width:      1200px;
    --inner-pad:        4vw;
    --radius:           8px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ---- Layout helpers ---- */
.outer {
    padding-left: var(--inner-pad);
    padding-right: var(--inner-pad);
}

.inner {
    max-width: var(--inner-width);
    margin: 0 auto;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--color-navy);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent nav only on the home/landing page */
.home-template .site-nav {
    background: transparent;
}

.home-template .site-nav.is-scrolled {
    background: var(--color-navy);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-nav-inner {
    height: 100%;
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 var(--inner-pad);
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-nav-logo img {
    height: 40px;
    width: auto;
}

/* Primary navigation links */
.site-nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Ghost {{navigation}} wraps links in a <ul> — make it flex too */
.site-nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-menu li {
    margin: 0;
    padding: 0;
}

.site-nav-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}

.site-nav-menu a:hover {
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* Burger button — hidden on desktop */
.site-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

.site-nav-burger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Slides stack behind the content */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Gradient overlay — stronger at bottom for text legibility */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 42, 0.25) 0%,
        rgba(10, 20, 42, 0.10) 35%,
        rgba(10, 20, 42, 0.50) 65%,
        rgba(10, 20, 42, 0.80) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Content in lower quarter */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 var(--inner-pad) 80px;
}

.hero-text {
    margin-bottom: 28px;
}

.hero-slogan {
    font-size: clamp(3.2rem, 5.5vw, 6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    transition: opacity 0.4s;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    color: var(--color-cyan-light);
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: opacity 0.4s;
}

/* Newsletter subscribe form */
.hero-subscribe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

.hero-email {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.hero-email::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.hero-email:focus {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.18);
}

.hero-btn {
    padding: 14px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    background: var(--color-cyan);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.hero-btn:hover {
    background: var(--color-cyan-light);
}

.hero-btn:active {
    transform: scale(0.97);
}

/* Ghost members form state classes */
.hero-btn-success { display: none; }
[data-members-form].success .hero-btn-default { display: none; }
[data-members-form].success .hero-btn-success { display: inline; }

.hero-form-note {
    margin-top: 8px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero-member-msg {
    font-size: 1.6rem;
    color: var(--color-cyan-light);
    padding: 14px 0;
}

/* Scroll-down bounce button */
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    animation: hero-bounce 2.2s ease-in-out infinite;
    transition: background 0.2s;
}

.hero-scroll:hover {
    background: rgba(255, 255, 255, 0.28);
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* Slide indicator dots */
.hero-dots {
    position: absolute;
    bottom: 28px;
    right: var(--inner-pad);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
}

.hero-dot.active {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
}

/* ============================================================
   Features Section
   ============================================================ */
.features-section {
    padding: var(--section-pad) var(--inner-pad);
    background: var(--color-light);
}

.features-inner {
    max-width: var(--inner-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.features-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(33, 69, 122, 0.18);
}

.features-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.features-label {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-cyan);
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.features-title {
    font-size: clamp(2.4rem, 3.2vw, 3.6rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.features-lead {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.features-body {
    font-size: 1.6rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.features-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.features-column-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.4rem;
    color: var(--color-text);
    line-height: 1.5;
}

.features-list li::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-cyan);
    margin-top: 5px;
}

.features-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-navy);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.features-cta:hover {
    background: var(--color-navy-dark);
    color: var(--color-cyan);
}

/* ============================================================
   Blog Preview Section
   ============================================================ */
.blog-preview-section {
    padding: var(--section-pad) var(--inner-pad);
    background: #fff;
}

.section-header {
    max-width: var(--inner-width);
    margin: 0 auto 44px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    font-weight: 800;
    color: var(--color-navy);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cyan);
    white-space: nowrap;
    transition: gap 0.2s;
}

.section-link:hover {
    gap: 10px;
}

/* Preview grid: default 3-col (900px–1100px range) */
.blog-preview-grid {
    max-width: var(--inner-width);
    margin: 0 auto 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Wide screens: 6-col base so row 1 = 2 equal halves, row 2 = 3 equal thirds */
@media (min-width: 1100px) {
    .blog-preview-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    /* Cards 1 & 2: each span 3 of 6 = 50% → equal side-by-side */
    .blog-preview-grid .post-card:nth-child(1),
    .blog-preview-grid .post-card:nth-child(2) {
        grid-column: span 3;
    }
    /* Cards 3, 4 & 5: each span 2 of 6 = 33.3% → three equal columns */
    .blog-preview-grid .post-card:nth-child(3),
    .blog-preview-grid .post-card:nth-child(4),
    .blog-preview-grid .post-card:nth-child(5) {
        grid-column: span 2;
    }
}

.blog-preview-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.6rem;
    padding: 60px 0;
}

.blog-preview-footer {
    max-width: var(--inner-width);
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   Post Cards (shared: blog preview + blog listing + read-more)
   ============================================================ */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(33, 69, 122, 0.12);
}

.post-card-image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-light);
    flex-shrink: 0;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-content-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-header {
    margin-bottom: 8px;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.post-card-primary-tag {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-cyan);
}

.post-card-featured {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    opacity: 0.7;
}

.post-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
    transition: color 0.2s;
}

.post-card-content-link:hover .post-card-title {
    color: var(--color-cyan);
}

.post-card-excerpt {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 8px;
    /* Clamp to 3 lines — no padding-bottom here, it causes partial-line bleed */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;      /* pushes footer to bottom of card */
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.post-card-meta-sep {
    opacity: 0.5;
}

/* ============================================================
   Common Buttons
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: var(--color-navy);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
    background: var(--color-cyan);
    color: var(--color-navy);
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-section {
    padding: var(--section-pad) var(--inner-pad);
    background: var(--color-navy);
}

.faq-section-title {
    color: var(--color-white);
}

.faq-header {
    margin-bottom: 44px;
}

.faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

details.faq-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background 0.2s;
}

details.faq-item[open] {
    background: rgba(255, 255, 255, 0.10);
}

details.faq-item summary.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

details.faq-item summary.faq-question::-webkit-details-marker {
    display: none;
}

/* Chevron via inline SVG data URI */
details.faq-item summary.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%2300ccff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

details.faq-item[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 22px;
    font-size: 1.5rem;
    color: rgba(242, 242, 242, 0.78);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-empty {
    text-align: center;
    color: rgba(242, 242, 242, 0.5);
    font-size: 1.5rem;
    padding: 48px 0;
}

.faq-empty a {
    color: var(--color-cyan);
    text-decoration: underline;
}

/* ============================================================
   Blog Listing Page (index.hbs — /blog/)
   ============================================================ */
.blog-header {
    background: var(--color-navy);
    padding: calc(var(--nav-height) + 56px) var(--inner-pad) 56px;
    text-align: center;
}

.blog-header-inner {
    max-width: var(--inner-width);
    margin: 0 auto;
}

.blog-title {
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 800;
    color: var(--color-white);
}

.blog-description {
    font-size: 1.8rem;
    color: var(--color-cyan-light);
    margin-top: 10px;
}

.posts-section {
    padding: 56px var(--inner-pad) 80px;
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

/* First post spans 2 cols on blog listing */
.post-feed .post-card:first-child {
    grid-column: 1 / 3;
}

/* Pagination */
.pagination {
    max-width: var(--inner-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination a {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid var(--color-navy);
    border-radius: var(--radius);
    color: var(--color-navy);
    font-size: 1.4rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
    background: var(--color-navy);
    color: #fff;
}

.pagination .page-number {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Single Post (post.hbs)
   ============================================================ */
.article {
    padding-top: var(--nav-height);
    padding-bottom: 80px;
}

.article-header {
    padding-bottom: 0;
}

.gh-canvas {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--inner-pad);
}

.article-tag {
    padding-top: 48px;
    margin-bottom: 14px;
}

.post-card-primary-tag a {
    color: var(--color-cyan);
    transition: color 0.2s;
}

.post-card-primary-tag a:hover {
    color: var(--color-navy);
}

.post-card-featured {
    color: var(--color-navy);
    font-size: 1.3rem;
    font-weight: 700;
}

.article-title {
    font-size: clamp(2.8rem, 4.5vw, 4.8rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.15;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 28px;
}

.article-byline {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.article-byline-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-list {
    display: flex;
}

.author-list-item + .author-list-item {
    margin-left: -10px;
}

.author-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    background: var(--color-light);
    color: var(--color-text-muted);
}

.author-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-byline-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.byline-meta-content {
    font-size: 1.3rem;
    color: var(--color-text-muted);
}

.bull {
    margin: 0 4px;
}

.article-image {
    margin: 36px 0;
}

.article-image img {
    width: 100%;
    border-radius: var(--radius);
}

.article-image figcaption {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* Ghost rich content */
.gh-content {
    font-size: 1.75rem;
    line-height: 1.78;
    color: #2a2a3e;
    padding-top: 36px;
    padding-bottom: 36px;
}

.gh-content > * + * {
    margin-top: 2rem;
}

.gh-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-top: 4rem;
    line-height: 1.2;
}

.gh-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 3.2rem;
}

.gh-content ul,
.gh-content ol {
    padding-left: 2em;
    list-style: initial;
}

.gh-content ol {
    list-style: decimal;
}

.gh-content li {
    margin-bottom: 8px;
}

.gh-content blockquote {
    border-left: 4px solid var(--color-cyan);
    padding-left: 20px;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 24px 0;
}

.gh-content a {
    color: var(--color-navy);
    text-decoration: underline;
    text-decoration-color: var(--color-cyan);
    text-underline-offset: 2px;
}

.gh-content a:hover {
    color: var(--color-cyan);
}

.gh-content img {
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.gh-content pre {
    background: #1a1a2e;
    color: #e0e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 1.4rem;
}

.gh-content code {
    background: rgba(33, 69, 122, 0.07);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.gh-content pre code {
    background: none;
    padding: 0;
    font-size: 1em;
}

/* Post footer CTA */
.footer-cta {
    padding: 60px var(--inner-pad);
    background: var(--color-light);
    border-top: 1px solid var(--color-border);
}

.footer-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-cta-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-navy);
}

/* Read-more section */
.read-more-wrap {
    padding: 60px var(--inner-pad);
    background: var(--color-light);
}

.read-more-title {
    max-width: var(--inner-width);
    margin: 0 auto 32px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
}

.read-more {
    max-width: var(--inner-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================================
   Static Pages (page.hbs)
   ============================================================ */
.page-content {
    padding: calc(var(--nav-height) + 60px) var(--inner-pad) 80px;
}

.page-content-inner {
    max-width: 720px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(3rem, 4.5vw, 4.8rem);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--color-cyan);
}

/* ============================================================
   Error Pages
   ============================================================ */
.error-content {
    padding: calc(var(--nav-height) + 100px) var(--inner-pad) 80px;
    text-align: center;
}

.error-content > .inner {
    max-width: 560px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-cyan);
    line-height: 1;
    margin-bottom: 16px;
}

.error-description {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.error-message {
    font-size: 1.6rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-navy);
    padding: 52px var(--inner-pad);
}

.site-footer-inner {
    max-width: var(--inner-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.site-footer-logo img {
    height: 44px;
    width: auto;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
}

.site-footer-nav a {
    color: rgba(242, 242, 242, 0.65);
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.site-footer-copy {
    font-size: 1.3rem;
    color: rgba(242, 242, 242, 0.38);
}

.site-footer-copy a {
    color: rgba(242, 242, 242, 0.45);
    text-decoration: underline;
    transition: color 0.2s;
}

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

/* ============================================================
   Article comments
   ============================================================ */
.article-comments {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ============================================================
   Koenig Editor — card width classes (required by Ghost validator)
   ============================================================ */

/* Wide cards break out of the 720px canvas by a fixed amount */
.gh-content .kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 0 auto;
    transform: translateX(calc(50% - 50vw + var(--inner-pad)));
}

/* Full-width cards stretch edge to edge */
.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    margin: 0 auto;
    transform: translateX(calc(50% - 50vw));
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
}

/* Koenig card base */
.gh-content .kg-card {
    margin: 24px 0;
}

/* Image card */
.gh-content .kg-image-card img {
    border-radius: var(--radius);
}

/* Gallery card */
.gh-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gh-content .kg-gallery-row {
    display: flex;
    gap: 8px;
}

.gh-content .kg-gallery-image {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.gh-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bookmark card */
.gh-content .kg-bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 16px 20px;
}

.gh-content .kg-bookmark-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.gh-content .kg-bookmark-description {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.gh-content .kg-bookmark-thumbnail {
    width: 140px;
    flex-shrink: 0;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video card */
.gh-content .kg-video-card {
    border-radius: var(--radius);
    overflow: hidden;
}

/* Callout card */
.gh-content .kg-callout-card {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(0, 204, 255, 0.07);
    border-left: 4px solid var(--color-cyan);
}

.gh-content .kg-callout-emoji {
    font-size: 2rem;
    line-height: 1.4;
}

.gh-content .kg-callout-text {
    font-size: 1.6rem;
    line-height: 1.65;
}

/* ============================================================
   Responsive — Tablet (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
    .post-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-feed .post-card:first-child {
        grid-column: 1 / -1;
    }

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

/* ============================================================
   Responsive — Small Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .features-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-image {
        order: -1;
    }

    .features-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .blog-preview-grid .post-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
        --inner-pad: 5vw;
    }

    /* Show burger, hide desktop nav */
    .site-nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-navy);
        padding: 12px var(--inner-pad) 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .site-nav-menu.is-open {
        display: block;
    }

    /* Stack nav items vertically on mobile */
    .site-nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav-menu li {
        width: 100%;
    }

    .site-nav-menu a {
        padding: 12px 16px;
        border-radius: 5px;
        width: 100%;
    }

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

    /* Hero */
    .hero-content {
        padding-bottom: 64px;
    }

    .hero-form {
        flex-direction: column;
        max-width: 100%;
    }

    .hero-btn {
        width: 100%;
    }

    /* Section header stacks */
    .section-header {
        flex-direction: column;
        gap: 12px;
    }

    /* Blog preview and post feed go single column */
    .blog-preview-grid,
    .post-feed {
        grid-template-columns: 1fr !important;
    }

    .blog-preview-grid .post-card,
    .post-feed .post-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Read more */
    .read-more {
        grid-template-columns: 1fr;
    }

    /* Post article */
    .article-title {
        font-size: 3rem;
    }

    /* Footer CTA */
    .footer-cta-title {
        font-size: 2rem;
    }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-slogan {
        font-size: 3rem;
    }

    .blog-title {
        font-size: 3.2rem;
    }

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