/* =========================================================
   JUNIATA TUITION BENEFIT PORTAL
   css/main.css
========================================================= */


/* =============================
   GLOBAL
============================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f7f8fa;

    font-family: "Roboto Condensed",
                 Arial,
                 Helvetica,
                 sans-serif;

    color: #333;
}

a {
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.bg-juniata {
    background-color: #1B365D !important;
}


/* =============================
   ACCESSIBILITY
============================= */

.skip-link {
    position: absolute;

    top: -999px;
    left: 0;

    background: #A89968;
    color: #1B365D;

    font-weight: 700;

    padding: .5rem 1rem;

    z-index: 9999;

    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}


/* =============================
   HERO
============================= */

.header-hero {

    background:
        linear-gradient(
            rgba(10,25,48,.65),
            rgba(10,25,48,.65)
        ),
        url("../images/campus-aerials-fall-1680-500.jpg")
        center / cover
        no-repeat;

    height: 220px;
    min-height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Logo + title */

.header-brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 0 20px;
}


.header-mark {

    height: 46px;

    width: auto;

    flex-shrink: 0;
}


.header-title {

    color: white;

    font-size: 2.5rem;

    font-weight: 700;

    letter-spacing: 2px;

    margin: 0;

    text-align: center;
}


/* =============================
   PAGE WRAPPER
============================= */

.page-wrapper {

    max-width: 1150px;

    margin: 35px auto 50px;

    padding: 0 20px;
}


/* =============================
   SECTION HEADERS
============================= */

.section-header {

    margin: 2rem 0 1.25rem;
}

.section-header-first {

    margin-top: 0;
}

.section-header h1,
.section-header h2 {

    color: #1B365D;

    font-weight: 700;

    margin: 0 0 .4rem;
}

.section-header h1 {

    font-size: 2rem;
}

.section-header h2 {

    font-size: 1.5rem;
}

.gold-rule {

    width: 56px;

    height: 4px;

    background: #A89968;

    border: none;

    margin: 0;

    opacity: 1;
}


/* =============================
   TOP ACCESS LAYOUT
============================= */

.top-access-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, .95fr);

    gap: 3rem;

    align-items: start;

    margin-bottom: 3rem;
}


/* =============================
   ACCESS INTRO
============================= */

.access-main {

    padding-top: .2rem;
}

.access-intro {

    max-width: 730px;

    font-size: 1rem;

    line-height: 1.7;

    color: #333;

    margin-bottom: 1rem;
}


.access-highlight {

    max-width: 730px;

    background: #f7f4ee;

    border-left: 5px solid #A89968;

    padding: 1rem 1.25rem;

    margin: 1.5rem 0;

    color: #333;

    line-height: 1.6;
}


.access-highlight p {

    margin: .7rem 0 0;
}


.scroll-access-link {

    display: inline-block;

    color: #1B365D;

    font-weight: 700;

    text-decoration: none;

    margin-top: .3rem;

    border-bottom: 2px solid #A89968;

    padding-bottom: 3px;
}


.scroll-access-link:hover {

    color: #1B365D;

    text-decoration: none;
}


/* =============================
   CURRENT EMPLOYEE PANEL
============================= */

.employee-access-panel {

    background: #1B365D;

    color: #fff;

    border-top: 7px solid #A89968;

    padding: 2rem;

    border-radius: 0 0 8px 8px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.08);
}


.employee-access-panel h2 {

    color: #fff;

    font-size: 1.5rem;

    font-weight: 700;

    margin: 0 0 1rem;
}


.employee-access-panel h3 {

    color: #fff;

    font-size: 1rem;

    font-weight: 700;

    margin: 0 0 .65rem;
}


.employee-access-panel p {

    color: #fff;

    line-height: 1.6;

    margin-bottom: 1rem;
}


.employee-panel-lead {

    font-weight: 700;
}


.employee-panel-button {

    display: inline-block;

    background: #A89968;

    color: #1B365D;

    border-radius: 5px;

    padding: .7rem 1rem;

    font-weight: 700;

    text-decoration: none;

    margin-top: .5rem;
}


.employee-panel-button:hover {

    background: #A89968;

    color: #1B365D;

    transform: translateY(-2px);
}


.employee-panel-button:focus-visible {

    outline: 3px solid #fff;

    outline-offset: 3px;
}


.employee-panel-divider {

    height: 1px;

    background: rgba(255,255,255,.25);

    margin: 1.75rem 0 1.25rem;
}


.employee-help-text {

    font-size: .9rem;

    margin-bottom: .5rem !important;
}


/* =============================
   EXTERNAL REQUEST SECTION
============================= */

#access-request-options {

    scroll-margin-top: 25px;
}


.section-description {

    max-width: 900px;

    color: #53565a;

    font-size: 1rem;

    line-height: 1.6;

    margin-bottom: .8rem;
}


.info-bar {

    margin-bottom: 2rem;

    font-size: .9375rem;
}


.info-bar a {

    color: #1B365D;

    font-weight: 700;
}


.info-bar a:focus-visible {

    outline: 2px solid #A89968;

    outline-offset: 2px;
}


/* =============================
   CARDS GRID
============================= */

.cards-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.5rem;

    list-style: none;

    padding: 0;

    margin: 0;
}


/* =============================
   BENEFIT CARD
============================= */

.benefit-card {

    position: relative;

    display: block;

    text-decoration: none;

    color: inherit;

    border-radius: 18px;

    overflow: hidden;

    background: #fff;

    box-shadow:
        0 8px 20px rgba(0,0,0,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    cursor: pointer;
}


.benefit-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 35px rgba(0,0,0,.12);
}


.benefit-card:focus-visible {

    outline: 3px solid #A89968;

    outline-offset: 3px;
}


.benefit-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;
}


.card-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.72),
            rgba(0,0,0,.08)
        );

    pointer-events: none;
}


.card-body-inner {

    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    padding: 1.25rem;

    color: #fff;
}


.card-accent {

    height: 4px;

    width: 40px;

    background: #A89968;

    margin-bottom: .625rem;
}


.card-title {

    font-size: 1.125rem;

    font-weight: 700;

    margin: 0 0 .3rem;
}


.card-desc {

    font-size: .8125rem;

    opacity: .9;

    margin: 0 0 .75rem;
}


.card-cta {

    display: inline-block;

    padding: .35rem .875rem;

    background: #A89968;

    color: #1B365D;

    border-radius: 4px;

    font-size: .8125rem;

    font-weight: 700;
}


/* =============================
   STANDARD JUNIATA BUTTON
============================= */

.btn-juniata {

    background-color: #1B365D;

    color: white;

    border-radius: 8px;

    padding: 10px;

    font-weight: 600;

    transition: .3s;
}


.btn-juniata:hover {

    background-color: #A89968;

    color: white;
}


/* =============================
   SUBMISSIONS
============================= */

.submission-card {

    background: white;

    border-left: 4px solid #A89968;

    padding: 16px 20px;

    border-radius: 6px;

    margin-bottom: 14px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow:
        0 2px 6px rgba(0,0,0,.05);
}


.status-badge {

    padding: 6px 12px;

    border-radius: 20px;

    font-size: .8rem;

    font-weight: 700;
}


.processing {

    background: #fff3cd;

    color: #856404;
}


.approved {

    background: #d4edda;

    color: #155724;
}


.denied {

    background: #f8d7da;

    color: #721c24;
}


.pending {

    background: #e2e3e5;

    color: #383d41;
}


/* =============================
   HR CONTACT
============================= */

.hr-contact {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;

    margin-top: 3rem;

    padding: 1.5rem 1.75rem;

    background: #f7f4ee;

    border-left: 5px solid #A89968;
}


.hr-contact h2 {

    margin: 0 0 .4rem;

    color: #1B365D;

    font-size: 1.25rem;

    font-weight: 700;
}


.hr-contact p {

    margin: 0;

    color: #53565a;

    line-height: 1.6;
}


.hr-contact-details {

    min-width: 210px;

    color: #1B365D;

    line-height: 1.5;
}


/* =============================
   RESPONSIVE
============================= */

@media (max-width: 900px) {

    .top-access-layout {

        grid-template-columns: 1fr;

        gap: 2rem;
    }


    .cards-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .header-hero {

        height: 150px;

        min-height: 150px;
    }


    .header-brand {

        gap: 10px;
    }


    .header-mark {

        height: 32px;
    }


    .header-title {

        font-size: 2rem;

        letter-spacing: 1px;
    }


    .page-wrapper {

        margin: 25px auto 40px;
    }

}


@media (max-width: 540px) {

    .header-title {

        font-size: 1.5rem;
    }


    .header-mark {

        height: 28px;
    }


    .cards-grid {

        grid-template-columns: 1fr;
    }


    .employee-access-panel {

        padding: 1.5rem;
    }


    .hr-contact {

        flex-direction: column;

        align-items: flex-start;
    }


    .hr-contact-details {

        min-width: 0;
    }

}

