/* Morning Star overrides. Keep original template styles unchanged. */
html {
    scroll-padding-top: var(--morningstar-nav-height, 80px);
}

/* Contact feedback: override the template's red success-alert theme. */
#contact_results.alert-success {
    color: #000000;
    background-color: #00FF00;
    border-color: #00FF00;
}

#contact_results.alert-danger {
    color: #FFFFFF;
    background-color: #FF0000;
    border-color: #FF0000;
}

#contact_results.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #9eeaf9;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Match the original map height and remove inline iframe baseline spacing. */
.contact-map iframe {
    display: block;
    height: 400px;
}

/* Center the three existing tuition columns, including wrapped tablet rows. */
#tuition > .container > .row {
    justify-content: center;
}

@media (min-width: 768px) {
    #tuition > .container > .row > .col-md-3 {
        width: 33.33333333%;
    }
}

/* Christian Values: use the full section, like the original site's 12-column
   layout, rather than Bootstrap's breakpoint-sized .container. */
#call-to-action1 > .container {
    width: calc(100% - 32px);
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
}

#call-to-action1 > .container > .card {
    /* Smoothly move from a full-width mobile card to offset 6 / width 5.
       Both dimensions use the same offset so the card stays inside its parent. */
    --values-offset: clamp(0px, calc(100vw - 700px), 50%);
    margin-left: var(--values-offset);
    width: calc(100% - var(--values-offset) * 1.1666667);
    padding: clamp(20px, calc(4vw - 4px), 60px);
}

/* Navigation spacing is outside the measured photo stage. LayerSlider gets
   an explicit 1500 x 750 canvas in custom.js; no padding enters its geometry. */
#layerslider {
    box-sizing: content-box;
    padding: 0 !important;
    margin-top: var(--morningstar-nav-height, 80px);
    aspect-ratio: 2 / 1;
    height: auto !important;
}

/* Banner dimensions are based on the actual photo area, not percentage margins. */
#layerslider .header-text {
    box-sizing: border-box !important;
    width: var(--banner-width, min(70vw, 900px)) !important;
    max-height: var(--banner-max-height, none);
    height: auto !important;
    margin: 0 !important;
    overflow: auto;
}

/* Keep positioning separate from LayerSlider's animated transform. */
#layerslider .morningstar-banner-wrapper {
    left: var(--banner-center-x) !important;
    top: var(--banner-top) !important;
    width: var(--banner-width) !important;
    height: auto !important;
    margin: 0 !important;
    translate: -50% 0;
}

@media (max-width: 767px) {
    #layerslider .header-text {
        padding: 12px 16px !important;
    }

    #layerslider .header-text h1 {
        font-size: clamp(20px, 4vw, 30px) !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    #layerslider .header-text .btn {
        margin-top: 10px !important;
        padding: 10px 22px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}
