/* =========================================
   CATEGORY VIDEO SECTION
========================================= */

.category-video-section {
    padding: 90px 0;
    background: #faf9f7;
    overflow: hidden;
}

/* Heading */

.category-video-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.category-video-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8b6f47;
    margin-bottom: 12px;
}

.category-video-heading h2 {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 600;
    color: #222;
    font-family: Georgia, "Times New Roman", serif;
}

.category-video-heading p {
    margin: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.7;
}

/* Grid */

.category-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Card */

.category-video-card {
    position: relative;
    height: 440px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #222;
    border-radius: 4px;
    isolation: isolate;
}

/* Video */

.category-video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    z-index: -2;
}

/* Dark overlay */

.category-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.671) 0%, rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    transition: background 0.4s ease;
}

/* Content */

.category-video-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #fff;
}

.category-video-content > span {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.category-video-content h3 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 600;
    color: #fff;
}

.category-video-content p {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

/* Explore link */

.category-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #fff;
}

.category-video-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hover */

.category-video-card:hover video {
    transform: scale(1.08);
}

.category-video-card:hover .category-video-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.521) 0%, rgba(0, 0, 0, 0.062) 50%, rgba(0, 0, 0, 0) 100%);
}

.category-video-card:hover .category-video-link i {
    transform: translateX(5px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
    .category-video-section {
        padding: 70px 0;
    }

    .category-video-heading h2 {
        font-size: 36px;
    }

    .category-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .category-video-card {
        height: 400px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {
    .category-video-section {
        padding: 55px 0;
    }

    .category-video-heading {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .category-video-heading h2 {
        font-size: 30px;
    }

    .category-video-heading p {
        font-size: 14px;
    }

    .category-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-video-card {
        height: 420px;
    }

    .category-video-content {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .category-video-content h3 {
        font-size: 25px;
    }
}
