.videos-page {
    padding: 1.5rem 0 3rem;
}

.videos-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e5e5;
}

.videos-page-title {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 .35rem;
    color: #1a1a1a;
}

.videos-page-title-icon {
    width: 2rem;
    height: 1.4rem;
    background: #ff0000;
    border-radius: .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.videos-page-title-icon svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    margin-left: 2px;
}

.videos-page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: #fff;
    border-radius: .65rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.video-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: .65rem;
}

.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.video-thumb:hover img {
    transform: scale(1.04);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, .65);
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .25s ease;
    pointer-events: none;
}

.video-thumb:hover .video-play {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.05);
}

.video-play svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px;
}

.video-meta {
    padding: .85rem .25rem .25rem;
}

.video-title {
    font-size: .98rem;
    font-weight: 600;
    margin: 0 0 .35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
}

.video-doc-link {
    font-size: .85rem;
    color: #6c757d;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.video-doc-link:hover {
    color: #1c4182;
}

#videoModal .modal-content {
    background: #000;
    border: 0;
}

#videoModal .modal-header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    color: #fff;
}

#videoModal .modal-title {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

#videoModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#videoModal iframe {
    border: 0;
    display: block;
}

@media (max-width: 575.98px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
