/* --- Archive Page Styling --- */

/* Hero Section */
.archive-hero {
    background: linear-gradient(135deg, rgba(142, 5, 21, 0.05) 0%, rgba(7, 51, 114, 0.05) 100%);
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-title {
    color: #8E0515; /* CSB Red */
    font-weight: 800;
    letter-spacing: -0.5px;
}

.archive-date-btn {
    background: linear-gradient(90deg, #8E0515, #a30618) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.archive-date-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 5, 21, 0.3) !important;
}

/* Date Picker Reset & Interactivity */
#archiveDate::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Grid Layout */
.archive-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .archive-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* News Cards */
.archive-news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

/* Image Hover Zoom Effects */
.archive-img-wrapper img {
    transition: transform 0.5s ease;
}

.archive-news-card:hover .archive-img-wrapper img {
    transform: scale(1.08);
}

/* Category Badge Enhancement */
.archive-category-badge {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    letter-spacing: 0.5px;
}

/* Title Styling */
.archive-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
}

.hover-primary:hover {
    color: #8E0515 !important;
}

/* Utility Class for Truncating Text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Additional Utilities */
.transition {
    transition: all 0.3s ease;
}

.fs-7 {
    font-size: 0.85rem;
}
