* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.white-section {
    background-color: white;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 62.5%;
    margin-top: 75px;
    margin-bottom: 75px;
}

.courses-modules-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 80%;
}

.course-modules-card{
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 45px 20px rgba(231, 111, 40, 0.50);
    padding: 2.4em 3.9em;
    width: 100%;
    height: 80%;
}

.course-modules-card h3{
    font-size: 4em;
    margin: 0.45em 0 0.8em 0;
    flex-shrink: 0;
}

.course-modules-img {
    width: 100%;
    height: auto; 
    max-height: 100%; 
    object-fit: contain;
    border-radius: 10px;
}

.grid-course-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-grow: 1;
    column-gap: 4em;
    min-height: 0;
    align-items: center; 
}

.grid-course-modules .modules {
    overflow-y: auto;
    max-height: 90%;
    padding-right: 0.5em;
}

.modules-list {
    width: 100%;
}

.module {
    padding: 0.5em;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out;
}

.module:hover {
    background-color: #f5f5f5;
}

.grid-course-modules .modules .module-items {
    display: flex;
    justify-content: space-between;
    font-size: 1.8em;
    align-items: center;
    cursor: pointer;
    padding: 0.5em;
}

.grid-course-modules .modules hr {
    height: 0.2em;
    border: 0;
    background-color: #E76F28;
    margin: 1.5em 0.5em;
}

.course-module-plus-icon {
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

.course-module-close-icon {
    display: none; 
    font-size: 1.25em;
    font-weight: bold;
    background-color: #E76F28;
    color: white;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    transition: transform 0.3s ease-in-out;
}

.course-module-close-icon p {
    margin: 0;
    line-height: 1;
}

.module .open-text {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.module .open-text p {
    font-size: 1.6em;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 0 0.5em;
}

.module.active .course-module-plus-icon {
    display: none;
}

.module.active .course-module-close-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(180deg);
}

.module.active .open-text {
    grid-template-rows: 1fr;
    margin: 0.5em 0 1.5em 0;
}

.module.active .open-text p {
    opacity: 1;
}

@media (max-width: 750px){
    

    .grid-course-modules {
        display: flex;
        grid-template-columns: 1fr 1fr;
        flex-grow: 1;
        column-gap: 4em;
        min-height: 0;
        align-items: center; 
        flex-direction: column;
    }

    .modules{
        width: 100%;
    }

    .course-modules-img{
        width: 100%;
        height: auto; 
        max-height: 100%; 
        object-fit: contain;
        border-radius: 10px;
        
    }
}

