/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #00020f;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(75, 117, 255, 0.1) 0%, rgba(0, 2, 15, 0.8) 70%, #00020f 100%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #4C75FF, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 50% 50%, #4C75FF, transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 30% 80%, #4C75FF, transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 300px 300px, 200px 200px, 250px 250px, 350px 350px, 400px 400px, 150px 150px, 320px 320px, 180px 180px;
    animation: twinkle 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(14, 18, 46, 0.9);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(35, 45, 107, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #4C75FF, #1A4FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-container {
    background: rgba(14, 18, 46, 0.9);
    border: 1px solid rgba(35, 45, 107, 0.5);
    border-radius: 50px;
    padding: 4px 8px;
    backdrop-filter: blur(20px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1.2rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(22, 28, 68, 0.8);
    border: 1px solid rgba(35, 45, 107, 0.8);
    transform: none;
    box-shadow: none;
}

.btn-apply-header {
    background: linear-gradient(45deg, #4C75FF, #1A4FFF);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-apply-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 117, 255, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* News List Section */
.news-list-section {
    padding: 120px 0 80px;
}

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

.news-list-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #4C75FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-list-header p {
    font-size: 1.2rem;
    color: #A7ADBE;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: rgba(14, 18, 46, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(35, 45, 107, 0.3);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(76, 117, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.news-card-date {
    display: block;
    font-size: 0.9rem;
    color: #4C75FF;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fff;
}

.news-card-excerpt {
    font-size: 1rem;
    color: #A7ADBE;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(76, 117, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(76, 117, 255, 0.1);
    color: #4C75FF;
    border-color: #4C75FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 117, 255, 0.3);
}

/* Footer */
footer {
    background: rgba(14, 18, 46, 0.3);
    padding: 3rem 0;
    text-align: center;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(35, 45, 107, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.quick-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4C75FF;
}

.quick-links a {
    color: #A7ADBE;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #fff;
}

footer p {
    font-size: 1.1rem;
    color: #A7ADBE;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(14, 18, 46, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 0 0 20px 20px;
        border: 1px solid rgba(35, 45, 107, 0.3);
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        border-radius: 15px;
        text-align: center;
    }

    .btn-apply-header {
        display: none;
    }

    .news-list-section {
        padding: 100px 0 60px;
    }

    .news-card {
        padding: 1.5rem;
    }
}