/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Header Section */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Navigation */
nav {
    display: flex;
    padding: 1.5% 5%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    list-style: none;
}

.nav-links ul li {
    display: inline-block;
    margin: 0 10px;
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links ul li:hover a {
    color: #f85c02;
}

.nav-links ul li::after {
    content: '';
    width: 0;
    height: 2px;
    background: #f85c02;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.fa-bars {
    display: none; /* Hidden on desktop by default */
    font-size: 26px;
    color: white;
    cursor: pointer;
}

.fa-times {
    font-size: 26px;
    color: white;
    cursor: pointer;
    display: none; /* Hidden on desktop by default */
}

/* Text Box */
.text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
}

.text-box h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
}

.text-box p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #d9d9d9;
}

.hero-btn {
    background: #f85c02;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #e47404;
}

/* Course Section */
.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 60px 0;
}

.course h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.course p {
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.course-col {
    flex-basis: 30%;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.course-col:hover {
    transform: translateY(-5px);
}

.course-col h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

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

/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 50px 0;
    background: #f9f9f9;
}

.testimonials h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.testimonials p {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.testimonial-col {
    flex-basis: 45%;
    background: white;
    margin: 15px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.testimonial-col:hover {
    transform: scale(1.05);
}

.testimonial-col img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
}

.testimonial-col h3 {
    color: #333;
    margin-top: 10px;
}

.testimonial-col p {
    color: #555;
    font-size: 14px;
}

/* Call to Action Section */
.ctae {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px 0;
}

.ctae h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

.ctae .hero-btn {
    padding: 12px 25px;
    border-radius: 5px;
}

/* Footer */
.footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 30px 0;
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    color: #aaa;
}

.icons .fa {
    color: #f85c02;
    margin: 0 10px;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.icons .fa:hover {
    color: white;
}

/* Force-hide fa-bars and fa-times on desktop */
@media (min-width: 769px) {
    .fa-bars, .fa-times {
        display: none !important;
    }
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
    nav .fa-bars {
        display: block;
        font-size: 22px;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav .fa-times {
        display: none; /* Shown dynamically when needed via JavaScript */
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: right 0.5s;
        flex-direction: column;
        padding-top: 50px;
    }

    .nav-links.show {
        right: 0;
    }

    .nav-links ul {
        padding: 30px;
    }

    .nav-links ul li {
        display: block;
        padding: 15px 0;
    }

    .nav-links ul li a {
        font-size: 18px;
        color: #fff;
    }
}
