/* Articles Section */
.articles-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.articles-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.articles-section .title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.articles-section .title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #B3343A, #9C1F24);
    border-radius: 2px;
}

.articles-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-col {
    display: flex;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(179, 52, 58, 0.2);
}

.article-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image-link {
    display: block;
    height: 100%;
}

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

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

.article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.article-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.article-title-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title-link:hover {
    color: #B3343A;
    text-decoration: none;
}

.article-excerpt {
    color: #4a4a4a;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex-grow: 1;
    font-size: 16px;
}

.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 15px;
}

.read-more-link {
    color: #B3343A;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.read-more-link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: #9C1F24;
    text-decoration: none;
}

.read-more-link:hover::after {
    transform: translateX(5px);
}

.article-admin-actions {
    display: flex;
    gap: 12px;
}

.article-admin-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-admin-actions .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.article-admin-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.article-admin-actions .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.article-admin-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

/* View All Container */
.view-all-container {
    width: 100%;
    margin-top: 50px;
}

.view-all-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(90deg, #B3343A 0%, #9C1F24 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.5;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(179, 52, 58, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.view-all-btn:hover {
    background: linear-gradient(90deg, #9C1F24, #8A1A1F);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(179, 52, 58, 0.5);
    color: white;
    text-decoration: none;
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn:focus {
    outline: 3px solid rgba(179, 52, 58, 0.3);
    outline-offset: 2px;
}

.view-all-btn.btn-success {
    background: linear-gradient(90deg, #28a745, #218838);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.view-all-btn.btn-success:hover {
    background: linear-gradient(90deg, #218838, #1e7e34);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.view-all-btn.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.view-all-btn.btn-success:hover::before {
    left: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .articles-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .view-all-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .view-all-btn {
        width: 100%;
        max-width: 350px;
        text-align: center;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .articles-section .title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 40px 0;
    }
    
    .articles-section .title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-image-container {
        height: 180px;
    }
    
    .view-all-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}