﻿/* =========================
   Base & Typography Styles
   ========================= */
@import url('../icon_fonts/fonts/style.css');
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-width: 320px; /* reasonable for smartphones */
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    /*font-size: 16px;*/
    font-size: clamp(1.1rem, 2vw + 0.7rem, 1.5rem);
    line-height: 1.6;
    background: #a2bbd5;
    color: #222e3a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

b {
    font-weight: 600;
}

a {
    color: #ff6f00;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.2rem, 4vw + 1.2rem, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw + 1rem, 3.2rem);
}

h3 {
    font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.5rem);
}

h4  {
    font-size: clamp(1.2rem, 1.5vw + 0.7rem, 2rem);
}

h5 {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.5rem);
}

h6 {
    font-size: clamp(0.9rem, 0.7vw + 0.5rem, 1.2rem);
}

/* Font utility */
.major-mono-display-regular {
    font-family: "Major Mono Display", monospace;
    font-weight: 400;
    font-style: normal;
}

.major-mono-display-regular {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw + 0.7rem, 1.5rem);
}

mark {
    background: #ffe082;
    color: #222e3a;
    padding: 0 0.1em;
    border-radius: 3px;
}

/* =========================
   Header & Navigation
   ========================= */
header, footer {
    background: linear-gradient(90deg, #004e92 0%, #4286f4 100%);
    color: #fff;
    text-align: center;
    font-size: .7em;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(90deg, #004e92 0%, #4286f4 100%);
}

.header-logo {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5em 1em 0.5em 0.5em;
    box-sizing: border-box;
}

.header-logo-img {
    max-height: 72px;
    width: auto;
    height: auto;
    max-width: 100%;
    background-color: aliceblue;
}

.header-nav {
    flex: 1 1 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-right: 1em;
    box-sizing: border-box;
}

    .header-nav .nav-toggle,
    .drawer-close {
        display: none;
    }

    .header-nav .nav-links {
        display: flex;
        gap: 1.2em;
        align-items: center;
    }

        .header-nav .nav-links a {
            text-decoration: none;
            color: #ffff;
            font-weight: 400;
            padding: 0.5em 0.7em;
            border-radius: 4px;
            transition: background 0.2s;
        }

            .header-nav .nav-links a:hover {
                background: #eaf6fb;
                color: #4286f4;
            }

/* =========================
   Responsive Header (Bootstrap breakpoints, rounded up)
   ========================= */
@media (max-width: 1080px) { /* rounded up from 960px/900px to 992px (lg) */
    .header-logo {
        flex: auto;
        max-width: 20%;
        justify-content: center;
        padding: 0.5em 0;
    }

    .header-nav {
        flex: auto;
        max-width: 80%;
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }
}

@media (max-width: 1080px) { /* rounded up from 720px to 768px (md) */
    .header-nav .nav-toggle {
        display: block;
    }

    .header-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        width: 100vw;
        background: linear-gradient(90deg, #004e92 50%, #4286f4 150%);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 100;
        border-radius: 0 0 12px 12px;
        padding: 0.5em 0;
        text-align: left;
        animation: fadeInMenu 0.2s;
    }

        .header-nav .nav-links.open {
            display: flex;
        }

        .header-nav .nav-links a {
            padding: 1.1em 2em;
            width: 100%;
            font-size: 1.1em;
            border-radius: 0;
            transition: background 0.2s;
            padding: 1em 1em;
        }

            .header-nav .nav-links a:hover,
            .header-nav .nav-links a:focus {
                background: #eaf6fb;
                color: #4286f4;
            }

    .main-header {
        align-items: stretch;
    }

    .header-logo {
        max-width: 20%;
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }

    .header-nav {
        max-width: 80%;
        width: 100%;
        justify-content: center;
        padding-right: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        width: 100%;
        padding-right: 0.5em;
    }

        .header-nav .nav-toggle {
            display: block;
            margin-left: auto;
            margin-right: 0.5em;
        }

    .nav-drawer {
        position: fixed;
        top: 0;
        right: -300px;
        width: 260px;
        height: 100vh;
        background: linear-gradient(90deg, #004e92 50%, #4286f4 150%);
        box-shadow: -2px 0 16px rgba(0,0,0,0.18);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 2em 1.2em 1.2em 1.2em;
        transition: right 0.3s cubic-bezier(.4,0,.2,1);
    }

        .nav-drawer.open {
            right: 0;
        }

    .drawer-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 2em;
        align-self: flex-end;
        margin-bottom: 1em;
        cursor: pointer;
        display: block;
    }

    .nav-drawer .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1em;
        padding-left: 0.5em;
    }

        .nav-drawer .nav-links a {
            color: #fff;
            font-size: 1.1em;
            padding: 0.7em 0;
            border-radius: 6px;
            text-decoration: none;
            transition: background 0.2s;
        }

            .nav-drawer .nav-links a:hover {
                background: #eaf6fb;
                color: #4286f4;
            }

    .drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1500;
    }

        .drawer-overlay.open {
            display: block;
        }

    .nav-drawer {
        display: flex;
    }

    .drawer-close {
        display: block;
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Hero Section
   ========================= */
.hero {
    background: #e3eafc;
    padding: 2em 0 1em 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    gap: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(66, 134, 244, 0.08);
}

.hero-left {
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 350px;
}

.hero-logo {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

    .hero-logo a {
        display: inline-block;
    }

    .hero-logo .logo {
        max-width: 640px;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        cursor: pointer;
    }

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1em;
}

.hero-img-container {
    flex: 0 0 66%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
}

.hero-img {
    width: 100%;
    object-fit: cover;
    max-width: 100%;
    /*border-radius: 12px;*/
    box-shadow: 0 4px 24px rgba(0, 78, 146, 0.12);
}

@media (max-width: 1080px) { /* rounded up from 900px to 992px (lg) */
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-left, .hero-img-container {
        flex: 1 1 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-img {
        max-width: 100%;
    }
}

/* Hero Banner (full-bleed) */
.hero-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    /*top: 72px;*/ /* Adjust to match your header's height */
    z-index: 999; /* Should be less than header's z-index if header is above */
    /*margin-bottom: 96px;*/
    overflow: hidden;
}
}

    .hero-banner .hero-img {
        width: 100vw;
        min-width: 100%;
        height: 480px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.hero-content-overlay {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    padding: 2.5em 2em;
    border-radius: 18px;
    text-align: center;
    width: 100vw;
    /*background: rgba(0, 0, 0, 0.55);*/ /* semi-transparent black background */
    /*box-shadow: 0 4px 24px rgba(0,0,0,0.18);*/
    backdrop-filter: blur(1px); /* optional: adds a subtle blur for extra separation */
}

    .hero-content-overlay h1,
    .hero-content-overlay p {
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5); /* subtle shadow for text clarity */
    }


    .hero-content-overlay h1 {
        /*font-size: 2.7em;*/
        margin-bottom: 0.0em;
        letter-spacing: 1px;
    }

    .hero-content-overlay p {
        font-size: 1.3em;
        margin-bottom: 0;
    }

@media (max-width: 768px) { /* rounded up from 700px to 768px (md) */
    .hero-banner, .hero-banner .hero-img {
        height: 240px;
        min-height: 240px;
    }

    .hero-content-overlay {
        padding: 1.2em 0.7em;
        font-size: 1em;
        top: 60%;
    }

        .hero-content-overlay h1 {
            font-size: 1.3em;
        }

        .hero-content-overlay p {
            font-size: 1em;
        }
}

/* =========================
   Tiles & Layouts
   ========================= */
.tiles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(66, 134, 244, 0.08);
}

.tile {
    display: flex;
    align-items: stretch;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    transition: box-shadow 0.2s;
    border-radius: 18px;
}



.tile-left {
    flex-direction: row;
}

.tile-right {
    flex-direction: row;
}

.tile-img {
    flex: 1 1 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #e3eafc;
    min-height: 360px;
}

    .tile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

.tile-content {
    flex: 1 1 56%;
    padding: 2em 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.tile-left .tile-content {
    align-items: flex-start;
    text-align: left;
}

.tile-right .tile-content {
    align-items: flex-end;
    text-align: right;
}

.tile-content h2 {
    color: #004e92;
    margin: 0 0 0.5em 0;
    font-size: 1.3em;
}

.tile-content p {
    color: #222e3a;
    margin: 0;
}

.tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .tile-link:visited,
    .tile-link:active,
    .tile-link:hover {
        color: inherit;
        text-decoration: none;
    }

/* =========================
   Forms & Buttons
   ========================= */
form input, form textarea {
    display: block;
    width: 100%;
    margin-bottom: 1em;
    padding: 0.5em;
    border: 1px solid #b0bec5;
    border-radius: 6px;
    background: #f4f8fb;
}

button {
    background: linear-gradient(90deg, #ff9800 0%, #ff6f00 100%);
    color: #fff;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    button:hover {
        background: #004e92;
        color: #fff;
    }

.btn-primary {
    background: linear-gradient(90deg, #ff9800 0%, #ff6f00 100%);
    color: #fff;
    padding: 0.75em 2em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    border-color: transparent;
    font-size: clamp(1rem, 1vw + 0.6rem, 1.5rem);
}

    .btn-primary:hover {
        background: #004e92;
    }

.btn-faq-link {
    display: inline-block;
    margin-top: 1em;
    background: linear-gradient(90deg, #4286f4 0%, #6fb1fc 100%);
    color: #fff;
    padding: 0.5em 1.2em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-faq-link:hover {
    background: #004e92;
    color: #fff;
}

.faq-link {
    margin-top: 0.5em;
}

/* =========================
   Intro Section
   ========================= */
.intro-two-col {
    display: flex;
    gap: 1em;
    align-items: center;
    background: #e3eafc;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(66,134,244,0.10);
    padding: 1.5em 1em;
    margin: 2em 0;
}

.intro-text {
    flex: 2;
}

.intro-photo {
    flex: 1;
    min-width: 320px;
    background-color: aliceblue;
}

    .intro-photo img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,78,146,0.10);
    }

@media (max-width: 1080px) {
    .intro-two-col {
        flex-direction: column;
        text-align: center;
    }

    .intro-photo {
        margin-top: 1em;
    }
}

/* =========================
   Instagram Gallery
   ========================= */
.instagram-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 2em;
}

.insta-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(66,134,244,0.10);
}

/* =========================
   Container Sizing
   ========================= */
.container > .hero-banner,
.container .hero-banner:first-child {
    margin-top: 0 !important;
}

.container {
    padding-top: 16px !important;
}

main.container, #mainContent {
    flex: 1 0 auto;
    min-height: 0;
    /*max-width: 100%;*/
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 1200px)  {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 90%;
    }
}

@media (min-width: 1600px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 70%;
    }
}

/* =========================
   Tiles Grid & Flex Layouts
   ========================= */
.tiles-grid {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 95%;
    margin: 0 auto 3em auto;
}

.tiles-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5em;
    width: 95vw;
    max-width: 95%;
    margin: 3em auto 3em auto;
    overflow-x: auto;
    padding-bottom: 1em;
}

    .tiles-flex-row > * {
        flex: 1 1 0;
        min-width: 140px;
        max-width: 180px;
        box-sizing: border-box;
    }

    .tiles-flex-row img {
        max-width: 100%;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
    }

@media (max-width: 1200px) { /* rounded up from 1100px to 1200px (xl) */
    .tiles-flex-row {
        width: 98vw;
        gap: 1em;
    }

        .tiles-flex-row > * {
            min-width: 120px;
            max-width: 150px;
        }

        .tiles-flex-row img {
            height: 70px;
        }
}

@media (max-width: 768px) { /* rounded up from 700px to 768px (md) */
    .tiles-flex-row {
        width: 100vw;
        gap: 0.7em;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

        .tiles-flex-row > * {
            min-width: 110px;
            max-width: 120px;
        }

        .tiles-flex-row img {
            height: 50px;
        }
}

.tiles-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    max-width: 1224px;
    margin: auto auto;
}

    .tiles-flex-wrap > * {
        flex: 0 1 600px;
        box-sizing: border-box;
    }

/* =========================
   Utility & Layout
   ========================= */
ul, ol {
    padding-left: 1.2em;
    margin: 1em 0;
    word-break: break-word;
    max-width: 100%;
    text-align: left !important;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    word-break: break-word;
    text-align: left !important;
}

@media (max-width: 768px) {
    ul, ol {
        /*padding-left: 1em;*/
        font-size: 1em;
        text-align: left !important;
    }

    li {
        font-size: 1em;
        margin-bottom: 0.7em;
        text-align: left !important;
    }

    .intro-cta {
        white-space: nowrap;
        display: inline-block;
        width: auto;
    }
}

/* =========================
   Schedule Styles
   ========================= */
.schedule-flex-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2em;
}

.schedule-flex {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 1em;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.schedule-day {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures the column fills available space */
    min-height: 340px; /* Adjust as needed for your design */
}

.schedule-time-col {
    background: #f7f7f7;
    min-width: 100px;
    max-width: 120px;
    flex: 0 0 100px;
    align-items: stretch;
}

.schedule-day-header {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between; /* Pushes content to top and image to bottom */
    /*height: 100%;*/
    align-content: center;
    background: #f7f7f7;
    text-align: center;
}

.schedule-day-header img {
    align-self:safe center; /* Optional: aligns image to the right, remove if not needed */
    /*margin-top: auto;*/     /* Ensures image is at the bottom of the column */
}

.schedule-row {
    padding: 0.5em 0.25em;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.schedule-row-label {
    font-weight: bold;
    color: #4286f4;
    margin-right: 0.5em;
}

.schedule-row ul {
    margin: 0;
    padding-left: 1.2em;
}

.schedule-row li {
    margin-bottom: 0.3em;
    line-height: 1.5;
}

.schedule-day,
.schedule-time-col {
    display: flex;
    flex-direction: column;
}

    .schedule-day .schedule-row,
    .schedule-time-col .schedule-row {
        flex: 1 1 0;
        height: 100%;
    }

.schedule-row-am {
    grid-row: 1;
    background: #eaf6fb;
    color: #222;
    min-height: 864px; /* Adjust as needed for your design */
    max-height: 864px; /* Optional: prevents it from getting too tall */
}

.schedule-row-pm {
    grid-row: 2;
    background: #fff7e6;
    color: #222;
    min-height: 512px; /* Adjust as needed for your design */
    max-height: 640px; /* Optional: prevents it from getting too tall */
}

.schedule-row-evening {
    grid-row: 3;
    background: #f3e6fa;
    color: #222;
    min-height: 420px; /* Adjust as needed for your design */
    max-height: 480px; /* Optional: prevents it from getting too tall */
}

.schedule-row-am,
.schedule-row-pm,
.schedule-row-evening {
    border-top: 2px solid #4286f4;
    border-bottom: 2px solid #4286f4;
    color: #222;
}

.schedule-small-table {
    border-collapse: collapse;
    width: auto;
    min-width: 100px;
    margin-bottom: 1em;
    background: #fff;
}

    .schedule-small-table th,
    .schedule-small-table td {
        border: 1px solid #e0e0e0;
        padding: 0.7em 0.5em;
        text-align: center;
        font-weight: bold;
    }

.schedule-time-header {
    background: #f7f7f7;
    color: #222;
}

/*@media (max-width: 1080px) {
    .schedule-flex {
        flex-wrap: wrap;
        gap: 1em;
    }*/

/*    .schedule-day, .schedule-time-col {
        min-width: 120px;
        max-width: 100%;
    }
*/    /*.schedule-row-am {
        min-height: 864px;*/ /* Adjust as needed for your design */
        /*max-height: 864px;*/ /* Optional: prevents it from getting too tall */
    /*}

    .schedule-row-pm {
        min-height: 732px;*/ /* Adjust as needed for your design */
        /*max-height: 840px;*/ /* Optional: prevents it from getting too tall */
    /*}

    .schedule-row-evening {
        min-height: 386px;*/ /* Adjust as needed for your design */
        /*max-height: 480px;*/ /* Optional: prevents it from getting too tall */
    /*}*/
/*}*/

@media (max-width: 520px) {
    .schedule-flex {
        flex-direction: column;
        gap: 1em;
    }

    .schedule-day, .schedule-time-col {
        min-width: 0;
        max-width: 100%;
    }
    .schedule-row-am {
        min-height: unset; /* Adjust as needed for your design */
        max-height: unset; /* Optional: prevents it from getting too tall */
    }

    .schedule-row-pm {
        min-height: unset; /* Adjust as needed for your design */
        max-height: unset; /* Optional: prevents it from getting too tall */
    }

    .schedule-row-evening {
        min-height: unset; /* Adjust as needed for your design */
        max-height: unset; /* Optional: prevents it from getting too tall */
    }

}

/* =========================
   Contact Form
   ========================= */
.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(60, 80, 120, 0.10), 0 1.5px 4px rgba(60, 80, 120, 0.04);
    padding: 2.5em 2.5em 2em 2.5em;
    max-width: 1080px;
    /*min-width: 359.98px;*/
    margin: 2em auto;
    border: 1px solid #e6eaf0;
    transition: box-shadow 0.2s;
}

    .contact-form fieldset {
        border: none;
        margin-bottom: 2.5em;
        padding: 0;
    }

    .contact-form .form-section {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    .contact-form label {
        max-width: 400px;
        min-width: 300px;
        font-weight: 600;
        color: #22304a;
        margin-bottom: 0;
        display: block;
        letter-spacing: 0.01em;
        text-align: left;
        padding-right: 0.5em;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="date"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        flex: 1 1 0;
        width: 100%;
        padding: 0.75em 1em;
        border: 1px solid #d1d7e0;
        border-radius: 8px;
        background: #f8fafc;
        font-size: 1em;
        color: #22304a;
        transition: border-color 0.2s, box-shadow 0.2s;
        box-sizing: border-box;
        margin-top: 0.2em;
        margin-bottom: 0;
        text-align: left;
        max-width: 400px;
        min-width: 480px;
    }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

    .contact-form .text-danger,
    .contact-form .combo-error {
        color: #e74c3c !important;
        font-size: 0.97em;
        margin-top: 0.3em;
        display: block;
        flex-basis: 100%;
    }

    .contact-form .btn-primary {
        background: linear-gradient(90deg, #ff9800 0%, #ff6f00 100%);
        color: #fff;
        border: none;
        padding: 0.9em 2.5em;
        font-size: 1.1em;
        border-radius: 8px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(66,134,244,0.08);
        transition: background 0.2s, box-shadow 0.2s;
        cursor: pointer;
    }

        .contact-form .btn-primary:hover,
        .contact-form .btn-primary:focus {
            background: linear-gradient(90deg, #3266c4 0%, #4286f4 100%);
            box-shadow: 0 4px 16px rgba(66,134,244,0.12);
        }

.form-section-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #3266c4;
    margin-top: 0.5em;
    letter-spacing: 0.01em;
}

@media (max-width: 1080px) {
    .contact-form {
        max-width: 98vw;
        padding: 1.2em 0.7em 1em 0.7em;
    }

        .contact-form .form-section {
            flex-direction: column;
            align-items: stretch;
            gap: 0.5em;
        }

        .contact-form label {
            max-width: 100%;
            min-width: 0;
            padding-right: 0;
            margin-bottom: 0em;
        }

        .contact-form input[type="text"],
        .contact-form input[type="email"],
        .contact-form input[type="date"],
        .contact-form input[type="tel"],
        .contact-form select,
        .contact-form textarea {
            margin-top: 0em;
            margin-bottom: 0;
            max-width: 100%;
            min-width: 0;
        }
}

/* =========================
   Home Tiles & Instructors
   ========================= */
/* Responsive Home Tiles Layout */
.homes-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 2em;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-tile {
    min-width: 320px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(66,134,244,0.10);
    padding: 1.5em;
    margin-bottom: 2em;
    flex: 1 1 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.homes-page .container {
    /* Your overrides here */
    max-width: 95%;
    background: #a2bbd5;
}

/* 3 tiles across for screens >= 1600px */
@media (min-width: 1600px) {
    .homes-tiles {
        max-width: 100%;
    }

    .homes-page .home-tile {
        flex: 1 1 calc(33.333% - 2em);
        max-width: calc(33.333% - 2em);
    }
}

/* 2 tiles across for screens >= 1200px and < 1600px */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .homes-tiles {
        max-width: 100%;
    }

    .homes-page .home-tile {
        flex: 1 1 calc(50% - 2em);
        max-width: calc(50% - 2em);
    }
}

/* 1 tile across for screens < 1200px */
@media (max-width: 1199.98px) {
    .homes-tiles {
        max-width: 98vw;
    }

    .homes-page .home-tile {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
    .home-tile h2 {
        margin-top: 0;
    }

.home-location {
    font-weight: bold;
    color: #4286f4;
    margin-bottom: 0.5em;
}

.home-description {
    margin-bottom: 1em;
    color: #333;
    flex: 1 1 auto;
    min-height: 360px;   /* Adjust as needed for your design */
    max-height: 760px;   /* Optional: prevents it from getting too tall */
    overflow: hidden;    /* Hide overflow text if needed */
    display: flex;
    align-items: flex-start; /* or center, as desired */
}

/*@media (min-width: 1600px) {
    .home-description {
        min-height: 140px;
        max-height: 400px;
    }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .home-description {
        min-height: 240px;
        max-height: 600px;
    }
}
@media (max-width: 1199.98px) {
    .home-description {
        min-height: 360px;
        max-height: 800px;
    }
}
*/
.home-link {
    display: inline-block;
    margin-bottom: 1em;
    color: #004e92;
    text-decoration: underline;
}

.home-gallery {
    margin-top: 1em;
}

/* Instructors */
.instructors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

.instructor-tile {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-top: 2rem;
}

.instructor-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

    .instructor-header img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        margin-right: 1rem;
        border: 2px solid #e0e0e0;
    }

    .instructor-header h2 {
        margin: 0 0 0.5rem 0;
        font-size: 1.5rem;
    }

.tile-body {
    padding: 1rem;
}

.instructor-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 1080px) {
    .instructors-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .instructor-tile {
        max-width: 100%;
        min-height: fit-content;
    }
}

/* FAQ Accordion Styles */
.faq-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
    margin-bottom: 2em;
}
.faq-search {
    flex: 1 1 300px;
    padding: 0.7em 1em;
    border-radius: 6px;
    border: 1px solid #b0bec5;
    font-size: 1.1em;
    background: #f8fafc;
    min-width: 220px;
}
.faq-buttons {
    display: flex;
    gap: 0.5em;
}
.faq-accordion {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5em;
    box-sizing: border-box;
}
.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(66,134,244,0.08);
    margin-bottom: 1.2em;
    overflow: hidden;
    border: 1px solid #e6eaf0;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
    padding: 0em 2.0em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #004e92;
    transition: background 0.2s;
}
    .faq-question[aria-expanded="true"] {
        background: #d2e6fa;
    }
.faq-toggle-icon {
    font-size: 1.5em;
    margin-left: 1em;
    color: #4286f4;
    font-weight: bold;
}
.faq-answer {
    padding: 1em 1.5em 1.5em 1.5em;
    font-size: 1.08em;
    color: #222e3a;
    background: #f8fafc;
    border-top: 1px solid #e6eaf0;
    display: none;
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), padding 0.2s;
    overflow: hidden;
    max-height: 0;
    padding: 0em 4.5em;
    display: block;
}
.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* large enough for most answers */
    padding-top: 1em;
    padding-bottom: 1.5em;
}
@media (max-width: 900px) {
    .faq-accordion {
        max-width: 100%;
        padding: 0 0.5em;
    }
    .faq-topic-header,
    .faq-question {
        font-size: 1.05em;
        padding: 1em 1em;
    }
    .faq-answer {
        font-size: 1em;
        padding: 0.8em 1em 1em 1em;
    }
}
@media (max-width: 600px) {
    .faq-accordion {
        max-width: 100vw;
        padding: 0 0.2em;
    }
    .faq-topic-header,
    .faq-question {
        font-size: 1em;
        padding: 0.8em 0.7em;
    }
    .faq-answer {
        font-size: 0.98em;
        padding: 0.7em 0.7em 0.9em 0.7em;
    }
    .faq-buttons {
        flex-direction: column;
        gap: 0.5em;
        width: 100%;
    }
    .faq-controls {
        flex-direction: column;
        gap: 0.7em;
        align-items: stretch;
    }
    .faq-search {
        min-width: 0;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .faq-accordion { max-width: 100%; }
    .faq-question, .faq-answer { padding: 1em; }
}

.faq-topic {
    margin-bottom: 1em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(66,134,244,0.08);
    background: #f7fafd;
    border: 1px solid #e6eaf0;
    scroll-margin-top: 80px; /* Adjust to match your .faq-topic-nav height + spacing */
}
@media (max-width: 600px) {
    .faq-topic {
        scroll-margin-top: 110px; /* If nav is taller on mobile */
    }
}
.faq-topic-header {
    width: 100%;
    background: #eaf6fb;
    border: none;
    outline: none;
    font-size: 1.3em;
    font-weight: 700;
    text-align: left;
    padding: 0.0em 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #004e92;
    border-radius: 12px 12px 0 0;
    transition: background 0.2s;
}
.faq-topic-header[aria-expanded="true"] {
    background: #d2e6fa;
}
.faq-topic-panel {
    padding: 0 0 1em 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.faq-topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 2em;
    background: #eaf6fb;
    border-radius: 8px;
    padding: 0.7em 1em;
    position: sticky;
    top: 90px;
    z-index: 10;
    overflow-x: auto;
}
.faq-topic-nav-link {
    color: #004e92;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4em 1em;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}
.faq-topic-nav-link:hover,
.faq-topic-nav-link:focus {
    background: #d2e6fa;
    color: #222e3a;
}
@media (max-width: 600px) {
    .faq-topic-nav {
        gap: 0.5em;
        padding: 0.5em 0.2em;
        font-size: 0.98em;
    }
    .faq-topic-nav-link {
        padding: 0.3em 0.7em;
    }
}

.faq-topic-controls {
    display: flex;
    gap: 0.5em;
    margin: 0.5em 0 0.5em 0;
}
.btn-faq-topic-expand, .btn-faq-topic-collapse {
    background: #eaf6fb;
    color: #004e92;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    padding: 0.3em 1em;
    font-size: 0.98em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-faq-topic-expand:hover, .btn-faq-topic-collapse:hover {
    background: #d2e6fa;
}

/* Custom Navbar Styles */
.navbar {
    background: linear-gradient(90deg, #004e92 0%, #4286f4 100%);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    /*padding: 0.5em 1em;*/
    width: 100%;
    font-size: 1em;
}

    .navbar .navbar-brand {
        color: #fff;
        font-weight: 600;
        font-size: 1.3em;
        letter-spacing: 1px;
    }

        .navbar .navbar-brand:hover,
        .navbar .navbar-brand:focus {
            color: #eaf6fb;
        }

.navbar-nav .nav-link {
    color: #fff !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    /*padding: 0.5em 1em;*/
    padding-right: 1em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .show > .nav-link {
        background: #eaf6fb;
        color: #4286f4 !important;
    }

.navbar-nav .dropdown-menu {
    background: linear-gradient(90deg, #004e92 0%, #4286f4 100%);
    border-radius: 0 0 12px 12px;
    border: none;
    margin-top: 0.2em;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.navbar-nav .dropdown-item {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    padding: 0.7em 1.2em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background: #eaf6fb;
        color: #4286f4;
    }

.navbar-toggler {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.5em;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

@media (max-width: 992px) {
    .navbar .navbar-brand {
        margin-right: 0rem;
    }
}

/* bouncing ball in banner*/
.ball {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(2.2rem, 4vw + 1.2rem, 4rem); /* Responsive width */
    height: clamp(2.2rem, 4vw + 1.2rem, 4rem); /* Responsive height, keeps aspect ratio 1:1 */
    z-index: 10;
    filter: drop-shadow(0 0 10px #ff0);
    transform-origin: center;
    will-change: transform;
    pointer-events: auto;
}

.ballbounce-controlls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    padding: 10px;
    font-family: sans-serif;
    background-color: #f0f0f0;
    height: 200px;
    z-index: 20;
    position: absolute; /* or fixed, as needed */
}

    .ballbounce-controlls label {
        display: flex;
        align-items: center;
        gap: 0.5em;
        margin-right: 0;
        color: #333;
        min-width: 220px;
    }

    .ballbounce-controlls input[type="range"] {
        vertical-align: middle;
        flex: 1 1 100px;
    }

    .ballbounce-controlls span {
        min-width: 2.5em;
        text-align: right;
        display: inline-block;
    }

.ball-corner-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    z-index: 20; /* higher than .ball (z-index: 10) */
    cursor: pointer;
    opacity: 0.01; /* invisible but clickable */
    padding: 0;
}

@keyframes pulse-bg {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.33);
    }

    100% {
        filter: brightness(1);
    }
}

@keyframes floatIn {
    from {
        transform: translate(-50%, -60%) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0%) scale(1);
        opacity: 1;
    }
}
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-day-tag {
    font-size: 0.75em;
    font-style: italic;
    color: #555;
    display: block;
    margin-top: 0.25em;
    margin-bottom: 0.5em;
}

.schedule-day-header-divider {
    border-bottom: 1px solid #ccc;
    margin: 0.5em 0;
}

.package-list-modern {
    list-style: none;
    padding-left: 0;
}

    .package-list-modern li {
        margin-bottom: 0.75em;
        padding-left: 1.5em;
        position: relative;
    }

        .package-list-modern li:before {
            content: "✔";
            color: #2bb673;
            position: absolute;
            left: 0;
            font-size: 1.1em;
            top: 0.1em;
        }

.package-exclude-modern {
    list-style: none;
    padding-left: 0;
}

    .package-exclude-modern li {
        margin-bottom: 0.75em;
        padding-left: 1.5em;
        position: relative;
    }

        .package-exclude-modern li:before {
            content: "✘";
            color: #e74c3c;
            position: absolute;
            left: 0;
            font-size: 1.1em;
            top: 0.1em;
        }

.package-note {
    display: block;
    font-size: 0.95em;
    color: #888;
    font-style: italic;
    margin-top: 0.2em;
}

.package-price {
    font-weight: bold;
    color: #2bb673;
    font-size: 1.1em;
    margin-top: 1em;
}
@media (max-width: 600px) {
    .schedule-legend-callout {
        font-size: 0.85em;
        padding: 0.2em 0.2em;
    }

    .schedule-legend-flex {
        gap: 0.15em;
    }

    .legend-item {
        font-size: 0.88em;
        padding: 0.15em 0.15em;
    }
}
