/* Articles Page Specific Styles - Mobile First */
.articles-index-page {
    background: #f5f5f5;
}

/* Page Header */
.page-header {
    position: relative;
    background: url("../../media/images/engineer-working-with-airplane.jpg") center/cover no-repeat;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.9));
}

.page-header h1 {
    position: relative;
    z-index: 2;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
}

.page-header p {
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Section */
.articles-section {
    padding: 60px 20px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.featured-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eaeaea;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 30px 25px;
}

.featured-badge {
    display: inline-block;
    background: #FF8C00;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.featured-category {
    color: #FF8C00;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.featured-title {
    font-size: 28px;
    color: #003366;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.featured-title:hover {
    text-decoration: underline;
}

.featured-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.meta-divider {
    color: #ddd;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF8C00;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
    text-decoration: underline;
}

/* Filters Section */
.filters-section {
    margin-bottom: 40px;
}

.filters-toggle-btn {
    width: 100%;
    padding: 16px 20px;
    background: white;
    color: #003366;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.filters-toggle-btn:hover {
    border-color: #FF8C00;
    background: #fff9f0;
}

.filter-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.filter-icon.rotated {
    transform: rotate(180deg);
}

.filter-count {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    margin-left: auto;
}

.filter-count.active {
    color: #FF8C00;
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
    border-radius: 0 0 10px 10px;
}

.filters-content.show {
    max-height: 500px;
    border: 2px solid #e0e0e0;
    border-top: none;
    padding: 20px;
    margin-top: -10px;
}

.filter-row {
    margin-bottom: 20px;
}

.filter-row:last-of-type {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    background: white;
    color: #003366;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #FF8C00;
    color: #FF8C00;
}

.filter-btn.active {
    background: #003366;
    color: white;
    border-color: #003366;
}

.filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.clear-filters-btn {
    padding: 10px 20px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #dc3545;
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 28px;
    color: #003366;
    font-weight: 700;
    margin: 0;
}

/* Article Meta Top (Category + Region) */
.article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta-top .article-card-category {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1;
    padding: 5px 0;
}

.article-region {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fd;
    color: #0066cc;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

/* Home Page Featured Articles CSS */
.home-featured-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #eaeaea;
}

.home-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 20px;
}

.article-card-category {
    color: #FF8C00;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-card-title {
    font-size: 18px;
    color: #003366;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.article-card-title:hover {
    text-decoration: underline;
}

.article-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    color: #999;
    font-size: 13px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Tablet and up (≥641px - 768px) */
@media (min-width: 641px) {
    .page-header {
        padding: 60px 20px;
    }

    .page-header h1 {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 18px;
    }

    .articles-section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .featured-article {
    display: grid;
    grid-template-columns: 1fr;
    }

    .featured-image {
        height: 350px;
    }

    .featured-content {
        padding: 40px 35px;
    }

    .featured-title {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .featured-excerpt {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .home-featured-image {
        height: 200px;
    }
}

/* Large desktop (≥1025px - ∞) */
@media (min-width: 1025px) {
    .featured-article {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }

    .featured-image {
        height: 100%;
        min-height: 400px;
    }

    .featured-content {
        padding: 50px 45px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .featured-title {
        font-size: 42px;
    }

    .featured-excerpt {
        font-size: 19px;
    }

    .featured-meta {
        font-size: 14px;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .home-featured-image {
        height: 220px;
    }

    .home-featured-image img {
        transition: transform 0.2s ease;
    }

    .article-card:hover img {
        transform: scale(1.05);
    }
}