/* Custom Search Results Page Styles */

#search-results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-result-card {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid transparent;
}

.search-result-card:hover {
    cursor: pointer;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.search-result-image-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
    overflow: hidden;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-header {
    margin-bottom: 12px;
}

.search-result-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    margin: 0 0 8px 0;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
}

.search-result-date {
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
}

.search-result-excerpt {
    font-size: 1.25rem;
    color: #4B5563; /* WCAG AA High Contrast */
    line-height: 1.6;
}

/* Highlight styling */
.search-result-card mark {
    background-color: rgba(255, 235, 59, 0.4);
    font-weight: 700;
    color: #1e293b;
    padding: 0 2px;
    border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-result-card {
        flex-direction: column;
    }
    .search-result-image-wrapper {
        flex: 0 0 200px;
        max-width: 100%;
    }
    .search-result-content {
        padding: 20px;
    }
    .search-result-header h2 {
        font-size: 1.5rem;
    }
    .search-result-excerpt {
        font-size: 1.1rem;
    }
}
