body {
    font-size: 16px;
    margin: 0;
    background-color: #d5c4af;
    background-image: url('CAE26_Background.jpg');
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    color: #221c17;
}
a {
    color: inherit;
}
body > main {
    width: 779px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    padding-block: 28px;
}
h1 {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 34px;
    margin: 0 0 16px;
}

/* Header: art with brown panel (logo + nav) overlaid on its solid-brown right side */
.site-header {
    position: relative;
    border-bottom: 3px solid #c9a86a;
}
.header-art {
    vertical-align: middle;
    width: 100%;
}
.header-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 32px;
}
.header-logo img {
    display: block;
    width: 112px;
}
nav ul {
    font-size: 11px;
    color: #d3b184;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
nav ul li {
    margin-block: 4px;
}
nav ul a {
    color: inherit;
    text-decoration: none;
}
nav ul a:hover,
nav ul a.current {
    text-decoration: underline;
}

/* Black content card with parchment panel inside */
.card {
    background-color: #0d0a08;
    padding: 18px 18px 24px;
}
.panel {
    background: #eedfce url('CAE26_InteriorBackground.jpg') center / cover;
    padding: 28px 32px;
    min-height: 320px;
    box-sizing: border-box;
}
.footer-mark {
    text-align: center;
    padding-top: 24px;
}
.footer-mark img {
    width: 180px;
}

/* Program schedule */
.schedule .timeblock {
    display: flex;
    gap: 20px;
}
.schedule .timeblock div {
    min-width: 74px;
}
.schedule .timeblock p {
    margin-top: 0;
}

/* Two-column copy + form layout (Contact, Stories) */
.two-col {
    display: flex;
    gap: 28px;
}
.two-col .col-copy {
    flex: 1 1 55%;
}
.two-col .col-form {
    flex: 1 1 45%;
    border-left: 1px solid #8a7a63;
    padding-left: 28px;
}
.col-copy p {
    font-size: 14px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}
form label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 4px;
}
form label + label {
    margin-top: 12px;
}
form input[type='text'],
form input[type='email'],
form textarea {
    border: 1px solid #8a7a63;
    background-color: #fff;
    padding: 6px 8px;
    font: inherit;
    font-size: 14px;
}
form textarea {
    min-height: 140px;
    resize: vertical;
}
form input[type='file'] {
    font-size: 13px;
}
form button {
    width: fit-content;
    margin-left: auto;
    margin-top: 14px;
    background-color: #835e4c;
    color: #ecd9b7;
    border: none;
    padding: 8px 22px;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    cursor: pointer;
}
form button:hover {
    background-color: #6b4c3d;
}
.form-errors {
    color: #7a1f1f;
    font-size: 13px;
    margin: 0 0 8px;
}
.word-count {
    font-size: 12px;
    color: #6b5a44;
    margin: 4px 0 0;
    text-align: right;
}
.word-count.over {
    color: #7a1f1f;
    font-weight: 600;
}

/* Home video */
.home-video {
    position: relative;
    width: 100%;
}
.home-video video,
.home-video img {
    width: 100%;
    vertical-align: middle;
}
.restart-video,
.activate-audio {
    position: absolute;
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: #d3b184;
    color: #221c17;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
    border-radius: 0.25rem;
}
.restart-video:hover,
.activate-audio:hover {
    background-color: #c9a86a;
}
.activate-audio {
    right: 0.75rem;
    top: 0.75rem;
}
.restart-video {
    display: none;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}
.video-disclosure {
     margin:12px 0 0;
  font-size:9px;
  line-height:1.5;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-align:right;
  color:rgba(211,177,132,.7);
}

/* Customer Stories: sub-nav in the black band above the panel */
.stories-nav {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 2px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d3b184;
}
.stories-nav a {
    text-decoration: none;
}
.stories-nav a:hover {
    text-decoration: underline;
}

/* Customer Stories: list page */
.stories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
}
.stories-list li {
    margin: 0 0 8px;
}

/* Customer Stories: single story */
.story-head {
    border-bottom: 1px solid #221c17;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.story-head h1 {
    margin-bottom: 2px;
}
.story-subtitle {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
/* Several stories on one page, divided by a thin rule */
.story-section + .story-section {
    border-top: 1px solid #8a7a63;
    margin-top: 28px;
    padding-top: 24px;
}
.story-section-head {
    margin-bottom: 14px;
}
.story-section-head h2 {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 22px;
    margin: 0 0 2px;
}
.story-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.story-body {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
}
.story-body > :first-child {
    margin-top: 0;
}
.story-body p {
    margin: 0 0 10px;
}
.story-body ul,
.story-body ol {
    margin: 0 0 10px;
    padding-left: 22px;
}
.story-body blockquote {
    margin: 0 0 10px;
    padding-left: 14px;
    border-left: 3px solid #835e4c;
    font-style: italic;
}
.story-body img {
    max-width: 100%;
    height: auto;
}
.story-images {
    flex: 0 0 215px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}
.story-images figure {
    margin: 0;
}
.story-images img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #8a7a63;
    box-sizing: border-box;
}
.story-image {
    display: block;
    cursor: zoom-in;
}
.story-images figcaption {
    font-size: 12px;
    color: #6b5a44;
    margin-top: 4px;
}

/* Customer Stories: click-to-enlarge */
.lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 96vw;
    max-height: 96vh;
    cursor: zoom-out;
}
.lightbox::backdrop {
    background: rgba(13, 10, 8, 0.88);
}
.lightbox img {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    cursor: default;
}
.lightbox-close {
    position: fixed;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #d3b184;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

@media screen and (max-width: 779px) {
    body > main {
        width: 100%;
        padding-block: 0;
    }
    .header-panel {
        gap: 3vw;
        padding-right: 3.5vw;
    }
    .header-logo img {
        width: 15vw;
        min-width: 84px;
    }
    nav ul {
        font-size: 10px;
    }
    nav ul li {
        margin-block: 2px;
    }
}

@media screen and (max-width: 650px) {
    .site-header {
        display: flex;
        flex-direction: column;
    }
    .header-panel {
        position: static;
        height: auto;
        background-color: #835e4c;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 16px;
        gap: 24px;
    }
    .header-logo img {
        width: 96px;
    }
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 18px;
        font-size: 11px;
    }
    .two-col {
        flex-direction: column;
    }
    .two-col .col-form {
        border-left: none;
        border-top: 1px solid #8a7a63;
        padding-left: 0;
        padding-top: 8px;
    }
    .panel {
        min-height: 0;
        padding: 22px 20px;
    }
    .stories-nav {
        padding-bottom: 10px;
    }
    .story-layout {
        flex-direction: column;
        gap: 16px;
    }
    .story-images {
        order: -1;
        flex: none;
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    nav ul {
        justify-content: center;
    }
    nav ul li {
        flex-basis: 30%;
        text-align: center;
    }
    .schedule .timeblock {
        flex-direction: column;
        gap: 0;
    }
}
