/* Featured News Image Styles */
.featured-news-image {
    height: 120px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

/* Regular News Image Styles */
.news-image {
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

.news-list-image {
    height: 150px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

/* Featured News Card Styles */
.featured-news {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.featured-news .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-news .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.featured-news .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-news .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-news .card-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.featured-news .card-footer {
    margin-top: auto;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

.featured-news h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Featured News Slider Styles */
.featured-slider-img {
    height: 260px !important;
    object-fit: cover !important;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s;
}
.featured-slider-img:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.featured-slider-overlay {
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.1) 100%);
    color: #fff;
    padding-bottom: 1.5rem !important;
    border-radius: 0 0 16px 16px;
}

.fixed-slider-img {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block;
}

.horizontal-scroll-cards {
    padding: 0 0 20px 0;
    margin-bottom: 30px;
}
.featured-cards-row {
    display: flex;
    flex-direction: row;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.featured-card {
    min-width: 270px;
    max-width: 270px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}
.featured-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.03);
}
.featured-card-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f3f3f3;
    overflow: hidden;
}
.featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.featured-card-img.no-img {
    width: 100%;
    height: 100%;
    background: #e9ecef;
}
.featured-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.05) 100%);
    color: #fff;
    padding: 12px 16px 8px 16px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.featured-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.featured-card-body {
    padding: 14px 16px 12px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.featured-card-summary {
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 0.5rem;
    min-height: 2.2em;
}

/* Mobile Responsive - Improved */
@media (max-width: 1024px) {
    .featured-news-image {
        height: 110px !important;
    }
    
    .news-image {
        height: 180px !important;
    }
    
    .featured-news .card-title {
        font-size: 0.9rem;
    }
    
    .featured-news .card-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .featured-news-image {
        height: 100px !important;
    }
    
    .news-image {
        height: 160px !important;
    }
    
    .news-list-image {
        height: 120px !important;
    }
    
    .featured-news {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .featured-news .card-title {
        font-size: 0.85rem;
    }
    
    .featured-news .card-text {
        font-size: 0.75rem;
    }
    
    .featured-news .card-footer {
        padding-top: 8px;
    }
    
    .featured-news h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .featured-slider-img {
        height: 160px !important;
    }
    
    .featured-slider-overlay {
        font-size: 0.9rem;
        padding-bottom: 0.7rem !important;
    }
    
    .fixed-slider-img {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
    
    .featured-cards-row {
        gap: 10px;
    }
    
    .featured-card {
        min-width: 85vw;
        max-width: 85vw;
    }
    
    .featured-card-img-wrap {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .featured-news-image {
        height: 90px !important;
    }
    
    .news-image {
        height: 140px !important;
    }
    
    .news-list-image {
        height: 100px !important;
    }
    
    .featured-news {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .featured-news .card-title {
        font-size: 0.8rem;
    }
    
    .featured-news .card-text {
        font-size: 0.7rem;
    }
    
    .featured-news h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .featured-slider-img {
        height: 140px !important;
    }
    
    .fixed-slider-img {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
    
    .featured-card {
        min-width: 90vw;
        max-width: 90vw;
    }
    
    .featured-card-img-wrap {
        height: 100px;
    }
    
    .featured-card-title {
        font-size: 0.95rem;
    }
    
    .featured-card-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .featured-news-image {
        height: 80px !important;
    }
    
    .news-image {
        height: 120px !important;
    }
    
    .news-list-image {
        height: 90px !important;
    }
    
    .featured-news {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .featured-news .card-title {
        font-size: 0.75rem;
    }
    
    .featured-news .card-text {
        font-size: 0.65rem;
    }
    
    .featured-news h2 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .featured-slider-img {
        height: 120px !important;
    }
    
    .fixed-slider-img {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }
    
    .featured-card {
        min-width: 95vw;
        max-width: 95vw;
    }
    
    .featured-card-img-wrap {
        height: 90px;
    }
    
    .featured-card-title {
        font-size: 0.9rem;
    }
    
    .featured-card-summary {
        font-size: 0.8rem;
    }
} 