/* =========================================
   MECHABLOX COMMUNITY PAGE
========================================= */

:root {
    --community-green: #76b900;
    --community-dark: #000000;
    --community-text: #222222;
    --community-muted: #666666;
    --community-light: #f5f5f5;
    --community-border: #e5e5e5;
}


/* =========================================
   GLOBAL
========================================= */

.community-hero,
.community-intro,
.community-learning,
.community-options,
.community-tracks,
.community-formats,
.community-host,
.community-themes,
.community-why,
.community-testimonial {

    width: 100%;
    box-sizing: border-box;
}

.community-section-heading {
    max-width: 850px;
    margin-bottom: 55px;
}

.community-section-heading > span,
.community-hero .community-eyebrow,
.community-host-content > span,
.community-testimonial > span {

    display: block;

    color: var(--community-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 18px;
}

.community-section-heading h2 {

    margin: 0 0 20px;

    color: var(--community-dark);

    font-size: clamp(38px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.community-section-heading p {

    margin: 0;

    max-width: 700px;

    color: var(--community-muted);

    font-size: 18px;

    line-height: 1.7;
}


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

.community-hero {

    min-height: 700px;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92),
            rgba(0,0,0,.55)
        ),
        url("images/stem-robotics.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 100px 7%;
}

.community-hero-content {

    max-width: 850px;

    color: white;
}

.community-hero h1 {

    margin: 0 0 25px;

    font-size: clamp(48px, 7vw, 88px);

    line-height: .98;

    letter-spacing: -4px;
}

.community-hero h1 span {
    color: var(--community-green);
}

.community-hero p {

    max-width: 700px;

    margin-bottom: 35px;

    color: #dddddd;

    font-size: 20px;

    line-height: 1.7;
}


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

.community-hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}

.community-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 28px;

    text-decoration: none;

    font-weight: 700;

    transition: .2s;
}

.community-btn-primary {

    background: var(--community-green);

    color: white;
}

.community-btn-primary:hover {
    background: #8bc900;
}

.community-btn-outline {

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

    color: white;
}

.community-btn-outline:hover {
    background: white;
    color: black;
}


/* =========================================
   INTRO
========================================= */

.community-intro {

    padding: 120px 7%;
}


/* =========================================
   LEARNING
========================================= */

.community-learning {

    padding: 100px 7%;

    background: var(--community-light);
}

.community-learning-grid {

    display: grid;

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

    gap: 20px;
}

.community-learning-card {

    background: white;

    padding: 35px;

    border: 1px solid var(--community-border);
}

.community-card-number {

    color: var(--community-green);

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 55px;
}

.community-learning-card h3 {

    margin: 0 0 15px;

    font-size: 22px;
}

.community-learning-card p {

    color: var(--community-muted);

    line-height: 1.7;

    margin: 0;
}


/* =========================================
   OPTIONS
========================================= */

.community-options {

    padding: 120px 7%;
}

.community-options-grid {

    display: grid;

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

    gap: 30px;
}

.community-option-card {

    border: 1px solid var(--community-border);

    background: white;
}

.community-option-image {

    height: 300px;

    overflow: hidden;
}

.community-option-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.community-option-content {

    padding: 40px;
}

.community-option-content > span {

    color: var(--community-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}

.community-option-content h3 {

    font-size: 32px;

    margin: 15px 0;
}

.community-option-content p {

    color: var(--community-muted);

    line-height: 1.7;
}

.community-option-content ul {

    padding-left: 20px;

    line-height: 2;

    color: #444;
}

.text-link {

    color: var(--community-green);

    font-weight: 800;

    text-decoration: none;
}




/* =========================================
   FORMATS
========================================= */

.community-formats {

    padding: 120px 7%;
}

.community-format-grid {

    display: grid;

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

    border-top: 1px solid var(--community-border);

    border-left: 1px solid var(--community-border);
}

.community-format-grid article {

    padding: 40px;

    border-right: 1px solid var(--community-border);

    border-bottom: 1px solid var(--community-border);
}

.community-format-grid span {

    color: var(--community-green);

    font-weight: 800;
}

.community-format-grid h3 {

    margin: 45px 0 15px;

    font-size: 25px;
}

.community-format-grid p {

    color: var(--community-muted);

    line-height: 1.7;
}


/* =========================================
   COMMUNITY HOST
========================================= */

.community-host {

    padding: 120px 7%;

    background: var(--community-green);
}

.community-host-content {

    max-width: 850px;
}

.community-host-content > span {
    color: #000;
}

.community-host h2 {

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1;

    letter-spacing: -3px;

    margin: 0 0 25px;
}

.community-host p {

    max-width: 700px;

    font-size: 19px;

    line-height: 1.7;

    margin-bottom: 35px;
}

.community-host-types {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}

.community-host-types span {

    padding: 10px 15px;

    border: 1px solid rgba(0,0,0,.3);

    font-weight: 700;

    font-size: 14px;
}

.community-host .community-btn-primary {

    background: #000;
}


/* =========================================
   THEMES
========================================= */

.community-themes {

    padding: 120px 7%;
}

.community-theme-grid {

    display: grid;

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

    gap: 20px;
}

.community-theme-grid article {

    min-height: 240px;

    padding: 35px;

    background: #f5f5f5;

    border: 1px solid var(--community-border);
}

.community-theme-grid span {

    color: var(--community-green);

    font-weight: 800;
}

.community-theme-grid h3 {

    font-size: 30px;

    margin: 45px 0 12px;
}

.community-theme-grid p {

    color: var(--community-muted);

    line-height: 1.6;
}


/* =========================================
   WHY MECHABLOX
========================================= */

.community-why {

    padding: 120px 7%;

    background: #f5f5f5;
}

.community-why-grid {

    display: grid;

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

    gap: 1px;

    background: #ddd;
}

.community-why-grid div {

    background: white;

    padding: 35px;
}

.community-why-grid strong {

    font-size: 20px;
}

.community-why-grid p {

    color: var(--community-muted);

    line-height: 1.6;
}


/* =========================================
   TESTIMONIAL
========================================= */

.community-testimonial {

    padding: 130px 7%;

    text-align: center;
}

.community-testimonial blockquote {

    max-width: 950px;

    margin: 20px auto;

    font-size: clamp(30px, 5vw, 58px);

    line-height: 1.15;

    letter-spacing: -2px;
}

.community-testimonial p {

    color: var(--community-muted);

    font-weight: 700;
}


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

@media (max-width: 900px) {

    .community-learning-grid,
    .community-track-grid,
    .community-format-grid {

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

    .community-options-grid {

        grid-template-columns: 1fr;
    }

    .community-why-grid {

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


@media (max-width: 600px) {

    .community-hero {

        min-height: 600px;

        padding: 80px 25px;
    }

    .community-intro,
    .community-learning,
    .community-options,
    .community-tracks,
    .community-formats,
    .community-host,
    .community-themes,
    .community-why,
    .community-testimonial {

        padding: 80px 25px;
    }

    .community-learning-grid,
    .community-track-grid,
    .community-format-grid,
    .community-theme-grid,
    .community-why-grid {

        grid-template-columns: 1fr;
    }

    .community-hero h1 {

        letter-spacing: -2px;
    }

    .community-option-content {

        padding: 28px;
    }
}
