@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /*Nav Button Colours*/
    --blue-bg: #7db5de;
    --blue-fg: #002C66;

    --cyan-bg: #6ec4cf;
    --cyan-fg: #004857;

    --mint-bg: #A9DFCC;
    --mint-fg: #01492c;

    --lime-bg: #C8E6C1;
    --lime-fg: #00520A;

    --pea-bg: #b0cc73;
    --pea-fg: #325200;

    --yellow-bg: #d4cc6a;
    --yellow-fg: #4A5900;

    --light-orange-bg: #d9b46a;
    --light-orange-fg: #574500;

    --orange-bg: #d4936a;
    --orange-fg: #472A00;

    --red-bg: #cc7272;
    --red-fg: #3D0000;

    --pink-bg: #cc7aae;
    --pink-fg: #470031;

    --nav-bg: #00607A;
    --next-action-glow: rgba(0, 82, 10, 0.7);
    --next-action-glow-soft: rgba(0, 82, 10, 0.2);
    --focus-outline: 2px solid #ffffff;
    --focus-outline-offset: 2px;
    --focus-ring-shadow: 0 0 0 4px rgba(0, 44, 102, 0.9);
    --hero-image: url('https://login.campleaders.com/static/media/campleaders.f8aaadbd.jpg');
    --heading-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    --form-control-font-size: clamp(0.79rem, 1.9vw, 0.95rem);
    --body-copy-font-size: clamp(1rem, 0.35vw + 0.94rem, 1.16rem);
    --small-copy-font-size: clamp(0.84rem, 0.24vw + 0.8rem, 0.98rem);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

header {
    padding: 1em 1em 0.8rem;
    background-color: var(--nav-bg);
}

header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: white;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
}

.menu-toggle-input,
.profile-menu-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle-label {
    display: none;
    width: 2.25rem;
    height: 2rem;
    cursor: pointer;
    z-index: 30;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-toggle-label span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background: white;
    border-radius: 0.2rem;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1),
                opacity 0.3s ease,
                background-color 0.35s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.menu-toggle-label span:nth-child(1) {
    transform: translateY(-0.42rem);
}

.menu-toggle-label span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle-label span:nth-child(3) {
    transform: translateY(0.42rem);
}

.menu-toggle-input:focus-visible + .menu-toggle-label,
.profile-menu-toggle-input:focus-visible + .profile-btn,
:where(a, button, input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-shadow);
    z-index: 1;
}

.menu-toggle-input:checked + .menu-toggle-label span {
    background: #d7f0f6;
}

.menu-toggle-input:checked + .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle-input:checked + .menu-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: scale(0.2);
}

.menu-toggle-input:checked + .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg);
}


.nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: auto;
    gap: 0.5em;
    padding: 1em 1em 0.9em;
    margin: 0 auto;
    border-radius: 0.5em 0.5em 0 0;
    background-color: white;
    position: relative;
    z-index: 10;
    list-style: none;
    /* Remove default ul padding */
}

.nav-grid > li {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Make li take up grid cell */
    display: contents;
    --nav-item-bg: var(--blue-bg);
    --nav-item-fg: var(--blue-fg);
}

.nav-grid > li > :is(a, button, label) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    padding: 0 0.75em;
    background-color: var(--nav-item-bg);
    color: var(--nav-item-fg);
    text-decoration: none;
    border-radius: 0.5em;
    cursor: pointer;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    font-weight: 700;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    height: 3em;
}

.nav-grid > li:nth-child(2) { --nav-item-bg: var(--cyan-bg); --nav-item-fg: var(--cyan-fg); }
.nav-grid > li:nth-child(3) { --nav-item-bg: var(--mint-bg); --nav-item-fg: var(--mint-fg); }
.nav-grid > li:nth-child(4) { --nav-item-bg: var(--lime-bg); --nav-item-fg: var(--lime-fg); }
.nav-grid > li:nth-child(5) { --nav-item-bg: var(--pea-bg); --nav-item-fg: var(--pea-fg); }
.nav-grid > li:nth-child(6) { --nav-item-bg: var(--yellow-bg); --nav-item-fg: var(--yellow-fg); }
.nav-grid > li:nth-child(7) { --nav-item-bg: var(--light-orange-bg); --nav-item-fg: var(--light-orange-fg); }
.nav-grid > li:nth-child(8) { --nav-item-bg: var(--orange-bg); --nav-item-fg: var(--orange-fg); }
.nav-grid > li:nth-child(9) { --nav-item-bg: var(--red-bg); --nav-item-fg: var(--red-fg); }
.nav-grid > li:nth-child(10) { --nav-item-bg: var(--pink-bg); --nav-item-fg: var(--pink-fg); }

.nav-grid > li.profile-nav-item { --nav-item-bg: var(--yellow-bg); --nav-item-fg: var(--yellow-fg); }
.nav-grid > li.courses-nav-item { --nav-item-bg: var(--pink-bg); --nav-item-fg: var(--pink-fg); }

.nav-grid > li.profile-nav-item-mobile {
    display: none;
}

.nav-grid > li.profile-nav-item-desktop {
    display: contents;
}

.nav-grid > li > :is(a, button, label):hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.nav-grid svg {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}

.nav-grid > li > :is(a, button) span {
    white-space: nowrap;
    line-height: 1;
}

@keyframes nextStepGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(74, 89, 0, 0.55), inset 0 0 10px rgba(74, 89, 0, 0.22);
    }
    50% {
        box-shadow: inset 0 0 0 2px rgba(74, 89, 0, 0.85), inset 0 0 18px rgba(74, 89, 0, 0.38);
    }
}

.profile-btn .profile-chevron {
    margin-left: auto;
    width: 0.95em;
    height: 0.95em;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.secondary-nav {
    background-color: white;
    color: white;
    border-radius: 0 0 0.5em 0.5em;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    list-style: none;
    padding: 0.9em 1em 1em;
    margin: 0 auto;
    gap: 0.4em;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    position: relative;
    z-index: 5;
    row-gap: 0;
    overflow: hidden;
    max-height: 4.4em;
    transition: max-height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), row-gap 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.secondary-nav li {
    padding: 0;
    display: block;
    opacity: 0;
    transform: translateX(-0.75rem) scale(0.9);
    white-space: nowrap;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease;
}

.secondary-nav li:nth-child(1)  { transition-delay: 0.00s; }
.secondary-nav li:nth-child(2)  { transition-delay: 0.04s; }
.secondary-nav li:nth-child(3)  { transition-delay: 0.08s; }
.secondary-nav li:nth-child(4)  { transition-delay: 0.12s; }
.secondary-nav li:nth-child(5)  { transition-delay: 0.16s; }
.secondary-nav li:nth-child(6)  { transition-delay: 0.20s; }
.secondary-nav li:nth-child(7)  { transition-delay: 0.24s; }
.secondary-nav li:nth-child(8)  { transition-delay: 0.28s; }
.secondary-nav li:nth-child(9)  { transition-delay: 0.32s; }
.secondary-nav li:nth-child(10) { transition-delay: 0.36s; }
.secondary-nav li:nth-child(11) { transition-delay: 0.40s; }
.secondary-nav li:nth-child(12) { transition-delay: 0.44s; }
.secondary-nav li:nth-child(13) { transition-delay: 0.48s; }
.secondary-nav li:nth-child(14) { transition-delay: 0.52s; }

.secondary-nav li:first-child {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 3.5em;
    pointer-events: auto;
    visibility: visible;
}

.secondary-nav.secondary-nav--complete li:first-child {
    opacity: 0;
    transform: translateX(-0.75rem) scale(0.9);
    max-height: 0;
    pointer-events: none;
    visibility: hidden;
}

header:has(.profile-menu-toggle-input:checked) .secondary-nav li {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 3.5em;
    pointer-events: auto;
    visibility: visible;
}

header:has(.profile-menu-toggle-input:checked) .secondary-nav {
    max-height: 40em;
    row-gap: 0.4em;
}

.primary-nav .profile-menu-toggle-input:checked + .profile-btn {
    box-shadow: 0 0.125rem 0.55rem rgba(0, 0, 0, 0.2);
}

.primary-nav .profile-menu-toggle-input:checked + .profile-btn .profile-chevron {
    transform: rotate(180deg);
}

.secondary-nav li.next-step a {
    animation: nextStepGlow 1.6s ease-in-out infinite;
}

.secondary-nav li.next-step a:focus-visible {
    animation: none;
    outline: none;
    box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 4px rgba(0, 44, 102, 0.92);
}

.secondary-nav a {
    color: var(--status-fg);
    text-decoration: none;
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    min-height: 2.45em;
    padding: 0.35em 0.45em;
    border-radius: 0.35em;
    --status-bg: transparent;
    --status-border: transparent;
    --status-fg: #0f2b35;
    --status-dot-fill: transparent;
    --status-dot-border: none;
    background-color: var(--status-bg);
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.secondary-nav a::before {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--status-dot-fill);
    border: var(--status-dot-border);
}

.secondary-nav a.uncomplete {
    --status-bg: var(--red-bg);
    --status-border: transparent;
    --status-fg: var(--red-fg);
    --status-dot-fill: transparent;
    --status-dot-border: 0.15em solid currentColor;
}

.secondary-nav a.complete {
    --status-bg: var(--lime-bg);
    --status-border: transparent;
    --status-fg: var(--lime-fg);
    --status-dot-fill: currentColor;
    --status-dot-border: 0.15em solid currentColor;
}

.secondary-nav a.underway {
    --status-bg: var(--yellow-bg);
    --status-border: transparent;
    --status-fg: var(--yellow-fg);
    --status-dot-fill: linear-gradient(90deg, currentColor 50%, transparent 50%);
    --status-dot-border: 0.15em solid currentColor;
}

.secondary-nav a:hover {
    text-decoration: underline;
}

.secondary-nav a:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 4px rgba(0, 44, 102, 0.92);
}

body:not(.basic-info-page) main {
    padding: 0 2em 2em;
    max-width: 1400px;
    margin: 0 auto 2em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

body:not(.basic-info-page) main > .welcome-body {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    width: 100%;
    align-items: start;
}

body:not(.basic-info-page) main > .welcome-body > video {
    flex: 0 1 45%;
    min-width: 0;
    width: 100%;
    border-radius: 0.5em;
    display: block;
    background-color: #000;
}

body:not(.basic-info-page) main > h2 {
    font-size: clamp(1.5rem, 4.8vw, 2.4rem);
    color: #ffffff;
    font-weight: 800;
    width: 100vw;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(-50vw + 50%);
    padding: 1.4em 3em;
    border-radius: 0;
    text-shadow: var(--heading-shadow);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body:not(.basic-info-page) main > .welcome-body > .welcome-text {
    flex: 1 1 0;
    min-width: 0;
    font-size: var(--body-copy-font-size);
    font-weight: 500;
    line-height: 1.7;
    color: #1a1a1a;
}

body:not(.basic-info-page) main > .welcome-body > .welcome-text p {
    margin: 0.8em 0;
}

.welcome-emphasis {
    color: var(--nav-bg);
    font-weight: 700;
}

body:not(.basic-info-page) main > .welcome-body > .welcome-text .welcome-link {
    color: #1a5fa8;
    text-decoration: none;
    font-weight: 600;
}

body:not(.basic-info-page) main > .welcome-body > .welcome-text .welcome-link:hover {
    text-decoration: underline;
}

.welcome-more {
    margin-top: 0.4rem;
}

.welcome-more-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.welcome-more-toggle {
    color: #1a5fa8;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.welcome-more-toggle-input:focus-visible + .welcome-more-toggle {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-shadow);
}

.welcome-more-toggle:hover {
    text-decoration: underline;
}

.welcome-more-toggle::after {
    content: ' >';
}

.welcome-more-toggle-input:checked + .welcome-more-toggle::after {
    content: ' <';
}

.welcome-more-content {
    padding-top: 0.4rem;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-0.75rem) scale(0.98);
    max-height: 0;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.welcome-more-toggle-input:checked + .welcome-more-toggle + .welcome-more-content {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 60em;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.25em 0.75em;
    margin: 0;
    align-self: center;
    border-radius: 0.5em;
    background-color: var(--lime-bg);
    color: var(--lime-fg);
    text-decoration: none;
    font-size: 1.25em;
    font-weight: 700;
    border: 1px solid var(--lime-fg);
    box-shadow: 0 0.5rem 1.2rem var(--lime-fg);
    animation: highlightPulse 2.4s ease-in-out infinite,
               wiggle 10s ease-in-out 4s infinite;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin: 1em;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0.5rem 1.2rem rgba(0, 82, 10, 0.18), 0 0 0 1px var(--next-action-glow-soft), 0 0 10px 2px var(--next-action-glow-soft);
    }
    50% {
        box-shadow: 0 0.5rem 1.2rem rgba(0, 82, 10, 0.18), 0 0 0 2px var(--next-action-glow), 0 0 16px 4px rgba(0, 82, 10, 0.32);
    }
}

.cta-text {
    text-align: center;
    color: var(--nav-bg);
    font-size: 1.5em;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-0.125rem);
    background-color: var(--lime-bg);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(0, 82, 10, 0.35);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .menu-toggle-label {
        display: inline-flex;
    }

    .primary-nav {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: max-height 0.45s cubic-bezier(0.77, 0.2, 0.05, 1),
                    opacity 0.25s ease,
                    transform 0.25s ease;
    }

    header:has(.menu-toggle-input:checked) .primary-nav {
        max-height: 60em;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        margin-top: 0.75rem;
    }

    .nav-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        padding: 0.75em;
        background: transparent;
    }

    .nav-grid > li {
        display: block;
    }

    .nav-grid > li.profile-nav-item-desktop {
        display: none;
    }

    .nav-grid > li.profile-nav-item-mobile {
        display: block;
    }

    .nav-grid > li > :is(a, button, label):focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
        box-shadow: none;
    }

    .profile-menu-toggle-input:focus-visible + .profile-btn {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
        box-shadow: none;
    }

    .secondary-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        padding: 0 0.75em;
        margin: 0;
        background: transparent;
        border-radius: 0;
        border-top: none;
    }

}

@media (min-width: 601px) {
    .menu-toggle-input {
        display: none;
    }

    .nav-grid > li.profile-nav-item-desktop {
        display: contents;
    }

    .nav-grid > li.profile-nav-item-mobile {
        display: none;
    }
}

@media (min-width: 601px) and (max-width: 1300px) {
    .secondary-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body:not(.basic-info-page) main > .welcome-body {
        flex-direction: column;
    }

    body:not(.basic-info-page) main > .welcome-body > video {
        flex: none;
    }
}

footer {
    background-color: var(--nav-bg);
    padding: 1.5em;
}

.footer-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.footer-menu a {
    display: block;
    padding: 0.75em 1.25em;
    color: white;
    text-decoration: none;
    font-size: var(--small-copy-font-size);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
}

.footer-menu li:last-child a {
    border-right: none;
}

.footer-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

