/* ==========================================================================
   NoShaveNovember Landing Page (midpennbank.com/NSN)
   ========================================================================== */
.nsn_mpb *,
.nsn_mpb *::before,
.nsn_mpb *::after {
    box-sizing: border-box;
}

.nsn_mpb .nsn_mpb_container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 12px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.nsn_mpb .nsn_mpb_hero {
    padding: 20px 0;
}

.nsn_mpb .nsn_mpb_hero_panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 32px 24px;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, #004679 0%, #005a9c 60%, #0066b1 100%);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 70, 121, .2);
}

.nsn_mpb .nsn_mpb_hero_logo {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* --------------------------------------------------------------------------
   Shared section spacing and titles
   -------------------------------------------------------------------------- */
.nsn_mpb .nsn_mpb_intro,
.nsn_mpb .nsn_mpb_involved,
.nsn_mpb .nsn_mpb_proceeds {
    padding: 38px 0;
}

.nsn_mpb .nsn_mpb_title {
    margin: 0 0 24px;
    line-height: 1.15;
    text-align: center;
}

/* --------------------------------------------------------------------------
   What is NoShaveNovember?
   -------------------------------------------------------------------------- */
.nsn_mpb .nsn_mpb_intro_content {
    margin: 0 auto;
}

.nsn_mpb .nsn_mpb_intro_copy {
    text-align: center;
}

/* --------------------------------------------------------------------------
   How Can You Get Involved? (tiles)
   -------------------------------------------------------------------------- */
.nsn_mpb .nsn_mpb_involved {
    background: #f1f0ed;
}

.nsn_mpb .nsn_mpb_involved .nsn_mpb_title {
    margin-bottom: 30px;
}

.nsn_mpb .nsn_mpb_tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nsn_mpb .nsn_mpb_tiles > li::before {
    content: none;
}

.nsn_mpb .nsn_mpb_tile {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 38px 28px 30px;
    background: #fff;
    border: 1px solid rgba(0, 70, 121, .1);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
    text-align: center;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.nsn_mpb .nsn_mpb_tile:hover {
    border-color: rgba(0, 102, 177, .35);
    box-shadow: 0 16px 34px rgba(0, 75, 135, .13);
}

.nsn_mpb .nsn_mpb_tile_title {
    margin: 0 0 12px;
}

.nsn_mpb .nsn_mpb_tile_copy {
    margin: 0 0 18px;
    line-height: 1.7;
}

/* When / Where list (orange bullets) */
.nsn_mpb .nsn_mpb_details {
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
    align-self: center;
}

.nsn_mpb .nsn_mpb_details > li {
    position: relative;
    margin: 0 0 8px;
    padding: 0 0 0 20px;
    line-height: 1.6;
}

.nsn_mpb .nsn_mpb_details > li::before {
    position: absolute;
    top: .6em;
    left: 2px;
    width: 6px;
    height: 6px;
    content: "";
}

/* Keeps buttons aligned across tiles of different heights */
.nsn_mpb .nsn_mpb_tile_action {
    margin-top: auto;
    padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Proceeds will benefit
   -------------------------------------------------------------------------- */
.nsn_mpb .nsn_mpb_proceeds {
    background: #e5ebef;
}

.nsn_mpb .nsn_mpb_logos {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nsn_mpb .nsn_mpb_logos > li::before {
    content: none;
}

.nsn_mpb .nsn_mpb_logo_card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 50, 90, .05);
    list-style: none;
}

.nsn_mpb .nsn_mpb_logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

/* --------------------------------------------------------------------------
   Keyboard focus (accessibility)
   -------------------------------------------------------------------------- */
.nsn_mpb a:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
    .nsn_mpb .nsn_mpb_container {
        padding-inline: 20px;
    }
}

@media (max-width: 992px) {
    .nsn_mpb .nsn_mpb_hero_panel {
        min-height: 200px;
        padding: 40px 36px;
    }
}

@media (max-width: 768px) {
    .nsn_mpb .nsn_mpb_hero {
        padding: 12px 0;
    }

    .nsn_mpb .nsn_mpb_hero_panel {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .nsn_mpb .nsn_mpb_intro,
    .nsn_mpb .nsn_mpb_involved,
    .nsn_mpb .nsn_mpb_proceeds {
        padding: 36px 0;
    }

    .nsn_mpb .nsn_mpb_logos {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .nsn_mpb .nsn_mpb_logo_card {
        width: 100%;
        max-width: 340px;
    }

    .nsn_mpb .nsn_mpb_tiles {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .nsn_mpb .nsn_mpb_tile {
        transition: none !important;
    }
}