/* ACMAD Learning Course Access Gateway — visual alignment with the Moove landing page. */

body.local-coursegate-access-page,
body.local-coursegate-access-page #page {
    background: #e5e5e5;
}

body.local-coursegate-access-page #page-header {
    display: none;
}

body.local-coursegate-access-page #page-content {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

body.local-coursegate-access-page #page-content .main-inner {
    width: calc(100% - 2rem);
    max-width: 1410px;
    min-height: 640px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(32, 51, 66, 0.12);
}

body.local-coursegate-access-page #region-main,
body.local-coursegate-access-page #region-main-box {
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.local-coursegate-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 640px;
    width: 100%;
    padding: 5rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.local-coursegate-page::before,
.local-coursegate-page::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.local-coursegate-page::before {
    top: -190px;
    right: -150px;
    width: 470px;
    height: 470px;
    background: radial-gradient(circle, rgba(0, 102, 164, 0.11) 0%, rgba(0, 102, 164, 0) 70%);
}

.local-coursegate-page::after {
    bottom: -230px;
    left: -150px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 128, 0, 0.09) 0%, rgba(0, 128, 0, 0) 72%);
}

.local-coursegate-panel {
    width: 100%;
    max-width: 760px;
    padding: 3.5rem 3.25rem 3.25rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d8e1e8;
    border-top: 5px solid #0066a4;
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(31, 60, 77, 0.12);
    text-align: center;
    box-sizing: border-box;
}

.local-coursegate-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.local-coursegate-brand-acmad {
    color: #0066a4;
}

.local-coursegate-brand-learning {
    color: #008000;
}

.local-coursegate-eyebrow {
    margin-bottom: 1.25rem;
    color: #547080;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.local-coursegate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.5rem;
    color: #0066a4;
    background: #eaf5fc;
    border: 1px solid #cce6f5;
    border-radius: 50%;
}

.local-coursegate-denied .local-coursegate-icon {
    color: #8a4b08;
    background: #fff4df;
    border-color: #f1d8ad;
}

.local-coursegate-icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.local-coursegate-title {
    max-width: 650px;
    margin: 0 auto 1rem;
    color: #263238;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.25;
}

.local-coursegate-course-name {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 1.35rem;
    padding: 0.52rem 0.9rem;
    overflow-wrap: anywhere;
    color: #005eb8;
    background: #f0f7fc;
    border: 1px solid #d7e9f5;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.local-coursegate-message {
    max-width: 620px;
    margin: 0 auto 2rem;
    color: #4a5963;
    font-size: 1.05rem;
    line-height: 1.7;
}

.local-coursegate-message strong {
    color: #263238;
}

.local-coursegate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.local-coursegate-actions .btn {
    min-width: 150px;
    padding: 0.72rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: none;
}

.local-coursegate-primary,
.local-coursegate-primary:hover,
.local-coursegate-primary:focus {
    color: #ffffff;
    background: #0066c0;
    border-color: #0066c0;
}

.local-coursegate-primary:hover,
.local-coursegate-primary:focus {
    background: #0057a4;
    border-color: #0057a4;
}

.local-coursegate-secondary {
    color: #0066a4;
    background: #ffffff;
    border-color: #0066a4;
}

.local-coursegate-secondary:hover,
.local-coursegate-secondary:focus {
    color: #ffffff;
    background: #0066a4;
    border-color: #0066a4;
}

@media (max-width: 768px) {
    body.local-coursegate-access-page #page-content {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    body.local-coursegate-access-page #page-content .main-inner {
        width: calc(100% - 1rem);
        min-height: 520px;
    }

    .local-coursegate-page {
        min-height: 520px;
        padding: 2.5rem 1rem;
    }

    .local-coursegate-panel {
        padding: 2.5rem 1.35rem 2.25rem;
    }
}

@media (max-width: 576px) {
    .local-coursegate-actions {
        flex-direction: column;
    }

    .local-coursegate-actions .btn {
        width: 100%;
    }
}
