* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.containerx {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 50px 0 30px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-weight: 300;
}

.description {
    font-size: 1.0rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 200;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    background: transparent;
    color: #34495e;
}

.search-btn {
    background: #3498db;
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.search-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #34495e;
}

.filter-btn:hover, .filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.result-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
}

.card-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.card-category {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.card-date {
    color: #95a5a6;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-results h2 {
    font-weight: 300;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.no-results p {
    color: #95a5a6;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #3498db;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover, .pagination-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .search-input {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .search-btn {
        width: 50px;
        height: 50px;
    }
}