* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #06070a;
    color: #f3f4f6;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Main two-column archive layout wrapper */
.archive-page-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    align-items: flex-start;
}

/* 1. Left fixed preview column (40% width on desktop) */
.preview-column {
    width: 40%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
    will-change: transform;
}

.preview-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Stacked preview images */
.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    filter: brightness(0.85) contrast(1.05);
    will-change: opacity, transform;
}

/* Active preview image styling */
.preview-img.active {
    opacity: 0.55;
    transform: scale(1);
}

/* Dark vignette overlay over preview column */
.preview-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(6, 7, 10, 0.1) 0%,
        rgba(6, 7, 10, 0.85) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* 2. Right scrollable list column (60% width on desktop) */
.list-column {
    width: 60%;
    margin-left: 40%;
    padding: 140px 10% 80px 8%;
    position: relative;
    z-index: 2;
}

/* Archive header section */
.archive-header {
    margin-bottom: 50px;
    max-width: 600px;
    will-change: transform, opacity;
}

.archive-subtitle {
    font-size: 0.72rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    color: #3b82f6;
    display: block;
    margin-bottom: 20px;
}

.archive-main-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.archive-intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #9ca3af;
}

/* Category filter navigation bar */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 24px;
    will-change: transform, opacity;
}

.filter-btn {
    background: none;
    border: none;
    color: #4b5563;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
}

/* Archive articles list container */
.archive-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Single article row */
.archive-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 45px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    will-change: transform, opacity;
}

.archive-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Item meta information */
.item-meta {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 0.72rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #4b5563;
    transition: color 0.4s ease;
}

.item-date {
    font-family: monospace;
}

.item-category {
    color: #3b82f6;
    opacity: 0.7;
}

/* Item title */
.item-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
    transition:
        color 0.4s ease,
        transform 0.4s ease;
}

/* Item excerpt */
.item-excerpt {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #9ca3af;
    max-width: 650px;
    transition: color 0.4s ease;
}

/* Item footer */
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #4b5563;
    margin-top: 10px;
    transition: color 0.4s ease;
}

.read-time {
    font-family: monospace;
}

.read-btn {
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

/* Article row hover effects */
.archive-item:hover .item-title {
    color: #ffffff;
    transform: translateX(10px);
}

.archive-item:hover .item-excerpt {
    color: #d1d5db;
}

.archive-item:hover .item-meta {
    color: #9ca3af;
}

.archive-item:hover .item-footer {
    color: #ffffff;
}

.archive-item:hover .read-btn {
    transform: translateX(6px);
}

/* WordPress paginate_links dynamic pagination styles */
.archive-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 40px;
    margin-top: 40px;
    width: 100%;
}

.archive-pagination .page-numbers {
    text-decoration: none;
    font-size: 0.85rem;
    font-family: monospace;
    color: #4b5563;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.archive-pagination .prev.page-numbers,
.archive-pagination .next.page-numbers {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
}

.archive-pagination .prev.page-numbers:hover,
.archive-pagination .next.page-numbers:hover {
    color: #ffffff;
}

/* Full width main footer overlapping frozen preview column */
body.blog .main-footer,
body.archive .main-footer,
.main-footer {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 80px 0 !important;
    position: relative;
    z-index: 20;
    background-color: #040507;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.blog .footer-top-row,
body.blog .footer-col,
body.blog .footer-bottom-row,
body.blog .footer-divider,
body.archive .footer-top-row,
body.archive .footer-col,
body.archive .footer-bottom-row,
body.archive .footer-divider {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .preview-column {
        width: 100%;
        height: 40vh;
        position: relative;
        z-index: 1;
    }

    .list-column {
        width: 100%;
        margin-left: 0;
        padding: 80px 8% 40px 8%;
    }

    body.blog .main-footer,
    body.archive .main-footer {
        padding: 50px 0 !important;
    }
}

/* Remove underline from category filter anchor buttons */
.filter-btn {
    text-decoration: none !important;
}

/* Category archive parent link breadcrumb styling */
.archive-parent-link {
    text-decoration: none;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.archive-parent-link:hover {
    color: #ffffff;
}
