/* =========================================
   VIDEOS PAGE
========================================= */

.videos-page {
    width: 100%;
    background: #f8f6f2;
}


/* =========================================
   VIDEOS HERO
========================================= */

.videos-hero {
       padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            var(--royal-primary),
            #151515
        );

    color: var(--white);

    text-align: center;
}



.videos-hero-content {
  text-align: center;
}


.videos-hero .section-label {
 color: var(--royal-gold-light);
}


.videos-hero h1 {
       margin: 12px 0 18px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        36px,
        6vw,
        64px
    );

    line-height: 1.1;
}


.videos-hero p {
     max-width: 680px;

    margin: 0 auto;

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   VIDEOS SECTION
========================================= */

.videos-section {
    padding: 80px 20px 100px;
}


.section-container {
    width: min(1180px, 100%);

    margin: 0 auto;
}


/* =========================================
   HEADING
========================================= */

.videos-heading {
    max-width: 720px;

    margin: 0 auto 40px;

    text-align: center;
}


.videos-heading .section-label {
    display: block;

    margin-bottom: 12px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0.65;
}


.videos-heading h2 {
    margin: 0 0 15px;

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.2;

    font-weight: 600;
}


.videos-heading p {
    margin: 0;

    font-size: 15px;

    line-height: 1.8;

    opacity: 0.72;
}


/* =========================================
   FILTER
========================================= */

.videos-filter {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-bottom: 40px;
}


.video-filter-btn {
    border: 1px solid #d8d1c6;

    background: #fff;

    padding: 10px 18px;

    border-radius: 30px;

    cursor: pointer;

    font-size: 13px;

    transition:
        all 0.2s ease;
}


.video-filter-btn:hover {
    transform: translateY(-1px);

    border-color: #222;
}


.video-filter-btn.active {
    background: #222;

    color: #fff;

    border-color: #222;
}


/* =========================================
   VIDEO GRID
========================================= */

.videos-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================
   VIDEO CARD
========================================= */

.video-card {
    position: relative;

    background: #fff;

    border: 1px solid #e5dfd5;

    border-radius: 4px;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.video-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.10);
}


/* =========================================
   THUMBNAIL
========================================= */

.video-thumbnail {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #ddd;
}


.video-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.video-card:hover
.video-thumbnail img {
    transform: scale(1.05);
}


/* =========================================
   PLAY BUTTON
========================================= */

.video-play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(0,0,0,0.78);

    color: #fff;

    font-size: 22px;

    padding-left: 4px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.video-card:hover
.video-play-button {
    transform:
        translate(-50%, -50%)
        scale(1.1);

    background: rgba(0,0,0,0.9);
}


/* =========================================
   VIDEO CONTENT
========================================= */

.video-card-content {
    padding: 20px 21px 22px;
}


.video-category {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.7px;

    opacity: 0.55;
}


.video-card-content h3 {
    margin: 0 0 9px;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 600;
}


.video-card-content p {
    margin: 0;

    font-size: 14px;

    line-height: 1.65;

    opacity: 0.68;
}


/* =========================================
   LOADING
========================================= */

.videos-loading {
    grid-column: 1 / -1;

    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 14px;
}


.videos-loading p {
    margin: 0;

    font-size: 14px;

    opacity: 0.65;
}


.videos-spinner {
    width: 40px;
    height: 40px;

    border: 3px solid #ddd;

    border-top-color: #222;

    border-radius: 50%;

    animation:
        videosSpin 0.8s linear infinite;
}


@keyframes videosSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   EMPTY STATE
========================================= */

.videos-empty {
    grid-column: 1 / -1;

    padding: 80px 20px;

    text-align: center;
}


.videos-empty h3 {
    margin: 0 0 10px;

    font-size: 24px;
}


.videos-empty p {
    margin: 0;

    opacity: 0.65;
}


/* =========================================
   VIDEO MODAL
========================================= */

.video-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}


.video-modal.show {
    display: flex;
}


.video-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.88);

    backdrop-filter: blur(5px);
}


.video-modal-content {
    position: relative;

    z-index: 2;

    width: min(950px, 100%);

    max-height: 92vh;

    overflow-y: auto;

    background: #111;

    color: #fff;

    border-radius: 6px;

    box-shadow:
        0 25px 80px rgba(0,0,0,0.5);
}


/* =========================================
   CLOSE BUTTON
========================================= */

.video-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.75);

    color: #fff;

    font-size: 27px;

    cursor: pointer;

    line-height: 1;

    transition:
        background 0.2s ease;
}


.video-modal-close:hover {
    background: rgba(0,0,0,0.95);
}


/* =========================================
   PLAYER
========================================= */

.video-player-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;
}


.video-player-wrapper iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: none;
}


/* =========================================
   MODAL INFO
========================================= */

.video-modal-info {
    padding: 24px 28px 30px;
}


.video-modal-category {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    opacity: 0.55;
}


.video-modal-info h2 {
    margin: 0 0 10px;

    font-size: 25px;
}


.video-modal-info p {
    margin: 0;

    line-height: 1.7;

    opacity: 0.7;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .videos-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .videos-hero {
        min-height: 330px;

        padding: 60px 20px;
    }


    .videos-hero p {
        font-size: 15px;
    }


    .videos-section {
        padding: 60px 16px 70px;
    }


    .videos-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .video-modal {
        padding: 10px;
    }


    .video-modal-info {
        padding: 20px;
    }


    .video-modal-info h2 {
        font-size: 21px;
    }

}