.instruction-videos-page {
    padding-bottom: 3rem;
}

.iv-hero {
    background: #225f92;
    color: #fff;
    padding: 3rem 0 2.75rem;
}

.iv-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.iv-hero p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 40rem;
}

.iv-search {
    margin-top: 1.5rem;
}

.iv-search input {
    width: min(100%, 28rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(18, 56, 88, 0.4);
    color: #fff;
    padding: 0.8rem 1rem;
}

.iv-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.iv-content {
    margin-top: 2rem;
}

.iv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.iv-filter {
    border: 1px solid #ccd8e3;
    background: #f7f9fc;
    color: #355273;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.iv-filter.is-active {
    background: #103a6d;
    color: #fff;
    border-color: #103a6d;
}

.iv-meta {
    color: #5c6f87;
    margin-bottom: 1rem;
}

.iv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.iv-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d7dee8;
    background: #f5f8fb;
    box-shadow: 0 8px 22px rgba(14, 30, 60, 0.08);
}

.iv-card__media {
    width: 100%;
    border: 0;
    background: #123f70;
    color: #fff;
    min-height: 210px;
    position: relative;
    display: block;
    cursor: pointer;
}

.iv-card__number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2d95d6;
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
}

.iv-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #2d95d6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.iv-card__duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
}

.iv-card__body {
    padding: 0.9rem 1rem 1rem;
}

.iv-card__title {
    margin: 0;
    font-size: 1.4rem;
}

.iv-card__description {
    margin: 0.35rem 0 0;
    color: #5f6f84;
}

.iv-empty {
    padding: 2rem;
    border: 1px dashed #b7c5d7;
    border-radius: 12px;
    color: #3e5876;
    text-align: center;
}

.iv-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 34, 0.84);
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.iv-modal[hidden] {
    display: none;
}

.iv-modal__dialog {
    width: min(900px, 100%);
    background: #0f2945;
    border-radius: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.iv-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
}

.iv-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.iv-modal__close {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
}

.iv-modal video {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #000;
    border-radius: 0 0 14px 14px;
}

@media (max-width: 1080px) {
    .iv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .iv-grid {
        grid-template-columns: 1fr;
    }
}

