/* ========================================
   NEWS SECTION STYLES
   ======================================== */

/* News Section Layout */
.news-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1200px;
    border-radius: 20px;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-section .section-header h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-section .section-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Clickable News Cards */
a.news-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.news-card:hover {
    text-decoration: none;
    color: inherit;
}

a.news-card h3 {
    color: #333;
    transition: color 0.3s ease;
}

a.news-card:hover h3 {
    color: #667eea;
}

a.news-card.featured h3 {
    color: white;
}

a.news-card.featured:hover h3 {
    color: white;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.news-card:hover::before {
    opacity: 1;
}

/* Featured News Card */
.news-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.news-card.featured::before {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    height: 6px;
}

.news-card.featured h3,
.news-card.featured .news-date,
.news-card.featured .news-summary {
    color: white;
}

.news-card.featured .news-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-card.featured .news-link:hover {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Commercial Drivers News Card */
.news-card.commercial-drivers {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
}

.news-card.commercial-drivers h3 {
    color: white;
}

.news-card.commercial-drivers .news-date {
    color: rgba(255, 255, 255, 0.9);
}

.news-card.commercial-drivers .news-summary {
    color: rgba(255, 255, 255, 0.9);
}

.news-card.commercial-drivers .news-badge.trucker {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    animation: pulse 2s infinite;
}

.news-card.commercial-drivers:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-10px);
}

.news-card.commercial-drivers::before {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    opacity: 1;
    height: 6px;
}

/* News Badge */
.news-badge {
    background: #dc3545;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* News Content */
.news-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.news-date::before {
    content: '📅';
    margin-right: 0.5rem;
}

.news-summary {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* News Links */
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.news-link:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.news-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(3px);
}

/* News Footer */
.news-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.view-all-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-all-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .news-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .news-section {
        padding: 3rem 1rem;
        margin: 2rem auto;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        padding: 1.5rem;
    }
    
    .news-section .section-header h2 {
        font-size: 2rem;
    }
    
    .news-section .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-card h3 {
        font-size: 1.2rem;
    }
    
    .news-summary {
        font-size: 0.95rem;
    }
    
    .view-all-news-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
