/* =====================
   ARTICLES - Homepage
   ===================== */

.fp-articles-section {
    margin-top: 48px;
}

.fp-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.fp-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.fp-article-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.fp-article-empty {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f0;
    font-size: 2.5rem;
}

.fp-article-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2d503b;
    margin-bottom: 6px;
}

.fp-view-all {
    text-align: center;
    margin-top: 28px;
}

/* ── Article header meta ── */
.article-header-meta {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 4px 0 14px;
    color: #fff;
}

.article-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.article-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
    border: 2px solid transparent;
    color: #fff;
}

.badge-article-cat { background: #24402c; border-color: #24402c; }
.badge-article-cat:hover { background: #fff; color: #24402c; }

.badge-article-tag { background: #333333; border-color: #333333; }
.badge-article-tag:hover { background: #fff; color: #333333; }

/* =====================
   ARTICLES - Archive
   ===================== */

.archive-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2d503b;
    margin-bottom: 6px;
}

/* =====================
   ARTICLE BODY PROSE
   Scoped to .article-body so nothing leaks out
   ===================== */

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
}

/* Paragraph spacing -- !important beats the * { margin: 0 } reset */
.article-body p,
.article-body .wp-block-paragraph,
.article-body .wp-block-group p,
.article-body .entry-content p {
    margin-bottom: 1.5em !important;
    color: #333333;
    line-height: 1.8;
}

/* H2 -- section headings */
.article-body h2,
.article-body .wp-block-heading h2 {
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem) !important;
    color: #24402c !important;
    margin: 2rem 0 0.75rem !important;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(45, 106, 79, 0.25);
    line-height: 1.25;
}

/* H3 -- subheadings */
.article-body h3,
.article-body .wp-block-heading h3 {
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
    color: #24402c !important;
    margin: 1.5rem 0 0.5rem !important;
    line-height: 1.3;
}

/* Blockquotes */
.article-body blockquote,
.article-body .wp-block-quote {
    border-left: 4px solid #c8470a;
    margin: 1.5rem 0 !important;
    padding: 0.75rem 1.25rem;
    background: rgba(200, 71, 10, 0.05);
    font-style: italic;
    color: #333;
}

/* Images */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

/* Links */
.article-body a {
    color: #24402c;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body a:hover { color: #c8470a; }

/* Lists */
.article-body ul,
.article-body ol,
.article-body .wp-block-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5em !important;
}
.article-body li {
    margin-bottom: 0.4em;
    color: #333333;
}

/* Block editor wrapper resets */
.article-body .wp-block-group,
.article-body .wp-block-column,
.article-body .wp-block-columns {
    margin-bottom: 1.5em;
}

@media ( max-width: 768px ) {
    .article-body {
        padding: 24px 16px;
    }
}

/* =====================
   ARTICLES - Archive Grid
   ===================== */

.articles-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 2rem;
}

.article-archive-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.article-archive-card-img-link { display: block; }

.article-archive-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #24402c;
}

.article-archive-card-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

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

.article-archive-card-cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8470a;
    margin-bottom: 6px;
}

.article-archive-card-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 6px;
}
.article-archive-card-title a {
    color: #24402c;
    text-decoration: none;
}
.article-archive-card-title a:hover { color: #c8470a; }

.article-archive-card-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.article-archive-card-excerpt {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.article-archive-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c8470a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}
.article-archive-card-link:hover { color: #24402c; }

@media ( max-width: 600px ) {
    .articles-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   GINNY GOES GALLERY SLIDER
   ===================== */

.ginny-gallery-carousel {
    position: relative;
    margin: 1rem 0;
}

.ginny-gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.ginny-gallery-track::-webkit-scrollbar { display: none; }

.ginny-gallery-slide {
    flex: 0 0 320px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ginny-gallery-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.ginny-gallery-slide:hover img { transform: scale(1.02); }

.ginny-gallery-slide figcaption {
    background: #24402c;
    color: #fff;
    font-size: 0.78rem;
    padding: 8px 12px;
    line-height: 1.4;
}

.ginny-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #24402c;
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ginny-gallery-btn:hover { background: #2d503b; }
.ginny-gallery-prev { left: -52px; }
.ginny-gallery-next { right: -52px; }

@media ( max-width: 768px ) {
    .ginny-gallery-prev { left: 0; }
    .ginny-gallery-next { right: 0; }
    .ginny-gallery-track { padding: 4px 40px 8px; }
}
