/* Articles Page Styles */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    margin-bottom: 0;
    color: white;
    text-align: center;
}

.article-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    color: white;
    text-align: center;
}

.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    background: white;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.home-article-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    overflow: hidden;
}

.home-article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(227, 24, 55, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.home-article-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.88);
}

.home-article-card .ratio {
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    position: relative;
}

.home-article-card .ratio::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.home-article-card:hover .ratio::after {
    opacity: 1;
}

.home-article-card img {
    border-radius: 6px 6px 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-red, #E31837);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-read-more i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.btn-read-more:hover {
    color: var(--brand-red-dark, #B81430);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

.btn-view-all-articles {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: transparent;
    border: none;
    color: var(--brand-red, #E31837);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 4px;
}

.btn-view-all-articles i {
    transition: transform 0.3s ease;
}

.btn-view-all-articles:hover {
    color: var(--brand-red-dark, #B81430);
    transform: translateX(5px);
}

.btn-view-all-articles:hover i {
    transform: translateX(4px);
}

.article-card .ratio {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.article-card img {
    transition: transform 0.5s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.2s;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Detail */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.share-buttons .btn:hover {
    transform: translateY(-3px);
}

/* ============================
   Mobile Responsive Styles
   ============================ */

/* Tablet and below */
@media (max-width: 991px) {
    .page-hero,
    .article-hero {
        padding: 5rem 0;
        min-height: 0 !important;
    }
    
    .page-hero h1,
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero .lead,
    .article-hero .lead {
        font-size: 1rem;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .page-hero,
    .article-hero {
        padding: 4rem 0;
    }
    
    .page-hero h1,
    .article-hero h1 {
        font-size: 1.75rem;
    }
    
    .page-hero .lead,
    .article-hero .lead {
        font-size: 0.95rem;
        max-width: 100% !important;
        padding: 0 1rem;
    }
    
    /* Article Cards */
    .article-card .card-body {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }
    
    .article-read-more {
        font-size: 0.9rem;
    }
    
    /* Home Article Cards */
    .home-article-card .card-body {
        padding: 1rem;
    }
    
    .home-article-card .card-title {
        font-size: 1rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    
    /* Article Detail Content */
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }
    
    /* Share Buttons */
    .share-buttons .btn {
        width: 36px;
        height: 36px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .page-hero,
    .article-hero {
        padding: 3rem 0;
    }
    
    .page-hero h1,
    .article-hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero .lead,
    .article-hero .lead {
        font-size: 0.9rem;
    }
    
    .article-card {
        border-radius: 8px;
    }
    
    .article-card .ratio {
        border-radius: 8px 8px 0 0;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content img {
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    /* Section Padding */
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}