.inside-gym .container {
    flex-direction: column;
    padding-bottom: 150px;
}
.inside-gym .container .content {
    display: flex;
    border-top: 2px solid white;
    padding-top: 70px;
    position: relative;
}
.inside-gym .container .content .head-dumbbell{
    position: absolute;
    top: -150px;
    left: 46%;
    z-index: 99;
}
.inside-gym .container .content .head-dumbbell img {
    width: 300px;
}
.image-section {
    width: 47%;
    position: relative;
    overflow: hidden;
}
.image-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.gym-image {
    display: none;
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
}
.gym-image img {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.image-section img.active {
    opacity: 1;
}

.text-section {
    width: 70%;
    margin-left: 70px;
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
}
.text-section ul {
    list-style: none;
    padding: 0; 
    margin: 0;
}
.text-section li {
    padding: 20px 0;
    font-size: 30px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.116);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}
.text-section li:last-child {
    border: none;
}
.text-section li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateY(-100%);
    transition: .4s;
    z-index: 1;
}
.text-section li.active::before {
    transform: translateY(0px);
}
.text-section li a {
    color: white;
    position: relative;
    z-index: 2;
    transition: .4s;
}
.text-section li span {
    color: rgb(27, 27, 27);
    font-family: "Kurale", serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.9ch;
    z-index: 99;
    position: relative;
    margin-right: 30px;
    opacity: 0;
    transition: .4s;
}
.text-section li:hover a,
.text-section li.active a {
    margin-left: 25px;
}
.text-section li:hover span,
.text-section li.active span {
    opacity: 1;
}



@media (max-width: 1200px) {
    .inside-gym .container {
        width: 830px;
    }
    .inside-gym .container .content .head-dumbbell{
        position: absolute;
        top: -120px;
        left: 66%;
        z-index: 99;
    }
    .inside-gym .container .content .head-dumbbell img {
        width: 250px;
    }
    .image-section {
        width: 40%;
    }
    .text-section {
        margin-left: 30px;
        width: 58%;
    }
    .text-section li {
        padding: 20px 0;
        font-size: 20px;
    }
    .text-section li span {
        font-size: 11px;
    }
}
@media (max-width: 900px) {
    .inside-gym .container {
        width: 90%;
    }
    .inside-gym .container .content .head-dumbbell {
        display: none;
    }
    .inside-gym .title {
        text-align: start;
    }
    .inside-gym .main-title {
        text-align: start;
        font-size: 47px;
    }
    .small-title {
        text-align: start;
    }
    .inside-gym .container .content {
        flex-direction: column;
    }
    .image-section, 
    .text-section {
        width: 100%;
        margin-left: 0;
    }
    .text-section li {
        flex-direction: column;
        cursor: cell;
    }
    .text-section li a,
    .text-section li.active a,
    .text-section li span {
        text-align: start;
        margin: 0;
        left: 0;
        width: 100%;
        cursor:cell;
    }
    .text-section li.active a,
    .text-section li.active span {
        background: var(--primary-color);
        padding: 20px 10px;
    }
    .text-section li.active a {
        padding: 12px 10px;
    }

    .image-section {
        display: none; 
    }
    .gym-image {
        display: none; 
    }
    .text-section li.active .gym-image {
        display: block; 
    }
    .text-section li.active .gym-image img {
        opacity: 1;
        transform: scale(1);
    }
    .text-section li::before {
        background-color: transparent;
    }
    .text-section li a{
        font-size: 30px;
    }
    .text-section li span {
        font-size: 16.6px;
        padding: 10px 10px;
    }
}
