/*
Theme Name: TWC Gardening
Theme URI: https://twcgardening.com
Author: twcgardening.com
Author URI: https://twcgardening.com
Description: Professional gardening tools theme for twcgardening.com — 50+ US-focused garden calculators and guides.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twcgardening
Tags: custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout, translation-ready
*/

/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
    --garden-green:  #1b4332;
    --leaf-green:    #2d6a4f;
    --fresh-green:   #40916c;
    --light-green:   #74c69d;
    --accent-green:  #d8f3dc;
    --pale-green:    #f0faf3;
    --gold:          #e9b84a;
    --gold-light:    #fef3c7;
    --text-dark:     #1a2e1a;
    --text-body:     #2d3e2d;
    --text-muted:    #5a7a5a;
    --bg-white:      #ffffff;
    --bg-light:      #f8fdf9;
    --border:        #d1e8d6;
    --shadow-sm:     0 2px 8px rgba(27,67,50,0.07);
    --shadow-md:     0 6px 24px rgba(27,67,50,0.10);
    --shadow-lg:     0 16px 48px rgba(27,67,50,0.13);
    --radius:        14px;
    --radius-lg:     22px;
    --ff-display:    'Playfair Display', Georgia, serif;
    --ff-body:       'Source Sans 3', 'Segoe UI', sans-serif;
    --base-font-size: 19px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-light);
    font-family: var(--ff-body);
    font-size: var(--base-font-size);
    color: var(--text-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf-green); text-decoration: none; }
a:hover { color: var(--garden-green); }

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--wide { max-width: 1360px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--garden-green);
    border-bottom: 3px solid var(--fresh-green);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: relative;
}

/* Nav: absolute center, stretches full header height */
#primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    height: var(--header-height);
}

@media (min-width: 960px) {
    #primary-nav {
        display: flex;
        align-items: stretch;
    }
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__icon {
    width: 42px;
    height: 42px;
    background: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name {
    font-family: var(--ff-display);
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.site-logo__tagline {
    font-size: 11px;
    color: var(--light-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Nav item stretches full header height — no gap between link and dropdown */
.primary-nav__item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.primary-nav__link {
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.primary-nav__link:hover,
.primary-nav__link.current-menu-item {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Dropdown — flush against bottom of header, no gap */

.primary-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border);
    border-top: 3px solid var(--leaf-green);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 9999;
}

/* Show on hover - no gap at all */
.primary-nav__item:hover > .primary-nav__dropdown {
    display: block;
}

.primary-nav__dropdown a {
    display: block;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.15s;
    white-space: nowrap;
}
.primary-nav__dropdown a:hover { background: var(--accent-green); color: var(--garden-green); }

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
    display: none;
    background: var(--garden-green);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block;
    padding: 13px 28px;
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-child { border: none; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-nav .mobile-cat-label {
    padding: 16px 28px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-green);
    font-weight: 800;
}

/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--garden-green) 0%, #14532d 50%, #052e16 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2340916c' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--light-green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero__title span { color: var(--gold); }

.hero__desc {
    font-size: clamp(17px, 2.5vw, 21px);
    color: rgba(255,255,255,0.80);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.hero__stat-num {
    font-family: var(--ff-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero__stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.65);
    font-weight: 700;
    margin-top: 4px;
}

/* ============================================================
   CATEGORIES SECTION — Homepage
   ============================================================ */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-white); }

.section-header { margin-bottom: 52px; }
.section-header--center { text-align: center; }

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--fresh-green);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--garden-green);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 19px;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.7;
    max-width: 620px;
}
.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.cat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fresh-green);
}

.cat-card__header {
    padding: 28px 30px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.cat-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.cat-card__title {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--garden-green);
    line-height: 1.2;
    margin-bottom: 4px;
}
.cat-card__count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-card__tools { padding: 20px 30px 24px; }
.cat-card__tools ul { list-style: none; }
.cat-card__tools li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-body);
    transition: color 0.15s;
}
.cat-card__tools li:last-child { border: none; }
.cat-card__tools li::before {
    content: '→';
    color: var(--fresh-green);
    font-size: 14px;
    font-weight: 900;
}
.cat-card__tools li:hover { color: var(--leaf-green); }

.cat-card__footer {
    padding: 0 30px 24px;
}
.cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--leaf-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 2px;
    transition: all 0.2s;
}
.cat-card__link:hover { color: var(--garden-green); border-color: var(--leaf-green); }

/* ============================================================
   LATEST ARTICLES — Homepage
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .articles-grid { grid-template-columns: 1fr 1fr 1fr; } }

.article-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--accent-green);
}

.article-card__thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.article-card__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }

.article-card__cat {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fresh-green);
    margin-bottom: 10px;
}

.article-card__title {
    font-family: var(--ff-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--garden-green);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--leaf-green); }

.article-card__excerpt {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.article-card__meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ============================================================
   FEATURED STRIP
   ============================================================ */
.featured-strip {
    background: var(--garden-green);
    padding: 56px 0;
}

.featured-strip__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 768px) {
    .featured-strip__inner { grid-template-columns: 1fr 1fr; }
}

.featured-strip__text h2 {
    font-family: var(--ff-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}
.featured-strip__text p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.7;
}

.featured-strip__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.featured-strip__tool-btn {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.featured-strip__tool-btn:hover {
    background: rgba(255,255,255,0.18);
    color: var(--gold);
}
.featured-strip__tool-btn span { font-size: 18px; }

/* ============================================================
   PAGE CONTENT (single page / tool wrapper)
   ============================================================ */
.page-content-wrap {
    padding: 60px 0 80px;
}

/* Pages hide their title since tools define h1 internally */
.page-content-wrap .entry-title { display: none; }

/* ============================================================
   BLOG SINGLE
   ============================================================ */
.blog-header {
    background: var(--garden-green);
    padding: 60px 0;
}
.blog-header .entry-category {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-green);
    margin-bottom: 14px;
}
.blog-header .entry-title {
    font-family: var(--ff-display);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 820px;
}
.blog-header .entry-meta {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    font-weight: 600;
}

.blog-body {
    padding: 60px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 19px;
    line-height: 1.85;
    color: var(--text-body);
}
.entry-content h2 {
    font-family: var(--ff-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--garden-green);
    margin: 52px 0 18px;
    line-height: 1.2;
}
.entry-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--leaf-green);
    margin: 38px 0 14px;
}
.entry-content p { margin-bottom: 24px; }
.entry-content ul, .entry-content ol {
    padding-left: 28px;
    margin-bottom: 24px;
}
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 32px 0; box-shadow: var(--shadow-md); }
.entry-content blockquote {
    border-left: 5px solid var(--fresh-green);
    padding: 20px 28px;
    margin: 36px 0;
    background: var(--accent-green);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 20px;
    color: var(--garden-green);
}

/* Archive */
.blog-archive { padding: 70px 0; }
.blog-archive-header {
    margin-bottom: 48px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 1024px) {
    .layout-with-sidebar { grid-template-columns: 1fr 320px; }
}

.widget {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--garden-green);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--accent-green);
}

.widget ul { list-style: none; }
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-body);
}
.widget ul li:last-child { border: none; }
.widget ul li a { color: inherit; }
.widget ul li a:hover { color: var(--leaf-green); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--garden-green);
    color: rgba(255,255,255,0.85);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand__logo { margin-bottom: 18px; }
.footer-brand__name {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.footer-brand__desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-top: 12px;
    max-width: 300px;
}
.footer-brand__contact {
    margin-top: 20px;
    font-size: 15px;
    color: var(--light-green);
    font-weight: 600;
}
.footer-brand__contact a { color: var(--light-green); }
.footer-brand__contact a:hover { color: var(--gold); }

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}
@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); font-weight: 600; }
.footer-bottom a:hover { color: var(--light-green); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .hero { padding: 52px 0 64px; }
    .hero__stats { gap: 24px; }
}

/* ============================================================
   WORDPRESS STANDARD CLASSES
   ============================================================ */
.wp-caption { max-width: 100%; }
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignfull  { width: 100vw; margin-left: calc(-50vw + 50%); }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%); height: 1px; width: 1px;
    margin: -1px; overflow: hidden; padding: 0;
    position: absolute; word-wrap: normal;
}

/* ============================================================
   AD ZONES
   ============================================================ */

/* Generic ad wrapper — centers and adds breathing room */
.ad-zone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Leaderboard: between hero and categories */
.ad-zone--leaderboard {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

/* Inline rectangle: between sections */
.ad-zone--inline {
    padding: 32px 0;
}

/* In-article (sidebar or within blog posts) */
.ad-zone--sidebar {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px;
}

/* Placeholder skin shown until real ad loads (remove in prod) */
.ad-placeholder {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: linear-gradient(135deg, #f0faf3 0%, #e8f5e9 100%);
    border: 2px dashed var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    gap: 4px;
}
.ad-placeholder--rect { max-width: 336px; min-height: 280px; }
.ad-placeholder--leader { max-width: 728px; min-height: 90px; }
@media (max-width: 640px) {
    .ad-placeholder--leader { max-width: 320px; min-height: 50px; }
}

/* ============================================================
   AFFILIATE SECTION
   ============================================================ */
.affiliate-section {
    padding: 72px 0;
    background: var(--bg-white);
    border-top: 4px solid var(--accent-green);
}

.affiliate-section .section-label { color: var(--gold); }

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

.affiliate-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.affiliate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--fresh-green);
}

.affiliate-card__badge {
    background: var(--garden-green);
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    text-align: center;
}

.affiliate-card__body {
    padding: 26px 26px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.affiliate-card__icon {
    font-size: 38px;
    margin-bottom: 14px;
}

.affiliate-card__name {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--garden-green);
    margin-bottom: 8px;
}

.affiliate-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

.affiliate-card__cta {
    display: block;
    text-align: center;
    background: var(--leaf-green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 13px 20px;
    border-radius: 10px;
    transition: background 0.2s;
}
.affiliate-card__cta:hover { background: var(--garden-green); color: #fff; }

.affiliate-disclaimer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}
.affiliate-disclaimer a { color: var(--text-muted); text-decoration: underline; }

