/* ==========================================================================
   CUSTOM BLOG ARCHIVE STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&family=Poppins:wght@400&display=swap');

.cba-wrapper {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    background: #ffffff;
}

.cba-wrapper *, .cba-wrapper *::before, .cba-wrapper *::after {
    box-sizing: border-box;
}

.cba-wrapper h1, .cba-wrapper h2, .cba-wrapper h3, .cba-wrapper h4, .cba-wrapper h5 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    text-transform: uppercase;
}

.cba-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Featured Section --- */
.cba-featured-section {
    margin-bottom: 60px;
}

.cba-featured-post {
    display: flex;
    gap: 40px;
    background: #fff;
    align-items: stretch;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.cba-slide {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.cba-featured-image {
    flex: 4;
    position: relative;
    overflow: hidden;
}

.cba-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.cba-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 3px;
    text-transform: uppercase;
}

.cba-featured-content {
    flex: 6;
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cba-featured-meta {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    color: #dc2626;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}

.cba-featured-subheading {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    color: #990000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}

.cba-featured-subheading::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #990000;
}

.cba-featured-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
}

.cba-featured-content h2 a {
    color: #990000;
    text-decoration: none !important;
    word-break: break-word;
    hyphens: auto;
}

.cba-excerpt {
    font-size: 15px;
    line-height: normal;
    margin-bottom: 20px;
    color: #4b5563;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}

.cba-featured-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.cba-featured-date-time {
    font-size: 13px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cba-featured-date-time i, .cba-featured-date-time svg {
    color: #cc0000;
}

.cba-read-more-btn {
    display: inline-flex;
    align-items: center;
    background: #cc0000;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.cba-read-more-btn:hover {
    background: #990000;
    transform: translateX(3px);
}

/* --- Section Headers --- */
.cba-insights-header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

.cba-small-line {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cba-small-line::before, .cba-small-line::after {
    content: "";
    height: 1px;
    width: 30px;
    background-color: #cc0000;
}

.cba-insights-title {
    font-size: 28px;
    color: #cc0000;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.cba-insights-sub {
    font-size: 15px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Posts Grid --- */
.cba-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.cba-grid-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cba-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.cba-grid-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cba-grid-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cba-grid-content h4 {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cba-grid-content h4 a {
    color: #cc0000;
    text-decoration: none !important;
}

.cba-grid-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #6b7280;
    flex: 1;
    text-align: justify;
}

.cba-grid-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.cba-meta {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cba-cat-name {
    color: #dc2626;
}

.cba-date {
    color: #000000;
}

.cba-grid-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #cc0000 !important;
    text-transform: uppercase;
    align-self: flex-end;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

/* --- Banner Section --- */
.cba-guidance-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    margin: 60px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cba-banner-title {
    font-size: 24px;
    color: #cc0000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cba-banner-sub {
    font-size: 15px;
    color: #4b5563;
    margin: 0;
}

.cba-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #cc0000;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none !important;
}

.cba-banner-btn:hover {
    background: #990000;
}

/* --- Explore Categories Row --- */
.cba-explore-categories {
    margin-top: 50px;
    margin-bottom: 50px;
}

.cba-categories-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cba-cat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #fff;
    min-width: 180px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.cba-cat-box:hover {
    border-color: #cc0000;
    box-shadow: 0 5px 15px rgba(204,0,0,0.08);
    transform: translateY(-3px);
}

.cba-cat-icon {
    font-size: 28px;
    color: #cc0000;
}

.cba-cat-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}


/* --- Pagination --- */
.cba-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cba-pagination a, .cba-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #4b5563;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cba-pagination span.current {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.cba-pagination a:hover {
    background: #f3f4f6;
}

.cba-pagination a.prev, .cba-pagination a.next {
    width: auto;
    border-radius: 4px;
    padding: 0 15px;
}

@media (max-width: 1024px) {
    .cba-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cba-featured-post {
        flex-direction: column;
        gap: 0;
        height: auto !important;
    }
    
    .cba-featured-image {
        width: 100%;
        height: auto;
        padding-bottom: 0 !important;
        flex: none;
    }
    
    .cba-featured-image img {
        position: relative !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .cba-featured-content {
        padding: 20px;
        width: 100%;
        flex: none;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .cba-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cba-guidance-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cba-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cba-featured-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cba-categories-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cba-cat-box {
        min-width: 0;
        width: 100%;
        padding: 15px 10px;
    }
    
    .cba-cat-title {
        font-size: 13px;
        text-align: center;
    }
    
    .cba-cat-icon {
        font-size: 24px;
    }
}

/* --- Slider Styles --- */
.cba-featured-slider-wrap {
    position: relative;
    width: 100%;
}
.cba-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #cc0000;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.cba-slider-nav:hover {
    background: #cc0000;
    color: #fff;
}
.cba-slider-nav.cba-prev {
    left: -40px;
}
.cba-slider-nav.cba-next {
    right: -40px;
}
@media (max-width: 768px) {
    .cba-slider-nav {
        display: none;
    }
}
