/* Layout styles previously inlined in the header and footer.
   Kept in an external file so they apply under the site Content-Security-Policy. */

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #5b21b6;
    --accent: #00c853;
}

.navbar {
    background: var(--bs-white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 800;
    color: #1e3a5f !important;
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: #1e3a5f !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--bs-border-radius);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(0, 168, 204, 0.08);
}

.btn-get-started {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.btn-get-started:hover {
    background-color: #152a45;
    border-color: #152a45;
    color: #fff;
}

.btn.btn-outline-light {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn.btn-outline-light:hover {
    background: #fff;
    color: #1e3a5f;
}

.btn.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 204, 0.1);
    border-radius: 50%;
}

main {
    min-height: calc(100vh - 60px);
    background: #f8fafc;
}

.alert {
    border: none;
    border-radius: var(--bs-border-radius);
}

.page-hero {
    background-color: #1e3a5f;
}

.page-hero p,
.page-hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .text-soft {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

.site-footer {
    background-color: #4c1d95;
    color: #fff;
}

.site-footer .footer-brand {
    font-size: 1.25rem;
}

.site-footer .footer-lead,
.site-footer .footer-icon {
    color: #d8b4fe;
}

.site-footer .footer-social {
    color: #fff;
    opacity: 0.8;
}

.site-footer .footer-social:hover {
    color: #fff;
    opacity: 1;
}

.site-footer .footer-link,
.site-footer .footer-contact {
    color: #fff;
    opacity: 0.9;
}

.site-footer .footer-link:hover {
    color: #fff;
    opacity: 1;
}

.site-footer hr {
    border-color: #6b21a8;
    opacity: 1;
}

.site-footer .footer-legal,
.site-footer .footer-legal a {
    color: #fff;
    opacity: 0.8;
}

.site-footer .footer-legal a {
    margin-left: 1rem;
}

.site-footer .footer-legal a:first-child {
    margin-left: 0;
}

.site-footer .footer-legal a:hover {
    color: #fff;
    opacity: 1;
}

/* Page structure.
   The hosted Bootstrap file is not on the server, so these rules keep the
   navbar, columns, and spacing intact without it. */

.container,
.container-fluid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

.container {
    max-width: 1140px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

.container-fluid {
    max-width: none;
}

.row {
    --gutter-x: 1.5rem;
    --gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-.5 * var(--gutter-x));
    margin-left: calc(-.5 * var(--gutter-x));
}

.row > * {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--gutter-x) * .5);
    padding-left: calc(var(--gutter-x) * .5);
    margin-top: var(--gutter-y);
}

.g-4 {
    --gutter-x: 1.5rem;
    --gutter-y: 1.5rem;
}

.g-5 {
    --gutter-x: 3rem;
    --gutter-y: 3rem;
}

.col-6 { width: 50%; }
.col-12 { width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-5 { width: 41.666667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333333%; }
    .col-md-8 { width: 66.666667%; }
    .text-md-start { text-align: left !important; }
    .text-md-end { text-align: right !important; }
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333333%; }
    .col-lg-8 { width: 66.666667%; }
}

.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.ms-2 { margin-left: .5rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mt-auto { margin-top: auto !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255, 255, 255, .75) !important; }
.text-dark { color: #1e293b !important; }
.text-secondary { color: #64748b !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.small, small { font-size: .875em; }
.h-100 { height: 100%; }
.w-100 { width: 100% !important; }
.position-relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }
.z-1 { position: relative; z-index: 1; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid #e2e8f0 !important; }
.border-bottom { border-bottom: 1px solid #e2e8f0 !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(15, 23, 42, .12) !important; }
.shadow { box-shadow: 0 10px 24px rgba(15, 23, 42, .16) !important; }
.rounded { border-radius: .5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.img-fluid { max-width: 100%; height: auto; }
.list-unstyled { list-style: none; padding-left: 0; margin-bottom: 0; }
.lead { font-size: 1.25rem; }

.display-5 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.bg-primary { background-color: #1e3a5f !important; color: #fff !important; }
.bg-light { background-color: #f8fafc !important; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.btn-light {
    background: #fff;
    color: #1e3a5f;
}

.btn-light:hover {
    background: #f8fafc;
    color: #1e3a5f;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.navbar-toggler {
    display: none;
}

.navbar-collapse {
    display: flex;
    flex-basis: 100%;
    width: 100%;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: .25rem 0 0;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        width: auto;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
        width: auto;
        padding-top: 0;
    }
}

/* Solid academy header and footer. These rules win over older navbar styles. */
.site-header {
    background: #0b1f3a !important;
    background-color: #0b1f3a !important;
    opacity: 1 !important;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 3px solid #14b8d4;
    box-shadow: 0 8px 24px rgba(7, 18, 36, .28);
}

.header-bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand img,
.footer-brand img {
    height: 42px;
    width: auto;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.primary-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem;
}

.primary-nav > a,
.account-menu summary {
    color: #f4f8fc !important;
    font-weight: 600;
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: 8px;
}

.primary-nav > a:hover,
.account-menu summary:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
}

.primary-nav .nav-cta {
    background: #14b8d4 !important;
    color: #04202a !important;
    margin-left: .35rem;
}

.primary-nav .nav-cta:hover {
    background: #67d6e8 !important;
    color: #04202a !important;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    min-width: 180px;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, .16);
    padding: .4rem;
    z-index: 5;
}

.account-panel a {
    display: block;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: #0b1f3a !important;
    text-decoration: none;
    font-weight: 600;
}

.account-panel a:hover {
    background: #f4f7fb;
}

.site-footer {
    background: #071525 !important;
    color: #d5e2ef;
    padding: 3.5rem 0 1.5rem;
}

.site-footer h6 {
    color: #fff;
    margin-bottom: .8rem;
}

.site-footer .footer-lead,
.site-footer .footer-contact,
.site-footer .footer-contact li {
    color: #b7c7d8;
}

.site-footer .footer-link,
.footer-bottom a {
    color: #d5e2ef !important;
    text-decoration: none;
}

.site-footer .footer-link:hover,
.footer-bottom a:hover {
    color: #7fd3e5 !important;
}

.site-footer li {
    margin-bottom: .45rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p,
.footer-bottom a {
    color: #9aafc3;
    margin: 0;
}

.footer-bottom a + a {
    margin-left: 1rem;
}

.auth-wrap {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    padding: 3rem 1rem;
}

.auth-wrap .card {
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, .08);
}

.auth-wrap .form-label,
.auth-wrap .form-check-label {
    color: #0b1f3a !important;
}

.auth-brand {
    display: block;
    margin-top: .4rem;
    color: #0b1f3a !important;
    font-weight: 800;
    font-size: 1.2rem;
}

.page-hero {
    background: #0b1f3a !important;
    color: #fff;
}

@media (max-width: 860px) {
    .header-bar,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
