/* Global styles */
html, body {
    height: 100%; /* Ensure the body takes full height */
}

body {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #FAFAFA; /* Very light gray for a clean background */
    font-family: Raleway, Arial, sans-serif;
}

/* Header and Navbar Styles */
header {
    background-color: #374151; /* Cool slate gray */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    background-color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-menu a:hover {
    background-color: transparent;
    color: #60A5FA;
    border-radius: 5px;
}

.signup a {
    background-color: #93C5FD;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.signup a:hover {
    background-color: #E0B8FF;
    color: #1F2937;
}

/* Main Styles */
main {
    flex: 1; /* Allow main to grow and fill available space */
    padding: 2rem;
    text-align: center;
}

h1 {
    color: #3B82F6;
    margin-bottom: 1rem;
    font-size: 2.5em;
}

.certification-container {
    background-color: #60A5FA;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 20px;
}

.certification-card {
    background-color: #fff;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.certification-card h2 {
    color: #3B82F6;
    margin-bottom: 10px;
}

.certification-card p {
    color: #6B7280;
    line-height: 1.5;
}

/* Footer */
footer {
    list-style: none;
    background-color: #374151; /* Cool Slate Gray for footer */
    color: #6B7280;
    text-align: center;
    padding: 15px;
    position: relative; /* Allows for better positioning */
    width: 100%; /* Make sure the footer spans the full width */
    margin-top: auto; /* Ensure the footer stays at the bottom */
}

footer p {
    margin: 0.5rem 0;
    color: #6B7280;
}

/* Social Media Links */
.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    color: #60A5FA;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Toggle Menu Styles */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 40%;
        height: 100vh;
        background-color: white;
        color: #374151;
        z-index: 120;
        padding-top: 90px;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu a {
        color: #374151;
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle:before {
        content: "\2630"; /* Hamburger icon */
    }

    .nav-toggle.active:before {
        content: "\2715"; /* Close icon */
    }

    footer {
        padding: 10px; /* Slightly reduce padding on smaller screens */
    }

    .social-media {
        gap: 8px; /* Less gap for smaller screens */
    }

    footer p {
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .social-media a {
        font-size: 0.9rem; /* Slightly smaller icon text */
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 40%;
    }

    .nav-toggle {
        font-size: 1.2em;
    }

    footer {
        padding: 8px; /* Further reduce padding on extra small screens */
    }

    .social-media a {
        font-size: 0.9rem; /* Reduce font size for icons */
    }

    footer p {
        font-size: 0.8rem; /* Smaller text for extra small screens */
    }
}
