body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    background-color: rgb(21, 28, 47);
    color: rgb(0, 0, 0);
}

@media (max-width: 768px) {
    header {
        width: 100%;
        background-color: rgb(21, 28, 47);
        color: rgb(255, 255, 255);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    flex-wrap: wrap;
}

nav .logo img {
    width: 70px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #87e100;
    border-radius: 20px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Ensure flex-direction is row for alignment */
        justify-content: space-between; /* Space between logo and menu toggle */
    }

    nav .menu-toggle {
        display: block; /* Show toggle on mobile */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    nav ul.active {
        display: flex; /* Show menu when active */
    }

    nav ul li {
        margin: 5px 0;
        text-align: center;
    }

    nav ul li a {
        text-align: center;
        display: block; /* Make links block elements for better click area */
        padding: 10px 0; /* Add padding for better spacing */
    }

    nav ul li a:hover {
        background-color: #87e100;
        border-radius: 20px;
    }
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 30px;
    left: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 0px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
    text-decoration: none;
    padding-left: 20px;
    
}

.whatsapp-icon img {
    width: 60px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
}

.whatsapp-icon:hover {
    background-color: #128C7E;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #ffe5e5;
}

h2, h3 {
    color: #333;
}

.original-price {
    font-size: medium;
    color: #000000;
    text-decoration: line-through;
    margin-right: 10px;
}

.discounted-price {
    font-size: larger;
    color: #0c0c0c; /* Color for discounted price */
    font-weight: bold;
}


/* Course Section */
.course-section {
    background: url('../images/course/course\ bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px 0;
}

.course-list {
    display: flex;
    flex-direction: column;
}

.course-item {
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border: 3px solid #000000;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-column {
    flex: 1;
    padding: 10px 10px;
}

.course-header h2 {
    margin: 0;
}

.course-header p {
    margin: 5px 0;
}

.toggle-button {
    background-color: #ff4500;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
}

.course-content {
    display: none;
}

/* State when content is visible */
.course-content.visible {
    display: block;
}

/* Default state for nested course content */
.nested-content {
    display: none;
}

/* State when nested course content is visible */
.nested-content.visible {
    display: block;
}

.course-content {
    display: none;
    margin-top: 20px;
}

.course-content h3 {
    margin-top: 0;
}

.course-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.course-content a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff4500;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.course-features {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.course-features ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .course-item {
        padding: 10px;
    }

    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-column {
        padding: 5px 0;
    }

    .toggle-button {
        padding: 8px;
    }

    .course-content {
        margin-top: 10px;
    }

    .course-content a {
        padding: 8px 16px;
    }

    .course-features {
        padding: 10px;
    }
}

/* Media Queries for Smaller Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .course-item {
        padding: 5px;
    }

    .toggle-button {
        padding: 5px;
    }

    .course-content {
        margin-top: 5px;
    }

    .course-content a {
        padding: 5px 10px;
    }

    .course-features {
        padding: 5px;
    }
}


/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.left-section,
.middle-section,
.right-section {
    flex: 1 1 auto;
    text-align: left;
}

.middle-section {
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
}

.social-media {
    text-align: right;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5em;
    text-decoration: none;
}

.newsletter form {
    margin: 20px 0;
}

.newsletter input[type="email"] {
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #fff;
    cursor: pointer;
}

.newsletter button:hover {
    background-color: #777;
}

.copyright {
    margin-top: 20px;
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 14px;
}

.tnc-link {
    color: #f57c00; /* Orange color matching the header */
    text-decoration: none;
    font-weight: bold;
}

.tnc-link:hover {
    text-decoration: underline;
}


/* Social media icon styles */
.fab {
    font-family: "Font Awesome 5 Brands";
} 