/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body{
    height: 100%;
    display: flex;
    flex-direction: column;
}
body {
    background-color: #f0f4f8;
}
.main{
    flex: 1;
}

nav {
    background-color: #1a365d;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #2b6cb0;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger menu on mobile */
    }

    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        background-color: #1a365d;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    /* Animate hamburger icon */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.about-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Materials Page Styles */
.courses-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.resources-list {
    list-style: none;
    margin-top: 1rem;
}

.resources-list li {
    margin: 0.5rem 0;
}

.resources-list a {
    color: #2b6cb0;
    text-decoration: none;
}/* Add these styles to your existing CSS */
.course-link {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-link:hover {
    color: #2b6cb0;
}

.download-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-card h4 {
    margin-bottom: 1rem;
    color: #1a365d;
}

.download-btn {
    margin: 5px;
    display: inline-block;
    background-color: #1a365d;
    color: white;
    padding: 7px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #2b6cb0;
}



/* Contact Page Styles */

@media (max-width: 768px) {
    html, body{
        display: block;
    }
    
}
.contact-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
textarea{
    max-width: 100%;
}

button {
    background-color: #1a365d;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
h5{
    font-weight: 700;
}
code{
    font-family: monospace;
    font-weight: 600;
    color: rgb(201, 0, 0);
}

.contact-info {
    margin-top: 2rem;
    line-height: 1.6;
}

/* Add these styles to your existing CSS */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    min-height: fit-content;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.close-popup:hover {
    color: #000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a365d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Common Styles */
footer {
    background-color: #1a365d;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
}

.new-badge {
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    position: relative;
    top: -5px;
    right: -5px;
    animation: blink 1s infinite alternate;
}

/* Blinking Animation */
@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.05; }
}