:root {
    --s4y-ink: #171511;
    --s4y-header: #26231c;
    --s4y-tan: #baaf9e;
    --s4y-teal: #accfcc;
    --s4y-btn: #91bebb;
    --s4y-pink: #ef9fb6;
    --s4y-cream: #f5f1e8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: var(--s4y-ink);
    color: var(--s4y-cream);
    line-height: 1.65;
}

h1, h2, h3, h4, .serif { font-family: 'Noto Serif', serif; }

a { color: var(--s4y-teal); }
a:hover { color: #fff; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(38, 35, 28, 0.96);
    border-bottom: 1px solid rgba(186, 175, 158, 0.18);
    position: sticky;
    top: 0;
    z-index: 50;
}
body.home .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: rgba(38, 35, 28, 0.72);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 56px; height: 56px; flex: none; }
.brand-name {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.brand-name small {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    color: var(--s4y-tan);
    text-transform: uppercase;
    margin-top: 8px;
}
.primary-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 30px;
}
.primary-nav a {
    font-family: 'Noto Serif', serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav .current-menu-item a {
    color: var(--s4y-teal);
    border-bottom-color: var(--s4y-teal);
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: #0d0c0a; overflow: hidden; }
.hero-slides { position: relative; height: clamp(420px, 72vh, 760px); }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.9s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,12,10,0.82) 0%, rgba(13,12,10,0.15) 55%, rgba(13,12,10,0.35) 100%);
}
.hero-caption {
    position: absolute; z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: 0 24px 64px;
    max-width: 1180px; margin: 0 auto;
}
.featured-tag {
    display: inline-block;
    background: var(--s4y-btn);
    color: #10201e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 7px 16px 7px 20px;
    border-radius: 3px;
    margin-bottom: 16px;
}
.hero-caption h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    margin: 0 0 10px;
    line-height: 1.15;
    max-width: 16em;
}
.hero-caption p { color: var(--s4y-tan); max-width: 40em; margin: 0 0 20px; }
.hero-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 100%; pointer-events: none; }
.hero-nav button {
    pointer-events: auto;
    position: absolute;
    background: rgba(38,35,28,0.65);
    border: 1px solid rgba(186,175,158,0.4);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.25s;
}
.hero-nav button:hover { background: var(--s4y-btn); color: #10201e; }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-dots { position: absolute; z-index: 3; bottom: 22px; left: 0; right: 0; text-align: center; }
.hero-dots button {
    width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid var(--s4y-tan);
    background: transparent; margin: 0 5px; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--s4y-teal); border-color: var(--s4y-teal); }

/* ---------- Buttons ---------- */
.btn, .read-more {
    display: inline-block;
    background: var(--s4y-btn);
    color: #10201e !important;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 12px 26px;
    border-radius: 3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.btn:hover, .read-more:hover { background: var(--s4y-teal); transform: translateY(-1px); }

/* ---------- Program grid ---------- */
.section { padding: 72px 0; }
.section-title {
    text-align: center;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.section-sub {
    text-align: center;
    color: var(--s4y-tan);
    margin: 0 0 44px;
    font-style: italic;
}
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 34px;
}
.program-card {
    background: #211e18;
    border: 1px solid rgba(186,175,158,0.14);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.program-card .thumb { display: block; overflow: hidden; aspect-ratio: 8/5; background: #0d0c0a; }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.program-card:hover .thumb img { transform: scale(1.05); }
.program-card .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.program-card h3 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.3; }
.program-card h3 a { color: #fff; text-decoration: none; }
.program-card h3 a:hover { color: var(--s4y-teal); }
.program-card .meta { color: var(--s4y-tan); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.program-card p.excerpt { color: #d8d0bf; margin: 0 0 20px; flex: 1; }
.program-card .read-more { align-self: flex-start; }

.pager { text-align: center; margin-top: 52px; }

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background: #0d0c0a center/cover;
}
.page-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,12,10,0.88), rgba(13,12,10,0.25));
}
.page-banner h1 {
    position: relative; z-index: 2;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0;
    padding: 90px 24px 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    max-width: 1180px;
    margin-left: auto; margin-right: auto;
}
/* Our Team page (id 117): white banner instead of black */
.page-id-117 .page-banner { display: none !important; }
.page-id-118 .page-banner { display: none !important; }
/* Our Team page (id 117): black name and title */
.page-id-117 .team-card h3 { color: #000; }
.page-id-117 .team-card .role { color: #000; }
/* About Us page (id 115): remove banner completely */
.page-id-115 .page-banner { display: none !important; }
.page-id-116 .page-banner { display: none !important; }
.page-body { background: var(--s4y-cream); color: #2c2820; padding: 56px 0 72px; }
.page-body .wrap { max-width: 860px; }
.page-body h2, .page-body h3 { color: var(--s4y-header); }
.page-body a { color: #2f6f6a; }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.team-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(38,35,28,0.1);
}
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.team-card .t-body { padding: 20px 16px 24px; }
.team-card h3 { margin: 0 0 4px; color: var(--s4y-header); font-size: 1.15rem; }
.team-card .role { color: #2f6f6a; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.team-card p.bio { font-size: 0.92rem; color: #5a5347; margin: 0; }

/* ---------- Single post ---------- */
.single-hero img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.single-body { background: var(--s4y-cream); color: #2c2820; padding: 52px 0 72px; }
.single-body .wrap { max-width: 800px; }
.single-body .post-meta { color: #8a8172; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 18px; }
.single-body h1 { color: var(--s4y-header); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 8px; line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0d0c0a;
    border-top: 1px solid rgba(186,175,158,0.16);
    padding: 56px 0 30px;
    color: var(--s4y-tan);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; margin: 0 0 14px; }
.site-footer input[type="search"], .site-footer select {
    background: #211e18;
    border: 1px solid rgba(186,175,158,0.3);
    color: var(--s4y-cream);
    padding: 10px 14px;
    border-radius: 3px;
    width: 100%;
    max-width: 300px;
    font-family: 'Lato', sans-serif;
}
.site-footer .search-submit {
    background: var(--s4y-btn); color: #10201e; border: none;
    padding: 10px 18px; border-radius: 3px; font-weight: 700; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem;
}
.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #8a8172;
    padding-top: 24px;
    border-top: 1px solid rgba(186,175,158,0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .primary-nav ul { gap: 16px; flex-wrap: wrap; }
    .primary-nav a { font-size: 0.9rem; }
    .header-inner { flex-direction: column; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-nav button { width: 42px; height: 42px; }
}
