/* Article Cards */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-group-card {
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-title a {
    color: #212529;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #007bff;
}

.related-articles {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.related-article-item {
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 2px solid #dee2e6;
}

.related-article-item:last-child {
    margin-bottom: 0;
}

/* Categories */
.categories-card .list-group-item {
    transition: background-color 0.2s ease;
}

.categories-card .list-group-item:hover {
    background-color: #f8f9fa;
}

.categories-card .list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* Article Detail Page */
.article-detail {
    line-height: 1.6;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 0.9rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.article-excerpt {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 8px;
}

.article-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
    padding: 20px;
    border-radius: 8px;
}

.key-points-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.key-points-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}

.external-link-section {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.group-articles .list-group-item {
    transition: background-color 0.2s ease;
}

.group-articles .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Related Articles Sidebar */
.related-articles .list-group-item {
    border: none;
    padding: 15px;
    transition: background-color 0.2s ease;
}

.related-articles .list-group-item:hover {
    background-color: #f8f9fa;
}

.related-articles h6 {
    color: #007bff;
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .related-article-item {
        font-size: 0.85rem;
    }
}

/* Badge styling for outline badges */
.badge.bg-outline-primary {
    color: #007bff;
    background-color: transparent;
    border: 1px solid #007bff;
}

.badge.bg-outline-secondary {
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #6c757d;
}

/* Trending hashtags styling */
.trending-card {
    margin-top: 0;
}

.hashtags-list .list-group-item {
    transition: background-color 0.2s ease;
}

.hashtags-list .list-group-item:hover {
    background-color: #f8f9fa;
}

/* ===== MOBILE-FIRST REDESIGN ===== */

/* Mobile-First Categories */
.categories-mobile {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.categories-mobile::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.category-btn-mobile {
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Hero Article Card */
.hero-article-card {
    border: none;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-article-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.875rem;
    padding: 8px 12px;
}

.hero-card-body {
    padding: 25px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-title a:hover {
    color: #007bff !important;
}

.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-meta {
    font-size: 0.9rem;
}

.hero-related {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

/* Featured Article Cards (2-5) */
.featured-article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.featured-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article-card:hover .featured-image {
    transform: scale(1.03);
}

.featured-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

.featured-card-body {
    padding: 20px;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.featured-title a:hover {
    color: #007bff !important;
}

.featured-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

.featured-footer {
    padding: 12px 20px;
    border-top: 1px solid #f8f9fa;
}

/* Regular Article Cards (6+) */
.regular-article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.regular-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.regular-image-container {
    height: 140px;
    overflow: hidden;
}

.regular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regular-article-card:hover .regular-image {
    transform: scale(1.02);
}

.regular-card-body {
    padding: 15px;
}

.regular-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.regular-title a:hover {
    color: #007bff !important;
}

.regular-excerpt {
    line-height: 1.4;
    margin-bottom: 10px;
}

.regular-footer {
    padding: 10px 15px;
    border-top: 1px solid #f8f9fa;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-card-body {
        padding: 20px;
    }

    .hero-image-container {
        height: 200px;
    }

    .featured-image-container {
        height: 160px;
    }

    .regular-image-container {
        height: 120px;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-image-container {
        height: 300px;
    }
}

/* News Grid Cards (for news list page) */
.news-grid-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.news-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.news-grid-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid-card:hover .news-grid-image {
    transform: scale(1.03);
}

.news-grid-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

.news-grid-body {
    padding: 20px;
}

.news-grid-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-grid-title a:hover {
    color: #007bff !important;
}

.news-grid-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-grid-footer {
    padding: 12px 20px;
    border-top: 1px solid #f8f9fa;
    font-size: 0.85rem;
}

/* Responsive adjustments for news grid */
@media (max-width: 768px) {
    .news-grid-image-container {
        height: 160px;
    }

    .news-grid-body {
        padding: 16px;
    }

    .news-grid-title {
        font-size: 1rem;
    }
}