/**
 * News Archive Page Styles
 * 
 * Following Gateway College architecture:
 * - Uses .cpt-scope namespace for isolation
 * - Works with cpt-isolation.css for Astra overrides
 * - Full-width sections with centered content containers
 * 
 * Brand Colors:
 * - Navy: #262474
 * - Blue: #1b60aa
 * - Teal: #24906b
 * - Green: #6db460
 * 
 * @package Gateway_College
 * @since 1.0.0
 */

/* ==============================================
   CSS Variables
   ============================================== */

.cpt-scope[data-page="news-archive"] {
    --gateway-navy: #262474;
    --gateway-blue: #1b60aa;
    --gateway-teal: #24906b;
    --gateway-green: #6db460;
    --gateway-gray-100: #f8f9fa;
    --gateway-gray-600: #718096;
    --gateway-white: #ffffff;
}

/* ==============================================
   Banner Section
   ============================================== */

.cpt-scope .gw-archive-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background: radial-gradient(ellipse at 80% 80%, rgba(109, 180, 96, 0.4) 0%, transparent 60%), radial-gradient(ellipse at 20% 90%, rgba(36, 144, 107, 0.3) 0%, transparent 50%), linear-gradient(180deg, #1a1f4d 0%, #262474 30%, #1b60aa 100%);
    padding: 80px 0 60px 0;
}

.cpt-scope .gw-archive-banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    color: white;
}

.cpt-scope .gw-archive-banner-title {
    margin: 0 0 2rem 0;
    color: var(--gateway-white, #ffffff);
    opacity: 0;
    animation: fadeUpTeachers 0.6s ease forwards 0.4s;
}

@keyframes fadeUpTeachers {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cpt-scope .gw-archive-banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeUpTeachers 0.6s ease forwards 0.6s;
}

/* ==============================================
   Filter Bar
   ============================================== */

.cpt-scope .gw-filter-bar-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.cpt-scope .gw-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cpt-scope .gw-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.cpt-scope .gw-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gateway-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cpt-scope .gw-filter-select {
    flex: 1;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cpt-scope .gw-filter-select:hover {
    border-color: var(--gateway-teal);
}

.cpt-scope .gw-filter-select:focus {
    outline: none;
    border-color: var(--gateway-blue);
    box-shadow: 0 0 0 3px rgba(27, 96, 170, 0.1);
}

/* ==============================================
   Section Container
   ============================================== */

.cpt-scope .gw-archive-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    padding: 80px 0;
}

/* ==============================================
   Posts Grid
   ============================================== */

.cpt-scope .gw-archive-posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cpt-scope .gw-archive-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--gateway-gray-600);
}

/* ==============================================
   News Card
   ============================================== */

.cpt-scope .gw-archive-news-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 60px 0 60px 60px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.cpt-scope .gw-archive-news-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e0;
}

.cpt-scope .gw-archive-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cpt-scope .gw-archive-news-body {
    padding: 24px;
}

.cpt-scope .gw-archive-news-category {
    color: var(--gateway-teal);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.cpt-scope .gw-archive-news-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cpt-scope .gw-archive-news-excerpt {
    font-size: 14px;
    color: var(--gateway-gray-600);
    line-height: 1.6;
}

/* ==============================================
   Responsive Design
   ============================================== */

@media (max-width: 968px) {
    .cpt-scope .gw-archive-posts-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .cpt-scope .gw-filter-bar {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .cpt-scope .gw-filter-group {
        min-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cpt-scope .gw-filter-select {
        width: 100%;
    }
    
    .cpt-scope .gw-archive-banner-title {
        font-size: 40px;
    }
    
    .cpt-scope .gw-archive-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .cpt-scope .gw-archive-banner {
        min-height: 350px;
    }
    
    .cpt-scope .gw-archive-banner-content {
        padding: 0 20px;
    }
    
    .cpt-scope .gw-archive-banner-title {
        font-size: 32px;
    }
    
    .cpt-scope .gw-archive-banner-subtitle {
        font-size: 16px;
    }
}