/* 
 * FEATURED NEWS STYLES
 */
.featured-section {
    width: 100%;
    padding: 0;
}

/* Primary Card Wrapper */
.featured-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    /*margin-bottom: 30px;*/
    padding-bottom: 20px;
}

/* 
 * 1. IMAGE CONTAINER & LAYOUT
 */
.featured-image-container {
    width: fit-content;
    max-width: 1100px;
    height: auto;
    max-height: 580px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*body.dark .featured-image-container {*/
/*    background: #1a202c;*/
/*}*/

.featured-image {
    max-width: 100%;
    max-height: 580px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

/* 
 * 2. TITLE & CONTENT 
 */
.featured-content {
    text-align: center;
    border-bottom: 1px solid #2424;
    /* Refined bottom highlight */
}

body.dark .featured-content {
    border-bottom: 2px solid #2d3748;
}

.featured-title {
    font-size: 46px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

body.dark .featured-title {
    color: #f7fafc;
}

.featured-card:hover .featured-title {
    color: var(--brand-color, #E67E22);
}

.featured-subtitle {
    font-size: 26px;
    color: #4a5568;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.4;
    padding: 5px 0;
}

body.dark .featured-subtitle {
    color: #a0aec0;
}

/* 
 * 3. AUTHOR ATTRIBUTION
 */
.featured-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e47200;
    background: #edf2f7;
}

/* Placeholder for authors without profile pics */
.author-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f7;
}

body.dark .author-img-placeholder {
    background: #2d3748;
}

.author-default-icon {
    color: #cbd5e0;
    font-size: 24px;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
}

body.dark .author-name {
    color: #cbd5e0;
}

/* 
 * 4. SUMMARY & HIGHLIGHTS
 */
.featured-desc {
    font-size: 20px;
    line-height: 1.6;
    max-width: 900px;
    margin: 20px auto 10px;
    /* Centered with top margin */
}

body.dark .featured-desc {
    color: #a0aec0;
}

/* 
 * 5. RESPONSIVE MEDIA QUERIES
 */
@media (max-width: 992px) {
    .featured-image-container {
        max-height: 400px;
    }

    .featured-title {
        font-size: 42px;
    }

    .featured-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 0;
        /*margin: 10px auto 30px;*/
    }

    .featured-card {
        border-bottom: 1px solid #2424;
        /*padding-bottom: 20px;*/
    }
    
    body.dark .featured-card {
        border-bottom: 1px solid #2d3748;
    }

    .featured-image-container {
        max-height: 450px;
        border-radius: 0;
    }

    .featured-content {
        /*padding: 30px 0px;*/
    }

    .featured-title {
        font-size: 34px;
        padding: 8px 0;
    }

    .featured-subtitle {
        font-size: 21px;
        padding: 6px 0;
    }

    .featured-author {
        margin-bottom: 20px;
    }

    .author-img {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 20px;
    }

    .featured-desc {
        display: none;
    }
}