* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Menu Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent;
    transition: background-color 0.3s;
    z-index: 40;
}

nav.scrolled {
    background-color: black;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.login-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-shadow: 7px 7px 25px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.small-tag {
    color: #34c4c2;
    font-size: 0.8em;
}

.signup-btn {
    padding: 0.75rem 2rem;
    background-color: #28a745;
    margin: 0.5rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.learnmore-btn {
    padding: 0.75rem 2rem;
    background-color: #D758BA;
    margin: 0.5rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* About Section */
#about {
    padding: 4rem 2rem;
    text-align: center;
    background-image: url('img/abt_bk.jpg'); /* Replace with your image path */
    background-size: cover; /* Scales image to cover the section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    padding-top: 6rem;
    padding-bottom: 2rem;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#about p {
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.graphics {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.graphics img {
    width: 100px;
}

/* Courses Section */
.service_1 {
    background-image: url('img/service_bk_1.jpg'); /* Replace with your image path */
    background-size: cover; /* Scales image to cover the section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
}

.service_2 {
    background-image: url('img/service_bk_2.jpg'); /* Replace with your image path */
    background-size: cover; /* Scales image to cover the section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
}

#courses {
    padding: 6rem 0.5rem;
}

#courses h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.courses-container {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the card, cropping if necessary */
}

.course-card {
    position: relative;
    flex: 0 0 450px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
}

.big-course-card {
    position: relative;
    flex: 0 0 700px;
    background-color: #f8f9fa;
    overflow: auto;
    text-align: center;
    padding: 1rem;
}

.big-card-header {
    margin-top: 6rem;
}

.card-content {
    position: relative;
    color: white;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
}

.course-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.course-card p {
    margin-bottom: 1rem;
}

.course-card .signup-btn {
    margin-bottom: 1rem;
}

/* Blog Section */
#blogs {
    padding: 6rem 2rem;
    background-image: url('img/product_bk.jpg'); /* Replace with your image path */
    background-size: cover; /* Scales image to cover the section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
}

#blogs h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.blog-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    flex: 2;
}

.blog-main img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.blog-main h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-main p {
    margin-bottom: 1rem;
}

.blog-other {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

.blog-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sitemap/Footer */
#sitemap {
    background-color: #333;
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-media img {
    width: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Menu Bar */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: black;
        padding: 1rem;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Courses Section */
    .course-card {
        flex: 0 0 320px;
    }

    .big-course-card {
        flex: 0 0 320px;
    }

    .course-card img {
        height: 200px;
    }

    /* Blog Section */
    .blog-container {
        flex-direction: column;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }
}

.courses-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10; /* Ensures buttons are above the cards */
    font-size: 1.5rem; /* Larger arrow for visibility */
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* Set dark background and light text for the body */
body {
    background-color: #121212; /* Very dark gray */
    color: #E0E0E0; /* Light gray */
}

/* Update buttons to have a dark background with light text */
.login-btn,
.signup-btn {
    background-color: #34c4c2; /* Dark purple */
    color: white;
}

/* Set dark background and light text for cards */
.course-card,
.blog-card {
    background-color: #1E1E1E; /* Slightly lighter dark gray */
    color: #E0E0E0;
}

/* Adjust scroll buttons to match the dark theme */
.scroll-btn {
    background-color: #1E1E1E;
    color: #E0E0E0;
    border: none;
}

/* Terms & Conditions Section */
#terms {
    padding: 4rem 2rem;
    background: #121212; /* Dark background consistent with theme */
    color: #E0E0E0; /* Light text */
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.terms-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 4rem;
    text-align: left;
}

.terms-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Link Styling */
a {
    color: #BB86FC; /* Light purple for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #terms {
        padding: 2rem 1rem;
    }

    .terms-content {
        padding: 1rem;
    }

    .terms-content h1 {
        font-size: 2rem;
    }

    .terms-content h2 {
        font-size: 1.5rem;
    }
}

/* Course Information Section */
#course-info {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #121212; /* Dark background for consistency */
    margin-top: 4rem;
}

.big-card-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 7px 7px 25px rgba(0, 0, 0, 0.4);
}


/* Sign-Up Button */
.big-signup-btn {
    background-color: #34c4c2; /* Dark purple color */
    color: white;
    padding: 0.75rem 3rem; /* Long button with wide padding */
    margin: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-card {
    }

    .course-content h2 {
        font-size: 1.5rem;
    }

    .course-content p {
        font-size: 1rem;
    }

    .signup-btn {
        padding: 0.5rem 2rem;
        font-size: 1rem;
    }
}

* Privacy Policy Section */
#privacy {
    padding: 4rem 2rem;
    background: #121212; /* Dark background consistent with theme */
    color: #E0E0E0; /* Light text */
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #privacy {
        padding: 2rem 1rem;
    }

    .privacy-content {
        padding: 1rem;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }

    .privacy-content h2 {
        font-size: 1.5rem;
    }
}

/* Blog Section */
#blog {
    padding: 4rem 2rem;
    background: #121212; /* Dark background consistent with theme */
    color: #E0E0E0; /* Light text */
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.blog-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Blog Post Styling */
.blog-post {
    margin-bottom: 3rem;
    text-align: left;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #BBBBBB; /* Slightly muted text for meta info */
    margin-bottom: 1rem;
}

.blog-post img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 5px;
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #blog {
        padding: 2rem 1rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-content h1 {
        font-size: 2rem;
    }

    .blog-content > p {
        font-size: 1rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post img {
        max-width: 100%;
    }
}

#blog {
    background-image: url('img/blog_bk.jpg'); /* Replace with your image path */
    background-size: cover; /* Scales image to cover the entire page */
    background-position: bottom; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    background-attachment: fixed; /* Keeps image fixed while scrolling */
    line-height: 1.6;
    color: #E0E0E0; /* Light text color for readability */
}

.modal-dialog {
    z-index: 100 !important;
}

.dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.12rem;
    border-radius: 9999px;
    opacity: 0.7;
    animation: dotFlashing 1s infinite linear alternate;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotFlashing {
    0% {
        opacity: .2;
    }

    50%, 100% {
        opacity: 1;
    }
}
