
:root {
    --ser-purple: #6d28d9;
    --ser-emerald: #059669;
    --ser-navy: #0f172a;
    --ser-border: #e2e8f0;
    --ser-bg: #f8fafc;
}

.sermons-academy {
    max-width: 100%;
    margin: 12px 0 0;
    padding: 0 8px 16px;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--ser-navy);
    background: var(--ser-bg);
}

.sermons-top-panel {
    background: #fff;
    border: 1px solid var(--ser-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sermons-top-panel__hero {
    background: linear-gradient(135deg, #111827 0%, #5b21b6 45%, #059669 100%);
    padding: 12px 14px;
    color: #fff;
}

.sermons-top-panel__hero h1 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sermons-top-panel__tagline {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    opacity: 0.94;
    max-width: 70ch;
}

.sermons-top-panel__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px 12px;
    max-height: 200px;
    overflow-y: auto;
}

.sermons-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
    font-size: 0.76rem;
    transition: all 0.15s;
    white-space: nowrap;
}

.sermons-nav-link i { font-size: 0.72rem; }
.sermons-nav-link:hover { background: #f1f5f9; color: var(--ser-purple); }
.sermons-nav-link.active {
    background: var(--ser-purple);
    color: #fff;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.22);
}

.sermons-panes { margin-bottom: 12px; }

.sermons-pane {
    display: none;
    background: #fff;
    border: 1px solid var(--ser-border);
    border-radius: 14px;
    padding: 16px 12px;
}

.sermons-pane.is-active { display: block; }

.sermons-pane--empty {
    display: none;
    text-align: center;
    padding: 24px 14px;
    color: #64748b;
    font-size: 0.88rem;
    border: 1px dashed var(--ser-border);
    border-radius: 14px;
    background: #fff;
}

.sermons-panes:not(.has-active) .sermons-pane--empty { display: block; }
.sermons-panes.has-active .sermons-pane--empty { display: none; }

.sermons-pane-heading {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ser-border);
}

.sermons-pane-heading h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ser-navy); }
.sermons-pane-heading p { margin: 0; font-size: 0.85rem; color: #64748b; line-height: 1.5; }

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.sermons-card {
    display: block;
    background: #fff;
    border: 1px solid var(--ser-border);
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sermons-card:hover {
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.12);
}

.sermons-card h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: var(--ser-navy);
    line-height: 1.35;
}

.sermons-card .speaker {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ser-purple);
    margin-bottom: 6px;
}

.sermons-card .meta {
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sermons-card .summary {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.sermons-card .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.sermons-card .badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f5f3ff;
    color: #5b21b6;
}

.sermons-card .cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ser-emerald);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sermons-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--ser-border);
}

.sermons-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    border: 1px dashed var(--ser-border);
    border-radius: 12px;
}
