/* Guides Index — editorial card grid */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;600&display=swap');

.guides-index {
    --gi-green: #3a7d44;
    --gi-green-light: #e8f5e9;
    --gi-green-muted: #6ba573;
    --gi-card-radius: 16px;
    --gi-img-radius: 12px;
    --gi-shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.06);
    --gi-shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.1);
    font-family: 'DM Sans', sans-serif;
}

/* ── Hero header ─────────────────────────────────────── */

.guides-hero {
    padding: 3.5rem 0 1.5rem;
}

.guides-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    color: #1a1a1a;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
}

.guides-hero p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    max-width: 520px;
}

/* ── Card grid ───────────────────────────────────────── */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

@media (max-width: 991px) {
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .guides-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .guides-hero h1 { font-size: 2rem; }
}

/* ── Card ────────────────────────────────────────────── */

.guide-card {
    background: #fff;
    border-radius: var(--gi-card-radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
    box-shadow: var(--gi-shadow);
}

.guide-card:hover {
    box-shadow: var(--gi-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--gi-green-muted);
}

/* ── Thumbnail area ──────────────────────────────────── */

.guide-card__img-wrap {
    position: relative;
    padding: .75rem .75rem 0;
}

.guide-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--gi-img-radius);
    display: block;
    background: var(--gi-green-light);
}

/* Placeholder when no thumbnail */
.guide-card__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--gi-img-radius);
    background: linear-gradient(135deg, var(--gi-green-light) 0%, #d4edda 50%, #c3e6cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card__img-placeholder i {
    font-size: 3rem;
    color: var(--gi-green-muted);
    opacity: .6;
}

/* ── Card body ───────────────────────────────────────── */

.guide-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

.guide-card:hover .guide-card__title {
    color: var(--gi-green);
}

.guide-card__teaser {
    font-size: .9rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card footer ─────────────────────────────────────── */

.guide-card__footer {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.guide-card__tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gi-green);
    background: var(--gi-green-light);
    padding: .3rem .7rem;
    border-radius: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.guide-card__date {
    font-size: .78rem;
    color: #9ca3af;
    margin-left: auto;
}

/* ── Staggered entrance animation ────────────────────── */

@keyframes guideCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.guide-card {
    animation: guideCardIn .5s ease both;
}

.guide-card:nth-child(1) { animation-delay: .05s; }
.guide-card:nth-child(2) { animation-delay: .1s; }
.guide-card:nth-child(3) { animation-delay: .15s; }
.guide-card:nth-child(4) { animation-delay: .2s; }
.guide-card:nth-child(5) { animation-delay: .25s; }
.guide-card:nth-child(6) { animation-delay: .3s; }
.guide-card:nth-child(7) { animation-delay: .35s; }
.guide-card:nth-child(8) { animation-delay: .4s; }
.guide-card:nth-child(9) { animation-delay: .45s; }
