.workdetail {
    padding-block: 40px;
    overflow: hidden;
    margin-top: 40px;
}

.workdetail-sub h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-yellow);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.workdetail-sub h2::after {
    content: "";
    width: 40px;
    height: 2px;
    background-color: var(--text-yellow);
    margin-block: 20px 40px;
}

.sub-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.sub-item:last-child {
    border-bottom: 0;
}

.sub-item h3 {
    color: #101010;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
}

.sub-item h4 {
    font-size: 17px;
    font-family: 'nunito', sans-serif;
    color: #747474;
}

.sub-item a,.sub-item:last-child a:hover {
    color: var(--text-yellow);
}

.sub-item a:hover, .sub-item:last-child a {
    color: var(--text-black-color-4);
}

.workdetail-content h2, .workdetail-related h2 {
    color: var(--text-yellow);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
}

.workdetail-content p {
    font-family: 'roboto', sans-serif;
    color: var(--text-black-color-2);
    font-size: 17px;
}

.workdetail-content iframe {
    width: 100%;
    height: 500px;
}

.work-item {
    position: relative;
    height: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    max-height: 300px;
}

.work-item-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.work-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 24px;
}

.work-item:hover .work-content {
    opacity: 1;
}

.work-content h3 {
    font-size: 22px;
    font-family: 'josefin', sans-serif;
    color: var(--text-yellow);
    transform: translateX(-20px);
    transition: all 0.3s ease-in-out;
    font-weight: 900;
}

.work-content h4 {
   font-size: 17px;
   font-weight: 500;
   font-family: 'roboto', sans-serif;
   color: var(--text-yellow);
   margin-bottom: 0;
   transform: translateX(-20px);
   transition: all 0.3s ease-in-out;
}

.work-item:hover .work-content h3, .work-item:hover .work-content h4 {
    transform: translateX(0);
}

.workdetail-related {
    padding-block: 80px 40px;
}

@media (max-width: 991.98px) {
    .workdetail-sub h2 {
        font-size: 17px;
    }

    .workdetail-sub h2::after {
        margin-block: 20px;
    }
}

@media (max-width: 767.98px) {
    .workdetail-content h2, .workdetail-related h2 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .sub-item h3 {
        margin-bottom: 18px;
    }

    .workdetail-related {
        padding-block: 40px;
    }
}
