.ad-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.ad-archive-page {
    background: #f7f8fa;
    color: #1f2933;
}

.ad-archive-hero {
    background: linear-gradient(135deg, #111827, #263241);
    color: #fff;
    padding: 38px 0 48px;
}

.ad-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 22px;
    color: #d1d5db;
}

.ad-breadcrumb a {
    color: #fbbf24;
    text-decoration: none;
}

.ad-archive-head {
    max-width: 820px;
}

.ad-archive-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 14px;
}

.ad-archive-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.4;
    font-weight: 850;
}

.ad-archive-desc {
    margin-top: 16px;
    color: #e5e7eb;
    font-size: 16px;
    line-height: 2;
}

.ad-archive-desc p {
    margin: 0;
}

.ad-archive-content {
    padding: 38px 0 60px;
}

.ad-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ad-post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ad-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, .35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .09);
}

.ad-post-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef0f3;
    text-decoration: none;
}

.ad-post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.ad-post-card:hover .ad-post-thumb img {
    transform: scale(1.04);
}

.ad-post-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
    color: #9ca3af;
    font-weight: 800;
}

.ad-post-card-body {
    padding: 18px;
}

.ad-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.ad-card-cats a {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fffbeb;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ad-post-card-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.75;
    font-weight: 800;
}

.ad-post-card-title a {
    color: #111827;
    text-decoration: none;
}

.ad-post-card-title a:hover {
    color: #b45309;
}

.ad-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.ad-post-card-excerpt {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.95;
}

.ad-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 11px;
    background: #f3f4f6;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.ad-read-more:hover {
    background: #f59e0b;
    color: #111827;
}

.ad-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.ad-load-more {
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    padding: 13px 24px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    transition: .2s ease;
}

.ad-load-more:hover {
    background: #f59e0b;
    color: #111827;
}

.ad-load-more:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ad-load-status {
    min-height: 24px;
    margin-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.ad-pagination {
    margin-top: 34px;
}

.ad-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ad-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
}

.ad-pagination .page-numbers.current {
    background: #f59e0b;
    color: #111827;
    border-color: #f59e0b;
}

.ad-empty-archive {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 34px;
    text-align: center;
}

.ad-empty-archive h2 {
    margin: 0 0 10px;
    color: #111827;
}

.ad-empty-archive p {
    margin: 0 0 18px;
    color: #4b5563;
}

.ad-empty-archive a {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .ad-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ad-container {
        width: min(100% - 24px, 1180px);
    }

    .ad-archive-hero {
        padding: 30px 0 38px;
    }

    .ad-archive-content {
        padding: 28px 0 44px;
    }

    .ad-post-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ad-post-card-body {
        padding: 16px;
    }

    .ad-post-card-title {
        font-size: 18px;
    }

    .ad-pagination .nav-links {
        gap: 6px;
    }
}
