/**
 * REO Content Features — Frontend Design System & Responsive Styles
 *
 * Implements the official REO Ministries Visual Identity:
 * Deep Forest Green (#123B2A), Kingdom Gold (#C89B3C), Warm Ivory (#F7F4EA),
 * Charcoal (#17201C), Cinzel display typography & Plus Jakarta Sans body.
 *
 * @package REO_Content_Features
 * @version 1.0.0
 */

:root {
    --reo-cf-primary: #123B2A;
    --reo-cf-primary-dark: #081C14;
    --reo-cf-secondary: #1E6045;
    --reo-cf-gold: #C89B3C;
    --reo-cf-gold-light: #DFBA6B;
    --reo-cf-gold-glow: rgba(200, 155, 60, 0.25);
    --reo-cf-ivory: #F7F4EA;
    --reo-cf-stone: #E8E4D8;
    --reo-cf-border: #DCD8CC;
    --reo-cf-charcoal: #17201C;
    --reo-cf-muted: #5A6A61;
    --reo-cf-white: #FFFFFF;
    
    --reo-cf-font-title: 'Cinzel', Georgia, serif;
    --reo-cf-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --reo-cf-radius-sm: 8px;
    --reo-cf-radius-md: 14px;
    --reo-cf-radius-lg: 20px;
    --reo-cf-radius-pill: 9999px;
    
    --reo-cf-shadow-sm: 0 4px 14px rgba(18, 59, 42, 0.05);
    --reo-cf-shadow-card: 0 10px 30px rgba(18, 59, 42, 0.07);
    --reo-cf-shadow-hover: 0 18px 45px rgba(18, 59, 42, 0.13);
    --reo-cf-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */

.reo-cf-section {
    position: relative;
    padding: 70px 0;
    background-color: transparent;
}

.reo-cf-container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.reo-cf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 38px;
    gap: 24px;
    flex-wrap: wrap;
}

.reo-cf-header-col-left {
    flex: 1 1 560px;
}

.reo-cf-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 59, 42, 0.07);
    border: 1px solid rgba(18, 59, 42, 0.14);
    padding: 6px 16px;
    border-radius: var(--reo-cf-radius-pill);
    margin-bottom: 12px;
}

.reo-cf-badge-pill-conf {
    background: rgba(200, 155, 60, 0.12);
    border-color: rgba(200, 155, 60, 0.28);
}

.reo-cf-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--reo-cf-secondary);
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(30, 96, 69, 0.2);
}

.reo-cf-pulse-gold {
    background: var(--reo-cf-gold);
    box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.3);
}

.reo-cf-badge-text {
    font-family: var(--reo-cf-font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--reo-cf-primary);
    text-transform: uppercase;
}

.reo-cf-section-title {
    font-family: var(--reo-cf-font-title);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--reo-cf-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.reo-cf-section-desc {
    font-family: var(--reo-cf-font-body);
    font-size: 1.05rem;
    color: var(--reo-cf-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 620px;
}

.reo-cf-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--reo-cf-white);
    color: var(--reo-cf-primary);
    border: 1.5px solid var(--reo-cf-border);
    border-radius: var(--reo-cf-radius-pill);
    font-family: var(--reo-cf-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: var(--reo-cf-transition);
    box-shadow: var(--reo-cf-shadow-sm);
}

.reo-cf-see-all-btn:hover {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
    transform: translateY(-2px);
    box-shadow: var(--reo-cf-shadow-card);
}

.reo-cf-see-all-btn .reo-cf-btn-arrow {
    transition: transform 0.25s ease;
}

.reo-cf-see-all-btn:hover .reo-cf-btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SLIDER ARCHITECTURE (Accessible, Touch-Enabled, 60fps)
   ========================================================================== */

.reo-cf-slider {
    position: relative;
    width: 100%;
}

.reo-cf-slider-controls {
    position: absolute;
    top: -62px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.reo-cf-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--reo-cf-white);
    border: 1.5px solid var(--reo-cf-border);
    color: var(--reo-cf-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--reo-cf-transition);
    box-shadow: var(--reo-cf-shadow-sm);
    padding: 0;
}

.reo-cf-nav-btn:hover:not(:disabled) {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
    transform: scale(1.06);
}

.reo-cf-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.reo-cf-nav-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.reo-cf-slider-viewport {
    overflow: hidden;
    width: 100%;
    padding: 8px 0 20px 0;
    outline: none;
}

.reo-cf-slider-viewport:focus-visible {
    box-shadow: 0 0 0 3px var(--reo-cf-gold);
    border-radius: var(--reo-cf-radius-md);
}

.reo-cf-slider-track {
    display: flex;
    gap: 26px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.reo-cf-slide {
    flex: 0 0 calc((100% - 52px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

/* Pagination Dots */
.reo-cf-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.reo-cf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--reo-cf-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--reo-cf-transition);
}

.reo-cf-dot:hover {
    background: var(--reo-cf-secondary);
}

.reo-cf-dot.is-active {
    width: 28px;
    border-radius: var(--reo-cf-radius-pill);
    background: var(--reo-cf-primary);
}

/* ==========================================================================
   CARD STYLES (LANDSCAPE MEDIA + STRICT CARD SEPARATION)
   ========================================================================== */

.reo-cf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--reo-cf-white);
    border: 1px solid var(--reo-cf-border);
    border-radius: var(--reo-cf-radius-lg);
    overflow: hidden;
    box-shadow: var(--reo-cf-shadow-card);
    transition: var(--reo-cf-transition);
    position: relative;
}

.reo-cf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--reo-cf-shadow-hover);
    border-color: rgba(200, 155, 60, 0.45);
}

/* 16:9 Landscape Media Wrap */
.reo-cf-card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--reo-cf-ivory);
    overflow: hidden;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .reo-cf-card-media-wrap {
        padding-top: 56.25%;
        height: 0;
    }
    .reo-cf-card-media-wrap .reo-cf-media-link,
    .reo-cf-card-media-wrap .reo-cf-img-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.reo-cf-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.reo-cf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reo-cf-card:hover .reo-cf-card-img {
    transform: scale(1.04);
}

/* Card Placeholders */
.reo-cf-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--reo-cf-primary) 0%, var(--reo-cf-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

.reo-cf-ph-conference {
    background: linear-gradient(135deg, #17382B 0%, #0E241B 100%);
}

.reo-cf-placeholder-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.reo-cf-ph-cross {
    font-size: 2rem;
    color: var(--reo-cf-gold);
    line-height: 1;
}

.reo-cf-ph-icon {
    font-size: 2.2rem;
    color: var(--reo-cf-gold);
    width: 36px;
    height: 36px;
}

.reo-cf-ph-text {
    font-family: var(--reo-cf-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--reo-cf-white);
    letter-spacing: 0.04em;
}

.reo-cf-ph-tag {
    font-family: var(--reo-cf-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reo-cf-gold-light);
}

/* Floating Badges on Images */
.reo-cf-badge-format {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(8, 28, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--reo-cf-gold-light);
    border: 1px solid rgba(200, 155, 60, 0.4);
    font-family: var(--reo-cf-font-body);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 11px;
    border-radius: var(--reo-cf-radius-pill);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.reo-cf-badge-format .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.reo-cf-event-date-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 54px;
    background: var(--reo-cf-white);
    border-radius: var(--reo-cf-radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    border: 1px solid var(--reo-cf-border);
    z-index: 2;
    overflow: hidden;
}

.reo-cf-chip-day {
    font-family: var(--reo-cf-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--reo-cf-primary);
}

.reo-cf-chip-month {
    font-family: var(--reo-cf-font-body);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--reo-cf-gold);
    line-height: 1;
}

.reo-cf-badge-event-type {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(18, 59, 42, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--reo-cf-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--reo-cf-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--reo-cf-radius-pill);
    z-index: 2;
}

/* Card Body */
.reo-cf-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    box-sizing: border-box;
}

.reo-cf-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.reo-cf-kicker {
    font-family: var(--reo-cf-font-body);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--reo-cf-gold);
    text-transform: uppercase;
}

.reo-cf-date {
    font-family: var(--reo-cf-font-body);
    color: var(--reo-cf-muted);
}

.reo-cf-card-title {
    font-family: var(--reo-cf-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--reo-cf-primary);
}

.reo-cf-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reo-cf-card-title a:hover {
    color: var(--reo-cf-gold);
}

.reo-cf-card-excerpt {
    font-family: var(--reo-cf-font-body);
    font-size: 0.92rem;
    color: var(--reo-cf-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

/* Conference Event Metadata Cluster */
.reo-cf-event-meta-cluster {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px;
    background: var(--reo-cf-ivory);
    border-radius: var(--reo-cf-radius-sm);
    border-left: 3px solid var(--reo-cf-gold);
    margin-bottom: 18px;
}

.reo-cf-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--reo-cf-font-body);
    font-size: 0.82rem;
    color: var(--reo-cf-charcoal);
    line-height: 1.35;
}

.reo-cf-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: var(--reo-cf-secondary);
    flex-shrink: 0;
}

.reo-cf-meta-val strong {
    color: var(--reo-cf-primary);
}

/* Action Buttons */
.reo-cf-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--reo-cf-stone);
    flex-wrap: wrap;
}

.reo-cf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--reo-cf-radius-pill);
    font-family: var(--reo-cf-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: var(--reo-cf-transition);
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Get Resource Button: Gold & Forest Green */
.reo-cf-btn-download {
    background: var(--reo-cf-gold);
    color: var(--reo-cf-primary-dark);
    border: 1px solid var(--reo-cf-gold-light);
    box-shadow: 0 4px 14px rgba(200, 155, 60, 0.28);
}

.reo-cf-btn-download:hover {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
    transform: translateY(-2px);
    box-shadow: var(--reo-cf-shadow-card);
}

.reo-cf-btn-download .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Read More Button */
.reo-cf-btn-readmore,
.reo-cf-btn-primary {
    background: var(--reo-cf-white);
    color: var(--reo-cf-primary);
    border: 1.5px solid var(--reo-cf-border);
}

.reo-cf-btn-readmore:hover,
.reo-cf-btn-primary:hover {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
    transform: translateY(-2px);
}

.reo-cf-arrow {
    transition: transform 0.2s ease;
}

.reo-cf-btn:hover .reo-cf-arrow {
    transform: translateX(3px);
}

.reo-cf-btn-register {
    background: var(--reo-cf-secondary);
    color: var(--reo-cf-white);
    border: 1px solid var(--reo-cf-secondary);
}

.reo-cf-btn-register:hover {
    background: var(--reo-cf-primary-dark);
    transform: translateY(-2px);
}

/* Empty States */
.reo-cf-empty-state {
    padding: 60px 24px;
    text-align: center;
    background: var(--reo-cf-white);
    border: 1px dashed var(--reo-cf-border);
    border-radius: var(--reo-cf-radius-lg);
    margin: 20px 0;
}

.reo-cf-empty-icon {
    font-size: 42px;
    width: 42px;
    height: 42px;
    color: var(--reo-cf-gold);
    margin-bottom: 12px;
}

.reo-cf-empty-state h3 {
    font-family: var(--reo-cf-font-title);
    font-size: 1.4rem;
    color: var(--reo-cf-primary);
    margin-bottom: 8px;
}

.reo-cf-empty-state p {
    font-family: var(--reo-cf-font-body);
    color: var(--reo-cf-muted);
    max-width: 500px;
    margin: 0 auto 20px auto;
}

/* ==========================================================================
   ARCHIVE PAGES (/free-resources/ & /conferences/)
   ========================================================================== */

.reo-cf-archive-main {
    min-height: 70vh;
}

.reo-cf-archive-hero {
    background: linear-gradient(135deg, var(--reo-cf-primary-dark) 0%, var(--reo-cf-primary) 65%, #184834 100%);
    color: var(--reo-cf-white);
    padding: 90px 0 70px 0;
    position: relative;
    overflow: hidden;
}

.reo-cf-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(200, 155, 60, 0.15), transparent 70%);
    pointer-events: none;
}

.reo-cf-hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.reo-cf-archive-page-title {
    font-family: var(--reo-cf-font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--reo-cf-white);
    margin: 14px 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.reo-cf-gold-text {
    color: var(--reo-cf-gold);
}

.reo-cf-archive-page-desc {
    font-family: var(--reo-cf-font-body);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin: 0;
}

.reo-cf-archive-body-section {
    padding: 60px 0 90px 0;
    background: #FAF8F2;
}

/* Filter Tabs */
.reo-cf-filter-tabs-wrap {
    margin-bottom: 40px;
}

.reo-cf-filter-tabs {
    display: inline-flex;
    background: var(--reo-cf-white);
    padding: 6px;
    border-radius: var(--reo-cf-radius-pill);
    border: 1px solid var(--reo-cf-border);
    box-shadow: var(--reo-cf-shadow-sm);
    gap: 6px;
    flex-wrap: wrap;
}

.reo-cf-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--reo-cf-radius-pill);
    font-family: var(--reo-cf-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--reo-cf-primary);
    text-decoration: none;
    transition: var(--reo-cf-transition);
}

.reo-cf-tab:hover {
    color: var(--reo-cf-gold);
}

.reo-cf-tab.is-active {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    box-shadow: 0 4px 12px rgba(18, 59, 42, 0.2);
}

.reo-cf-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Archive 3-Column Grid */
.reo-cf-grid {
    display: grid;
    gap: 30px;
}

.reo-cf-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Pagination */
.reo-cf-pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.reo-cf-pagination-wrap ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reo-cf-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--reo-cf-radius-sm);
    background: var(--reo-cf-white);
    border: 1.5px solid var(--reo-cf-border);
    color: var(--reo-cf-primary);
    font-family: var(--reo-cf-font-body);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--reo-cf-transition);
}

.reo-cf-pagination-wrap a.page-numbers:hover {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
}

.reo-cf-pagination-wrap .page-numbers.current {
    background: var(--reo-cf-primary);
    color: var(--reo-cf-white);
    border-color: var(--reo-cf-primary);
    box-shadow: 0 4px 12px rgba(18, 59, 42, 0.2);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet Optimization)
   ========================================================================== */

@media screen and (max-width: 1080px) {
    .reo-cf-slide {
        flex: 0 0 calc((100% - 26px) / 2);
    }
    .reo-cf-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .reo-cf-section {
        padding: 50px 0;
    }
    .reo-cf-section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }
    .reo-cf-section-title {
        font-size: 1.85rem;
    }
    .reo-cf-slider-controls {
        position: static;
        margin-top: 14px;
        margin-bottom: 10px;
    }
    .reo-cf-slide {
        flex: 0 0 100%;
    }
    .reo-cf-grid-3 {
        grid-template-columns: 1fr;
    }
    .reo-cf-archive-page-title {
        font-size: 2.2rem;
    }
    .reo-cf-card-body {
        padding: 20px;
    }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .reo-cf-slider-track,
    .reo-cf-card,
    .reo-cf-card-img,
    .reo-cf-btn,
    .reo-cf-see-all-btn,
    .reo-cf-dot {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
