/**
 * Marthoma Church Theme - News Widget Styles
 * Two-row layout: Featured (1 card) + Regular (3 cards)
 *
 * @package MarthomaChurch
 */

/* Main Container */
.marthoma-news-widget {
    width: 100%;
}

/* Section Title */
.news-section-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 32px;
    font-weight: 700;
    color: #072538;
    margin: 0 0 60px 0;
}

/* ==========================================
   ROW LAYOUTS
   ========================================== */

/* Row container */
.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Row 1: Featured News - single card on left */
.news-row-featured {
    margin-bottom: 50px;
}

.news-row-featured .news-card {
    max-width: 350px;
}

/* Row 2: Regular News - 3 cards in a row */
.news-row-regular {
    margin-bottom: 0;
}

.news-row-regular .news-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 200px;
    max-width: calc(33.333% - 14px);
}

/* ==========================================
   NEWS CARD - Base Styles
   ========================================== */

/* Individual News Card - Horizontal layout: line | content */
.news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
}

/* Vertical Decorative Line - Left side of card */
.news-card-line {
    width: 2px;
    min-height: 104px;
    height: 100%;
    background-color: #D0D5DD;
    flex-shrink: 0;
}

/* Card Content - Vertical stack: Link on top, Title at bottom */
.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    min-height: 104px;
}

/* Card Title */
.news-card-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #072538;
    text-transform: uppercase;
    margin: 0;
}

/* Learn More Link - At top of card */
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #072538;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 15px;
}

/* Card Title - At bottom of card */
.news-card-title {
    margin-top: auto;
}

.news-card-link:hover {
    color: #375EFB;
}

.news-card-link svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-card-link:hover svg {
    transform: translate(2px, -2px);
}

/* ==========================================
   BOTTOM SECTION
   ========================================== */

.news-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

/* Separator Line - Flexible width, grows to fill space */
.news-separator {
    flex: 1;
    height: 2px;
    background-color: #D0D5DD;
}

/* View More Link - Right aligned, inline with separator */
.news-view-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #072538;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-view-more:hover {
    color: #375EFB;
}

.news-view-more svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-view-more:hover svg {
    transform: translate(2px, -2px);
}

/* No Posts Message */
.news-no-posts {
    padding: 40px;
    text-align: center;
    color: #707070;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .news-row-regular .news-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .news-section-title {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-row {
        flex-direction: column;
        gap: 25px;
    }

    .news-row-featured {
        margin-bottom: 30px;
    }

    .news-row-featured .news-card,
    .news-row-regular .news-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .news-card-line {
        min-height: 80px;
    }

    .news-card-content {
        min-height: 80px;
    }

    .news-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .news-card-title {
        font-size: 13px;
    }

    .news-card-line {
        min-height: 70px;
    }

    .news-card-content {
        min-height: 70px;
    }

    .news-section-title {
        font-size: 20px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .news-card-link,
    .news-card-link svg,
    .news-view-more,
    .news-view-more svg {
        transition: none;
    }
}

/* ==========================================
   ELEMENTOR EDITOR
   ========================================== */

.elementor-editor-active .marthoma-news-widget {
    min-height: 150px;
}
