/* ===============================
   NEWS LIST PAGE
================================ */

.news-section {
    padding: 60px 5%;
    background-color: #f5f7fa;
}

.news-section h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    margin-top: 95px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgb(40, 6, 230);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.news-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.news-content a {
    text-decoration: none;
    font-weight: bold;
    color: #0056b3;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #ff4500;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    padding-right: 3px;
    background-color: #e11b22;
}

.logo-name {
    color: #fff;
    font-size: 16px;
    margin-left: 15px;
}

.academy-name h1 {
    font-size: 16px;
    margin: 0;
    color: #fff;
}

.academy-name span {
    font-size: 12px;
    color: #ccc;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

.nav-links a:after {
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HAMBURGER */
#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 15px;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}


/* MOBILE MENU */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links a {
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #nav-toggle:checked ~ .nav-links {
        max-height: 300px;
    }
}
