/* Reset margins and paddings for the entire document */
body {
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
}

/* Apply box-sizing and font-family to all elements */
* {
    box-sizing: border-box;
    /* Includes padding and border in element's total width and height */
    font-family: Arial;
    /* Set default font to Arial */
}

/* Styling for the navigation bar */
nav {
    display: flex;
    /* Use flexbox for layout */
    width: 100%;
    /* Full width of the container */
    height: 60px;
    /* Fixed height for navigation bar */
    z-index: 500;
    /* Ensure navigation bar is on top of other elements */
}

/* Style list items in the navigation */
.nav-con>li {
    margin-left: 20px;
    /* Space between list items */
    list-style-type: none;
    /* Remove default list styling */
    color: white;
    /* Text color */
    font-size: 18px;
    /* Font size */
    font-weight: bold;
    /* Bold text */
    cursor: pointer;
    /* Pointer cursor on hover */
}

/* Style links within list items */
.nav-con>li>a {
    color: white;
    /* Text color */
    text-decoration: none;
    /* Remove underline from links */
}

/* Container for navigation bar content */
.nav-bar-content {
    width: 60%;
    /* Width of the content container */
    margin: auto;
    /* Center container horizontally */
    display: flex;
    /* Use flexbox for layout */
    align-items: center;
    /* Center items vertically */
    height: 60px;
    /* Height of the container */
}

.nav-con {
    display: flex;
}

.nav-con-mobile {
    display: none;
}

.nav-mobile {
    display: none;
}
/* Styles for the logo in the navigation bar */
.logo {
    margin-right: auto;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Styles for the selected navigation item */
.selected {
    color: #E45353 !important;
    font-weight: bold;
}

/* Styles for the hero section */
.hero-section {
    background: black;
    height: 600px;
    background-image: url("img/hero_background_home.png");
    display: flex;
    align-items: center;
    margin-top: -60px; /* Offsets the section to overlap with the navbar */
    justify-content: center;
}

/* Styles for the hero section image */
.hero-section-img {
    width: 100%;
    height: 600px;
}

/* Container for the hero section content */
.hero-section-content {
    width: 60%;
}

/* Styles for the hero section heading */
.hero-section-content > h2 {
    font-size: 50px;
    color: white;
    margin-bottom: 15px;
}

/* Styles for the hero section paragraph */
.hero-section-content > p {
    font-size: 18px;
    color: white;
    line-height: 30px;
    margin-top: 0;
}

/* Styles for the hero section button */
.hero-section-content > button {
    width: 160px;
    height: 60px;
    font-size: 18px;
    border-radius: 5px;
    background: #E45353;
    border: none;
    color: white;
    margin-top: 5px;
    cursor: pointer;
}

/* Hover effect for the hero section button */
.hero-section-content > button:hover {
    background: #E66060;
}

/* Container for the exercise search */
.exercise-search-con {
    width: 100%;
    margin: 0 auto;
    display: flex;
    height: 50px;
}

/* Styles for the search input field */
.exercise-search-con > input {
    width: 100%;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    padding-left: 15px;
    font-size: 18px;
}

/* Styles for the search button */
.exercise-search-con > button {
    width: 80px;
    border-radius: 0 5px 5px 0;
    border: none;
    cursor: pointer;
    background: #E45353;
}

/* Styles for the search image icon */
.search-img {
    width: 28px;
    height: 28px;
}

/* General styling for exercise section */
.exercise-section {
    width: 60%;
}

/* Swiper component height */
.swiper {
    height: 430px;
}

/* Adjusts the height of exercise swiper */
.exercisewiper {
    height: 250px;
}

/* Container for exercise section content */
.exercise-section-content {
    width: 60%;
    margin: 0 auto;
}

/* General styling for exercise section background and padding */
.exercise-section {
    width: 100%;
    background: #3B3B3B;
    padding: 30px 0 60px 0;
}

/* Styles for exercise section headings */
.exercise-con-headings {
    display: flex;
    align-items: center;
}

/* Styles for exercise section heading text */
.exercise-con-headings > h2 {
    margin-right: auto;
    color: white;
    font-size: 30px;
}

/* Styles for exercise section paragraph */
.exercise-con-headings > p {
    color: white;
    font-weight: bold;
}

/* Grid container for exercise cards */
.exercise-card-con {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

/* Styles for individual exercise cards */
.exercise-card {
    width: 100%;
    flex-direction: column;
    display: flex !important;
    border-radius: 5px;
    background: #D7D7D7;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

/* Styles for exercise card images */
.exercise-card > img {
    width: 100%;
    height: 200px;
    border-radius: 5px 5px 0 0;
}

/* Styles for exercise slide */
.exercise-slide {
    display: flex !important;
    width: 100%;
    height: 315px !important;
}

/* Container for exercise slide content */
.exerciseSlideCon {
    margin-top: 30px;
    width: 500px;
    margin-right: 35px;
}

/* Styles for exercise card names */
.exercise-card-name {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

/* Styles for view all button */
.view-all-btn {
    cursor: pointer;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
}

/* Content container for modals */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 45%;
    height: 55vh; /* 55% of viewport height */
    justify-content: center;
    align-items: center;
    max-height: 370px;
}

.modal-box {
    max-height: 370px;
}

/* Additional modal box styles */
.modal-box {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 45%;
    height: 55vh; /* 55% of viewport height */
    justify-content: center;
    align-items: center;
}

/* Styles for exercise video */
.exercise-video {
    width: 180px !important;
    /* background: red; */
    height: 320px; /* Full height of the container */
    object-fit: contain; /* Prevents distortion of video */
    border-radius: 3px;
    margin-left: auto;
}

/* Styles for close button in modal */
.close {
    color: #aaa;
    z-index: 2000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    margin-top: -10px;
}

/* Hover and focus effects for close button */
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for exercise images */
.exercise-img {
    width: 100%;
    height: auto;
}

/* Styles for exercise description text */
.exercise-description {
    margin-top: 20px;
    font-size: 16px;
}

/* CUSTOM MODAL */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.9);
    display: flex; align-items: center;
    justify-content: center;
    z-index: 2000;
}

.exercise-slide-content {
    display: flex !important;
    /* align-items: center; */
}

.swiper-container {
    overflow: hidden;
}

/* Styles for footer */
footer {
    background: #2D2D2D;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for footer text */
footer > span {
    color: white;
}

@media (min-width: 320px) and (max-width: 450px) {
    .modal-content{
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 95% !important;
        height: 55vh;
        /* 55% of viewport height */
        justify-content: center;
        align-items: center;
    }

        .custom-modal {
        height: 100%;
        }
}

@media all and (min-width: 700px) and (max-width: 1000px) {
    .modal-content,
    .modal-box {
        width: 60%;
    }

    
}

@media all  and (min-width: 320px) and (max-width: 900px) {
    .nav-con {
        display: none;
    }

    .modal-content,
    .modal-box {
        width: 90%;
    }

    .modal-content,
    .modal-box {
        width: 100% !important;
       height: 240px !important;
    }

    .exerciseSlideCon>p {
        height: 130px;
        overflow: auto;
    }

    .nav-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(39, 39, 39);
        flex-direction: column;
        list-style-type: none;
        justify-content: center;
        align-items: center;
    }

    .nav-con-mobile>li>a {
        color: white;
    }

    .nav-mobile>li>a {
        color: white;
        text-decoration: none;
    }

    .nav-mobile>li {
        margin: 10px;
        font-size: 20px;
    }

    #exit_button {
        position: absolute;
        right: 10px;
        top: 10px;
        background: none;
        border: none;
        color: white;
    }

    .nav-con-mobile {
        display: block;
    }

    .nav-bar-content {
        width: 90%;
    }

    .hero-section-content {
        width: 90% !important;
    }

    .hero-section-content>h2 {
        font-size: 35px;
    }

    .who-we-are-section {
        align-items: unset;
        padding: 60px 10px;
        width: 100%;
    }

    video {
        width: 100% !important;
        height: 200px !important;
    }

    .navigation-sub-img {
        display: none;
    }

    .navigation-sub-con {
        width: 100%;
        border-bottom: 1px solid black;
    }

    .navigation-sub-con:nth-child(1) {
        background: #235c88;
    }

    .navigation-sub-con:nth-child(2) {
        background: #018758;
    }

    .navigation-sub-con>span {
        text-align: center;
        color: white;
    }

    .navigation-container {
        display: block;
    }

    footer>span {
        font-size: 15px;
        text-align: center;
        margin: 10px;
    }

    .exercise-section-content {
        display: flex;
        width: 85%;
        flex-direction: column !important;
    }

    .about-us-img {
        margin-bottom: 20px;
    }

    .about-us-content>p {
        order: 2;
    }

    .about-us-content>img {
        order: 2;
    }

    .modal-box {
        width: 80%;
            height: 35vh;
    }

        .modal-content,
        .modal-box {
            height: 35vh;
        }

    .exerciseSlideCon>p,
        .exerciseSlideCon>h2 {
        font-size: 10px;
    }

}