/* ============================================
   ARTICLES PAGE STYLES
   ============================================ */

/* Articles Hero Section */
.articles-hero-section {
    background: linear-gradient(135deg, #178a63 0%, #0d5c42 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.latest-section {
    background: #fff;
}

.latest-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.latest-subtitle {
    color: var(--primary-teal);
}

.latest-subtitle a {
    color: var(--primary-teal);
}

.latest-card {
    background: #E7E7E7;
}

.articles-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.articles-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.articles-hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.articles-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.articles-hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.articles-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.articles-hero-stat {
    text-align: center;
}

.articles-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.articles-hero-stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Featured Articles Section */
.featured-articles-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
}

.section-header-minimal {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-emerald);
    margin-bottom: 1rem;
}

.section-title-minimal {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0;
}

/* Articles Grid (2 columns) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image {
    transform: scale(1.08);
}

.article-card-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-emerald);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.article-card-content {
    padding: 2rem;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-emerald);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.article-card-link:hover {
    gap: 0.75rem;
    color: var(--accent-emerald);
}

.article-card-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* All Articles Section */
.all-articles-section {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

/* Search and Filter Bar */
.articles-search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.articles-search-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 600px;
    position: relative;
}

.articles-search-input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: 2px solid #d1d5db;
    border-right: none;
    border-left: none;
    border-top: none;
    border-radius: 0;
    font-size: 1rem;
    color: #1a1f3a;
    transition: all 0.3s ease;
}

.articles-search-input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.articles-search-input::placeholder {
    color: #9ca3af;
}

.articles-search-btn {
    padding: 0.9rem 2rem;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.articles-search-btn:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 155, 124, 0.3);
}

.articles-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.articles-filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1f3a;
}

.articles-filter-select {
    padding: 0.9rem 3rem 0.9rem 1.5rem;
    border: 2px solid #d1d5db;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 4px;
    font-size: 1rem;
    color: #1a1f3a;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.articles-filter-select:focus {
    outline: none;
    border-color: none;
    box-shadow: 0 0 0 3px rgba(61, 155, 124, 0.1);
}

/* Results Count */
.articles-results-count {
    font-size: 1rem;
    color: #1a1f3a;
    margin-bottom: 3rem;
    font-weight: 500;
}

.articles-results-count strong {
    font-weight: 700;
    color: #0a0e27;
}

/* Articles List Grid (2 columns) */
.articles-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-list-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-teal);
}

.article-list-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.article-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-list-item:hover .article-list-image {
    transform: scale(1.1);
}

.article-list-content {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.article-list-tag {
    display: inline-block;
    background: var(--accent-emerald);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a0e27;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-list-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-list-date {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1f3a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 155, 124, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1f3a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: var(--primary-teal-light);
    color: white;
    border-color: var(--primary-teal-light);
}

.pagination-number.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.pagination-ellipsis {
    color: #9ca3af;
    font-weight: 600;
    padding: 0 0.25rem;
}

/* Newsletter CTA Section */
.newsletter-cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-cta-content {
    text-align: center;
}

.newsletter-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.newsletter-cta-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: #0a0e27;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 176, 65, 0.4);
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

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

    .articles-hero-stats {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .articles-hero-section {
        padding: 4rem 1.5rem;
    }

    .articles-hero-title {
        font-size: 2rem;
    }

    .articles-hero-description {
        font-size: 1rem;
    }

    .articles-hero-stats {
        gap: 2rem;
    }

    .articles-hero-stat-number {
        font-size: 2rem;
    }

    .featured-articles-section,
    .all-articles-section {
        padding: 4rem 1.5rem;
    }

    .articles-search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .articles-search-wrapper {
        max-width: 100%;
    }

    .articles-filter-wrapper {
        justify-content: space-between;
    }

    .articles-filter-select {
        flex: 1;
    }

    .article-list-item {
        flex-direction: column;
    }

    .article-list-image-wrapper {
        width: 100%;
        height: 240px;
    }

    .article-list-content {
        padding: 1.5rem;
    }

    .newsletter-cta-section {
        padding: 4rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .pagination-numbers {
        gap: 0.25rem;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .pagination-btn {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .article-card-content {
        padding: 1.5rem;
    }

    .article-card-title {
        font-size: 1.25rem;
    }

    .articles-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}
