/* =========================================================
   iiSHEEG HOME REGISTRATION CTA + VIDEO FIT
   Built for the four-column final hero.
   ========================================================= */

/* Preserve the existing hero and card dimensions */
.ii-hero .ii-video-card {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Enlarge only the video within its current card */
.ii-hero .ii-video-card .ii-video-heading {
    flex: 0 0 auto !important;
}

.ii-hero .ii-video-card video {
    display: block !important;
    width: calc(100% + 16px) !important;
    max-width: none !important;
    height: calc(100% + 4px) !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 -8px -4px !important;
    object-fit: cover !important;
    background: #000 !important;
    border-radius: 0 0 9px 9px !important;
}

/* Compact registration panel under the search box */
.ii-register-cta {
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(65, 207, 190, .42);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(42, 154, 143, .13), rgba(32, 80, 126, .10));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    color: #fff;
}

.ii-register-kicker {
    display: block;
    margin-bottom: 3px;
    color: #54d8c9;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.2;
}

.ii-register-cta h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 13px;
    line-height: 1.18;
}

.ii-register-cta p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 8px;
    line-height: 1.38;
}

.ii-register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 7px 0 6px;
}

.ii-register-benefits span {
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.86);
    font-size: 6.5px;
    line-height: 1;
}

.ii-register-cta .ii-register-note {
    color: rgba(255,255,255,.58);
    font-size: 7px;
}

.ii-register-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 6px;
    background: #43c7b6;
    color: #082437 !important;
    font-size: 8px;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
}

.ii-register-cta-button:hover {
    background: #65dfd0;
}

.ii-register-premium {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.48);
    font-size: 6px;
    line-height: 1.35;
}

/* Do not force the search column or hero to become wider or taller */
.ii-search-column {
    min-width: 0 !important;
}

@media (max-width: 1100px) {
    .ii-register-cta h2 {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .ii-hero .ii-video-card video {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    .ii-register-cta {
        padding: 13px;
    }

    .ii-register-cta h2 {
        font-size: 16px;
    }

    .ii-register-cta p {
        font-size: 11px;
    }

    .ii-register-benefits span {
        font-size: 9px;
        padding: 4px 7px;
    }

    .ii-register-cta .ii-register-note {
        font-size: 9px;
    }

    .ii-register-cta-button {
        min-height: 38px;
        font-size: 11px;
    }

    .ii-register-premium {
        font-size: 8px;
    }
}
/* =========================================================
   LAPTOP VIDEO TIDY-UP — SAFE VERSION
   Changes only the video cards, not the hero columns
   ========================================================= */

@media (min-width: 1100px) {

    .ii-hero .ii-video-card {
        height: 285px !important;
        min-height: 285px !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .ii-hero .ii-video-heading {
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }

    .ii-hero .ii-video-heading strong {
        font-size: 12px !important;
        line-height: 1.15 !important;
        text-align: right !important;
        max-width: 62% !important;
    }

    .ii-hero .ii-video-language {
        flex: 0 0 auto !important;
        font-size: 9px !important;
        padding: 4px 8px !important;
    }

    .ii-hero .ii-video-card video {
        display: block !important;
        width: 100% !important;
        height: 217px !important;
        min-height: 217px !important;
        margin: 0 !important;
        flex: 0 0 217px !important;
        object-fit: cover !important;
        border-radius: 9px !important;
        background: #000 !important;
    }
}

@media (min-width: 1100px) and (max-width: 1450px) {

    .ii-hero .ii-video-card {
        height: 250px !important;
        min-height: 250px !important;
    }

    .ii-hero .ii-video-heading {
        height: 42px !important;
        min-height: 42px !important;
        margin-bottom: 7px !important;
    }

    .ii-hero .ii-video-heading strong {
        font-size: 10px !important;
    }

    .ii-hero .ii-video-card video {
        height: 181px !important;
        min-height: 181px !important;
        flex-basis: 181px !important;
    }
}
/* =========================================================
   COMPACT STACKED VIDEOS
   Halves the height of the Somali and English video cards
   ========================================================= */

@media (min-width: 1100px) {

    .ii-video-stack {
        align-self: start !important;
        height: auto !important;
        grid-template-rows: repeat(2, 190px) !important;
        gap: 10px !important;
    }

    .ii-video-stack .ii-video-card-compact {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
        padding: 8px !important;
    }

    .ii-video-stack .ii-video-heading-compact {
        height: 23px !important;
        min-height: 23px !important;
        flex: 0 0 23px !important;
        margin: 0 0 5px !important;
    }

    .ii-video-stack .ii-video-card-compact video {
        display: block !important;
        width: 100% !important;
        height: 146px !important;
        min-height: 146px !important;
        max-height: 146px !important;
        flex: 0 0 146px !important;
        margin: 0 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
}

/* Slightly smaller on ordinary laptop screens */
@media (min-width: 1100px) and (max-width: 1450px) {

    .ii-video-stack {
        grid-template-rows: repeat(2, 175px) !important;
        gap: 8px !important;
    }

    .ii-video-stack .ii-video-card-compact {
        height: 175px !important;
        min-height: 175px !important;
        max-height: 175px !important;
    }

    .ii-video-stack .ii-video-card-compact video {
        height: 131px !important;
        min-height: 131px !important;
        max-height: 131px !important;
        flex-basis: 131px !important;
    }
}
/* FINAL SMALLER STACKED VIDEO SIZE */

@media (min-width: 1100px) {

    .ii-video-stack {
        grid-template-rows: repeat(2, 165px) !important;
        gap: 8px !important;
    }

    .ii-video-stack .ii-video-card-compact {
        height: 165px !important;
        min-height: 165px !important;
        max-height: 165px !important;
        padding: 7px !important;
    }

    .ii-video-stack .ii-video-heading-compact {
        height: 21px !important;
        min-height: 21px !important;
        flex-basis: 21px !important;
        margin-bottom: 4px !important;
    }

    .ii-video-stack .ii-video-card-compact video {
        height: 126px !important;
        min-height: 126px !important;
        max-height: 126px !important;
        flex-basis: 126px !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
    }
}

@media (min-width: 1100px) and (max-width: 1450px) {

    .ii-video-stack {
        grid-template-rows: repeat(2, 150px) !important;
    }

    .ii-video-stack .ii-video-card-compact {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

    .ii-video-stack .ii-video-card-compact video {
        height: 111px !important;
        min-height: 111px !important;
        max-height: 111px !important;
        flex-basis: 111px !important;
    }
}
/* NARROWER STACKED VIDEO COLUMN — WIDTH ONLY */

@media (min-width: 1100px) {

    .ii-video-stack {
        width: 88% !important;
        max-width: 360px !important;
        justify-self: center !important;
    }

    .ii-video-stack .ii-video-card-compact {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .ii-video-stack .ii-video-card-compact video {
        width: 100% !important;
        object-fit: cover !important;
    }
}

@media (min-width: 1100px) and (max-width: 1450px) {

    .ii-video-stack {
        width: 84% !important;
        max-width: 320px !important;
    }
}
/* =========================================================
   SEARCH AND REGISTRATION IN ONE RIGHT-HAND COLUMN
   ========================================================= */

@media (min-width: 1100px) {

    .ii-hero {
        grid-template-columns:
            minmax(340px, 1.22fr)
            minmax(300px, .92fr)
            minmax(330px, 1fr) !important;
        gap: 20px !important;
        align-items: start !important;
    }

    .ii-search-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        align-self: start !important;
    }

    .ii-search-column > .ii-card,
    .ii-search-column > .ii-register-cta {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .ii-search-column > .ii-register-cta {
        margin-top: 0 !important;
    }
}

@media (min-width: 1100px) and (max-width: 1450px) {

    .ii-hero {
        grid-template-columns:
            minmax(300px, 1.12fr)
            minmax(270px, .88fr)
            minmax(310px, 1fr) !important;
        gap: 15px !important;
    }
}