/* Reset styles */


* {
    margin-top: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Hero Image */
.hero {
    height: 700px;
    background-image: url('../Images/ITClassesNew.jpg');
    background-size: cover;
    background-position: center;
     /* Prevents overlap with nav     margin-top: 50px;    */
}

/* Service Description */
.service-description {
    font-size: large;
    padding: 20px;
    max-width: 100%;
    margin: auto;
    background-color: #e9cbac;
    border-radius: 0px;
    text-align: center;
}

.service-description p {
    text-align: center;
    line-height: 1.6em;
}

/* Video Container */
.video-container {
    text-align: center;
    position: relative;
    margin-left: 90px;
    width: 90%; /* Adjust this value to make the video smaller or larger */
}

/* Video */
.video-container video {
    width: 80%;
    height: auto;
}


.unmute-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 135px;
    z-index: 10; 
}

.unmute-button:hover {
    background-color: #333;
}

/* Navigation Menu Styles */
.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #333;
    position: fixed;
    width: 100%;
    z-index: 9999;
    display: flex;
    
    justify-content: flex-start; /* Align menu items to the left */
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background-color: #111;
}

/* Sub Menu Styles */
.sub-menu {
    list-style-type: none;
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.nav-menu li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.sub-menu li a:hover {
    background-color: #487fa3;
}

/* Hide hamburger icon on desktop */
.hamburger-menu {
    display: none; /* Hide on larger screens */
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 30px;
    
    padding: 20px;
}

/* Hamburger Menu - Mobile */
.menu-icon {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
    padding: 10px;
    background-color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
}





/* Media Query for screens with max-width of 768px */
@media (max-width: 768px) {
    /* Hamburger Menu */
    .menu-icon {
        display: block;
    }
    .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column; /* Stack items vertically */
        width: 100%;
        text-align: left;
        background-color: #333;
    }
    .nav-menu.show {
        display: flex; /* Show menu when toggled */
    }
    .nav-menu li {
        margin: 10px 0;
    }

    /* Hero Image */
    .hero {
        height: 50vh; /* Reduce hero height for smaller screens */
        background-size: cover;
        background-position: center;
    }

    /* Service Description */
    .service-description {
        padding: 15px;
        font-size: medium;
    }

    .service-description h1 {
        font-size: 1.5rem; /* Adjust font size */
    }

    .service-description p {
        line-height: 1.4em; /* Tighter line spacing */
    }

    /* Video Container */
    .video-container {
        width: 100%;
        margin: 20px auto; /* Center align */
    }

    .unmute-button {
        top: 10px; /* Align at the top of the video */
        right: 10px; /* Push it to the top-right corner */
        font-size: 0.9em;
        padding: 5px 12px;
    }
}

/* Media Query for screens with max-width of 460px */
@media (max-width: 460px) {
    /* Adjust Hamburger Menu */
    .menu-icon {
        display: block;
        font-size: 1.5em;
        position: absolute;
        top: 10px;
        right: 15px;
        color: white;
        background-color: transparent;
        z-index: 10000; /* Ensure it's above the hero image */
    }

    /* Adjust Navigation Menu */
    .nav-menu {
        display: none; /* Hide menu initially */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    /* Sub-menu */
    .sub-menu {
        background-color: #fff; /* Match the clean design */
        box-shadow: none; /* Remove box shadow */
        margin: 0;
        padding: 0;
    }

    .sub-menu li {
        border-bottom: 1px solid #ccc; /* Light separator */
        text-align: center; /* Center the items */
    }

    .sub-menu li:last-child {
        border-bottom: none; /* Remove the last border */
    }

    .sub-menu li a {
        color: #333; /* Neutral text color */
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        background-color: #f9f9f9; /* Light background */
    }

    .sub-menu li a:hover {
        background-color: #ddd; /* Slightly darker hover effect */
    }

    /* Hide main menu when sub-menu is active */
    .nav-menu > li > a:hover + .sub-menu,
    .sub-menu:hover {
        display: block;
    }

    .nav-menu > li:hover > .sub-menu + .nav-menu {
        display: none; /* Hide other main menu items */
    }

    .nav-menu > li > a {
        padding: 12px;
        font-size: 0.9em;
    }
    
    /* Hero Image */
    .hero {
        height: 40vh; /* Reduce hero height further */
    }

    /* Service Description */
    .service-description {
        padding: 10px;
        font-size: small;
    }

    .service-description h1 {
        font-size: 1.2rem;
    }

    .service-description p {
        line-height: 1.3em;
    }

    /* Video Container */
    .video-container {
        width: 100%;
        margin: 10px auto;
    }
    .video-container video {
    width: 100%;
    height: auto;
}

    .unmute-button {
        top: 10px; /* Align at the top of the video */
        right: 10px; /* Push it to the top-right corner */
        font-size: 0.8em;
        padding: 4px 10px;
    }
}
