/* ============================================
   NEWS PAGE - FRÈRES CONGO
   ULTRA PROFESSIONAL DESIGN
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
#scrollProgressIndicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #589bdd, #3a7bb5, #589bdd);
    background-size: 200% 100%;
    z-index: 10000;
    width: 0%;
    transition: width 0.1s linear;
    animation: progressShimmer 2s ease-in-out infinite;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.news-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2c4a 0%, #1a4a6e 50%, #0d4675 100%);
    overflow: hidden;
    padding: 100px 20px 80px;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(88, 155, 221, 0.1), transparent 70%);
    pointer-events: none;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(45deg);
    pointer-events: none;
}

.news-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(88, 155, 221, 0.08), transparent 70%);
    pointer-events: none;
}

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

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 155, 221, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    color: #589bdd;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.news-hero-badge i {
    font-size: 18px;
}

.news-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.news-hero h1 span {
    color: #589bdd;
}

.news-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.news-hero-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.hero-meta-item i {
    color: #589bdd;
    font-size: 16px;
}

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

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 155, 221, 0.1);
    color: #589bdd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-badge i {
    font-size: 14px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #0a2c4a;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: #589bdd;
}

.section-header p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #589bdd, #3a7bb5);
    margin: 0 auto;
    border-radius: 3px;
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.news-categories {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-tab {
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.category-tab:hover {
    background: #e8f0fe;
    color: #589bdd;
}

.category-tab.active {
    background: linear-gradient(135deg, #589bdd, #3a7bb5);
    color: #ffffff;
    border-color: #589bdd;
    box-shadow: 0 4px 15px rgba(88, 155, 221, 0.3);
}

/* ============================================
   FEATURED NEWS
   ============================================ */
.featured-news {
    padding: 80px 0;
    background: #ffffff;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.featured-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8edf4;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #589bdd;
}

.featured-card-large {
    grid-row: span 2;
}

.featured-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-image .featured-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #589bdd, #3a7bb5);
    color: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-image .featured-date {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
}

.featured-card-body {
    padding: 24px;
}

.featured-card-body .featured-category {
    display: inline-block;
    color: #589bdd;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.featured-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a2c4a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-card-body p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.featured-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e8edf4;
}

.featured-card-footer .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-card-footer .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-card-footer .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a2c4a;
}

.featured-card-footer .read-more {
    color: #589bdd;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.featured-card-footer .read-more i {
    transition: transform 0.3s ease;
}

.featured-card-footer .read-more:hover {
    color: #3a7bb5;
}

.featured-card-footer .read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid-section {
    padding: 80px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8edf4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #589bdd;
}

.news-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-image .card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #589bdd;
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-image .card-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
}

.news-card-body {
    padding: 20px;
}

.news-card-body .card-category {
    display: inline-block;
    color: #589bdd;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-card-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0a2c4a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e8edf4;
    font-size: 13px;
    color: #94a3b8;
}

.news-card-footer .read-more-link {
    color: #589bdd;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.news-card-footer .read-more-link i {
    transition: transform 0.3s ease;
}

.news-card-footer .read-more-link:hover {
    color: #3a7bb5;
}

.news-card-footer .read-more-link:hover i {
    transform: translateX(4px);
}

/* Staggered delays */
.news-card:nth-child(1).visible { transition-delay: 0.05s; }
.news-card:nth-child(2).visible { transition-delay: 0.10s; }
.news-card:nth-child(3).visible { transition-delay: 0.15s; }
.news-card:nth-child(4).visible { transition-delay: 0.20s; }
.news-card:nth-child(5).visible { transition-delay: 0.25s; }
.news-card:nth-child(6).visible { transition-delay: 0.30s; }
.news-card:nth-child(7).visible { transition-delay: 0.35s; }
.news-card:nth-child(8).visible { transition-delay: 0.40s; }
.news-card:nth-child(9).visible { transition-delay: 0.45s; }

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: #589bdd;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.load-more-btn:hover {
    background: #3a7bb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 155, 221, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* ============================================
   NEWSLETTER SUBSCRIBE
   ============================================ */
.newsletter-subscribe {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a2c4a, #1a4a6e);
    overflow: hidden;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(88, 155, 221, 0.1), transparent 70%);
    pointer-events: none;
}

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

.newsletter-icon {
    font-size: 48px;
    color: #589bdd;
    margin-bottom: 16px;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.newsletter-content h2 span {
    color: #589bdd;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.newsletter-input-group {
    display: flex;
    width: 100%;
    max-width: 550px;
    gap: 12px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    font-family: 'Urbanist', sans-serif;
    transition: all 0.3s ease;
}

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

.newsletter-input-group input:focus {
    outline: none;
    border-color: #589bdd;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input-group button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #589bdd, #3a7bb5);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
    white-space: nowrap;
}

.newsletter-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 155, 221, 0.3);
}

.newsletter-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-card-large {
        grid-row: span 1;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .news-hero h1 {
        font-size: 42px;
    }
    
    .news-hero-meta {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 50vh;
        padding: 80px 15px 60px;
    }
    
    .news-hero h1 {
        font-size: 34px;
    }
    
    .news-hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-card-body h3 {
        font-size: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .newsletter-content h2 {
        font-size: 28px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input-group input {
        width: 100%;
    }
    
    .newsletter-input-group button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-meta-item {
        font-size: 12px;
    }
    
    .load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 28px;
    }
    
    .news-hero p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .featured-image {
        height: 160px;
    }
    
    .featured-card-body h3 {
        font-size: 18px;
    }
    
    .featured-card-body p {
        font-size: 14px;
    }
    
    .news-card-image {
        height: 160px;
    }
    
    .news-card-body h4 {
        font-size: 16px;
    }
    
    .newsletter-content h2 {
        font-size: 24px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    #scrollProgressIndicator {
        display: none !important;
    }
    
    .news-card {
        opacity: 1 !important;
        transform: none !important;
    }
}