
/* =========================================================
   PCWORKSHOPS
   NAVY + LIGHT BRIGHT BLUE THEME
   ========================================================= */

:root {
    --navy: #00004d;
    --navy-dark: #000033;
    --navy-light: #11116b;

    /* Accent colours (light bright blue) */
    --accent: #29a8ff;
    --accent-dark: #0a68b4;
    --accent-light: #6cc9ff;
    --accent-pale: #e6f5ff;

    --cream: #f7fbff;
    --off-white: #f1f6fa;

    --text: #222222;
    --text-light: #555555;

    --border: #d3dde8;
    --white: #ffffff;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

a:hover,
a:focus {
    color: var(--navy);
    text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 9999;

    background: var(--accent);
    color: var(--navy-dark);

    padding: 12px 18px;
    border: 2px solid var(--navy-dark);
    font-weight: 700;
}

.skip-link:focus {
    left: 10px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background-color: var(--navy);
    border-bottom: 5px solid var(--accent);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
}

.brand {
    display: inline-block;
}

.brand img {
    max-height: 75px;
    width: auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-navigation-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;

    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    flex: 1 1 auto;
    text-align: center;
}

.main-navigation a {
    position: relative;

    display: block;

    color: #ffffff;

    padding: 15px 12px;

    font-weight: 700;
    font-size: 15px;

    border-left: 1px solid rgba(255,255,255,.05);
}

.main-navigation a::after {
    content: "";
    position: absolute;

    left: 25%;
    right: 25%;
    bottom: 5px;

    height: 3px;

    background: transparent;

    transition: all .2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background: var(--navy-light);
    color: var(--accent-light);
    text-decoration: none;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    background: var(--accent);
}

.main-navigation a[aria-current="page"] {
    color: var(--accent-light);
}

.main-navigation a[aria-current="page"]::after {
    background: var(--accent);
}

.main-navigation small {
    display: block;

    font-weight: 400;
    opacity: .8;

    color: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark) 0%,
            var(--navy) 70%,
            #17175e 100%
        );

    color: #ffffff;

    padding: 70px 20px;

    text-align: center;

    border-bottom: 7px solid var(--accent);
}

.hero::after {
    content: "";

    display: block;

    width: 90px;
    height: 5px;

    background: var(--accent);

    margin: 30px auto 0;
}

.hero-inner {
    max-width: 1050px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);

    margin: 0 0 20px;

    font-weight: 900;

    color: #ffffff;
}

.hero-intro {
    max-width: 850px;

    margin: 0 auto 30px;

    font-size: 1.25rem;

    color: #f5f5f5;
}

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;

    padding: 13px 23px;

    border-radius: 5px;

    font-weight: 700;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;

    text-decoration: none !important;
}

.button:hover {
    transform: translateY(-2px);
}


/* Main blue button (dark text for contrast on light blue) */

.button-primary {
    background: var(--accent);

    color: var(--navy-dark);

    border: 2px solid var(--accent);
}

.button-primary:hover,
.button-primary:focus {
    background: var(--accent-dark);

    border-color: var(--accent-dark);

    color: #ffffff;
}


/* Outline button */

.button-secondary {
    background: transparent;

    color: var(--accent-light);

    border: 2px solid var(--accent);
}

.button-secondary:hover,
.button-secondary:focus {
    background: var(--accent);

    color: var(--navy-dark);

    border-color: var(--accent);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content-wrapper {
    max-width: 1120px;

    margin: 0 auto;

    padding: 55px 20px;
}

.content-section {
    margin-bottom: 65px;
}

.content-section h2 {
    position: relative;

    color: var(--navy);

    font-size: 2rem;

    margin-bottom: 22px;

    padding-bottom: 12px;
}

.content-section h2::after {
    content: "";

    display: block;

    width: 65px;
    height: 4px;

    margin-top: 10px;

    background: var(--accent);
}

.content-section h3 {
    color: var(--navy);
}

.section-introduction {
    max-width: 900px;

    font-size: 1.12rem;

    color: var(--text-light);
}


/* =========================================================
   STANDARD CONTENT LINKS
   ========================================================= */

.content-section a:not(.button):not(.course-link) {
    color: var(--accent-dark);

    border-bottom: 2px solid transparent;

    transition: all .2s ease;
}

.content-section a:not(.button):not(.course-link):hover {
    color: var(--navy);

    border-bottom-color: var(--accent);
}


/* =========================================================
   COURSE GRID
   ========================================================= */

.course-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-top: 30px;
}


/* =========================================================
   COURSE CARD
   ========================================================= */

.course-card {
    position: relative;

    background: #ffffff;

    border: 1px solid var(--border);

    border-top: 5px solid var(--accent);

    border-radius: 6px;

    padding: 27px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .06);

    display: flex;

    flex-direction: column;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-top-color .2s ease;
}

.course-card:hover {
    transform: translateY(-4px);

    border-top-color: var(--accent-dark);

    box-shadow:
        0 9px 25px rgba(0, 0, 0, .13);
}

.course-card h3 {
    margin: 3px 0 12px;

    font-size: 1.35rem;

    color: var(--navy);
}

.course-card p {
    color: var(--text-light);

    margin-bottom: 18px;
}


/* =========================================================
   COURSE LEVEL BADGE
   ========================================================= */

.course-level {
    display: inline-block;

    align-self: flex-start;

    background: var(--accent);

    color: var(--navy-dark);

    padding: 6px 12px;

    border-radius: 4px;

    font-size: .80rem;

    font-weight: 700;

    letter-spacing: .04em;

    text-transform: uppercase;

    margin-bottom: 13px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, .15);
}


/* =========================================================
   COURSE LINK
   ========================================================= */

.course-link {
    position: relative;

    margin-top: auto;

    padding-top: 15px;

    color: var(--accent-dark) !important;

    font-weight: 800;

    border-top: 1px solid var(--border);

    text-decoration: none !important;
}

.course-link::after {
    content: " →";

    color: var(--accent);
}

.course-link:hover,
.course-link:focus {
    color: var(--navy) !important;

    text-decoration: underline !important;

    text-decoration-color: var(--accent) !important;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-top: 28px;
}

.benefit {
    background: #ffffff;

    border: 1px solid var(--border);

    border-left: 5px solid var(--accent);

    padding: 22px;

    border-radius: 4px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.04);
}

.benefit strong {
    display: block;

    color: var(--navy);

    font-size: 1.08rem;

    margin-bottom: 6px;
}


/* =========================================================
   LISTS
   ========================================================= */

.simple-list {
    padding-left: 25px;
}

.simple-list li {
    margin-bottom: 10px;

    padding-left: 5px;
}

.simple-list li::marker {
    color: var(--accent-dark);
    font-weight: 900;
}


/* =========================================================
   INFORMATION BOX
   ========================================================= */

.info-box {
    background: var(--accent-pale);

    border-left: 6px solid var(--accent);

    padding: 25px 28px;

    margin: 28px 0;

    border-radius: 0 5px 5px 0;
}

.info-box strong {
    color: var(--navy);

    font-size: 1.1rem;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-item {
    border: 1px solid var(--border);

    border-left: 5px solid var(--accent);

    border-radius: 4px;

    margin-bottom: 14px;

    background: #ffffff;

    box-shadow:
        0 2px 7px rgba(0,0,0,.04);
}

.faq-item summary {
    cursor: pointer;

    padding: 18px 20px;

    font-weight: 700;

    color: var(--navy);

    transition: background .2s ease;
}

.faq-item summary:hover {
    background: var(--accent-pale);

    color: var(--accent-dark);
}

.faq-answer {
    padding: 0 20px 18px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    position: relative;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );

    color: #ffffff;

    padding: 50px 25px;

    border-radius: 7px;

    text-align: center;

    margin-bottom: 65px;

    border-top: 6px solid var(--accent);

    box-shadow:
        0 7px 25px rgba(0,0,0,.12);
}

.cta-section h2 {
    color: #ffffff;

    margin-top: 0;
}

.cta-section h2::after {
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    max-width: 800px;

    margin: 0 auto 28px;

    color: #f2f2f2;
}


/* =========================================================
   CONTACT BOXES
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.contact-box {
    background: #ffffff;

    border: 1px solid var(--border);

    border-top: 5px solid var(--accent);

    padding: 25px;

    border-radius: 5px;
}

.contact-box h3 {
    margin-top: 0;

    color: var(--navy);
}

.contact-box a {
    color: var(--accent-dark);

    font-weight: 700;
}


/* =========================================================
   SPECIAL COURSE SECTION DIVIDERS
   ========================================================= */

#sql-courses {
    padding-top: 10px;
}

#excel,
#access {
    border-top: 1px solid var(--border);

    padding-top: 45px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--navy-dark);

    color: #dfe3ea;

    padding: 50px 20px 20px;

    border-top: 6px solid var(--accent);
}

.footer-grid {
    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.4fr;

    gap: 35px;
}

footer h2,
footer h3 {
    color: #ffffff;

    margin-top: 0;
}

footer h3 {
    position: relative;

    padding-bottom: 9px;
}

footer h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 35px;
    height: 3px;

    background: var(--accent);
}

footer ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

footer li {
    margin-bottom: 9px;
}

footer a {
    color: #e8edf4;

    font-weight: 500;
}

footer a:hover,
footer a:focus {
    color: var(--accent-light);

    text-decoration: none;
}

.footer-social {
    display: flex;

    gap: 15px;

    margin-top: 15px;

    flex-wrap: wrap;
}

.footer-social a {
    border: 1px solid var(--accent);

    color: var(--accent-light);

    padding: 5px 10px;

    border-radius: 3px;
}

.footer-social a:hover {
    background: var(--accent);

    color: var(--navy-dark);
}

.copyright {
    max-width: 1180px;

    margin: 40px auto 0;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.15);

    text-align: center;

    color: #aeb8c7;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .course-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .benefits-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .main-navigation ul {
        display: block;
    }

    .main-navigation li {
        border-bottom:
            1px solid rgba(255,255,255,.12);
    }

    .main-navigation a::after {
        display: none;
    }

    .course-grid,
    .benefits-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 18px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-intro {
        font-size: 1.05rem;
    }

    .content-wrapper {
        padding: 40px 17px;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .course-card {
        padding: 23px;
    }

    .button {
        width: 100%;
        max-width: 320px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
