:root{
    --blue:#87CEFA;
    --gold:#FFD700;
    --darkblue: #2c3e50;
    --sky:rgba(167,207,232,.8);
    --lightsky: rgba(167,207,232,.1);
    --orange: rgb(255, 102, 0);

}

/* General Styles */
html, body {
    margin: 0;
    font-family: 'Chalkboard', Arial, sans-serif;
    color: var(--darkblue);
    overflow-x: hidden;
}

@font-face {
    font-family: 'Chalkboard';
    src: url('/assets/fonts/ChalkboardSE.ttc') format('truetype'); /* or the appropriate format */
    font-weight: normal;
    font-style: normal;
}


/* Navbar */
.navbar {
    display: block;
    justify-content: space-between; /* Space between logo/title and hamburger */
    align-items: center;
    background: rgba(167,207,232,.8);
    background-image: url('/assets/images/clouds.jpg');
    background-repeat: repeat;
    background-size: 1500px auto;
    position: relative;
    border-bottom-style: solid;
    border-color: var(--darkblue);
    border-width:10px;
}
.nav-over{
    background: rgba(167,207,232,.6);
}
 /* Sun Icon Styling */
    .sun-icon {
      position: absolute;
      top: -100px;
      right: -100px;
      width: 250px;
      height: 250px;
    }

.sun-icon img{
    width: 100%;

}
/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between logo and title */
    padding: 25px 0px 5px 0px;
}
.mobile-logo{
    display:none;
}
/* Logo */
.logo img {
    width: 110px;
}

/* Mobile Title */
.mobile-title {
    display: flex; /* Hide by default (shown only in mobile view) */
    font-size: clamp(12px, 4.5vw, 35px); /* Dynamically resize text */
    font-weight: normal;
    color: white;
    max-width: 100%; /* Prevent overflow */
    font-family: 'Chalkboard', Arial, sans-serif;
}

/* Separator */
.separator {
    border-left: 3px solid;
    width: auto;
    background: transparent;
    margin-left: 12px;
    margin-right: 12px;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
/* Responsive Font Scaling */
@media (max-width: 480px) {
    .mobile-title1 {
        font-size: clamp(16px, 5.8vw, 25px); /* Reduce font size for small screens */
        line-height: 1.3; /* Better spacing */
    }
    .footer-title1 {
        line-height: 1.3; /* Better spacing */
    }

}
/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease-out;
    justify-content: space-evenly;
}



/* Nav Links Items */
.nav-links li {
    position: relative;
}

.nav-links a {
    position: relative; /* Needed for absolute positioning of pseudo-element */
    text-decoration: none;
    color: var(--darkblue);
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Hover Effects */
.nav-links a:hover {
    color: white;
    background: rgba(255,215,0,.5);
    border-radius: 10px 10px 0px 0px;

}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 10%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #2c3e50;
    border-radius: 0px 0px 10px 10px;
    top: 100%;
    left: -100px;
    min-width: 200px;
    list-style: none;
    padding: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}


@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a:hover{
    border-radius: 0px;
    color: var(--darkblue);
}
.dropdown-menu li:last-child > a:hover {
  border-radius: 0px 0px 10px 10px;
}

.dropdown-menu a {
    padding: 10px 15px;
    text-align: center;
    color: white;

}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    z-index: 100;
}

/* Adjust underline position for last dropdown item */
.dropdown-menu li:last-child a::after {
    max-width: 97.5% !important;
    left: 2px !important;
    bottom: 3px !important; /* Raise underline by 3px */
}

/* If needed, add this to maintain animation */
.dropdown-menu li:last-child a:hover::after {
    bottom: 3px !important;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    z-index: 100;
}

/* Mobile View */
@media (max-width: 768px) {

    /* Logo */
    .logo {
        position: relative;
        margin-left: 15px;
    }
    .mobile-logo img {
        width: 90px;
    }
    .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between logo and title */
    position: relative;
    border: solid 10px #2c3e50;
border-left-style: none;
border-right-style: none;
border-top-style: none;
max-width: 95%
    }
    .mobile-logo a:hover{
        background: none;
    }
    .mobile-logo a::after{
        content: none;
    }
    .mobile-logo .mobile-title{
        color: #2c3e50;
    }
    /* Logo */
    .logo img {
        width: 110px;
    }


    /* Show mobile title */
    .mobile-title {
        display: flex;
    }

    /* Nav Links */
    .nav-links {
        position: fixed; /* Change from absolute to fixed */
        top: -100vh; /* Start above the screen */
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        display: flex;
        flex-direction: column;
        justify-content: initial;
        background-image: url('/assets/images/clouds.jpg');
        background-size: cover;
        z-index: 98; /* Behind hamburger */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        opacity: 0;
        padding-bottom: 40px;
        transform: translateY(-100%); /* Initial position */
    }



        /* 📌 Make each menu item larger */
    .nav-links li {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        transition: opacity 0.3s ease-in 0.2s; /* Delay link appearance */
        opacity: 0;
    }


    .nav-links a{
        font-size: 22px; /* Larger font */
        padding: 15px 20px; /* More padding */
        display: block;
        color: #2c3e50;
        opacity: 1;
    }
        .nav-links a:hover{
        font-size: 22px; /* Larger font */
        padding: 15px 20px; /* More padding */
        display: block;
        text-decoration: underline;
        color: white;
        border-radius: 10px;
    }
    .nav-links.active {
        opacity: 1;
        transform: translateY(0); /* Slide down to full height */
        top: 0px;
        height: 100vh;
    }
    .nav-links.active li{
        display: grid;
        flex-direction: row;
    }
     .nav-links.active li {
        opacity: 1;
    }
    .nav-links li:nth-child(1) {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        transition: opacity 0.3s ease-in 0.2s; /* Delay link appearance */
    }
    /* Adjust hamburger position */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 999;
    }
    .menu-toggle.active{
        position: fixed;
        top: 25px;
    }

    /* Hamburger Styling */
    .menu-toggle span {
        display: block;
        background-color: #2c3e50;
        width: 30px;
        height: 3px;
        margin: 6px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hamburger to X */
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 0;
        margin-top: 15px;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 0;
        margin-top: 15px;
    }

     .dropdown:hover .dropdown-menu {
        display: flex;
        flex-direction: column;
        background: rgb(167,207,232);
        z-index: 1;
        border-radius: 10px;
    }
    .dropdown:hover {
        display: flex;
        position: relative;
        background: rgb(167,207,232);
        z-index: 1;
    }
    @media (max-width: 400px){
        .nav-links a{
        font-size: 18px; /* Larger font */
        padding: 10px; /* More padding */
        display: block;
        color: #2c3e50;
        opacity: 1;
    }
    }

}



/****************************************** FOOTER STYLING *********************************************/

/* General Footer Styles */
.footer {
    background: #222; /* Dark modern background */
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

/* Footer Container */
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator */
}

/* Remove top border from the first section */
.footer-section:first-child {
    border-top: none;
}

/* Footer Message */
.footer-message {
    font-size: 14px;
    max-width: 280px;
    opacity: 0.8; /* Softer text */
}

.footer-section opening-hours, .footer-section contact-info{

}

/* Opening Hours */
.opening-hours ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.opening-hours ul li {
    margin: 5px 0;
    padding: 5px 0;
}

/* Contact Info */
.contact-info p {
    margin: 8px 0;
    font-size: 16px;
}

/* Make Email & Phone Clickable */
.contact-info a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    background: #111;
    padding: 15px;
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo Container */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between logo and title */
}

/* Logo */
.footer-logo img {
    height: 70px; /* Slightly smaller */
}

/* Footer Title Text */
.footer-title-text {
    display: flex;
    text-align: left;
    font-size: 16px;
}
.footer-title-text a{
    color: white;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .footer{
    background-image: url('/assets/images/11901.jpg');
    background-repeat: x-repeat;
    background-size: 1000px auto;
    color: #2c3e50;
    border-top-style: solid;
    border-color: var(--darkblue);
    border-width: 5px;
    }
    .footer-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        text-align: left;
        background: rgba(167,207,232,.8);
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .footer-section {
        text-align: center;
        border-top: none; /* Remove borders in desktop grid layout */
    }
    .footer-title-text a{
        color: #2c3e50;
    }
    .footer-message{
        opacity: 1;
        text-align: left;
    }
    .footer-bottom{
        color: white;
    }
}


/* =====================================================
   SHARED INNER-PAGE STYLES
   Used by: about, programs, lsa, afterschool,
            summercamp, events, parents, careers, contact
   ===================================================== */

/* Page title banner */
.page-title {
    border-bottom: 5px solid var(--darkblue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 20px;
}
.page-title h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}
.page-title p {
    font-size: 18px;
    margin: 10px;
    margin-bottom: 15px;
    text-align: center;
    width: 70%;
}

/* Page hero image */
.title-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border-bottom: 5px solid var(--darkblue);
}
.title-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Section divider line */
.styled-divider {
    border: none;
    height: 2px;
    background-color: #bbb;
    position: relative;
    margin: 10px 30px auto;
}

/* Desktop content panels */
.desktop-panel {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto;
    width: 80%;
    background: var(--lightsky);
    border-radius: 10px;
    padding: 20px;
}
.desktop-panel-txt,
.desktop-panel-img {
    flex: 1 1 400px;
}
.desktop-panel-txt h1 {
    font-size: 28px;
    text-align: center;
}
.desktop-panel-txt p {
    margin: auto;
    text-align: center;
}
.desktop-panel-img {
    margin-top: 20px;
    width: 90%;
    display: flex;
    align-items: center;
}
.desktop-panel-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* CTA link buttons used in desktop panels */
.team-btn {
    margin: 30px 10px 10px;
}
.team-btn h1 {
    margin-top: 10px;
    font-size: 20px;
    color: var(--gold);
    text-align: center;
}
.team-btn ul {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}
.team-btn li {
    color: white;
    background: var(--orange);
    margin: 10px auto;
    list-style: none;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    cursor: pointer;
    max-width: 200px;
    width: 90%;
}
.team-btn li:hover {
    background: var(--orange);
}
.team-btn li a {
    margin: auto;
    text-decoration: none;
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

/* Shared 550px+ overrides */
@media (min-width: 550px) {
    .page-title {
        padding-bottom: 20px;
    }
    .page-title h1 {
        font-size: 48px;
    }
    .page-title p {
        min-width: 60%;
    }
    .title-img img {
        height: 500px;
    }
    .desktop-panel-txt h1 {
        font-size: 32px;
        margin-left: 30px;
        margin-right: 30px;
    }
    .desktop-panel-txt p {
        margin: auto 30px 30px 30px;
    }
    .desktop-panel-img {
        margin-top: 0;
    }
    .team-btn {
        text-align: center;
    }
    .team-btn ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    .team-btn li {
        margin: 0;
    }
    .team-btn li a {
        font-size: 18px;
    }
}
