/* ─────────── base reset & palette ─────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-dark: #001f3f;
    --blue-mid: #0066cc;
    --cyan: #00b8d9;
    --white: #ffffff;
    --black: #000000;
    --gray-dark: #383737;

    --card-bg: var(--white);
    --radius: 0.65rem;
    --gap: 1.25rem;
    --shadow: 0 3px 10px rgba(0, 0, 0, .18);

    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* page background */
body {
    background: linear-gradient(180deg, var(--black), var(--gray-dark));
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ───────── banner layout ───────── */
.banner {
    width: 100%;
    height: clamp(80px, 70vh, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* space between columns and banner */
    background: #000;
}

/* stacked logo columns */
.side-logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50rem;
    gap: 6rem;
    /* space between the two extras & the main logo */
    flex: 0 0 18vw;
    /* ~18 vw column, shrinks if needed */
    max-width: 18vw;
    height: 100%;
}

.side-logos img {
    width: 100%;
    height: auto;
    /* max-height: calc((100% - 0.2rem) / 3); */
    /* preserve aspect ratio */
    object-fit: contain;
}

/* central banner image */
.banner-img {
    flex: 1 1 auto;
    /* fill remaining width */
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* hide all side logos on very small screens */
@media (max-width: 600px) {
    .side-logos {
        display: none;
    }
}

/* ─────────── 2 × 2 grid ─────────── */
.grid {
    width: min(1200px, 92%);
    margin: var(--gap) auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: var(--gap);
}

/* ─────────── card styling ─────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.card h2 {
    color: var(--blue-mid);
    margin-bottom: .6rem;
    font-size: 1.35rem;
}

.card h3 {
    margin: .65rem 0 .25rem;
    font-weight: 600;
    font-size: 1.03rem;
    color: var(--cyan);
}

.card p {
    margin-bottom: .2rem;
}

.card ul {
    margin-left: 1rem;
    list-style: square;
    line-height: 1.35;
}

/* photo card tweaks */
.image-card {
    padding: 0;
}

.image-card img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}

/* make linked cards act like normal cards */
.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ─────────── mobile layout tweaks ─────────── */
@media (max-width: 850px) {

    /* stack cards vertically */
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    /* let each card grow naturally */
    .card {
        height: auto;
    }
}

/* ───────── training schedule ───────── */
.schedule {
    width: min(1200px, 92%);
    margin: var(--gap) auto;
    color: var(--gray-dark);
}

.schedule h2 {
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: .75rem;
    text-align: center;
}

.schedule-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(4, 1fr);
}

.schedule-grid::after {
    content: "";
    visibility: hidden;
}

.day-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.day-card h3 {
    font-size: 1.4rem;
    color: var(--blue-mid);
    margin-bottom: .5rem;
}

.day-card p {
    line-height: 1.3;
    font-size: .95rem;
}

@media (max-width: 850px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ───────── highlights ───────── */
.highlights {
    width: min(1200px, 92%);
    margin: var(--gap) auto;
    color: var(--white);
}

.highlights h2 {
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: .75rem;
    text-align: center;
}

.highlights-flex {
    display: flex;
    gap: var(--gap);
}

.slideshow {
    flex: 1 1 50%;
    position: relative;
    aspect-ratio: 16/9;
    max-height: 480px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-video {
    flex: 1 1 50%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 850px) {
    .highlights-flex {
        flex-direction: column;
    }
}

img,
video {
    border-radius: var(--radius);
}

.schedule-grid {
    /* one rule-set only ― delete any earlier duplicates */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--gap);
    margin-top: .75rem;
}

@media (max-width: 850px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.slot {
    background: var(--card-bg);
    /* matches all other cards */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    /* more breathing room */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slot .day {
    font-size: 1.25rem;
    /* bigger & bolder */
    font-weight: 700;
    color: var(--blue-mid);
    margin-bottom: .25rem;
}

.slot .time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: .15rem;
}

.slot .title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-dark);
    line-height: 1.3;
}

/* ───────── contact / views footer ───────── */
.contact-footer {
    width: min(1200px, 92%);
    margin: var(--gap) auto var(--gap);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.contact-footer a {
    color: var(--blue-mid);
    font-weight: 600;
    text-decoration: none;
}

.page-views {
    font-size: 1rem;
    color: var(--gray-dark);
}

@media(max-width:600px) {
    .contact-footer {
        flex-direction: column;
        text-align: center;
    }
}