body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #111;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-size: 1rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.container {
    display: flex;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-content {
    width: 100%;
}

/* Header */
header {
    display: flex;
    align-items: center;
    background: url(../images/pattern.png) center / cover;
    min-height: 180px;
    padding: 20px 0;
}

header .container {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-container {
    flex: 1 1 320px;
    min-width: 0;
}

.brand-container a {
    display: flex;
    flex-wrap: wrap;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    font-size: 34px;
    max-width: 100%;
}

.brand-container span {
    display: inline;
    background: #000000;
    padding: 0 5px;
    margin: 0;
}

.brand-container a .blue-color {
    color: #00CEFF;
}

#header-logo {
    flex: 0 0 auto;
}

#header-logo img {
    max-width: 140px;
    height: auto;
}

/* Main nav */
.nav-bar {
    background: #8c0b42;
}

.nav-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* overflow: visible — not hidden — so text is not clipped at 200% zoom (WCAG 1.4.4) */
.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: transparent;
    overflow: visible;
    z-index: 2;
}

.topnav a,
.dropdown .dropbtn {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.4;
    white-space: normal;
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.topnav a:hover,
.topnav a:focus,
.dropdown:hover .dropbtn,
.dropdown .dropbtn:focus {
    background-color: #555;
    color: white;
    text-decoration: underline;
}

/* Visible focus ring for keyboard users — WCAG 2.4.7 */
.topnav a:focus-visible,
.dropdown .dropbtn:focus-visible,
.dropdown-content a:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: -3px;
}

.active {
    text-decoration: underline;
}

/* Hamburger icon — pushed to far right */
.topnav .icon {
    display: none;
    margin-left: auto;
}

/* Dropdown */
.dropdown {
    position: relative;
}

/* Opens on hover (desktop) */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #111;
    text-align: left;
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #ddd;
    color: #000;
}

/* Hero */
.page-header,
.page-header2,
.page-header3,
.page-header4 {
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 20px 0;
    margin-bottom: 40px;
    background-color: #272922;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.page-header {
    background-image: url("../images/lgl-home-pgtitle-960.png");
}

.page-header2 {
    background-image: url("../images/lgl-toolkit-banner2.png");
}

.page-header3 {
    background-image: url("../images/lgl-toolkit-banner3.png");
}

.page-header4 {
    background-image: url("../images/lgl-toolkit-banner4.png");
}

.page-title {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-size: 22px;
    padding: 10px 14px;
    margin: 0;
    max-width: min(100%, 40rem);
}

.page-title h1 {
    margin: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
}

/* Sections */
.section {
    padding: 10px 0;
    margin: 10px auto;
}

#main-text-section.section .container,
#learning-outcomes-section.section .container,
.icon-section .container {
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
}

.icon-section .container {
    background: #f0f0f0;
}

#main-text-section.section .container > div,
#learning-outcomes-section.section .container > div,
.icon-section .container > div {
    padding: 24px;
}

.section-title {
    margin: 5px auto 12px;
    font-size: 34px;
    text-align: center;
    overflow-wrap: break-word;
}

.icon-section .section-title {
    font-size: 30px;
    max-width: 700px;
    font-weight: normal;
    border-bottom: 1px solid #999;
    padding-bottom: 8px;
}

.section-subtitle {
    margin: 4px auto 0;
    font-weight: normal;
    color: #555;
    max-width: 700px;
    text-align: center;
    overflow-wrap: break-word;
}

p,
li,
h1,
h2,
h3,
a,
button {
    overflow-wrap: break-word;
}

#main-text-section.section p {
    margin: 5px auto;
}

/* Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding: 15px 24px 30px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 280px;
    padding: 10px;
}

/* min-height not height — text can expand at 200% zoom (WCAG 1.4.4) */
.card .card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 2px 10px;
    margin: 0 auto;
    font-size: 18px;
}

.card .card-title h3 {
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.card img {
    max-width: 150px;
}

.card .card-body {
    width: 100%;
    padding: 5px 10px;
    margin: 0 auto;
}

.card .card-body p {
    margin: 4px auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Lists */
#learning-outcomes-section.section ul {
    margin: 25px auto;
    max-width: 760px;
}

#learning-outcomes-section.section ul li {
    margin: 10px 0;
}

/* Columns */
.column-1 {
    width: 28%;
    margin: auto 4%;
    min-width: 0;
}

.column-2 {
    width: 68%;
    margin: auto 4%;
    min-width: 0;
}

.time {
    font-size: 1.2em;
}

.box {
    background-color: #F1F2F2;
    padding: 10px;
    border-top: 2px solid rgb(116, 113, 113);
    margin: 1rem;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 30px 0;
}

footer .container {
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logos {
    flex: 1 1 180px;
}

.footer-text {
    flex: 3 1 400px;
}

footer a {
    color: white;
}

footer p {
    margin: 10px 0;
}

/* Utility */
#main-act {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* ── Responsive nav ─────────────────────────────────────────────────────────
   Collapsed state: show Home + hamburger only, hamburger on the right.
   Expanded state: show all links stacked, hamburger pinned top-right.
   ────────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {

    /* Hide everything except Home and the hamburger icon */
    .topnav a:not(:first-child):not(.icon),
    .topnav .dropdown {
        display: none;
    }

    /* Show hamburger, push it to the right */
    .topnav a.icon {
        display: block;
        margin-left: auto;
    }

    /* ── Expanded (responsive) state ── */
    .topnav.responsive {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        position: relative;
    }

    /* Home stays in column 1, row 1 */
    .topnav.responsive a:first-child {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    /* Hamburger stays in column 2, row 1 — always top-right */
    .topnav.responsive a.icon {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
    }

    /* All other links span full width below the first row */
    .topnav.responsive a:not(:first-child):not(.icon),
    .topnav.responsive .dropdown {
        display: block;
        grid-column: 1 / -1;
        text-align: left;
        width: 100%;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Dropdown in mobile — static, opens on hover/focus-within same as desktop */
    .topnav.responsive .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 0;
        display: none;
    }

    .topnav.responsive .dropdown:hover .dropdown-content,
    .topnav.responsive .dropdown:focus-within .dropdown-content {
        display: block;
    }
}

/* General responsive */
@media (max-width: 900px) {
    .container {
        flex-wrap: wrap;
    }

    .page-title {
        max-width: 100%;
    }

    .card {
        max-width: 100%;
    }

    .column-1,
    .column-2,
    .footer-logos,
    .footer-text {
        width: 100%;
        margin: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .brand-container a {
        font-size: 28px;
    }

    .page-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }
}