body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Logo */
.logo img {
    height: 50px;
    float: left;
    margin-left: 10px;
}

#logo-img {
    height: 70px;
    width: 100%;
}

/* Navigation Styles */
header {
    position: fixed; /* Fixes the navigation bar at the top */
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #28a745;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
    z-index: 999; /* Ensures it stays on top of other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for better visibility */
}

header:hover {
    background-color: #FF8343; /* Change to a darker shade of green on hover */
}

}
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 18px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
    transition: all 0.3s;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.training-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #FC5C7D;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 40px;
}

.course-section {
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    color: white;
}

p {
    font-size: 14px;
    color: white;
    text-align: justify;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
	color: white;
	text-align: left;
}

.enroll-btn {
    background-color: #ffeb3b;
    color: black;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.enroll-btn:hover {
    background-color: #fdd835;
}

/* Footer Styling */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 20px 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    background-color: #212529;
    padding: 10px 0;
    margin-top: 20px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile menu dropdown styling */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 18px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
    transition: all 0.3s;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide desktop menu by default */
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(0, 128, 0, 0.95); /* Dark green background */
        position: absolute;
        top: 60px; /* Below the header */
        right: 10px;
        width: auto;
        padding: 10px 20px;
        border-radius: 10px;
        z-index: 9999; /* Ensures menu is on top */
    }

    .nav-links.active {
        display: flex; /* Show mobile dropdown when active */
    }

    .nav-links li {
        margin: 10px 0; /* Spacing between items */
    }

    .nav-links a {
        font-size: 20px; /* Larger font size for better readability */
        padding: 12px 20px;
        width: 100%;
        text-align: left; /* Align text to the left */
    }

    .menu-icon {
        display: flex; /* Show hamburger on mobile */
        z-index: 10000; /* Ensure icon is on top */
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translateY(6px); /* Create 'X' effect */
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0; /* Hide middle bar */
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px); /* Create 'X' effect */
    }

    .nav-links.active {
        align-items: flex-end; /* Align dropdown to the right */
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FF8343, #FC5C7D);
    padding: 60px 20px 30px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 48px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Courses Container */
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Course Cards */
.course-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 30px;
    min-height: 500px;
}

.glass-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.glass-content:hover {
    transform: translateY(-5px);
}

.beginner {
    background: linear-gradient(135deg, #FF8343, #FC5C7D);
}

.intermediate {
    background: linear-gradient(135deg, #6B73FF, #000DFF);
}

.advanced {
    background: linear-gradient(135deg, #033b27, #93F9B9);
}

.course-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.duration-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.course-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-card ul {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.course-card ul li {
    margin-bottom: 10px;
}

.enroll-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .course-card {
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 36px;
    }
}
