/* Category Page Styles (reusing Search Results styles) */

/* Hero Section */
.search-hero-section {
    text-align: center;
    padding: 3rem 1rem 4rem;
    background: linear-gradient(135deg, #e4ecf2 0%, rgba(102,155,188,0.1) 100%);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.search-hero-section .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
    /*background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23669BBC' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");*/
    background: linear-gradient(135deg, #e4ecf2 0%, rgba(102,155,188,0.1) 100%)
}

.search-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #003049;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.search-title:after {
    content: "";
    position: absolute;
    width: 40%;
    height: 3px;
    background-color: #780000;
    bottom: -10px;
    left: 30%;
    border-radius: 2px;
}

.search-query {
    color: #780000;
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #003049;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
}

/* Results Section */
.search-results-section {
    margin-bottom: 4rem;
}

.search-results-header {
    margin-bottom: 1.5rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.search-result-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.search-result-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.search-result-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.search-result-item:hover .search-result-image::after {
    background: rgba(0,0,0,0.1);
}

.search-result-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-result-title {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.search-result-title a {
    color: #003049;
    text-decoration: none;
    transition: color 0.2s;
}

.search-result-title a:hover {
    color: #C1121F;
}

.search-result-excerpt {
    color: #003049;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    flex-grow: 1;
}

.search-result-meta {
    font-size: 0.85rem;
    color: #669BBC;
    font-family: 'Open Sans', sans-serif;
    margin-top: auto;
}

.search-result-type {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #e4ecf2;
    border-radius: 20px;
    font-weight: 600;
}

.search-result-type i {
    margin-right: 0.4rem;
    color: #780000;
}

/* Pagination */
.search-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    background: #e4ecf2;
    color: #003049;
    text-decoration: none;
    transition: all 0.2s;
}

.search-pagination .page-numbers.current {
    background: #780000;
    color: #FFFFFF;
}

.search-pagination .page-numbers:hover:not(.current) {
    background: #669BBC;
    color: #FFFFFF;
}

.search-pagination .prev,
.search-pagination .next {
    padding: 0.5rem 1.25rem;
}

.search-pagination i {
    font-size: 0.8rem;
}

/* No Results */
.no-results {
    background: #e4ecf2;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-content p {
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    color: #003049;
    line-height: 1.7;
}

.search-suggestions {
    margin-top: 2rem;
}

.search-suggestions h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #003049;
}

.suggestion-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.suggestion-links li {
    margin: 0.5rem;
}

.suggestion-links a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #FFFFFF;
    border-radius: 20px;
    color: #003049;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

.suggestion-links a:hover {
    background: #C1121F;
    color: #FFFFFF;
}

/* Explore More Section */
.search-explore-section {
    margin-bottom: 4rem;
    position: relative;
}

.search-explore-section::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.03), rgba(0,0,0,0.08), rgba(0,0,0,0.03));
}

/* Media Queries */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .search-hero-section {
        padding: 2rem 1rem 3rem;
    }
    
    .no-results {
        padding: 1.5rem;
    }
    
    .suggestion-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .suggestion-links li {
        margin: 0.25rem;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-image {
        width: 100%;
        height: 130px;
    }
    
    .search-pagination .page-numbers {
        padding: 0.4rem 0.7rem;
        margin: 0 0.1rem;
        font-size: 0.9rem;
    }
}