﻿body {
}

.archive-article {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    width: 67%;
    margin: 0 auto;
}

.article-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.article-image {
    flex: 0 0 50%;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img,
.default-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.article-image a {
    display: block;
    width: 100%;
}

.default-image {
    width: 100%;
    height: 320px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.article-content {
    flex: 0 0 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.article-content .post-meta {
    order: -2;
    color: var(--bs-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.article-content .post-meta a {
    color: var(--bs-secondary);
    text-decoration: none;
}

.article-content .post-meta a:hover {
    text-decoration: underline;
}

.article-content h3 {
    order: -1;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--bs-primary);
    font-size: 1.5rem;
    line-height: 1.3;
}

.article-content p:not(.post-meta):last-of-type {
    flex-grow: 1;
}

.read-more-link {
    text-decoration: none;
    color: var(--bs-primary);
    align-self: flex-start;
    margin-top: auto;
}

.read-more-link strong {
    font-weight: 600;
}

.read-more-link:hover strong {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .archive-article {
        width: 100%;
    }

    .article-wrapper {
        flex-direction: column;
    }

    .article-image,
    .article-content {
        flex: 0 0 auto;
    }

    .article-image {
        max-height: 320px;
        padding: 20px;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }
}

/* Archive Search Bar Styles */
.archive-search-form {
    margin-bottom: 2rem;
}

.archive-search-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.archive-search-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 1rem;
}

.archive-search-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(127, 193, 52, 0.25);
}

.archive-search-form .btn-primary {
    border: none;
    background-color: var(--bs-primary);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
}

.archive-search-form .btn-primary:hover {
    background-color: var(--bs-primary);
    opacity: 0.9;
}

.archive-search-results {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--bs-primary);
}

.archive-search-results p {
    margin: 0;
    color: #666;
}