body {
    background: #f5f5f5;
}

.page-header {
    background: linear-gradient(135deg, #7F0312, #a00418);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.ad-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.ad-image-slider {
    height: 250px;
    overflow: hidden;
    background: #e9ecef;
    position: relative;
}

.ad-image-slider .slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-image-slider .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.ad-image-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.ad-image-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-image-slider .image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
}

.ad-image-slider .slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ad-image-slider .slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.ad-image-slider .slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.ad-image-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
    font-size: 18px;
}

.ad-image-slider .slider-nav:hover {
    background: rgba(0,0,0,0.8);
}

.ad-image-slider .slider-nav.prev {
    left: 10px;
}

.ad-image-slider .slider-nav.next {
    right: 10px;
}

.ad-image-slider .slider-nav.hidden {
    display: none;
}

.ad-content {
    padding: 20px;
}

.ad-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ad-title a:hover {
    color: #7F0312;
    text-decoration: underline;
}

.ad-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.ad-meta i {
    width: 16px;
    margin-right: 5px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-Active {
    background: #d4edda;
    color: #155724;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #666;
}

.url-preview {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.url-preview i {
    margin-right: 5px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #dee2e6;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination .page-link:hover {
    background: #7F0312;
    color: white;
    border-color: #7F0312;
}

.pagination .page-item.active .page-link {
    background: #7F0312;
    color: white;
    border-color: #7F0312;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-link i {
    font-size: 14px;
}

.pagination-info {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

.btn-call {
    background: #28a745;
    color: white;
}

.btn-call:hover {
    background: #218838;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;

    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #fff;

    padding: 6px 12px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

@media (max-width: 768px) {
    .ad-image-slider {
        height: 180px;
    }

    .ad-title{
        font-size: 16px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ad-description{
        font-size: 14px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px;
    }

    .ad-image-slider .slider-nav{
        padding: 2px 6px;
    }

    .btn-call {
        font-size: 14px;
        padding: 4px 6px!important;
    }
    .btn-whatsapp {
        font-size: 14px;
        padding: 4px 6px!important;
    }

    .ad-content {
        padding: 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }

    .ad-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        margin-bottom: 15px;
        font-size: 12px;
        color: #888;
    }
    .ad-meta i{
        width: 5px;
    }
}