body {
    background-color: #19355f;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: large;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden; /* Prevent side scrolling */
}

section {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
}
  
p {
    line-height: 1.8; /* Adjust line spacing (1.8 is an example, you can change it) */
    text-align: center;
}

nav {
    position: fixed;
    width: 100%;
    background: #1e2a38;
    top: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-container .brand {
    font-size: 24px;
    color: #f8d808;
    text-decoration: none;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    font-size: 28px;
    color: #f8d808;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li a {
    color: #f8d808;
    text-decoration: none;
    font-size: 18px;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

.hero-text {
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    color: #f8d808;
}

.hero p {
    font-size: 24px;
}

.who-i-am .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.who-i-am .column {
    padding: 10px;
    text-align: center;
}

.who-i-am img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
}

.carousel {
    display: flex;
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #f8d808 #19355f;
    padding: 10px;
    gap: 10px; /* Ensure cards are separated */
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background-color: #f8d808;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-track {
    background-color: #19355f;
}

.course-card {
    background-color: #fff;
    color: #19355f;
    padding: 10px;
    margin: 0 10px;
    border-radius: 15px;
    width: 200px;
    flex: 0 0 auto; /* Prevent card shrinking */
    text-align: center;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card img {
    width: 100%;
    aspect-ratio: 4/3; /* Preserve the aspect ratio */
    object-fit: cover;
    border-radius: 15px;
}

.course-card h3 {
    font-size: 20px;
    margin-top: 10px;
}

.course-card p {
    font-size: 14px;
    color: #555;
}

.course-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#subscription {
    background-color: #1e2a38;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

#subscription input[type="text"], #subscription input[type="email"] {
    padding: 10px;
    margin: 5px;
    width: 80%;
    border-radius: 15px;
    border: 1px solid #f8d808;
    font-size: 18px;
    background-color: #fff;
    color: #19355f;
    text-align: center;
}

#subscription button {
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #f8d808;
    color: #19355f;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adding shadow */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

#subscription button:hover {
    background-color: #e0c507; /* Slightly darker background on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

footer {
    background-color: #1e2a38;
    padding: 10px;
    margin-top: 50px;
    color: #f8d808;
    text-align: center; /* Center align text */
}

footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin: 5px 15px; /* Adjust spacing for smaller screens */
}

footer ul li a {
    color: #f8d808;
    text-decoration: none;
    font-size: 18px;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 37px;
        right: 0;
        background: #1e2a38;
        text-align: center;
    }

    .burger {
        display: block;
    }

    .nav-links li {
        margin: 20px 0;
    }

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

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

    .who-i-am .container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    footer ul li a {
        font-size: 16px; /* Slightly smaller font size on very small screens */
    }
}