/* Search Results Page Styles */
/* Note: Positioning and layout handled by mobile-menu-fixes.css to avoid conflicts */

/* Main search results container - styling only */
.search-results {
    padding: 20px;
}

.search-header h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: bold;
}

.search-header p {
    color: #666;
    font-size: 1.1em;
}

/* Article grid layout */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px; /* Increased space between header and results */
    clear: both; /* Ensure proper clearing */
}

/* Article card styling */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2e7d32;
}

/* Article image styling */
.article-image {
    position: relative;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Article content styling */
.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 180px;
}

.article-title {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #2e7d32;
}

/* Article meta information */
.article-meta {
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-meta .category {
    background: #2e7d32;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.article-meta .date {
    color: #666;
}

/* Video badge removed from search results */

/* Article excerpt styling */
.article-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}

/* No results section */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.no-results p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Pagination styling */
.pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 6px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination a {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.pagination a:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    transform: translateY(-2px);
}

.pagination .current {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
    font-weight: 600;
}

/* Mobile responsive styles - styling only */
@media (max-width: 768px) {
    .search-results {
        padding: 15px;
    }
    
    .search-header h1 {
        font-size: 1.5em; /* Smaller on mobile */
    }
    
    .article-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 25px; /* Consistent spacing on mobile */
    }
    
    .article-card {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .article-content {
        padding: 15px;
        min-height: 140px;
    }
    
    .article-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .article-meta {
        margin-bottom: 12px;
        font-size: 0.8em;
    }
    
    .article-excerpt {
        font-size: 0.9em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .article-image {
        height: 180px;
    }
    
    .pagination {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .pagination a, .pagination span {
        padding: 10px 14px;
        margin: 0 4px;
        font-size: 0.9em;
    }
}

/* Small mobile devices - styling only */
@media (max-width: 480px) {
    .search-results {
        padding: 10px;
    }
    
    .search-header h1 {
        font-size: 1.3em;
    }
    
    .article-grid {
        gap: 15px;
        grid-template-columns: 1fr;
        margin-top: 20px; /* Consistent spacing for small mobile */
    }
    
    .article-content {
        padding: 12px;
        min-height: 120px;
    }
    
    .article-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .article-meta {
        margin-bottom: 10px;
        font-size: 0.75em;
        gap: 8px;
    }
    
    .article-meta .category {
        padding: 3px 6px;
        font-size: 0.7em;
    }
    
    .article-excerpt {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .article-image {
        height: 160px;
    }
    
    .pagination {
        margin-top: 25px;
        padding: 12px 0;
    }
    
    .pagination a, .pagination span {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 0.85em;
    }
    
    .no-results {
        padding: 40px 20px;
    }
    
    .no-results p {
        font-size: 1em;
    }
}
