/* ============================================================
   RLTV Site Setup — CSS Fixes & Page Styles
   Matches the Editorial Review theme: navy #1a2744 / red #c0392b / gold #c9a84c
   ============================================================ */

/* ── 1. REMOVE ALL UNDERLINES FROM NAV & HEADINGS ─────────────── */

a, a:visited, a:focus {
    text-decoration: none !important;
}

/* Navigation */
.nav-menu a,
.nav-menu a:hover,
.nav-menu a:focus,
.main-nav a,
.top-bar-menu a,
header nav a,
#main-nav-menu a,
.primary-menu a,
.menu-item a,
.footer-links a,
.footer-legal a,
.sub-menu a {
    text-decoration: none !important;
}

/* Headings */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.entry-title a,
.post-title a,
.article-card-title a,
.rltv-card-title a,
.hero-main-title a,
.hero-side-title a,
.featured-card-title a {
    text-decoration: none !important;
}

/* Restore underlines ONLY in article body text */
.entry-content a,
.post-body a,
article .content a,
.rltv-contact-sidebar p a,
.rltv-page-content a:not(.wp-block-button__link):not(.rltv-btn-submit) {
    text-decoration: underline;
}

/* ── 2. PAGE HERO HEADER ───────────────────────────────────────── */

.rltv-page-hero {
    background: linear-gradient(135deg, #1a2744 0%, #253357 100%);
    color: #fff;
    padding: 48px 40px 40px;
    margin: -20px -20px 40px;
    border-bottom: 3px solid #c0392b;
}

.rltv-page-hero h1 {
    color: #fff !important;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 12px;
    font-family: 'Playfair Display', Georgia, serif;
}

.rltv-page-hero .rltv-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0;
}

.rltv-section-hero {
    padding-bottom: 32px;
}

/* ── 3. SECTION ARTICLE GRID ───────────────────────────────────── */

.rltv-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0;
    list-style: none;
}

/* First card is featured — spans full width */
.rltv-grid-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.rltv-grid-card--featured:hover {
    box-shadow: 0 8px 24px rgba(26,39,68,0.15);
    transform: translateY(-2px);
}

.rltv-grid-card--featured .rltv-card-image-link {
    display: block;
    overflow: hidden;
}

.rltv-grid-card--featured .rltv-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    transition: transform 0.3s ease;
}

.rltv-grid-card--featured:hover .rltv-card-img {
    transform: scale(1.03);
}

.rltv-grid-card--featured .rltv-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rltv-grid-card--featured .rltv-card-title {
    font-size: 1.6rem;
}

.rltv-grid-card--featured .rltv-card-excerpt {
    display: block;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 12px 0;
}

/* Regular cards */
.rltv-grid-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}

.rltv-grid-card:hover {
    box-shadow: 0 6px 20px rgba(26,39,68,0.12);
    transform: translateY(-3px);
    border-color: #c9a84c;
}

.rltv-grid-card .rltv-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.rltv-grid-card .rltv-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rltv-grid-card:hover .rltv-card-img {
    transform: scale(1.04);
}

.rltv-grid-card .rltv-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rltv-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c0392b;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.rltv-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #1a2744;
}

.rltv-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.rltv-card-title a:hover {
    color: #c0392b;
}

.rltv-card-excerpt {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.rltv-card-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: auto;
}

.rltv-card-dot {
    margin: 0 4px;
}

/* Load more */
.rltv-load-more-wrap {
    text-align: center;
    padding: 32px 0;
}

.rltv-load-more {
    background: #1a2744;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.rltv-load-more:hover {
    background: #c0392b;
}

.rltv-no-posts {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

/* ── 4. CONTACT PAGE ───────────────────────────────────────────── */

.rltv-contact-form-wrap {
    max-width: 600px;
}

.rltv-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rltv-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rltv-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.rltv-form-field label span {
    color: #c0392b;
}

.rltv-form-field input,
.rltv-form-field select,
.rltv-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.92rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.rltv-form-field input:focus,
.rltv-form-field select:focus,
.rltv-form-field textarea:focus {
    outline: none;
    border-color: #1a2744;
    box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}

.rltv-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rltv-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.rltv-btn-submit:hover {
    background: #1a2744;
}

.rltv-form-note {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.rltv-form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.92rem;
}

.rltv-form-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.92rem;
}

.rltv-contact-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 6px;
}

.rltv-contact-sidebar h3 {
    font-size: 1rem;
    color: #1a2744;
    margin: 0 0 8px;
}

.rltv-contact-sidebar p {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 4px;
}

/* ── 5. TEAM PAGE ──────────────────────────────────────────────── */

.rltv-team-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a2744;
    padding: 28px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 32px;
}

.rltv-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2744, #253357);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #c9a84c;
    font-family: 'Playfair Display', Georgia, serif;
}

.rltv-team-title {
    color: #c0392b !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -4px !important;
    margin-bottom: 12px !important;
}

.rltv-advisor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.rltv-advisor-card h4 {
    color: #1a2744;
    margin: 0 0 6px;
    font-size: 1rem;
}

.rltv-advisor-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.rltv-memorial-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #c9a84c;
    padding: 24px;
    border-radius: 0 0 6px 6px;
    margin-top: 32px;
}

.rltv-memorial-box h3 {
    color: #c9a84c;
    font-size: 1.1rem;
    margin: 0 0 10px;
}

/* ── 6. NEWSLETTER PAGE ────────────────────────────────────────── */

.rltv-newsletter-embed {
    max-width: 640px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 28px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.rltv-newsletter-embed iframe {
    display: block;
    width: 100%;
}

/* ── 7. PODCAST SUBSCRIBE BAR ──────────────────────────────────── */

.rltv-podcast-subscribe {
    background: linear-gradient(135deg, #1a2744 0%, #253357 100%);
    color: #fff;
    padding: 28px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.rltv-podcast-subscribe h3 {
    color: #c9a84c;
    margin-top: 0;
}

.rltv-btn-secondary .wp-block-button__link {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    border-radius: 4px !important;
    transition: background 0.18s ease !important;
}

.rltv-btn-secondary .wp-block-button__link:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ── 8. SUBSTACK PROMO BLOCK ───────────────────────────────────── */

.rltv-substack-promo {
    background: #fff8e7;
    border: 1px solid #f0d58a;
    border-left: 4px solid #c9a84c;
    padding: 24px 28px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 32px;
}

.rltv-substack-promo h3 {
    color: #1a2744;
    margin: 0 0 8px;
    font-size: 1.1rem;
}

/* ── 9. STAT & INFO BOXES ──────────────────────────────────────── */

.rltv-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    border-radius: 6px;
}

.rltv-stat-box h3 {
    color: #1a2744;
    font-size: 1rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── 10. WP BUTTON DEFAULTS ────────────────────────────────────── */

.wp-block-button .wp-block-button__link {
    background: #c0392b;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #1a2744;
    color: #fff;
}

/* ── 11. RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
    .rltv-article-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rltv-grid-card--featured {
        grid-template-columns: 1fr;
    }

    .rltv-grid-card--featured .rltv-card-img {
        min-height: 200px;
    }

    .rltv-page-hero {
        padding: 32px 20px 28px;
        margin: -16px -16px 28px;
    }
}

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

    .rltv-form-row--2 {
        grid-template-columns: 1fr;
    }

    .rltv-page-hero h1 {
        font-size: 1.6rem;
    }

    .rltv-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── 12. ABOUT PAGE — hide post navigation ─────────────────────── */

.rltv-is-page .post-navigation,
.rltv-is-page .prev-next-navigation,
.rltv-is-page .article-nav,
.rltv-is-page .entry-footer,
.rltv-is-page .author-bio-wrap,
.rltv-is-page .post-tags,
.rltv-is-page .nav-links {
    display: none !important;
}
