.qri-video-banner {
    background: #094D69;
    padding: 25px;
    margin: 20px 0;
}

.qri-banner-header {
    text-align: center;
    margin-bottom: 25px;
}

.qri-banner-header h2 {
    margin: 0 0 10px;
    font-size: 34px;
    color: #ffffff;
    line-height: 1.2;
}

.qri-banner-header p {
    margin: 0 auto;
    max-width: 900px;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.5;
}

.qri-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qri-video-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    background: #ffffff;
    border: 1px solid #ff4500;
    border-radius: 16px;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.qri-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.qri-video-thumb {
    position: relative;
    width: 100%;
}

.qri-video-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.qri-play-button {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 68px;
    height: 48px;

    background: rgba(255, 0, 0, 0.90);
    border-radius: 12px;

    transform: translate(-50%, -50%);
}

.qri-play-button::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 28px;

    width: 0;
    height: 0;

    border-left: 16px solid #ffffff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.qri-video-content {
    flex: 1;
    padding: 18px;
    text-align: left;
}

.qri-video-content h3 {
    margin: 0 0 8px;
    color: #11466d;
    font-size: 20px;
    line-height: 1.25;
}

.qri-video-content p {
    margin: 0;
    color: #5b6f7c;
    font-size: 15px;
    line-height: 1.45;
}


/* Medium screens: two cards on the first row,
   with the third card centered below */

@media (max-width: 1100px) and (min-width: 701px) {

    .qri-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qri-video-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }
}


/* Mobile screens: one card per row */

@media (max-width: 700px) {

    .qri-video-banner {
        padding: 20px 15px;
    }

    .qri-banner-header {
        margin-bottom: 20px;
    }

    .qri-banner-header h2 {
        font-size: 28px;
    }

    .qri-banner-header p {
        font-size: 17px;
    }

    .qri-video-grid {
        grid-template-columns: 1fr;
    }

    .qri-video-card:last-child {
        grid-column: auto;
        width: auto;
    }

    .qri-video-content {
        padding: 16px;
        text-align: center;
    }

    .qri-video-content h3 {
        margin-top: 0;
    }
}