/*
 * Videos page only.
 * Loaded exclusively by /videos to avoid cross-page regressions.
 */
.page-videos .content-push > .article-container {
    padding-bottom: 72px;
}

.page-videos .video-catalog {
    background: #fff;
    border: 1px solid rgba(12, 54, 105, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(13, 43, 82, 0.12);
    color: #172337;
    overflow: hidden;
    padding: 0 28px;
}

.page-videos .video-catalog__controls {
    align-items: center;
    border-bottom: 1px solid #e6ebf2;
    display: flex;
    justify-content: space-between;
    min-height: 108px;
    padding: 20px 14px;
}

.page-videos .video-control-group {
    align-items: center;
    display: flex;
    gap: 16px;
}

.page-videos .video-control-group label {
    color: #172337;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.page-videos .video-select {
    position: relative;
    width: 190px;
}

.page-videos .video-select::after {
    color: #10233e;
    content: "\f107";
    font-family: FontAwesome;
    font-size: 14px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.page-videos .video-select select {
    appearance: none;
    background: #fff;
    border: 1px solid #ced8e6;
    border-radius: 6px;
    color: #172337;
    cursor: pointer;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    padding: 0 42px 0 16px;
    width: 100%;
}

.page-videos .video-select select:focus {
    border-color: #0b57bd;
    box-shadow: 0 0 0 3px rgba(11, 87, 189, 0.12);
    outline: 0;
}

.page-videos .video-select--take {
    width: 96px;
}

.page-videos .video-control-suffix {
    align-items: center;
    background: #f0f3f7;
    border-radius: 5px;
    color: #35445a;
    display: inline-flex;
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    min-height: 48px;
    padding: 0 16px;
    text-transform: uppercase;
}

.page-videos .video-catalog__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 24px 0 30px;
}

.page-videos .video-card {
    background: #fff;
    border: 1px solid #dbe2eb;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(19, 45, 78, 0.05);
    min-width: 0;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-videos .video-card:hover {
    border-color: #b7c9df;
    box-shadow: 0 12px 28px rgba(19, 45, 78, 0.11);
    transform: translateY(-2px);
}

.page-videos .video-card__media {
    background: #eef2f6;
    display: block;
    overflow: hidden;
    position: relative;
}

.page-videos .video-card__media img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.page-videos .video-card:hover .video-card__media img {
    transform: scale(1.025);
}

.page-videos .video-card__play {
    align-items: center;
    background: #ed1f24;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(153, 10, 14, 0.28);
    display: flex;
    height: 46px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
}

.page-videos .video-card__play .fa {
    color: #fff;
    font-size: 19px;
    line-height: 1;
    margin-left: 3px;
}

.page-videos .video-card__body {
    min-height: 112px;
    padding: 14px 16px 18px;
}

.page-videos .video-card__category {
    color: #0754b5;
    display: block;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    margin-bottom: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-videos .video-card h2 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.page-videos .video-card h2 a {
    color: #172337;
}

.page-videos .video-card h2 a:hover {
    color: #0754b5;
}

.page-videos .video-catalog__empty {
    color: #526071;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    margin: 0;
    padding: 44px 14px;
}

.page-videos .video-catalog__pagination {
    align-items: center;
    border-top: 1px solid #e6ebf2;
    display: flex;
    justify-content: space-between;
    min-height: 86px;
    padding: 18px 14px;
}

.page-videos .video-catalog__page-count {
    color: #223149;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.page-videos .video-pages {
    display: flex;
    gap: 10px;
}

.page-videos .video-pages a {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dfeb;
    border-radius: 50%;
    color: #1d2d45;
    display: inline-flex;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.page-videos .video-pages a:hover,
.page-videos .video-pages a.active {
    background: #0754b5;
    border-color: #0754b5;
    color: #fff;
}

@media (max-width: 1199px) {
    .page-videos .video-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .page-videos .video-catalog__controls {
        align-items: flex-start;
        gap: 18px;
    }

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

@media (max-width: 767px) {
    .page-videos .content-push > .article-container {
        padding-bottom: 32px;
    }

    .page-videos .video-catalog {
        border-radius: 6px;
        padding: 0 18px;
    }

    .page-videos .video-catalog__controls {
        display: block;
        padding: 22px 0;
    }

    .page-videos .video-control-group {
        display: grid;
        gap: 10px;
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .page-videos .video-control-group:first-child {
        grid-template-columns: 70px minmax(0, 1fr) 48px;
    }

    .page-videos .video-control-group + .video-control-group {
        margin-top: 18px;
    }

    .page-videos .video-select,
    .page-videos .video-select--take {
        width: 100%;
    }

    .page-videos .video-control-group--take {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .page-videos .video-control-suffix {
        display: none;
    }

    .page-videos .video-catalog__grid {
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 20px 0 24px;
    }

    .page-videos .video-card__body {
        min-height: 0;
    }

    .page-videos .video-catalog__pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-videos .video-pages {
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-videos .video-card,
    .page-videos .video-card__media img {
        transition: none;
    }
}
