* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
}

main {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.news-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.news-title {
    color: white;
    font-size: clamp(36px, 6vw, 60px);
    font-weight: bold;
    text-align: center;
    padding: 20px;
    margin: 50px auto 40px;
    position: relative;
    display: block;
    width: fit-content;
    text-shadow: 0 2px 10px rgba(0, 170, 255, 0.5);
}

.news-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aaff, transparent);
    bottom: 0;
    left: 20%;
    border-radius: 2px;
}

.news-subtitle {
    font-size: 20px;
    text-align: right;
    margin-right: 5%;
    color: #aaa;
}

.featured-news {
    margin-bottom: 50px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
    display: block;
    text-decoration: none;
    color: white;
}

.featured-news:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news:hover .featured-image {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 60%, transparent);
}

.featured-tag {
    display: inline-block;
    background: #00aaff;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-heading {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-snippet {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 15px;
    max-width: 800px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.featured-date {
    font-size: 14px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.featured-date:before {
    content: "📅";
    margin-right: 5px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.news-card-vertical {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    height: 100%;
}

.news-card-vertical:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
}

.news-image-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-vertical:hover .news-image-banner {
    transform: scale(1.05);
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-heading {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.news-snippet {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-date {
    font-size: 14px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.news-date:before {
    content: "📅";
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    background: linear-gradient(45deg, #0088cc, #00aaff);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.2);
}

.read-more:hover {
    background: linear-gradient(45deg, #00aaff, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 170, 255, 0.3);
}

.no-news {
    font-size: 18px;
    color: #aaa;
    text-align: center;
    margin: 60px auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px dashed #444;
    width: 100%;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .featured-image {
        height: 350px;
    }
    
    .featured-heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-container {
        width: 95%;
        padding-top: 60px;
    }
    
    .news-title {
        font-size: clamp(30px, 5vw, 40px);
        padding: 16px;
        margin: 16px auto 30px;
    }

    .news-subtitle {
        font-size: 18px;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-heading {
        font-size: 24px;
    }
    
    .featured-snippet {
        font-size: 15px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .news-title {
        font-size: 24px;
    }
    
    .featured-image {
        height: 220px;
    }
    
    .featured-content {
        padding: 15px;
    }
    
    .featured-heading {
        font-size: 20px;
    }
    
    .featured-snippet {
        font-size: 14px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-heading {
        font-size: 18px;
    }

    .news-snippet {
        font-size: 14px;
    }

    .news-image-banner {
        height: 180px;
    }

    .news-body {
        padding: 15px;
    }

    .no-news {
        font-size: 16px;
        height: auto;
        padding: 30px 15px;
    }
}