/**
 * Archive Page Stylesheet
 * 100% Responsive, Optimized for Grid Display and Filtering
 */

.archive-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    min-height: 70vh;
}

/* Header & Search Filter Area */
.archive-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows wrapping on mobile */
    gap: 20px;
}

.archive-page-title {
    font-size: 2rem;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 3px solid #0d47a1; /* Shorthand border */
    margin: 0;
}

/* Search Form Styles */
.date-search-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.date-search-form label {
    font-weight: 600;
    color: #333;
}

.search-input-date {
    padding: 8px 12px;
    border: 1px solid #cccccc; /* Shorthand border */
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-date:focus {
    border-color: #0d47a1;
}

.btn-search {
    background: #0d47a1;
    color: #ffffff;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #002171;
}

.btn-reset {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 10px;
}

.btn-reset:hover {
    text-decoration: underline;
}

/* Archive Grid & Cards */
.archive-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.archive-item-card {
    background: #ffffff;
    border: 1px solid #eeeeee; /* Shorthand border */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.archive-item-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #eeeeee; /* Shorthand border */
}

.archive-item-info {
    padding: 20px 15px;
    text-align: center;
    background: #fafafa;
    flex-grow: 1;
}

.archive-item-info h3 {
    font-size: 1.15rem;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.4;
}

.archive-item-info span {
    display: inline-block;
    font-size: 0.85rem;
    color: #666666;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .archive-header-area {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .archive-page-title {
        display: inline-block;
        margin: 0 auto;
    }

    .date-search-form form {
        flex-direction: column;
        width: 100%;
    }

    .search-input-date, .btn-search {
        width: 100%;
    }

    .archive-item-card img {
        height: 320px; /* Slightly smaller images on mobile */
    }
}