/* =========================================================
   PEA RIDGE BLACKHAWK SCHOLARSHIP HUB
   RED / BLACK / WHITE / GOLD
   ========================================================= */

:root {

    /* MAIN BRAND COLORS */

    --black: #080808;
    --black-soft: #111111;
    --black-card: #171717;

    --red: #b5121b;
    --red-bright: #d71920;
    --red-dark: #8e0d14;

    --white: #ffffff;
    --off-white: #f6f6f6;

    --gray: #6d6d6d;
    --gray-light: #e5e5e5;

    /* GOLD = IMPORTANT / LARGE AWARDS */

    --gold: #c89b3c;
    --gold-light: #e6c56a;
    --gold-dark: #92701f;

    --text: #202020;

    --radius: 18px;

    --shadow:
        0 10px 30px rgba(0,0,0,.09);

    --shadow-hover:
        0 25px 55px rgba(0,0,0,.18);

    --transition:
        all .3s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background: var(--off-white);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {

    width: min(1180px, 92%);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(8,8,8,.96);

    backdrop-filter:
        blur(15px);

    border-bottom:
        2px solid var(--red);
}


.header-content {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

    color: white;

    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.blackhawk-logo {

    width: 55px;

    height: 55px;

    object-fit: contain;
}


.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.05;
}

.logo-text span {

    color: #ffffff;

    font-size: .7rem;

    font-weight: 900;

    letter-spacing: .18em;
}

.logo-text strong {

    color: var(--red-bright);

    font-size: 1.15rem;

    letter-spacing: -.02em;
}


/* NAVIGATION */

nav {

    display: flex;

    align-items: center;

    gap: 6px;
}

nav a {

    position: relative;

    padding: 11px 15px;

    color:
        rgba(255,255,255,.72);

    border-radius: 8px;

    font-size: .9rem;

    font-weight: 700;

    transition: var(--transition);
}

nav a:hover,
nav a.active {

    color: white;

    background:
        rgba(255,255,255,.07);
}

nav a.active {

    color: white;
}

nav a.active::after {

    content: "";

    position: absolute;

    left: 15px;
    right: 15px;

    bottom: 3px;

    height: 3px;

    border-radius: 5px;

    background: var(--red-bright);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: white;

    background:

        radial-gradient(
            circle at 75% 30%,
            rgba(213,25,32,.25),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            #050505,
            #111111 55%,
            #1a1a1a
        );
}


.hero-pattern {

    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:

        linear-gradient(
            135deg,
            transparent 25%,
            rgba(255,255,255,.25) 25%,
            rgba(255,255,255,.25) 26%,
            transparent 26%
        );

    background-size: 70px 70px;

    transform:
        rotate(-5deg)
        scale(1.2);
}


.hero-red-glow {

    position: absolute;

    right: -160px;

    top: -160px;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    background: var(--red);

    filter: blur(100px);

    opacity: .25;

    animation:
        heroFloat 7s ease-in-out infinite;
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 820px;

    padding: 100px 0;
}


/* HERO LOGO */

.hero-logo {

    width: 105px;

    height: 105px;

    display: grid;

    place-items: center;

    margin-bottom: 25px;

    padding: 12px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid rgba(255,255,255,.15);

    border-radius: 25px;

    animation:
        fadeDown .7s ease both;
}

.hero-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


.hero-badge {

    display: inline-flex;

    padding: 7px 13px;

    margin-bottom: 18px;

    color: var(--gold-light);

    border:
        1px solid rgba(200,155,60,.4);

    background:
        rgba(200,155,60,.08);

    border-radius: 100px;

    font-size: .72rem;

    font-weight: 900;

    letter-spacing: .14em;

    animation:
        fadeDown .7s .1s ease both;
}


.hero h1 {

    max-width: 800px;

    margin-bottom: 25px;

    font-size:
        clamp(3.2rem, 7vw, 5.8rem);

    line-height: .95;

    letter-spacing: -.06em;

    animation:
        fadeUp .8s .15s ease both;
}


.hero h1 span {

    display: block;

    color: var(--red-bright);
}


.hero p {

    max-width: 650px;

    margin-bottom: 35px;

    color:
        rgba(255,255,255,.68);

    font-size: 1.12rem;

    animation:
        fadeUp .8s .25s ease both;
}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    animation:
        fadeUp .8s .35s ease both;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.cta-button,
.secondary-button,
.outline-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 14px 22px;

    border-radius: 10px;

    font-weight: 900;

    transition: var(--transition);
}


.cta-button {

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red)
        );

    box-shadow:
        0 10px 25px rgba(183,18,27,.3);
}


.cta-button:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 35px rgba(183,18,27,.4);

    background:
        linear-gradient(
            135deg,
            #e41d25,
            var(--red-bright)
        );
}


.secondary-button {

    color: white;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.18);
}


.secondary-button:hover {

    transform:
        translateY(-4px);

    background:
        rgba(255,255,255,.12);
}


.outline-button {

    color: var(--red);

    border:
        2px solid var(--red);

    background: transparent;
}


.outline-button:hover {

    color: white;

    background: var(--red);

    transform:
        translateY(-3px);
}


/* =========================================================
   STATS
   ========================================================= */

.stats-section {

    position: relative;

    z-index: 5;

    margin-top: -45px;
}


.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}


.stat-card {

    padding: 24px;

    background: white;

    border:
        1px solid var(--gray-light);

    border-top:
        4px solid var(--red);

    border-radius: 14px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.stat-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-hover);
}


.stat-icon {

    display: block;

    margin-bottom: 6px;

    font-size: 1.5rem;
}


.stat-card strong {

    display: block;

    color: var(--black);

    font-size: 1.5rem;

    line-height: 1.1;
}


.stat-card p {

    color: var(--gray);

    font-size: .78rem;
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
    padding: 100px 0;
}


.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}


.section-heading.centered {

    justify-content: center;

    text-align: center;
}


.section-label {

    display: inline-block;

    margin-bottom: 8px;

    color: var(--red);

    font-size: .7rem;

    font-weight: 900;

    letter-spacing: .16em;
}


.section-heading h2 {

    color: var(--black);

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1.05;

    letter-spacing: -.04em;
}


.section-heading p {

    max-width: 650px;

    margin-top: 14px;

    color: var(--gray);
}


.view-all {

    color: var(--red);

    font-weight: 900;

    transition: var(--transition);
}


.view-all:hover {

    transform:
        translateX(5px);

    color: var(--red-bright);
}


/* =========================================================
   SCHOLARSHIPS
   ========================================================= */

.scholarships-section {

    background:
        var(--off-white);
}


.scholarship-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* CARD */

.scholarship-card {

    position: relative;

    min-height: 415px;

    padding: 25px;

    background: white;

    border:
        1px solid var(--gray-light);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        border-color .35s ease;

    z-index: 1;
}


.scholarship-card:hover {

    transform:
        translateY(-12px)
        scale(1.015);

    border-color:
        rgba(181,18,27,.35);

    box-shadow:
        0 25px 55px rgba(0,0,0,.18);

    z-index: 20;
}


/* TOP RED LINE */

.scholarship-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        var(--red);

    border-radius:
        18px 18px 0 0;

    transform:
        scaleX(0);

    transform-origin:
        left;

    transition:
        transform .35s ease;
}


.scholarship-card:hover::before {

    transform:
        scaleX(1);
}


/* GOLD CARDS */

.scholarship-card.featured-gold::before {

    background:
        linear-gradient(
            90deg,
            var(--gold-dark),
            var(--gold-light)
        );
}


.scholarship-card.featured-gold:hover {

    border-color:
        rgba(200,155,60,.5);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 20px;
}


.amount {

    padding: 6px 10px;

    color: var(--red);

    background:
        rgba(181,18,27,.08);

    border-radius: 7px;

    font-size: .72rem;

    font-weight: 900;
}


.gold-amount {

    color:
        var(--gold-dark);

    background:
        rgba(200,155,60,.16);
}


.deadline {

    color:
        #a34b4b;

    font-size: .67rem;

    font-weight: 900;
}


.card-icon {

    width: 55px;

    height: 55px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    background:
        #f3f3f3;

    border-radius: 14px;

    font-size: 1.7rem;

    transition: var(--transition);
}


.scholarship-card:hover .card-icon {

    transform:
        rotate(-5deg)
        scale(1.1);

    background:
        rgba(181,18,27,.1);
}


.scholarship-card h3 {

    margin-bottom: 12px;

    color: var(--black);

    font-size: 1.08rem;

    line-height: 1.3;
}


.scholarship-card > p {

    color: var(--gray);

    font-size: .87rem;

    line-height: 1.65;
}


/* =========================================================
   BIG AWARD BADGE
   ========================================================= */

.big-award {

    display: inline-block;

    margin-bottom: 12px;

    padding: 4px 8px;

    color:
        var(--gold-dark);

    border:
        1px solid rgba(200,155,60,.4);

    background:
        rgba(200,155,60,.09);

    border-radius: 5px;

    font-size: .58rem;

    font-weight: 900;

    letter-spacing: .08em;
}


/* =========================================================
   HOVER POPUP
   ========================================================= */

.scholarship-popup {

    position: absolute;

    left: 15px;
    right: 15px;

    bottom:
        calc(100% + 13px);

    padding: 21px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #080808,
            #242424
        );

    border:
        1px solid rgba(255,255,255,.1);

    border-bottom:
        4px solid var(--red);

    border-radius: 15px;

    box-shadow:
        0 25px 50px rgba(0,0,0,.3);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(12px)
        scale(.94);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    pointer-events: none;
}


.scholarship-popup::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -8px;

    width: 15px;

    height: 15px;

    background: #080808;

    transform:
        translateX(-50%)
        rotate(45deg);
}


.scholarship-card:hover
.scholarship-popup {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.gold-popup {

    border-bottom-color:
        var(--gold);
}


.popup-label {

    display: block;

    margin-bottom: 5px;

    color:
        var(--red-bright);

    font-size: .6rem;

    font-weight: 900;

    letter-spacing: .1em;
}


.gold-popup .popup-label {

    color:
        var(--gold-light);
}


.scholarship-popup h4 {

    margin-bottom: 7px;

    color: white;

    font-size: 1rem;
}


.scholarship-popup p {

    color:
        rgba(255,255,255,.68);

    font-size: .77rem;

    line-height: 1.55;
}


.popup-info {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 12px;
}


.popup-info span {

    padding: 5px 7px;

    color:
        rgba(255,255,255,.8);

    background:
        rgba(255,255,255,.07);

    border-radius: 5px;

    font-size: .6rem;
}


/* =========================================================
   CARD BUTTON
   ========================================================= */

.scholarship-link {

    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px 13px;

    color: var(--red);

    background:
        rgba(181,18,27,.06);

    border-radius: 9px;

    font-size: .82rem;

    font-weight: 900;

    transition: var(--transition);
}


.scholarship-link span {

    transition:
        transform .3s ease;
}


.scholarship-link:hover {

    color: white;

    background:
        var(--red);
}


.scholarship-link:hover span {

    transform:
        translateX(5px);
}


/* =========================================================
   CENTER BUTTON
   ========================================================= */

.center-button {

    display: flex;

    justify-content: center;

    margin-top: 45px;
}


/* =========================================================
   RESOURCES
   ========================================================= */

.resources-section {

    background: white;
}


.resource-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.resource-card {

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 19px;

    background:
        var(--off-white);

    border:
        1px solid var(--gray-light);

    border-radius: 14px;

    transition: var(--transition);
}


.resource-card > span {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    background: white;

    border-radius: 12px;

    font-size: 1.3rem;
}


.resource-card h3 {

    color: var(--black);

    font-size: .95rem;
}


.resource-card p {

    color: var(--gray);

    font-size: .77rem;
}


.resource-card > strong {

    margin-left: auto;

    color: var(--red);

    transition: var(--transition);
}


.resource-card:hover {

    transform:
        translateX(7px);

    border-color:
        rgba(181,18,27,.25);

    box-shadow:
        var(--shadow);
}


.resource-card:hover > strong {

    transform:
        translateX(5px);
}


/* =========================================================
   TIPS
   ========================================================= */

.tips-section {

    background:
        #eeeeee;
}


.tips-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.tip-card {

    position: relative;

    padding: 30px;

    overflow: hidden;

    background: white;

    border:
        1px solid var(--gray-light);

    border-radius: 17px;

    transition: var(--transition);
}


.tip-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(181,18,27,.25);

    box-shadow:
        var(--shadow-hover);
}


.tip-number {

    position: absolute;

    right: 18px;

    top: 7px;

    color:
        rgba(181,18,27,.07);

    font-size: 4rem;

    font-weight: 900;
}


.tip-icon {

    width: 50px;

    height: 50px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    background:
        rgba(181,18,27,.08);

    border-radius: 12px;

    font-size: 1.4rem;
}


.tip-card h3 {

    position: relative;

    margin-bottom: 8px;

    color: var(--black);
}


.tip-card p {

    color: var(--gray);

    font-size: .85rem;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {

    padding-top: 70px;

    background:
        #eeeeee;
}


.contact-box {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 50px;

    overflow: hidden;

    color: white;

    background:

        linear-gradient(
            135deg,
            #080808,
            #1d1d1d
        );

    border-radius: 23px;

    border:
        1px solid #333;
}


.contact-box::before {

    content: "";

    position: absolute;

    right: -80px;

    top: -100px;

    width: 280px;

    height: 280px;

    border-radius: 50%;

    background:
        var(--red);

    opacity: .15;

    filter: blur(40px);
}


.contact-box h2 {

    margin-bottom: 12px;

    font-size:
        clamp(1.8rem, 4vw, 2.6rem);

    line-height: 1.1;
}


.contact-box p {

    max-width: 650px;

    color:
        rgba(255,255,255,.65);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    margin-top: 80px;

    padding-top: 55px;

    color: white;

    background:
        #050505;

    border-top:
        3px solid var(--red);
}


.footer-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 40px;
}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 15px;
}


.footer-brand img {

    width: 60px;

    height: 60px;

    object-fit: contain;
}


.footer-logo {

    margin-bottom: 7px;

    font-weight: 900;

    font-size: 1rem;
}


.footer-content p {

    color:
        rgba(255,255,255,.5);

    font-size: .8rem;
}


.footer-links {

    display: flex;

    gap: 24px;

    flex-wrap: wrap;
}


.footer-links a {

    color:
        rgba(255,255,255,.6);

    font-size: .8rem;

    transition: var(--transition);
}


.footer-links a:hover {

    color:
        var(--red-bright);
}


.copyright {

    padding: 20px 0;

    border-top:
        1px solid rgba(255,255,255,.08);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(25px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes fadeDown {

    from {

        opacity: 0;

        transform:
            translateY(-15px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes heroFloat {

    0%, 100% {

        transform:
            translateY(0)
            scale(1);
    }

    50% {

        transform:
            translateY(30px)
            scale(1.08);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .scholarship-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .tips-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 800px) {

    .header-content {

        flex-direction: column;

        padding: 13px 0;
    }


    nav {

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }


    .hero {

        min-height: 540px;
    }


    .hero-content {

        padding: 70px 0;
    }


    .scholarship-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .section-heading {

        align-items: flex-start;

        flex-direction: column;
    }


    .contact-box {

        align-items: flex-start;

        flex-direction: column;
    }


    .footer-content {

        align-items: flex-start;

        flex-direction: column;
    }
}


@media (max-width: 560px) {

    .container {

        width: 90%;
    }


    .blackhawk-logo {

        width: 45px;

        height: 45px;
    }


    .hero-logo {

        width: 80px;

        height: 80px;
    }


    .hero h1 {

        font-size: 3.1rem;
    }


    .hero p {

        font-size: 1rem;
    }


    .hero-buttons {

        flex-direction: column;
    }


    .hero-buttons a {

        width: 100%;
    }


    .stats-grid,
    .scholarship-grid,
    .resource-grid,
    .tips-grid {

        grid-template-columns: 1fr;
    }


    .stats-section {

        margin-top: -20px;
    }


    section {

        padding: 70px 0;
    }


    /*
       Hover popups aren't useful on touchscreens,
       so the full information is available on
       the individual scholarship page instead.
    */

    .scholarship-popup {

        display: none;
    }


    .contact-box {

        padding: 30px;
    }


    .footer-brand {

        align-items: flex-start;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }
}
