/**
 * Latest News & Events Block
 *
 * Slate-blue section: NEWS cards (bordered) on the left,
 * single EVENT card (image overlay) on the right.
 * Falls back to 3 news cards when no upcoming events.
 */

/* ==========================================================================
   Block Container
   ========================================================================== */

.lne-block {
    width: 100%;
    background-color: #607485;
}

.lne-inner {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.lne-news-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lne-news-section.has-events {
    padding-right: 60px;
}

.lne-events-section {
    flex: 0 0 380px;
    max-width: 380px;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.lne-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.lne-section-title {
    font-family: var(--heading-font, "Times New Roman", Times, serif);
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin: 0;
}

.lne-see-more {
    font-family: var(--main-font, sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.lne-see-more:hover {
    color: #C04C36;
    border-bottom-color: #C04C36;
}

/* ==========================================================================
   News Cards Grid
   ========================================================================== */

.lne-news-cards {
    display: flex;
    gap: 30px;
    flex: 1;
    position: relative;
}

.lne-news-section.has-events .lne-news-cards::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -60px;
    width: 1px;
    background-color: #fff;
}

.lne-news-card {
    flex: 1;
    border: 1px solid #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Shared Card Styles
   ========================================================================== */

.lne-date {
    display: inline-block;
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
}

.lne-card-title {
    font-family: var(--heading-font, "Times New Roman", Times, serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lne-card-title a {
    color: inherit;
    text-decoration: none;
}

.lne-card-title a:hover {
    color: #C04C36;
}

/* CTA inside cards – override the default red transparent-angled to white */
.lne-cta-wrapper {
    margin-top: auto;
    align-self: flex-start;
}

.lne-block .wp-block-button.is-style-transparent-angled {
    margin-top: 10px!important;
}

.lne-block .wp-block-button.is-style-transparent-angled::before,
.lne-block .wp-block-button.is-style-transparent-angled::after {
    background-color: #fff;
    background-image: none;
    transition: background-color 0.2s ease-out;
}

.lne-block .wp-block-button.is-style-transparent-angled:hover::before,
.lne-block .wp-block-button.is-style-transparent-angled:hover::after {
    background-color: #C04C36;
}

.lne-block .wp-block-button.is-style-transparent-angled .wp-block-button__link {
    color: #fff !important;
    border-bottom: 3px solid #fff !important;
    font-size: 18px !important;
    transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.lne-block .wp-block-button.is-style-transparent-angled:hover .wp-block-button__link {
    color: #C04C36 !important;
    border-bottom-color: #C04C36 !important;
}

/* ==========================================================================
   Event Card (Image Overlay)
   ========================================================================== */

.lne-events-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lne-event-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #3a4a5a;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.lne-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.lne-event-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   No Events – 3 news cards
   ========================================================================== */

.lne-news-section.no-events .lne-news-cards {
    gap: 30px;
}

.lne-news-section.no-events .lne-news-card {
    flex: 1;
}

/* ==========================================================================
   No Posts Fallback
   ========================================================================== */

.lne-no-posts {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .lne-inner {
        padding: 40px;
    }

    .lne-events-section {
        flex: 0 0 340px;
        max-width: 340px;
        padding-left: 40px;
    }

    .lne-news-section.has-events {
        padding-right: 40px;
    }
}

@media (max-width: 1024px) {
    .lne-inner {
        flex-direction: column;
        gap: 40px;
        padding: 40px 30px;
    }

    .lne-news-section.has-events {
        padding-right: 0;
    }

    .lne-news-section.has-events .lne-news-cards::after {
        display: none;
    }

    .lne-events-section {
        flex: none;
        max-width: 100%;
        padding-left: 0;
    }

    .lne-events-cards {
        display: flex;
        gap: 30px;
    }

    .lne-event-card {
        flex: 1;
        min-height: 260px;
    }

    .lne-section-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .lne-news-cards {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .lne-inner {
        padding: 30px 20px;
    }

    .lne-section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .lne-inner {
        padding: 25px 16px;
    }

    .lne-event-card {
        min-height: 220px;
    }

    .lne-section-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .lne-news-card {
        padding: 20px;
    }
}
