/* ------------------------------ Base Styles --------------------------------*/

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f5f5f5;
    color: #252525;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 6px;
}

a {
    color: #e89980;
    text-decoration: none;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* ------------------------------ Layout Containers --------------------------------*/

.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
}

.full-img {
    width: 100%;
    border-radius: 6px;
}

/* ------------------------------ Header & Navigation --------------------------------*/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #0164a7;
}

.logo img {
    height: 60px;
}

/* Larger clickable area + rounded corners for top-level nav */
.nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    padding: 0.6em 1em;   /* slightly larger box */
    border-radius: 6px;   /* rounded corners */
    text-align: left;
    display: block;
}

/* NAV: Force dropdowns to open only on hover */
.nav ul li ul {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Show dropdown when hovering over parent item */
.nav ul li:hover ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Top-level nav items WITHOUT dropdowns: hover background */
.nav ul li:not(:has(ul)):hover a,
.nav ul li:not(:has(ul)):hover span {
    background-color: #f2f2f2; /* match your dropdown hover color */
    color: #000;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    background: #f5efe6;
    padding: 0.5rem;
    top: 100%;
    left: 0;
    min-width: auto;
    width: max-content;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    color: #000 !important;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    color: #000 !important;
}

.dropdown li {
    margin-bottom: 0.5rem;
}

.dropdown li:hover a,
.dropdown li:hover span {
    background-color: transparent !important;
    color: #000 !important;
}

/* ------------------------------ Hero Sections --------------------------------*/

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: #0164a7;
    color: #f9e5df;
}

.small-hero {
    padding: 3rem 1rem;
}

/* ------------------------------ Buttons --------------------------------*/

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e89980;
    color: #fff;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: bold;
}

.button.small {
    padding: 0.5rem 1rem;
}

/* ------------------------------ Boxes (Reusable Content Blocks) --------------------------------*/

.box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.065);
}

/* ------------------------------ Grid Layouts --------------------------------*/

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ------------------------------ Feature Cards --------------------------------*/

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
}

/* ------------------------------ Pricing Cards --------------------------------*/

.price-card {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.065);
}

.price-card h3 {
    color: #0164a7;
}

.price-card .price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* ------------------------------ Team Cards --------------------------------*/

.team-card {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.065);
}

.team-photo {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.team-card h3 {
    color: #0164a7;
}

.role {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

/* ------------------------------ Facility Cards --------------------------------*/

.facility-card {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.065);
}

.facility-photo {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.facility-card h3 {
    color: #0164a7;
}

/* ------------------------------ Policies & Lists --------------------------------*/

.policy-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: #777;
}

.policy-list li {
    margin-bottom: 0.6rem;
}

/* ------------------------------ Contact Page --------------------------------*/

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 1rem;
}

/* ------------------------------ Story Page Floated Images --------------------------------*/

.image-left {
    float: left;
    width: 45%;
    max-width: 200px;
    margin: 0 1rem 1rem 0;
    border-radius: 6px;
}

.grid-2 > div::after {
    content: "";
    display: block;
    clear: both;
}

/* ------------------------------ Iframe Styling --------------------------------*/

.schedule-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 6px;
    background: #fff;
}

/* ------------------------------ Footer --------------------------------*/

.footer {
    text-align: center;
    padding: 2rem;
    background: #0164a7;
    color: #f9e5df;
}

/* ---------- Mobile adjustments for top-level nav items ------------*/

@media (max-width: 600px) (@max-height: 400px) {
    .nav ul {
        gap: 0.25rem; /* tighter spacing between items */
    }

    .nav a {
        padding: 0.5em 0.75em; /* narrower clickable area */
        font-size: 13px;       /* optional: slightly smaller text */
    }
}

