/* ============================================================
   The ECE Foundation page (bookece.com/foundation/)
   Mirrors the theecefoundation.org homepage design system:
   Lato 900 headlines, charcoal #1D242D / navy #111E47 text,
   accent trio green #CAFF8A / blue #C2F4FD / purple #826AED.
   All classes fnd- prefixed to stay clear of theme styles.
   Brand assets are hotlinked from theecefoundation.org
   (same server as bookece).
   ============================================================ */

.fnd-page {
    font-family: 'Lato', 'Poppins', sans-serif;
    color: #1D242D;
    background: #ffffff;
}
.fnd-page h1, .fnd-page h2, .fnd-page h3 {
    font-family: 'Lato', sans-serif;
}

/* ---------- Buttons ---------- */
.fnd-btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #C2F4FD;
    color: #111E47;
    border: 2px solid #C2F4FD;
    border-radius: 4px;
    padding: 14px 40px;
    min-width: 180px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.fnd-btn:hover {
    background-color: #9be5f5;
    border-color: #9be5f5;
    color: #111E47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 244, 253, 0.4);
    text-decoration: none;
}
.fnd-btn-outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}
.fnd-btn-outline:hover {
    background-color: #C2F4FD;
    border-color: #C2F4FD;
    color: #111E47;
}

/* ---------- Hero ---------- */
.fnd-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}
.fnd-hero video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.fnd-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(29, 36, 45, 0.4), rgba(29, 36, 45, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}
.fnd-hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 1000px;
    padding: 0 20px;
}
.fnd-hero-logo {
    max-width: 420px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
}
.fnd-hero-content h1 {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Accent bar under the hero, foundation trio instead of ECE teal */
.fnd-tribar {
    height: 6px;
    background: linear-gradient(90deg, #CAFF8A 0%, #C2F4FD 50%, #826AED 100%);
}

/* ---------- Shared section bits ---------- */
.fnd-section { padding: 80px 0; }
/* !important needed: the theme's global h2 (Poppins 300, uppercase,
   letter-spaced) outguns us otherwise */
.fnd-page .fnd-h2 {
    font-family: 'Lato', sans-serif !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #1D242D;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.fnd-period-blue { color: #C2F4FD; }
.fnd-period-green { color: #CAFF8A; }
.fnd-period-purple { color: #826AED; }
.fnd-accent-line {
    width: 60px;
    height: 4px;
    background-color: #C2F4FD;
    margin: 0 auto 30px auto;
}
.fnd-intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Our Focus ---------- */
.fnd-focus { background-color: #F5F3F2; }
.fnd-focus-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E5E5;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    padding-bottom: 25px;
}
.fnd-focus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #C2F4FD;
}
.fnd-focus-card img.fnd-focus-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
}
.fnd-focus-body { padding: 30px 25px; text-align: center; }
.fnd-focus-body h3 {
    font-family: 'Lato', sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    color: #1D242D;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.fnd-focus-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 0;
}
.fnd-focus-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 25px;
    background-size: 150px auto;
    background-repeat: repeat-x;
    background-position: center;
}
.fnd-focus-card.fnd-pat-creativity::after { background-image: url('https://www.theecefoundation.org/wp-content/themes/ecefoundation/images/patterns/homepage-creativity.png'); }
.fnd-focus-card.fnd-pat-community::after  { background-image: url('https://www.theecefoundation.org/wp-content/themes/ecefoundation/images/patterns/homepage-community.png'); }
.fnd-focus-card.fnd-pat-connection::after { background-image: url('https://www.theecefoundation.org/wp-content/themes/ecefoundation/images/patterns/homepage-connection.png'); }

/* ---------- Partners ---------- */
.fnd-partners {
    background: linear-gradient(180deg, rgba(202, 255, 138, 0.25) 0%, rgba(202, 255, 138, 0.15) 100%);
}
.fnd-partners .fnd-h2 { color: #111E47; }
.fnd-partner-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fnd-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.fnd-partner-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #CAFF8A;
    margin-bottom: 20px;
}
.fnd-partner-name {
    font-size: 20px;
    font-weight: 900;
    color: #111E47;
    margin-bottom: 5px;
}
.fnd-partner-loc {
    font-size: 13px;
    font-weight: 600;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.fnd-partner-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 12px;
    flex-grow: 1;
}
.fnd-partner-attr {
    font-size: 13px;
    font-weight: 700;
    color: #111E47;
    margin-bottom: 0;
}

/* ---------- Why Invest in Music (accordion) ---------- */
.fnd-why-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.fnd-wm-line {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 30, 71, 0.12);
}
.fnd-wm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 8px;
    gap: 20px;
}
.fnd-wm-title {
    font-size: 20px;
    font-weight: 700;
    color: #1D242D;
    transition: color 0.3s ease;
}
.fnd-wm-line:hover .fnd-wm-title,
.fnd-wm-line.active .fnd-wm-title { color: #0891b2; }
.fnd-wm-toggle {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: #111E47;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}
.fnd-wm-line.active .fnd-wm-toggle { transform: rotate(45deg); color: #0891b2; }
.fnd-wm-card {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.fnd-wm-line.active .fnd-wm-card { max-height: 300px; opacity: 1; }
.fnd-wm-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
    margin: 0;
    padding: 0 0 16px 0;
}

/* ---------- Ways To Get Involved ---------- */
.fnd-involved {
    position: relative;
    padding: 100px 0;
    background: url('https://www.theecefoundation.org/wp-content/uploads/2026/03/Landing-Get-Involved.jpg') center center / cover no-repeat;
    overflow: hidden;
}
.fnd-involved::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
}
.fnd-involved .container { position: relative; z-index: 2; }
.fnd-involved .fnd-h2 { color: #ffffff; }
.fnd-inv-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 40px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}
.fnd-inv-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.14); }
.fnd-inv-card.fnd-c-green  { border-color: #CAFF8A; }
.fnd-inv-card.fnd-c-blue   { border-color: #C2F4FD; }
.fnd-inv-card.fnd-c-purple { border-color: #826AED; }
.fnd-inv-card.fnd-c-green:hover  { box-shadow: 0 12px 40px rgba(202, 255, 138, 0.2); }
.fnd-inv-card.fnd-c-blue:hover   { box-shadow: 0 12px 40px rgba(194, 244, 253, 0.2); }
.fnd-inv-card.fnd-c-purple:hover { box-shadow: 0 12px 40px rgba(130, 106, 237, 0.2); }
.fnd-inv-card h3 {
    font-family: 'Lato', sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    margin-bottom: 15px;
}
.fnd-inv-card p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    flex-grow: 1;
}
.fnd-inv-btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.fnd-inv-btn.fnd-b-green  { background: #CAFF8A; color: #111E47; }
.fnd-inv-btn.fnd-b-green:hover  { background: #b8f070; transform: translateY(-2px); color: #111E47; }
.fnd-inv-btn.fnd-b-blue   { background: #C2F4FD; color: #111E47; }
.fnd-inv-btn.fnd-b-blue:hover   { background: #9be5f5; transform: translateY(-2px); color: #111E47; }
.fnd-inv-btn.fnd-b-purple { background: #826AED; color: #ffffff; }
.fnd-inv-btn.fnd-b-purple:hover { background: #6f55d4; transform: translateY(-2px); color: #ffffff; }

/* ---------- Areas of Impact ---------- */
.fnd-areas-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: 40px auto 0;
}
.fnd-pill {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #111E47;
    background: #ffffff;
    border: 2px solid #CAFF8A;
    border-radius: 30px;
    padding: 10px 24px;
    white-space: nowrap;
}
.fnd-pill:nth-child(3n+2) { border-color: #C2F4FD; }
.fnd-pill:nth-child(3n)   { border-color: #826AED; }

/* ---------- Stay Connected CTA ---------- */
.fnd-cta {
    background: linear-gradient(180deg, rgba(202, 255, 138, 0.25) 0%, rgba(202, 255, 138, 0.15) 100%);
    text-align: center;
}
.fnd-cta .fnd-h2 { color: #111E47; }
.fnd-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}
.fnd-cta-buttons .fnd-btn-dark {
    background: #111E47;
    border-color: #111E47;
    color: #ffffff;
}
.fnd-cta-buttons .fnd-btn-dark:hover {
    background: #1d2f6b;
    border-color: #1d2f6b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 30, 71, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .fnd-page .fnd-h2 { font-size: 32px !important; }
    .fnd-intro { font-size: 16px; }
    .fnd-hero-content h1 { font-size: 32px; }
    .fnd-why-img { margin-bottom: 30px; }
}
@media (max-width: 767px) {
    .fnd-section { padding: 50px 0; }
    .fnd-involved { padding: 60px 0; }
    .fnd-hero {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }
    .fnd-hero-logo { max-width: 300px; }
    .fnd-hero-content h1 { font-size: 24px; }
    .fnd-page .fnd-h2 { font-size: 26px !important; }
    .fnd-btn { padding: 12px 24px; font-size: 12px; min-width: 0; }
    .fnd-focus-card, .fnd-partner-card, .fnd-inv-card { margin-bottom: 20px; }
    .fnd-partner-card { padding: 25px 20px; }
    .fnd-partner-img { width: 90px; height: 90px; }
    .fnd-pill { font-size: 12px; padding: 8px 18px; }
    .fnd-wm-title { font-size: 16px; }
}


/* ---------- Foundation logo card (short version of the page) ----------
   logo_green.png is white artwork with a green C, so it needs the dark
   panel behind it; on the light Our Focus band that doubles as the
   call-out Ashley asked for. */
.fnd-logo-card {
    display: block;
    max-width: 720px;
    margin: 56px auto 0;
    padding: 46px 40px 44px;
    background: #1D242D;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fnd-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px -18px rgba(29, 36, 45, 0.65);
    text-decoration: none;
}
.fnd-logo-card img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 22px;
}
.fnd-logo-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #ffffff;
    max-width: 470px;
    margin: 0 auto 26px;
}
.fnd-logo-card .fnd-btn { pointer-events: none; }
.fnd-logo-card:hover .fnd-btn {
    background-color: #9be5f5;
    border-color: #9be5f5;
}
@media (max-width: 575px) {
    .fnd-logo-card { padding: 34px 22px 32px; margin-top: 40px; }
    .fnd-logo-card img { max-width: 240px; }
    .fnd-logo-card p { font-size: 16px; }
}
