/* Virtual Chapter Promo block — panel wraps ONLY the heading + dropdown + Go (tiles sit outside). */

.virtual-chapter-block__selector-panel {
    background: #ffffff;
    border: 1px solid #d8d4de;
    border-top: 4px solid #003845;
    border-radius: 14px;
    padding: 24px 32px 28px;
}

.virtual-chapter-block__title {
    display: block;
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 600;
    color: #003845;
}

/* Dropdown full-width, Go button centered on its own row below. */
.virtual-chapter-block__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.virtual-chapter-block__controls select {
    flex: none; /* a flex-basis here becomes HEIGHT in the column layout — never allow one */
    width: 100%;
    height: auto;
    padding: 12px 16px;
    border: 2px solid #003845;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c2c2a;
    font-size: 17px;
}

    .virtual-chapter-block__controls select option {
        font-size: 17px;
    }

.virtual-chapter-block__controls select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 56, 69, .2);
}

.virtual-chapter-block__go {
    flex: 0 0 auto;
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    background: #003845;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

.virtual-chapter-block__go:hover {
    background: #004d5f;
}

.virtual-chapter-block__tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

    .virtual-chapter-block__tiles .virtual-chapter-tile {
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
        min-width: 200px;
        min-height: 200px;
    }

@media (max-width: 991.98px) {
    .virtual-chapter-block__tiles .virtual-chapter-tile {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 575.98px) {
    .virtual-chapter-block__tiles .virtual-chapter-tile {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.virtual-chapter-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    min-width: 200px;
    min-height: 200px;
}

    .virtual-chapter-tile::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #12164F;
        opacity: 0.78;
        z-index: 1;
    }

    .virtual-chapter-tile > span {
        position: relative;
        z-index: 2;
        color: #ffffff !important;
        text-transform: uppercase;
    }

/* Keep the global link-hover (blue + underline) suppressed on the tile text. */
.virtual-chapter-tile:hover,
.virtual-chapter-tile:focus {
    text-decoration: none;
    color: #ffffff !important;
}

    .virtual-chapter-tile:hover > span,
    .virtual-chapter-tile:focus > span {
        text-decoration: none;
        color: #ffffff !important;
    }

@media (max-width: 991.98px) {
    .virtual-chapter-block__tiles {
        flex-wrap: wrap;
    }

        .virtual-chapter-block__tiles .virtual-chapter-tile {
            flex: 0 0 50%;
            max-width: 50%;
            margin-bottom: 20px;
        }
}

@media (max-width: 575.98px) {
    .virtual-chapter-block__tiles .virtual-chapter-tile {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
