/* ============================================================
RC AIRPLANE WORLD - HOMEPAGE SPECIFIC STYLES (home.css)
Loaded alongside /assets/site.css on layouts/home.njk
============================================================ */

/* --- 1. HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4.5rem 0 6.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero-title {
    font-size: clamp(2.15rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 900px;
    margin-inline: auto;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.hero-btn.primary {
    background: var(--brand);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.hero-btn.primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(2, 132, 199, 0.35);
}

.hero-btn.secondary {
    background: #ffffff;
    color: var(--text-dark) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero-btn.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 20;
    margin-bottom: 3.5rem;
}

.topic-card {
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.topic-icon {
    font-size: 2.25rem;
    width: 58px;
    height: 58px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.topic-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.topic-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* --- 3. HOMEPAGE CONTENT CONTAINER (Clean Centered Card) --- */
.home-content-container {
    margin-inline: auto;
    margin-bottom: 4rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .home-content-container {
        padding: 3rem 3.5rem;
    }
}

/* Typography inside the home content block */
.home-content-container h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-subtle);
}

.home-content-container h3 {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.35;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.home-content-container p {
    font-size: 1.075rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 1.35rem;
}

.home-content-container ul,
.home-content-container ol {
    margin: 0 0 1.5rem 0.5rem;
    padding-left: 1.35rem;
    color: #334155;
}

.home-content-container li {
    margin-bottom: 0.45rem;
}

.home-content-container img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin: 1.75rem auto 0.65rem;
    display: block;
}

.home-content-container blockquote {
    border-left: 4px solid var(--brand);
    padding: 0.85rem 1.15rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: #475569;
    background: var(--surface-subtle);
    border-radius: 0 8px 8px 0;
}

/* --- 4. HOMEPAGE BOTTOM CTA CARD OVERRIDE --- */
.home-content-container .cta-box {
    margin-top: 3rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 1.75rem;
}

@media (max-width: 699px) {
    .hero-section {
        padding: 3.5rem 0 5rem;
    }

    .topics-grid {
        margin-top: -2.75rem;
        gap: 0.85rem;
    }

    .topic-card {
        padding: 1.35rem 1rem;
    }

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

    .hero-btn {
        width: 100%;
    }
}