/* ===== Article Styles ===== */

/* Article Hero Section */
.article-hero {
    display: block;
    overflow: hidden;
}

/* Object Fit Utility */
.object-fit-cover {
    object-fit: cover;
}

/* ===== Article Navigation (Previous/Next) ===== */
.article-navigation {
    margin-top: 2rem;
}

.article-nav-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.article-nav-link:hover {
    color: #0d6efd !important;
}

.article-nav-link:hover strong {
    color: #0d6efd;
}

.article-nav-link:hover i {
    transform: translateX(-4px);
}

.article-nav-link:hover i.fa-chevron-right {
    transform: translateX(4px);
}

.article-nav-link i {
    transition: transform 0.3s ease;
}

/* ===== Article Grid View (Index) ===== */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-grid {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-card-grid:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.article-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.article-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-grid:hover .article-overlay {
    opacity: 1;
}

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

/* ===== Article List View (Index) ===== */
.article-list-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.article-list-card {
    display: block;
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.article-list-card:hover {
    background: #f8f9fa;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    transform: translateY(-4px);
}

.article-thumbnail-large {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-list-card:hover .article-thumbnail-large {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.article-list-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-list-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
}

/* ===== Toggle View Buttons ===== */
.view-toggle-btn {
    border-color: #dee2e6;
    color: #6c757d;
}

.view-toggle-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.view-toggle-btn:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

/* ===== Article View Transitions ===== */
.article-view {
    transition: opacity 0.3s ease;
}

.article-view.d-none {
    display: none !important;
}

/* ===== Sticky Sidebar Responsive ===== */
@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
    }
}

/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
    .article-image-container {
        height: 220px;
    }

    .article-list-card {
        padding: 1.5rem;
    }

    .article-list-card h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .article-list-card p {
        font-size: 0.85rem;
    }

    .article-navigation {
        margin-top: 1.5rem;
    }

    .article-nav-link {
        font-size: 0.9rem;
    }

    .article-nav-link strong {
        display: block;
    }
}
