﻿/* =========================================================
   ACCUTRAK-CACFP.NET
   TRAINING & TUTORIALS
========================================================= */


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.training-hero {
    background: linear-gradient( 110deg, #e9f6fc 0%, #f5fbfd 48%, #ffffff 100% );
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 360px;
}


/* HERO COPY */

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 55px 52px 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

    .eyebrow::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        margin-top: 8px;
        background: var(--green);
        border-radius: 10px;
    }

.hero-copy h1 {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: clamp(3rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.hero-copy p {
    max-width: 590px;
    margin: 0;
    color: #315a80;
    font-size: 1.18rem;
    line-height: 1.55;
}


/* HERO IMAGE */

.hero-image {
    position: relative;
    min-height: 360px;
}

    .hero-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.hero-message {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) rotate(-3deg);
    color: #31547a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

    .hero-message span {
        color: var(--green);
    }

    .hero-message strong {
        display: block;
        margin-top: 4px;
        color: #df3f46;
        font-size: 2rem;
    }


/* ---------------------------------------------------------
   TRAINING CONTENT
--------------------------------------------------------- */

.training-content {
    padding: 32px 0 46px;
    background: #ffffff;
}

.training-group {
    padding: 0 0 28px;
}

    .training-group + .training-group {
        padding-top: 25px;
        border-top: 1px solid #d8e3eb;
    }


/* ---------------------------------------------------------
   TRAINING HEADINGS
--------------------------------------------------------- */

.training-heading {
    display: flex;
    align-items: baseline;
    gap: 35px;
    margin-bottom: 18px;
}

    .training-heading h2 {
        position: relative;
        flex-shrink: 0;
        margin: 0;
        padding-bottom: 9px;
        color: var(--blue);
        font-size: 2rem;
        line-height: 1;
    }

        .training-heading h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 52px;
            height: 3px;
            background: var(--green);
            border-radius: 10px;
        }

    .training-heading p {
        margin: 0;
        color: #52708d;
        font-size: 1rem;
    }


/* ---------------------------------------------------------
   VIDEO GRID
--------------------------------------------------------- */

.video-grid {
    display: grid;
    gap: 24px;
}

.video-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid-two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

    .video-grid-two .video-card {
        max-width: none;
    }


/* ---------------------------------------------------------
   VIDEO CARD
--------------------------------------------------------- */

.video-card {
    min-width: 0;
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7.5;
    margin-bottom: 10px;
    background: #e8eef2;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(18, 59, 109, 0.08);
}

    .video-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

    .video-thumbnail:hover img {
        transform: scale(1.025);
    }


/* PLAY BUTTON */

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    background: rgba(25, 36, 43, 0.76);
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--green);
}


/* VIDEO TEXT */

.video-card h3 {
    margin: 0 0 3px;
    color: var(--blue);
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
}

.video-card p {
    max-width: 390px;
    margin: 0;
    color: #345979;
    font-size: 1rem;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   NEED MORE HELP
--------------------------------------------------------- */

.training-help {
    background: linear-gradient( 90deg, #eff9ef, #e2f4df );
}

.help-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-icon {
    flex-shrink: 0;
    width: 78px;
    height: 60px;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 1.2rem;
}

.help-copy {
    flex: 1;
}

    .help-copy h2 {
        margin: 0 0 2px;
        color: var(--blue);
        font-size: 2rem;
        line-height: 1.05;
    }

    .help-copy p {
        margin: 0;
        color: #315a80;
        font-size: 1.05rem;
    }


/* CONTACT BUTTON */

.help-button {
    flex-shrink: 0;
    min-width: 180px;
    padding: 13px 25px;
    background: var(--green);
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(22, 148, 71, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .help-button span {
        margin-left: 7px;
        font-size: 1.35rem;
    }

    .help-button:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
    }


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 950px) {

    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        padding-right: 30px;
    }

    .video-grid-three,
    .video-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   SMALL TABLET
--------------------------------------------------------- */

@media (max-width: 760px) {

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 45px 0 38px;
    }

    .hero-image {
        min-height: 330px;
    }

    .training-heading {
        display: block;
    }

        .training-heading p {
            margin-top: 12px;
        }

    .help-inner {
        padding-top: 25px;
        padding-bottom: 25px;
        flex-wrap: wrap;
    }

    .help-button {
        margin-left: 98px;
    }
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 560px) {

    .hero-copy h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        min-height: 280px;
    }

    .hero-message {
        right: 15px;
        font-size: 1.05rem;
    }

    .training-content {
        padding-top: 28px;
    }

    .video-grid-three,
    .video-grid-two {
        grid-template-columns: 1fr;
    }

    .training-heading h2 {
        font-size: 1.75rem;
    }

    .video-thumbnail {
        aspect-ratio: 16 / 9;
    }

    .help-icon {
        display: none;
    }

    .help-copy {
        flex-basis: 100%;
    }

    .help-button {
        margin-left: 0;
    }
}
