main {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}

.news-header h1 {
    font-size: 2.8rem;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.news-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.news-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-meta .date {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.news-content h3 {
    font-size: 1.35rem;
    margin: 0 0 12px;
    color: #1a202c;
    line-height: 1.4;
    font-weight: 600;
}

.news-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 18px;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.read-more:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

.news-card-wrapper {
    position: relative;
}

/* ====================== RESPONSIVE ====================== */

@media (max-width: 992px) {
    .news-header h1 {
        font-size: 2.4rem;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 50px 15px;
    }
    .news-header h1 {
        font-size: 2.2rem;
    }
    .news-header p {
        font-size: 1.1rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .news-content {
        padding: 20px;
    }
    .news-content h3 {
        font-size: 1.3rem;
    }
    .news-content p {
        font-size: 1.02rem;
    }
}

@media (max-width: 480px) {
    .sectionpad {
    padding: 1em;
}
    .news-header h1 {
        font-size: 1.4rem;
    }
    .news-header p {
        font-size: 0.7rem;
    }
    .news-img {
        height: 180px;
    }
    .news-content {
        padding: 18px;
    }
    .news-content h3 {
        font-size: 1.25rem;
    }
    .news-content p {
        font-size: 1rem;
        line-height: 1.65;
    }
    .read-more {
        font-size: 0.98rem;
    }
    .news-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        top: 12px;
        right: 12px;
    }
}

/* Desktop search hidden on mobile - as per your requirement */
@media (max-width: 799px) {
    #headnav .search {
        display: none !important;
    }
}