/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --font-family: "Roboto Condensed", sans-serif;
    --color-cobalt: #1d48c0;
    --color-blue-border: #5479e0;
    --color-white: #ffffff;
    --color-gray-medium: #6c757d;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

body {
    background-color: var(--color-white);
    font-family: var(--font-family);
}

a {
    color: var(--color-cobalt);
    text-decoration: none;
}

.btn-link {
    color: var(--color-cobalt);
}

main#main-content:focus {
    outline: none;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1050;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    background-color: var(--color-cobalt);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease-in-out;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-white);
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */

.cps-logo {
    width: 220px;
}

.cps-logo-container {
    border-bottom: 1px solid var(--color-blue-border);
}

.utility-container {
    display: flex;
    align-items: center;
    min-height: 75px;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Aspen Announcements Section --- */
.aspen-announcements {
    background-color: var(--color-cobalt);
}

.aspen-carousel-container {
    position: relative;
    width: 90%;
    max-width: 550px;
    margin: 0 auto;

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
        width: auto !important;
        opacity: 0.8;

        &:hover {
            opacity: 1;
        }
    }

    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }

    .carousel-inner {
        padding-right: 1rem;
        padding-left: 1rem;

        a {
            padding: 5px;
            border-bottom: 1px dashed #b3d1ff;
            color: #b3d1ff;
        }
    }

    /* Large Screen Overrides (1800px+) */
    @media (min-width: 1800px) {
        width: 100%;
        max-width: 715px;

        .carousel-control-prev,
        .carousel-control-next {
            display: flex;
        }

        .carousel-inner {
            padding-right: 4.5rem !important;
            padding-left: 4.5rem !important;
        }

        .carousel-item {
            h5 {
                margin-bottom: 1.25rem !important;
                font-size: 1.75rem !important;
            }

            p {
                font-size: 1rem !important;
                line-height: 1.6;
            }
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            width: 2.25rem;
            height: 2.25rem;
        }
    }
}

.nav-tabs {
    .nav-link {
        color: var(--color-cobalt)
    }
}

.carousel-inner a.btn-outline-light {
    padding: 15px;
    border: 1px solid #b3d1ff;
    background-color: transparent;
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;

    &:hover {
        border-color: #4b8ee1;
        background-color: #0162db;
        color: #ffffff;
    }

    &:active {
        border-color: #4b8ee1;
        background-color: #0b3b75;
        color: #ffffff;
    }

    &:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 3px;
        background-color: #1a5fb4;
        color: #ffffff;
    }
}

/* --- Account Selection --- */
.account-type {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;

    >div {
        width: 100%;
        max-width: 500px;
    }
}

.account-type-text {
    font-weight: 300;
}

.card {
    border-color: #e2e8f0;
    background-color: #f8fafc;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;

    &:hover {
        border-color: #92a5db;
        background-color: #f4f6fc;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

/* --- Icons & Overrides --- */
.bi-book,
.bi-people {
    margin-right: 1rem;
    padding: 15px 20px;
    border-radius: 5px;
    background-color: #123794;
    color: #ffffff;
    font-size: 1.5rem;
}

.bi-arrow-right {
    font-size: 1.5rem;
}

.accordion-button {
    padding-left: 0;
}

.modal-header {
    background-color: var(--color-cobalt);
    color: #ffffff;
}

/* --- Footer --- */
footer a {
    color: var(--color-gray-medium);

    &:hover {
        color: var(--color-cobalt);
    }
}

footer p a:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin: 0 8px;
    color: #6c757d;
    text-decoration: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.grayscale {
    opacity: 0.9;
    filter: grayscale(100%);
}

/* ==========================================================================
   Media Queries & Responsive Layouts
   ========================================================================== */

/* Mobile / Tablet (Under 1200px) */
@media (max-width: 1199.98px) {
    body {
        background-color: var(--color-white);
    }

    .row-custom-height {
        align-content: start;
        flex-grow: 0 !important;
    }

    .news-announcements {
        flex: 0 0 auto !important;
        height: auto;
        margin-bottom: 0;
        padding: 0 1.5rem;
    }

    .login-container {
        position: relative;
        z-index: 5;
        width: 95%;
        margin: -20px auto 0;
        padding-top: 1.5rem;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        background-color: var(--color-white);
        box-shadow: 0 -24px 0 0 var(--color-cobalt);
    }
    
}

/* Desktop Base (1200px+) */
@media (min-width: 1200px) {
    .row-custom-height {
        min-height: calc(100vh - 75px);
    }

    .desktop-footer {
        position: relative;
        z-index: 10;
        height: 75px;
        background-color: var(--color-white);
    }
}

/* Medium Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .help-container {
        border-bottom: 1px solid #d9d9d9;
    }

    .aspen-announcements {
        z-index: 2;
        flex: 0 0 54% !important;
        width: 54% !important;
        max-width: 54% !important;
        padding-bottom: 0;
        background-image: linear-gradient(rgba(0, 51, 153, 0.85), rgba(0, 51, 153, 0.85)), url("../img/bg-parent-student.png");
        background-position: center center;
        background-size: cover;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    }

    .login-container {
        z-index: 1;
        flex: 0 0 61% !important;
        width: 61% !important;
        max-width: 61% !important;
        margin-left: -15% !important;
        padding-left: 0 !important;
    }

    .account-type {
        padding-left: 22% !important;
    }

    .carousel-item {
        h5 {
            font-size: 1.15rem !important;
        }

        p {
            font-size: 1rem !important;
        }
    }
}

/* Large Desktop (1400px - 1799px) */
@media (min-width: 1400px) and (max-width: 1799.98px) {
    .help-container {
        border-bottom: 1px solid #d9d9d9;
    }

    .aspen-announcements {
        z-index: 2;
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        padding-bottom: 0;
        background-image: linear-gradient(rgba(0, 51, 153, 0.85), rgba(0, 51, 153, 0.85)), url("../img/bg-parent-student.png");
        background-position: center center;
        background-size: cover;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    }

    .login-container {
        z-index: 1;
        flex: 0 0 65% !important;
        width: 65% !important;
        max-width: 65% !important;
        margin-left: -15% !important;
        padding-left: 0 !important;
    }

    .account-type {
        padding-left: 22% !important;
    }

    .carousel-item p {
        font-size: 1rem !important;
    }
}

/* Ultra-Wide Desktop (1800px+) */
@media (min-width: 1800px) {
    .help-container {
        border-bottom: 1px solid #d9d9d9;
    }

    .aspen-announcements {
        z-index: 2;
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        padding-bottom: 0;
        background-image: linear-gradient(rgba(0, 51, 153, 0.85), rgba(0, 51, 153, 0.85)), url("../img/bg-parent-student.png");
        background-position: center center;
        background-size: cover;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    }

    .login-container {
        z-index: 1;
        flex: 0 0 65% !important;
        width: 65% !important;
        max-width: 65% !important;
        margin-left: -15% !important;
        padding-left: 0 !important;
    }

    .account-type {
        padding-left: 17% !important;
    }

    .aspen-carousel-container {
        width: 100%;
        max-width: 715px;
    }
}