body {
    padding: 1rem 2rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
}

/* Shared wireframe border style */
header,
main,
footer
{
    border: 2px solid #999;
}

/* Shared wireframe border style */
nav,
.logo-placeholder
{
    border: 1px dotted #999;
}

/* Page structure */
header,
main,
footer {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
  
}

header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main {
    min-height: 300px;
}

section {
    margin: 1rem 0;
}

footer {
    min-height: 80px;
}

/* Logo placeholder */
.logo-placeholder {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #fafafa;
    font-size: 0.85rem;
    text-transform: uppercase;
  
}

/* Top navigation */
.top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    background: #fff;
    
}

.top-navigation ul {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-navigation li {
    padding: 0.5rem 0.75rem;
    color: #555;
    background: #fff;
    font-size: 0.85rem;
}

/* Main navigation */
.main-navigation {
    position: relative;
    width: 100%;
    min-height: 120px;
    padding: 0 0 4.5rem;
    background: #fff;
   
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: block;
}

/* Hide native radio buttons */
.main-navigation input[type="radio"] {
    display: none;
}

/* Main navigation tabs */
.main-navigation label {
    display: block;
    padding: 0.75rem 1rem;
    color: #555;
    background: lightgray;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Selected tab state */
.main-navigation input[type="radio"]:checked + label {
    color: #222;
    background: #fff;
    text-decoration: underline;
}

/* Sub-navigation panel */
.sub-navigation-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    padding: .5rem;
    background: #fff;
    z-index: 5;
}

/* Reveal active panel */
.main-navigation input[type="radio"]:checked ~ .sub-navigation-panel {
    display: block;
}

/* Sub-navigation content */
.sub-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
}

/* Sub-navigation links */
.sub-content a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #555;
    background: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

.sub-content a:hover {
    text-decoration: underline;
}

.welcome-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 500px;
}

.feature-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 400px;
}

.callout-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 350px;
    height: 350px;
    background: #fff;
}

h2 {
    font-size: 3rem;
}

.background-image-placeholder {
    min-height: 300px;
    border: 1px dotted #999;
    background:
            repeating-linear-gradient(
                    45deg,
                    #fafafa 0,
                    #fafafa 10px,
                    #e5e5e5 10px,
                    #e5e5e5 11px
            );
}

button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #555;
    background: #fff;
    border: 1px dotted #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

/* Remove generic section placeholder from the carousel */
.news-banner::before {
    content: none;
    display: none;
}

/* News carousel outer container */
.news-banner {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    padding: 1.5rem 0;
    border: 1px dotted #999;
    background: #fff;
    box-sizing: border-box;
}

/* 
    12 cards total:
    6 real articles + 6 duplicate articles.

    Width is 400% because:
    - 3 cards should show at once
    - 12 total cards / 3 visible cards = 4
    - 4 x 100% = 400%
*/
.news-carousel-track {
    display: flex;
    align-items: stretch;
    width: 400%;
    min-height: 400px;
    animation: news-carousel-step 24s ease-in-out infinite;
}

/* 
    Important:
    Do not use margin on .news-card.
    Margins break the carousel width math.
*/
.news-card {
    flex: 0 0 calc(100% / 12);
    min-width: 0;
    min-height: 400px;
    padding: 2rem;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Creates the floating card look without changing carousel width */
.news-card {
    outline: 1px dotted #999;
    outline-offset: -0.75rem;
}

/* Wireframe image placeholder */
.news-image-placeholder {
    min-height: 150px;
    margin: 0.75rem 0 1rem;
    border: 1px dotted #999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background:
            repeating-linear-gradient(
                    45deg,
                    #fff 0,
                    #fff 10px,
                    #f3f3f3 10px,
                    #f3f3f3 11px
            );
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-sizing: border-box;
}

/* News card content */
.news-label {
    display: inline-block;
    align-self: flex-start;
    margin: 0.75rem 0 0;
    padding: 0.4rem 0.65rem;
    border: 1px dotted #999;
    color: #777;
    background: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.35rem;
    line-height: 1.2;
}

.news-card p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-card .wireframe-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Move one card at a time */
@keyframes news-carousel-step {
    0%,
    10% {
        margin-left: 0;
    }

    15%,
    25% {
        margin-left: -33.3333%;
    }

    30%,
    40% {
        margin-left: -66.6666%;
    }

    45%,
    55% {
        margin-left: -100%;
    }

    60%,
    70% {
        margin-left: -133.3333%;
    }

    75%,
    85% {
        margin-left: -166.6666%;
    }

    90%,
    100% {
        margin-left: -200%;
    }
}

.contact-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 500px;
}

.site-footer {
    padding: 1rem;
    border: 1px dotted #999;
    background: #fff;
    color: #555;
}

.footer-top,
.footer-main-nav,
.footer-bottom {
    border: 1px dotted #999;
    background: #fff;
}

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

.footer-logo-placeholder {
    width: 200px;
    height: 60px;
    border: 1px dotted #999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #fafafa;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.footer-mini-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-mini-nav a,
.footer-main-nav a {
    display: inline-block;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-mini-nav a {
    padding: 0.5rem 0.75rem;
    border: 1px dotted #999;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-main-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.footer-nav-group {
    min-height: 160px;
    padding: 1rem;
    border: 1px dotted #999;
    background: #fafafa;
}

.footer-nav-group h4 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #999;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-main-nav a:hover,
.footer-mini-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Simple responsive footer */
@media (max-width: 1100px) {
    .footer-main-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main-nav {
        grid-template-columns: 1fr;
    }

    .footer-mini-nav ul {
        flex-direction: column;
    }
}

/* Responsive foundation */
html {
    min-width: 320px;
}

body {
    width: 100%;
    overflow-x: hidden;
}

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

header,
main,
footer,
section,
nav {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px dotted #999;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger-button span {
    display: block;
    width: 22px;
    height: 1px;
    background: #555;
}

/* Mobile drawer */
.mobile-navigation-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100vh;
    padding: 1rem;
    border-left: 1px dotted #999;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dotted #999;
}

.mobile-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.75rem;
    border: 1px dotted #999;
    color: #555;
    background: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 0;
}

.mobile-menu-section {
    padding: 1rem;
    border: 1px dotted #999;
    background: #fafafa;
}

.mobile-menu-section h4 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #999;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-menu-section a {
    display: block;
    padding: 0.55rem 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
}

.mobile-menu-section a:hover {
    text-decoration: underline;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background:
            repeating-linear-gradient(
                    45deg,
                    rgba(255, 255, 255, 0.8) 0,
                    rgba(255, 255, 255, 0.8) 10px,
                    rgba(240, 240, 240, 0.8) 10px,
                    rgba(240, 240, 240, 0.8) 11px
            );
    z-index: 999;
}

.mobile-menu-toggle:checked ~ .mobile-navigation-drawer {
    transform: translateX(0);
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    display: block;
}

/* Desktop navigation safety */
.top-navigation {
    flex-wrap: nowrap;
}

.desktop-mini-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-navigation ul {
    flex-wrap: wrap;
}

.main-navigation label {
    white-space: nowrap;
}

/* General responsive section behavior */
.welcome-banner,
.feature-banner,
.contact-banner {
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
}

.welcome-banner,
.contact-banner {
    flex-direction: column;
}

.feature-banner {
    flex-wrap: wrap;
}

.callout-card {
    max-width: 100%;
}

h2 {
    line-height: 1.1;
}

/* Switch to hamburger before the navigation text gets cramped */
@media (max-width: 1100px) {
    body {
        padding: 1rem;
    }

    header {
        position: relative;
    }

    .top-navigation {
        justify-content: space-between;
    }

    .desktop-mini-nav,
    .main-navigation {
        display: none;
    }

    .hamburger-button {
        display: inline-flex;
    }

    .logo-placeholder {
        width: 170px;
        height: 56px;
    }
}

/* Tablet layout */
@media (max-width: 900px) {
    .welcome-banner {
        height: auto;
        min-height: 420px;
    }

    .feature-banner {
        height: auto;
        min-height: 400px;
        flex-direction: column;
    }

    .callout-card {
        width: min(100%, 420px);
        height: auto;
        min-height: 260px;
    }

    .contact-banner {
        height: auto;
        min-height: 320px;
    }

    h2 {
        font-size: 2.35rem;
    }

    .site-footer .footer-main-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile layout */
@media (max-width: 700px) {
    body {
        padding: 0.75rem;
    }

    header,
    main,
    .site-footer {
        padding: 0.75rem;
    }

    .top-navigation {
        padding: 0.75rem;
        gap: 1rem;
    }

    .logo-placeholder {
        width: 150px;
        height: 52px;
    }

    .welcome-banner {
        min-height: 360px;
        gap: 1rem;
    }

    .feature-banner {
        min-height: auto;
        padding: 1rem;
    }

    .callout-card {
        width: 100%;
        min-height: 220px;
    }

    .contact-banner {
        min-height: 280px;
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    button,
    .wireframe-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .site-footer .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-main-nav {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-mini-nav ul {
        flex-direction: column;
        width: 100%;
    }
}

/* Mobile carousel simplification */
@media (max-width: 700px) {
    .news-banner {
        min-height: auto;
        padding: 1rem;
        overflow: visible;
    }

    .news-carousel-track {
        width: 100%;
        min-height: 0;
        animation: none;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card {
        flex: none;
        width: 100%;
        min-height: 0;
        padding: 1rem;
        outline-offset: 0;
        border: 1px dotted #999;
    }

    .news-carousel-track .news-card:nth-child(n + 7) {
        display: none;
    }

    .news-image-placeholder {
        min-height: 140px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    body {
        padding: 0.5rem;
    }

    header,
    main,
    .site-footer {
        padding: 0.5rem;
    }

    .mobile-navigation-drawer {
        width: 92vw;
        padding: 0.75rem;
    }

    .logo-placeholder,
    .footer-logo-placeholder {
        width: 130px;
        height: 48px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .welcome-banner {
        min-height: 320px;
        padding: 1rem;
    }

    .contact-banner {
        min-height: 240px;
        padding: 1rem;
    }

    .news-card h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 1100px) {
    .top-navigation ul.desktop-mini-nav {
        display: none;
    }

    .top-navigation .hamburger-button {
        display: inline-flex;
    }
}

.basic-page-banner {
    min-height: 420px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.basic-page-banner p {
    max-width: 520px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}