/* Archive Page Specific Styles */
.archive-body > *:not(.footer):not(.header):not(.overlap-group4) {
    background-color: #ffffff;
    color: #0c2b3c;
}

.archive-header-section {
    background-color: #0c2b3c;
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.archive-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(12, 43, 60, 0.85) 0%,
            rgba(12, 43, 60, 0.75) 50%,
            rgba(12, 43, 60, 0.85) 100%);
    z-index: 1;
}

.archive-header-section .main-content {
    position: relative;
    z-index: 2;
    /* Use the same layout constraints as other main-content sections */
    width: 1280px;
    margin: 0 auto;
    padding: 40px 40px;
}

.latest-post-hero {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    /* Remove any conflicting constraints to let it inherit from main-content */
}

.latest-post-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}



.latest-post-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.latest-post-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    max-width: 700px;
}

.latest-post-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.latest-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: #0c2b3c;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.latest-post-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #0c2b3c;
    background-color: rgba(255, 255, 255, 0.95);
}

.search-icon {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"/></svg>') no-repeat center;
    cursor: pointer;
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
}

.insights-title {
    font-size: 28px;
    font-weight: 500;
    color: #0c2b3c;
    margin-block: 0 40px;
    text-align: center;
}

.search-filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 16px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: #93c5fd;
}

.search-bar::placeholder {
    color: #999;
}

.filters-container {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    margin-top: 0;
}

.filters-container.visible {
    opacity: 1;
    min-height: max-content;
    transform: translateY(0);
    margin-top: 24px;
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.tag-filters-wrapper {
    margin-top: 8px;
}

.filters-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 8px;
}

.tag-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 24px;
    background-color: rgba(33, 148, 210, 0.1);
    color: #2194d2;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.category-btn:hover {
    background-color: rgba(33, 148, 210, 0.2);
    color: #2194d2;
    text-decoration: none;
}

.category-btn.active {
    background-color: #2194d2;
    color: white;
    text-decoration: none;
}

.tag-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 24px;
    background-color: #f1f3f4;
    color: #5f6368;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.tag-btn:hover {
    background-color: #e5e7eb;
    color: #5f6368;
    text-decoration: none;
}

.tag-btn.active {
    background-color: #5f6368;
    color: white;
    text-decoration: none;
}

.featured-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0c2b3c;
    margin-bottom: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.latest-section {
    margin-top: 64px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.featured-card,
.latest-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.featured-card:hover,
.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.featured-card-image,
.latest-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.featured-card-content,
.latest-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .card-title,
.latest-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0c2b3c;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-card .card-description,
.latest-card .card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .card-category,
.latest-card .card-category {
    font-size: 12px;
    color: #2194d2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.card-date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0c2b3c;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}



/* Loading and error states */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #fff;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-weight: 500;
}

/* Skeleton Loaders - No container needed, skeletons are direct children of .featured-grid/.latest-grid */

/* Hero Skeleton Loaders - Match the exact structure and styling of hero section */

/* Hero skeleton container inherits the dark blue background */
/* Ensure archive header section maintains background during all loading states */
/* Hero skeleton container inherits the dark blue background */
.archive-header-section.skeleton-loading,
.archive-header-section:has(.hero-skeleton-meta) {
    background-color: #0c2b3c !important;
}

.hero-skeleton-meta {
    height: 14px;
    width: 40%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 75%);
    background-size: 200% 100%;
    animation: hero-skeleton-pulse 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hero-skeleton-title {
    height: 48px;
    width: 85%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.4) 75%);
    background-size: 200% 100%;
    animation: hero-skeleton-pulse 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 12px;
}

.hero-skeleton-excerpt {
    height: 18px;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 25%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.35) 75%);
    background-size: 200% 100%;
    animation: hero-skeleton-pulse 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hero-skeleton-excerpt:last-of-type {
    width: 70%;
    margin-bottom: 16px;
}

.hero-skeleton-cta {
    height: 48px;
    width: 140px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 25%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.7) 75%);
    background-size: 200% 100%;
    animation: hero-skeleton-pulse 1.5s infinite;
    border-radius: 8px;
}

/* Hero skeleton animation - matches the shimmer effect but for white elements on dark background */
@keyframes hero-skeleton-pulse {
    0% { 
        background-position: 200% 0; 
    }
    100% { 
        background-position: -200% 0; 
    }
}

.post-skeleton {
    height: 340px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    margin-bottom: 16px;
}

.skeleton-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-date {
    height: 12px;
    width: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 6px;
}

.skeleton-title {
    height: 20px;
    width: 85%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 4px;
}

.skeleton-description {
    height: 14px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-description:nth-child(4) {
    width: 70%;
}

.skeleton-meta {
    height: 12px;
    width: 40%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    border-radius: 6px;
    margin-top: auto;
}

@keyframes loading-pulse {
    0% { 
        background-position: 200% 0; 
    }
    100% { 
        background-position: -200% 0; 
    }
}

/* Responsive skeleton loaders */
@media (max-width: 768px) {
    .post-skeleton {
        height: 300px;
    }
    
    .skeleton-image {
        height: 160px;
    }
    
    /* Hero skeleton responsive styles - match mobile hero sizing */
    .hero-skeleton-title {
        height: 32px; /* Mobile title font-size is 32px */
    }
    
    .hero-skeleton-excerpt {
        height: 16px; /* Mobile excerpt font-size is 16px */
    }
}

/* Featured article elements */
.featured-meta {
    margin-top: 16px;
}

.category-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e8f4f8;
    color: #2194d2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

/* Category and Tag styles for cards */
.card-meta-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(33, 148, 210, 0.1);
    color: #2194d2;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f1f3f4;
    color: #5f6368;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-header-section {
        padding: 30px 0;
        min-height: 280px;
    }

    .archive-header-section .main-content {
        padding: 30px 20px;
        /* Override for mobile - maintain same constraints */
        max-width: 1280px;
        margin: 0 auto;
    }

    .latest-post-hero {
        justify-content: center;
        text-align: center;
    }

    .latest-post-content {
        max-width: 100%;
    }

    .latest-post-title {
        font-size: 32px;
        margin-bottom: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .latest-post-excerpt {
        font-size: 16px;
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    .latest-post-cta {
        padding: 14px 24px;
    }

    .category-filters {
        flex-direction: row;
        align-items: center;
    }

    .featured-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More Button Styles */
.load-more-btn {
    display: block;
    width: 200px;
    margin: 32px auto 0;
    padding: 14px 28px;
    background-color: #2194d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.load-more-btn:hover {
    background-color: #1b7cb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 148, 210, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 148, 210, 0.2);
}

.load-more-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled:hover {
    background-color: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for load more buttons */
@media (max-width: 768px) {
    .load-more-btn {
        width: 100%;
        max-width: 300px;
        margin: 24px auto 0;
        padding: 16px 24px;
        font-size: 15px;
    }
} 