/* ==========================================================================
   Archive Page Styles
   Brand Colors: Primary #146eb4, Secondary #ff9900
   ========================================================================== */

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.archive-hero {
    position: relative;
    background-color: var(--dark-blue, #020c1b);
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.archive-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* Simulated globe in center */
.archive-hero__map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Concentric Circles */
.archive-hero__circles {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.archive-hero__circles--left {
    left: 0;
    transform: translate(-50%, -50%);
}

.archive-hero__circles--right {
    right: 0;
    transform: translate(50%, -50%);
}

.archive-hero__circles--center {
    left: 50%;
    transform: translate(-50%, -50%);
}

.archive-hero__circles span {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.archive-hero__circles span:nth-child(1) { width: 150px; height: 150px; }
.archive-hero__circles span:nth-child(2) { width: 300px; height: 300px; }
.archive-hero__circles span:nth-child(3) { width: 500px; height: 500px; }
.archive-hero__circles span:nth-child(4) { width: 800px; height: 800px; }

/* The Red Banner */
.archive-hero__inner {
    position: relative;
    z-index: 2;
    background-color: var(--secondary-color, #fe7c03);
    padding: 8px 80px;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.archive-hero__title {
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.post-archive-page {
    background-color: #f8f9fa;
    padding: 40px 0 80px;
    font-family: var(--font-main, 'Inter', sans-serif);
}

.post-archive-page__shell {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}


/* Grid */
.post-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .post-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Card */
.post-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 993px) {
    .post-card:first-child {
        grid-column: span 2;
        flex-direction: row;
    }
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 110, 180, 0.1);
}

/* Media */
.post-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    background: #e9ecef;
}

@media (min-width: 993px) {
    .post-card:first-child .post-card__media {
        width: 50%;
        aspect-ratio: auto;
        flex-shrink: 0;
    }
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card__media img {
    transform: scale(1.05);
}

/* Body */
.post-card__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 993px) {
    .post-card:first-child .post-card__body {
        width: 50%;
        justify-content: center;
        padding: 40px;
    }
}

/* Category */
.post-card__category {
    align-self: flex-start;
    color: #888888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.post-card__category:hover {
    color: var(--secondary-color, #fe7c03);
}

/* Title */
.post-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.post-card__title a {
    color: var(--dark-blue, #020c1b);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card__title a:hover {
    color: var(--secondary-color, #fe7c03);
}

/* Excerpt */
.post-card__excerpt {
    color: #444444;
    font-size: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.post-card__excerpt p {
    margin: 0;
}

/* Footer (Date & Link) */
.post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}

.post-card__date {
    color: #888888;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Read More Link */
.post-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #0b2c5f);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid var(--primary-color, #0b2c5f);
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.post-card__link:hover {
    background-color: var(--primary-color, #0b2c5f);
    color: #ffffff;
}

/* Pagination */
.post-archive-page__pagination {
    margin-top: 50px;
    text-align: center;
}

.post-archive-page__pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.post-archive-page__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #146eb4;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-archive-page__pagination .page-numbers:hover {
    background: #f0f7fc;
    border-color: #146eb4;
    color: #146eb4;
}

.post-archive-page__pagination .page-numbers.current {
    background: #146eb4;
    border-color: #146eb4;
    color: #ffffff;
}

.post-archive-page__pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #666666;
}

/* Empty State */
.post-archive-page__empty {
    text-align: center;
    padding: 80px 20px;
    color: #666666;
    font-size: 1.1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cccccc;
}

/* Responsive */
@media (max-width: 768px) {
    .post-archive-page {
        padding: 30px 0 60px;
    }

    .post-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .post-card__body {
        padding: 20px;
    }
}
