:root {
    --teal: #079d9b;
    --teal2: #05bdb8;
    --grey: #858585;
    --ink: #09243b;
    --pale: #eefafa;
}

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
}


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

header {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 8px 2.2%;
    gap: 22px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .96);
    z-index: 20;
    box-shadow: 0 2px 16px #09243b12;
}

.brand img {
    width: 150px;
    display: block;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-left: 40px;
    margin-right: 12px;
}

nav a {
    font-size: 13px;
    text-decoration: none;
    color: #13293c;
    font-weight: 600;
}

nav a:hover {
    color: var(--teal);
}


/* Mechatron Partner */

.partner-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    color: var(--teal) !important;
    white-space: nowrap;
    border-bottom: 2px solid var(--teal);
    padding: 4px 2px 5px;
}

.partner-nav span {
    font-size: 13px;
    font-weight: 800;
}

.partner-nav small {
    font-size: 9px;
    color: #13293c;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: .1px;
}


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

.logins {
    display: flex;
    gap: 8px;
}

.logins button,
.primary {
    border: 0;
    background: linear-gradient(
        135deg,
        var(--teal),
        var(--teal2)
    );
    color: white;
    padding: 14px 18px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.logins .teacher {
    background: #737373;
}

.menu {
    display: none;
}


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

.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #173847;
}

.hero video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85);
}

.shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 26, 39, .86) 0%,
        rgba(3, 35, 45, .57) 48%,
        rgba(3, 25, 35, .28) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 110px 4%;
    max-width: 760px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.02;
    margin: 18px 0;
}

.hero h1 em {
    font-style: normal;
    color: #19d4cf;
}

.hero p {
    font-size: 18px;
}

.tags {
    font-weight: 600;
}


/* Hero Buttons */

.actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.actions a,
.cta a,
.split a {
    text-decoration: none;
}

.outline {
    border: 1.5px solid currentColor;
    color: white;
    padding: 13px 20px;
    border-radius: 28px;
}


/* Hero Note */

.hero-note {
    position: absolute;
    right: 6%;
    top: 145px;
    z-index: 2;
    font-size: 34px;
    font-family: cursive;
    line-height: 1.25;
    transform: rotate(-5deg);
}

.hero-note b {
    color: #25d5d0;
}


/* =========================
   BENEFITS
========================= */

.benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 22px 4%;
    background: #f7fbfc;
    border-bottom: 1px solid #e5eeee;
}

.benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #0b7f80;
}

.benefits b {
    font-size: 13px;
    color: #163047;
}


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

.section {
    padding: 60px 4%;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.section-head p {
    max-width: 450px;
    color: #5f6e79;
}

.teal {
    color: var(--teal);
}

h2 {
    font-size: 36px;
    margin: 8px 0 26px;
}


/* =========================
   PROGRAM CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.card {
    height: 285px;
    border-radius: 16px;
    padding: 22px;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    position: relative;
    overflow: hidden;

    box-shadow: 0 12px 30px #0d3e4a1a;
    transition: .3s;

    background:
        linear-gradient(
            0deg,
            #069d9a 0%,
            rgba(4, 125, 128, .4) 65%,
            rgba(7, 47, 59, .2)
        ),
        url(
            'https://images.pexels.com/photos/7869085/pexels-photo-7869085.jpeg?auto=compress&cs=tinysrgb&w=800'
        )
        center / cover;
}

.card:nth-child(2) {
    background-position: 20% center;
}

.card:nth-child(3) {
    background-position: 38% center;
}

.card:nth-child(4) {
    background-position: 60% center;
}

.card:nth-child(5) {
    background-position: 75% center;
}

.card:nth-child(6) {
    background-position: 90% center;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 128, 128, .92),
        rgba(0, 128, 128, .08)
    );
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 38px #0b6e7330;
}

.card .icon {
    position: absolute;
    top: -120px;
    background: #fff;
    color: var(--teal);
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 8px;
    font-weight: 900;
}

.card h3 {
    font-size: 22px;
    margin: 0 0 6px;
}

.card p {
    font-size: 13px;
    min-height: 30px;
}

.card span {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #ffffff55;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}


/* =========================
   SCHOOLS & COMMUNITIES
========================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    min-height: 300px;

    background: linear-gradient(
        100deg,
        #078e8c,
        #0db7b2 52%,
        #e8fbfb 52%,
        #e8fbfb
    );

    color: #fff;
}

.split > div {
    padding: 55px 6%;
}

.split .photo-panel {
    background:
        linear-gradient(
            #047c7a55,
            #047c7a55
        ),
        url(
            'https://images.pexels.com/photos/7869085/pexels-photo-7869085.jpeg?auto=compress&cs=tinysrgb&w=1000'
        )
        center / cover;

    clip-path: polygon(
        15% 0,
        100% 0,
        85% 100%,
        0 100%
    );
}

.split #communities {
    color: #096b72;
}

.split a {
    display: inline-block;
    margin-top: 12px;
    border: 1px solid currentColor;
    padding: 10px 18px;
    border-radius: 24px;
    color: inherit;
}

.bigicon {
    font-size: 40px;
}


/* =========================
   IMPACT
========================= */

.impact {
    background: #fff;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats div {
    padding: 24px;
    border-right: 1px solid #dfe7e8;
}

.stats div:last-child {
    border: 0;
}

.stats b {
    display: block;
    font-size: 30px;
    color: #078d8b;
}

.stats span {
    font-size: 14px;
}


/* =========================
   COMPETITIONS
========================= */

.competitions {
    color: white;
    background:
        linear-gradient(
            90deg,
            #05394aee,
            #008e91cc
        ),
        url(
            'https://images.pexels.com/photos/7869085/pexels-photo-7869085.jpeg?auto=compress&cs=tinysrgb&w=1600'
        )
        center / cover;

    min-height: 320px;
    display: flex;
    align-items: center;
}

.competitions > div {
    max-width: 650px;
}


/* =========================
   BLOG
========================= */

.bloggrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.bloggrid article {
    background: var(--pale);
    border-radius: 14px;
    padding: 26px;
    border-bottom: 4px solid var(--teal);
}


/* =========================
   CALL TO ACTION
========================= */

.cta {
    padding: 38px 4%;
    background: linear-gradient(
        90deg,
        #07394a,
        #05666d
    );
    color: #fff;

    display: flex;
    align-items: center;
    gap: 22px;
}

.cta div {
    flex: 1;
}

.cta h2 {
    margin: 0;
    font-size: 30px;
}

.cta p {
    margin: 7px 0;
}

.cta .outline {
    color: #fff;
}


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

footer {
    padding: 30px 4%;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #6e777d;
}

footer img {
    width: 140px;
}

footer small {
    width: 100%;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}


/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 22px;

    background: #1fc65b;
    color: #fff;

    width: 58px;
    height: 58px;
    border-radius: 50%;

    display: grid;
    place-items: center;

    text-decoration: none;
    font-size: 28px;
    z-index: 30;

    box-shadow: 0 8px 24px #0003;
}


/* =========================
   LOGIN MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;

    background: #001b26aa;

    display: none;
    place-items: center;

    z-index: 50;
}

.modal.show {
    display: grid;
}

.modal > div {
    width: min(390px, 90vw);
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    position: relative;
}

.modal input {
    width: 100%;
    padding: 13px;
    margin: 7px 0;
    border: 1px solid #ccd6da;
    border-radius: 8px;
}

.full {
    width: 100%;
    margin: 8px 0;
}

.x {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 28px;
}


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

@media (max-width: 1000px) {

    nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        flex-direction: column;
    }

    nav.open {
        display: flex;
    }

    .menu {
        display: block;
        margin-left: auto;
    }

    .logins {
        display: none;
    }

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

    .hero-note {
        display: none;
    }

    .split {
        grid-template-columns: 1fr 1fr;
    }

    .split .photo-panel {
        display: none;
    }
}


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

@media (max-width: 650px) {

    .hero {
        height: 650px;
    }

    .hero-content {
        padding: 110px 7%;
    }

    .hero h1 {
        font-size: 43px;
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        display: block;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .bloggrid {
        grid-template-columns: 1fr;
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
    }

    header {
        height: 70px;
    }

    .brand img {
        width: 125px;
    }
}


/* =========================
   EMBEDDED GOOGLE FORM
   FREE DEMO
========================= */

.demo-form-section {
    background: #f7fbfb;
}

.demo-form-section .section-head {
    margin-bottom: 28px;
}

.google-form-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(16, 55, 65, .10);
    border: 1px solid rgba(20, 150, 150, .12);
}

.google-form-wrap iframe {
    display: block;
    border: 0;
    background: #fff;
}

@media (max-width: 700px) {

    .google-form-wrap {
        border-radius: 14px;
    }

    .google-form-wrap iframe {
        height: 1250px;
    }
}


/* =========================
   MULTI-PAGE ADDITIONS
========================= */

.page-hero {
    min-height: 330px;
    padding: 95px 7% 70px;

    background: linear-gradient(
        110deg,
        #07394a,
        #079d9b
    );

    color: #fff;
}

.page-hero h1 {
    font-size: 52px;
    max-width: 850px;
    margin: 14px 0;
}

.page-hero p {
    font-size: 19px;
    max-width: 760px;
    line-height: 1.6;
}

.inner-card {
    max-width: 1000px;
    margin: 35px auto;
    background: #f4fbfb;
    border-radius: 22px;
}

.secondary-link {
    display: inline-block;
    padding: 13px 20px;
    color: #087f80;
    font-weight: 700;
    text-decoration: none;
}


/* Program Page Grid */

.program-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.program-tile {
    min-height: 230px;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #09243b;

    background: linear-gradient(
        145deg,
        #f1fbfb,
        #fff
    );

    border: 1px solid #d9eeee;
    box-shadow: 0 12px 30px #0d3e4a12;

    transition: .25s;
}

.program-tile:hover {
    transform: translateY(-6px);
    border-color: #079d9b;
}

.program-tile h2 {
    color: #079d9b;
    margin-top: 35px;
}

.program-tile span {
    font-weight: 800;
    color: #079d9b;
}


/* Multi-page Responsive */

@media (max-width: 800px) {

    .program-page-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 39px;
    }
}

/* =========================
   BLOG NAVIGATION PAGES
========================= */
.blog-card-link{display:block;color:inherit;text-decoration:none}
.blog-card-link article{height:100%;display:flex;flex-direction:column;transition:transform .25s ease,box-shadow .25s ease}
.blog-card-link:hover article{transform:translateY(-6px);box-shadow:0 14px 30px rgba(9,36,59,.12)}
.blog-link{margin-top:auto;padding-top:14px;color:var(--teal);font-weight:800}
.blog-article{max-width:900px;margin:0 auto;font-size:17px;line-height:1.8;color:#40505c}
.blog-article h2{margin-top:42px;margin-bottom:12px;font-size:29px;color:var(--ink)}
.blog-article p{margin:0 0 18px}

/* =========================
   GOOGLE LOGIN OPTION
========================= */
.login-divider{display:flex;align-items:center;gap:12px;margin:13px 0;color:#8a969d;font-size:11px;font-weight:700}
.login-divider:before,.login-divider:after{content:"";height:1px;flex:1;background:#dfe7e8}
.google-login{width:100%;padding:12px 15px;border:1px solid #ccd6da;border-radius:9px;background:#fff;color:#263238;font-weight:700;cursor:pointer}
.google-login:hover{background:#f7fbfb;border-color:var(--teal)}
.google-g{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;color:#4285f4;font-size:17px;font-weight:900}
.login-note{display:block;margin-top:10px;color:#738087;font-size:10px;line-height:1.4}

/* Distinct people-free program card imagery */
.card.robotics { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-robotics.jpg'); }
.card.coding { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-coding-ai.jpg'); }
.card.electronics { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-electronics.jpg'); }
.card.stem { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-stem.jpg'); }
.card.fll { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-fll.jpg'); }
.card.wro { background-image: linear-gradient(0deg,#069d9a 0%,rgba(4,125,128,.42) 65%,rgba(7,47,59,.18)), url('assets/card-wro.jpg'); }
.card { background-position:center; background-size:cover; }

/* Accessible, crawlable homepage program links (SEO enhancement) */
.program-card-link { display:inline-block; color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.program-card-link:hover, .program-card-link:focus-visible { color:#008f91; }
