/* Hero Banner */
.bbc-hero {
    background: linear-gradient(135deg, #1f1f1f 0%, #3a3a3a 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 300;
    opacity: 0.9;
}

/* Carousel - BBC Style */
.bbc-carousel-section {
    margin-bottom: 40px;
}

.bbc-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
    height: 100%;
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 300px;
    }
}

.carousel-item {
    position: relative;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.95) 100%);
    padding: 60px 40px 40px;
    color: white;
}

@media (max-width: 768px) {
    .carousel-content {
        padding: 40px 20px 20px;
    }
}

.carousel-label {
    display: inline-block;
    background: #c41e3a;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.carousel-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 80%;
}

@media (max-width: 768px) {
    .carousel-title {
        max-width: 100%;
    }
}

.carousel-btn {
    display: inline-block;
    background: #c41e3a;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

    .carousel-btn:hover {
        background: #a01830;
        color: white;
    }

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.7;
    width: 50px;
    background: rgba(0, 0, 0, 0.3);
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }

.carousel-indicators [data-bs-slide-to] {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: #c41e3a;
}

/* Categories Section - BBC Grid */
.bbc-categories {
    background: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.category-block {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

    .category-block:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 3px solid #c41e3a;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #1f1f1f;
}

.category-articles {
    display: flex;
    flex-direction: column;
}

.category-article {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.2s ease;
}

    .category-article:last-child {
        border-bottom: none;
    }

    .category-article:hover {
        background: #fafafa;
    }

.cat-article-img {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e5e5;
}

    .cat-article-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cat-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article:hover .cat-article-title {
    color: #c41e3a;
}

.cat-article-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-article-link {
    font-size: 0.85rem;
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: color 0.2s ease;
}

    .cat-article-link:hover {
        color: #a01830;
        text-decoration: underline;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-article {
        padding: 12px;
    }

    .cat-article-img {
        width: 80px;
        height: 60px;
        margin-right: 10px;
    }

    .cat-article-title {
        font-size: 0.9rem;
    }

    .cat-article-excerpt {
        display: none;
    }
}

/* Category Page Styles - Removed */

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bbc-categories {
        background: #2a2a2a;
    }

    .category-block {
        background: #1f1f1f;
    }

    .category-title {
        color: #ffffff;
    }

    .category-article:hover {
        background: #2a2a2a;
    }

    .cat-article-title {
        color: #ffffff;
    }

    .cat-article-excerpt {
        color: #b0b0b0;
    }

    .cat-article-img {
        background: #3a3a3a;
    }
}
