.adverts-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(52, 152, 219, 0.85)), url('../images/adverts/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.advert-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #f8f9fa;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-btn:hover, .filter-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.adverts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.advert-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.advert-card:hover {
    transform: translateY(-5px);
}

.advert-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advert-card:hover .advert-image {
    transform: scale(1.05);
}

.advert-content {
    padding: 1.5rem;
}

.advert-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.advert-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.advert-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.advert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.advert-date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.featured-advert {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-advert:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #2c3e50;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.post-advert {
    text-align: center;
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.post-advert h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 2rem;
}

.post-advert p {
    margin-bottom: 1.5rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.post-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .featured-advert {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .advert-filters {
        justify-content: center;
    }

    .post-advert {
        padding: 2rem 1rem;
    }
}
