.video-term-info {
    background-color: var(--hmt-primary-color);
}

.video-term-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    color: white;
}

.video-archive-main h1 {
    margin-top: 10px;
}

.video-term-info-inner h1 {
    margin-bottom: 10px;
    font-size: 26px;
}

.video-term-info-inner .video-term-info-image-container {
    width: 22%;
}

.video-term-info-inner .video-term-info-extra-info-container {
    width: 76%;
}

.video-term-info-inner .video-term-info-metas-container {
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0px 10px;
}

.video-term-info-inner .video-term-info-metas-container .meta-item {
    margin-left: 15px;
}

.video-term-info-inner .video-term-info-metas-container .meta-item i {
    font-size: 16px;
    margin-left: 5px;
}

.video-term-info-inner .video-term-info-metas-container .meta-item .meta-value {
    font-weight: 500;
    font-size: 14px;
}

.video-term-info-inner .video-term-info-metas-container .meta-item .fa-star {
    color: orange;
    margin: 0;
}

.video-term-info-inner .video-term-info-metas-container .meta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.video-term-info-inner .video-term-info-description-container {
    background-color: var(--hmt-accent-color-alpha10);
    color: white;
    border-radius: 10px;
    padding: 10px;
    text-align: justify;
}

.video-term-info-inner .btns-container {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
}

.video-term-info-inner .link-vid-kid {
    font-weight: 500;
    font-size: 14px;
    background-color: gray;
    margin-left: 5px;
}

.video-term-info-inner .btn-back {
    font-weight: 500;
    font-size: 14px;
}

.video-term-info-inner .video-term-info-description-container p {
    margin: 0;
    padding: 0;
}

.video-archive-main {
    padding-top: 20px;
    background-color: var(--hmt-accent-color-alpha10);
    padding-bottom: 10px;
}

.video-archive-main h1,
.videos-container h2 {
    font-size: 30px;
}

.video-terms {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.video-terms .video-term {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 14.285%;
    padding: 7.5px;
}

@media(max-width: 1024px) {
    .video-terms .video-term {
        width: 25%;
    }
}

@media(max-width: 768px) {
    .video-terms .video-term {
        width: 50%;
    }
}

.video-terms .video-term img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1000px;
    border: 1px solid #ccc;
    padding: 4px;
    transition: all 0.3s;
}

.video-terms .video-term:hover img {
    padding: 0;
}

.video-terms .video-term h2 {
    color: black;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    font-weight: 700;
}

.videos-container .top-bar {
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.videos-container .top-bar input {
    line-height: 1.5;
    font-size: 1em;
    padding: 8px;
}

.videos-container .videos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.videos-container .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 30px;
}

.videos-container .pagination .page-numbers {
    background-color: black;
    margin: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    line-height: 1;
    background-color: var(--hmt-accent-color);
    border: 2px solid var(--hmt-accent-color);
    border-radius: 7px;
    transition: background-color .3s ease-in-out;
}

.videos-container .pagination a.page-numbers:hover {
    background-color: #ffffff;
    color: var(--hmt-accent-color);
}

.videos-container .pagination .page-numbers.current {
    background-color: white;
    border: 2px solid var(--hmt-accent-color);
    color: var(--hmt-accent-color);
}

.videos-container .pagination .page-numbers.prev,
.videos-container .pagination .page-numbers.next {
    width: 60px;
}

.related-video-item {
    margin-bottom: 0px;
}

.videos-container .videos .related-video-item-container {
    padding: 10px;
    width: 25%;
}

.video-tag-outer {
    padding: 10px;
    width: 25%;
}

@media(max-width: 768px) {
    .video-term-info-inner {
        flex-direction: column;
        padding: 30px 0px;
    }

    .videos-container .top-bar {
        flex-direction: column;
        padding: 10px;
    }

    .videos-container h2 {
        margin-left: auto;
    }

    .videos-container .top-bar form {
        margin-right: auto;
        margin-top: 15px;
    }
    
    .videos-container .videos .related-video-item-container {
        width: 100%;
    }

    .video-term-info-inner .video-term-info-extra-info-container,
    .video-term-info-inner .video-term-info-image-container {
        width: 90%;
    }
    .video-term-info-inner .video-term-info-image-container img {
        border-radius: 10px;
    }
    .video-term-info-inner .video-term-info-metas-container {
        margin-top: 10px;
    }
    .video-term-info-inner .btns-container {
        flex-direction: column;
    }

    .video-term-info-inner .btns-container .btn-back {
        margin-top: 10px;
    }

    .video-term-info-inner .btns-container .btn {
        width: 100%;
    }

    .video-term-info-inner .video-term-info-metas-container .meta-item {
        width: 50%;
        margin: 0;
    }

    .video-term-info-inner h1 {
        font-size: 24px;
        margin-top: 10px;
    }

    .video-tag-outer {
        width: 100%;
    }
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
}

.video-tags .video-tag-outer {
    padding: 10px;
    width: 25%;
}

.video-tags .video-tag {
    display: block;
    max-width: 300px;
    height: 170px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    width: 100%;
}

.video-tags .video-tag .overlay,
.video-tags .video-tag .overlay-hover {
    background: linear-gradient(45deg, #ffffff6b, #e7e7e71a);
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: absolute;
    z-index: 1;
    transition: all 0.3s;
}

.video-tags .video-tag .overlay-hover {
    opacity: 0;
    background: linear-gradient(45deg, #ffffffc2, #e7e7e71a);
}

.video-tags .video-tag:hover .overlay-hover {
    opacity: 1;
}

.video-tags .video-tag h2 {
    font-size: 20px;
    color: white;
    font-weight: 700;
    width: 40%;
    line-height: 1.4;
}

.video-tags .video-tag img {
    position: absolute;
    width: 50%;
    left: -10px;
    bottom: -30px;
    top: 40px;
    transform: rotate(-20deg);
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 35%);
    transition: all 0.3s;
    z-index: 10;
}

.video-tags .video-tag:hover img {
    left: 10px;
    bottom: 0px;
    top: 12px;
    transform: rotate(0deg);
}

@media(max-width: 1399px) {
    .video-tags .video-tag:hover img {
        top: 20px;
    }
}

@media(max-width: 1199px) {
    .video-tags .video-tag:hover img {
        top: 30px;
    }
}

@media(max-width: 991px) {
    .video-tags .video-tag:hover img {
        top: 50px;
    }
}

@media(max-width: 768px) {
    .video-tags .video-tag-outer {
        width: 100%;
    }
    .video-tags .video-tag {
        max-width: 100%;
    }
    .video-tags .video-tag:hover img {
        top: 10px;
    }
}