/* ===================================
   E7 TECH - NEWS PAGE
   Professional Modern Design
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

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

/* HERO SECTION */
.news-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a237e 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.news-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.news-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* FEATURED SECTION */
.featured-section {
    padding: 6rem 0;
    background: #ffffff;
}

.featured-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.featured-article {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a237e, #5a3fc0);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.meta-item i {
    color: #1a237e;
}

.article-excerpt {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: justify;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 2rem;
    text-align: justify;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a237e, #5a3fc0);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
    gap: 0.75rem;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.recent-post:hover {
    transform: translateX(5px);
}

.post-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

.recent-post:hover .post-title {
    color: #1a237e;
}

/* SECTION COMMON */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(26, 35, 126, 0.1);
    color: #1a237e;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* ARTICLES SECTION */
.articles-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.article-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: #1a237e;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.15);
}

.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.article-category.technology {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.article-category.security {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.article-category.data {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.article-category.cloud {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.article-category.innovation {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
}

.article-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.article-date {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i {
    color: #1a237e;
}

.article-link {
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-link:hover {
    gap: 0.75rem;
}

/* NEWSLETTER SECTION */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a1128 0%, #1e3a8a 50%, #1a237e 100%);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.newsletter-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: justify;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

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

.form-group input:focus {
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.15);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a237e;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-hero {
        padding: 5rem 0 7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .featured-article {
        padding: 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .news-hero {
        padding: 4rem 0 6rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .featured-section,
    .articles-section,
    .newsletter-section {
        padding: 4rem 0;
    }
    
    .featured-article,
    .article-card {
        padding: 1.5rem;
    }
}
