/* Featured Articles Styles */
.article-row.featured-highlight {
    background: linear-gradient(to right, #fffdf0, #ffffff);
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    position: relative;
}

.article-row.featured-highlight:hover {
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffd700;
    color: #8b5e00;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.featured-badge i {
    font-size: 0.7rem;
}

/* Pinned Widgets Styles */
.pinned-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pinned-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pinned-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pinned-widget-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f8f9fa;
    max-height: 400px;
    /* Limit height for very tall images */
}

.pinned-widget-body {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pinned-widget-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pinned-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
}

.pinned-widget-title a {
    color: var(--dark);
    text-decoration: none;
}

.pinned-widget-title a:hover {
    color: var(--primary);
}

.pinned-badge {
    background: #ffd700;
    color: #8b5e00;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-video-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-video-day>.section-title {
    text-wrap: wrap;
    font-size: 3rem;
    margin: 0 auto;
}

.section-video-day>.player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: fit-content;

    overflow: hidden;
    flex-basis: 66%;
}

.section-video-day .player {
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 768px) {

    /* Mobile: Native stack behavior (no carousel) */
    .pinned-widgets-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
        margin-bottom: 30px;
    }

    .pinned-widget {
        min-width: 0;
        /* Reset */
        width: 100%;
        /* Full width */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Ensure image is not cropped on mobile too */
    .pinned-widget-img {
        height: auto;
    }

    .section-video-day {
        flex-direction: column;
        margin-bottom: 20px;
        align-items: start;
        gap: 12px;
    }

    .section-video-day>.section-title {
        text-wrap: wrap;
        font-size: 2rem;
        margin: 0;
    }
}