/* ==========================================================================
   FULL SCREEN SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 60, 159, 0.95); /* Deep primary blue, slightly transparent */
    backdrop-filter: blur(5px); /* Gives it a modern, frosted glass look */
    z-index: 3000; /* Extremely high to sit above everything */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    
    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 85%;
    max-width: 800px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-search:hover {
    color: var(--sunny-gold);
}

.search-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

/* Note: Google Custom Search will inject its own CSS here later, 
   but this container keeps it looking neat! */
.google-search-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   MODAL (POP-UP) STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 41, 55, 0.85); /* Dark, semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Ensures it is on top of EVERYTHING, including your header */
    
    /* This handles the slow fade-in */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* When Javascript adds the 'show' class, it becomes visible */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 3rem;
    width: 85%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-top: 8px solid var(--accent-teal);
    
    /* This makes the box smoothly float up slightly as it fades in */
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #9CA3AF;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-blue);
}

/* Inside the modal layout */
.modal-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 1.5rem;
}

.modal-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sunny-gold);
}

/* ==========================================================================
   MOBILE RESPONSIVE NAVIGATION (Hamburger Menu)
   ========================================================================== */

/* Hide the hamburger button on large screens */
.hamburger-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001; /* Keeps it above the mobile menu */
}

/* Create the 3 lines of the hamburger icon */
.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- MOBILE STYLES (Triggers on screens 768px or smaller) --- */
@media (max-width: 1024px) {
    
    /* 1. Show the hamburger button */
    .hamburger-btn {
        display: block;
    }

    /* 2. Style the hidden mobile menu */
    .nav-links {
        position: absolute; /* fixed; */
        top: 0;
        right: -100%; /* Pushes the menu completely off the right side of the screen */
        height: 100vh; /* Full screen height */
        width: 70%; /* Menu takes up 70% of the screen */
        max-width: 300px;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px; /* Space for the header */
        transition: right 0.4s ease; /* The smooth sliding animation */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        gap: 1.5rem;  /* Space between links */
    }

    /* 3. When JS adds the 'mobile-active' class, slide it in! */
    .nav-links.mobile-active {
        right: 0;
    }

    /* 4. Hamburger to "X" Animation when open */
    .hamburger-btn.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-btn.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ==========================================================================
   FAT FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--text-dark);
    color: #D1D5DB; /* A soft grey that is easier to read on dark backgrounds than pure white */
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
    margin-top: 4rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-col h4 {
    color: var(--sunny-gold);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
	color: var(--accent-teal);"
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 800;
}

.social-links a:hover {
    background-color: var(--accent-teal);
    transform: translateY(-3px);
}

/* Embedded Map */
.footer-map iframe {
    width: 100%;
    height: 160px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #111827; /* Slightly darker than the main footer to anchor the page */
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

.footer-bottom p {
    margin: 0;
}

/* --- CORE STYLES (Matches Homepage) --- */
        @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

        :root {
            --primary-blue: #2A3C9F;
            --accent-teal: #0ACDCF;
            --sunny-gold: #FFC947;
            --text-dark: #1F2937;
            --bg-light: #FDFDFD;
            --white: #FFFFFF;
        }

        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }

        h1, h2, h3 { margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: -1px; }
        h1 { font-weight: 800; font-size: 3.5rem; color: var(--white); }
        h2 { font-weight: 800; font-size: 2.5rem; color: var(--primary-blue); text-align: center;}
        h3 { font-weight: 600; font-size: 1.5rem; color: var(--primary-blue); }

        a { text-decoration: none; color: inherit; }
        
        .container { width: 85%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* --- HEADER (Matches Homepage) --- */
        header {
            background-color: var(--white);
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .header-inner { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); }
        nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
        nav a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
        nav a:hover { color: var(--accent-teal); }

        /* --- BUTTONS --- */
        .btn {
            display: inline-block; padding: 12px 30px;
            background-color: var(--sunny-gold); color: var(--text-dark);
            font-weight: 800; border-radius: 50px;
            text-transform: uppercase; font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 201, 71, 0.4);
            text-align: center;
        }
        .btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 201, 71, 0.6); }

        /* --- PAGE HEADER HERO --- */
        .page-hero {
            background: linear-gradient(135deg, rgba(42, 60, 159, 0.85), rgba(10, 205, 207, 0.85)), url('https://via.placeholder.com/1600x600/444/FFF?text=Kids+Acting+Class') center/cover;
            height: 50vh; /* Shorter than homepage hero */
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            margin-top: 60px;
        }
        .page-hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

        /* --- PROGRAMS (Camps & Classes) --- */
        .programs-section { padding: 5rem 0; }
        .programs-section.bg-gray { background-color: #F3F4F6; }
        
        .program-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }

        .program-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            border-top: 6px solid var(--accent-teal);
        }

        .program-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
        .program-meta { font-size: 0.9rem; color: #6B7280; font-weight: 600; margin-bottom: 1rem; }
        .program-desc { margin-bottom: 2rem; flex-grow: 1; }

        /* --- INSTRUCTORS --- */
        .instructors-section { padding: 5rem 0; }
        
        .instructor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-top: 3rem;
            text-align: center;
        }

        .instructor-card {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .instructor-photo {
            width: 180px;
            height: 180px;
            border-radius: 50%; /* Makes photos circular */
            background: url('https://via.placeholder.com/200x200/2A3C9F/FFF?text=Headshot') center/cover;
            border: 5px solid var(--sunny-gold);
            margin-bottom: 1.5rem;
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        .instructor-role { color: var(--accent-teal); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 0.5rem; }   
		
		* Container for the whole section */
.board-members-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #fcfcfc; /* A very light gray to separate it from other content */
}

.board-members-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

/* The Grid Layout */
.board-grid {
  display: grid;
  /* This automatically creates columns that are at least 200px wide */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual Board Member Styling */
.board-member {
  padding: 25px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #eaeaea; /* Adds a subtle border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Adds a very light shadow */
}

.board-member h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #222;
}

.board-member p {
  margin: 0;
  color: #666;
  font-style: italic; /* Makes the title stand out from the name */
}4

/* --- About Page Structural Layout --- */
.page-content {
  padding-top: 100px; /* Adjust based on your header height */
}

.about-page-wrapper {
  max-width: 1200px; /* Matched to a standard wide container */
  margin: 0 auto;
  padding: 40px 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

/* --- Contact & Location Grid --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 60px;
  margin-bottom: 80px;
}

.map-container {
  margin-top: 20px;
  width: 100%;
}

/* --- Contact Form Structural Spacing --- */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  margin-top: 15px;
}

.contact-form input, 
.contact-form textarea {
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 24px;
  cursor: pointer;
}

/* --- Mobile Stacking --- */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}