/* Modern Shrewsbury Gymnastics Website Styles */
/* Color Scheme: Teal, Silver, Black */

:root {
    --primary-color: #4B0082; /* Dark Purple (Indigo) */
    --secondary-color: #C0C0C0; /* Silver */
    --accent-color: #8A2BE2; /* Blue Violet */
    --dark-color: #1a1a1a; /* Near Black */
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #4B0082, #8A2BE2);
    --gradient-secondary: linear-gradient(135deg, #9370DB, #D8BFD8);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(75, 0, 130, 0.3);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-content {
    display: block !important; /* Add !important to ensure it overrides any JavaScript styles */
}

.dropdown-content a {
    color: var(--white);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem; /* Reduced from default size */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    /* Ensure video is optimized for different screens */
    /* filter: brightness(0.8) contrast(1.1) hue-rotate(20deg); Removed purple filter per request */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(45deg, rgba(75, 0, 130, 0.3), rgba(26, 26, 26, 0.2));*/
    z-index: 1;
    transition: var(--transition);
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 3rem 2rem;
    animation: fadeInUp 1s ease;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px); /* Slightly more blur on hover */
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
    .hero-content {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .hero-content:hover {
        background: rgba(0, 0, 0, 0.7);
    }
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    height: clamp(80px, 12vw, 180px);
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Specific styling for request evaluation buttons */
.request-evaluation-btn {
    background-color: #666; /* Grey color */
    color: white;
    border: 2px solid #666;
    font-weight: 600;
    font-size: 0.5rem; /* Even smaller font size */
    padding: 0.1rem 0.25rem; /* Even smaller padding */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 70px; /* Ensure consistent width */
    text-align: center;
}

.request-evaluation-btn:hover {
    background-color: #555; /* Darker grey on hover */
    border-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 102, 102, 0.3);
}

/* Waitlist button styling */
.waitlist-btn {
    background-color: #ff9800; /* Orange color for waitlist */
    color: white;
    border: 2px solid #ff9800;
    font-weight: 600;
    font-size: 0.5rem; /* Even smaller font size */
    padding: 0.1rem 0.25rem; /* Even smaller padding */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 70px; /* Ensure consistent width */
    text-align: center;
}

.waitlist-btn:hover {
    background-color: #e68900; /* Darker orange on hover */
    border-color: #e68900;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* Signup class button styling */
.signup-class-btn {
    background-color: var(--primary-color); /* Teal color to match primary */
    color: white;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    font-size: 0.5rem; /* Match other buttons */
    padding: 0.1rem 0.25rem; /* Match other buttons */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 70px; /* Ensure consistent width */
    text-align: center;
}

.signup-class-btn:hover {
    background-color: #006666; /* Darker teal on hover */
    border-color: #006666;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 128, 128, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--primary-color);
}

.about-text h4 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.5rem 0;
    color: var(--dark-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
}

.about-text a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Sign Up Section */
.signup {
    background: var(--gradient-primary);
    color: var(--white);
}

.signup .section-header h2,
.signup .section-header p {
    color: var(--white);
}

.signup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signup-form-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.signup-form-container h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.signup-form-container p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.signup-info ul {
    list-style: none;
    padding: 0;
}

.signup-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.signup-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Competition Section */
.competition {
    background: var(--primary-color);
    color: var(--white);
}

.competition .section-header h2,
.competition .section-header p {
    color: var(--white);
}

.competition-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.competition-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: left;
}

.competition-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

.competition-policy {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--white);
}

.competition-policy p {
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.competition-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.competition-features .feature {
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.competition-features .feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.15);
}

.competition-features .feature i {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.competition-features .feature h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.competition-features .feature p {
    color: rgba(255, 255, 255, 0.9);
}

.competition-images {
    display: flex;
    flex-direction: column;
}

/* Programs Section */
.programs {
    background: var(--white);
}

.schedule-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-note {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.schedule-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.schedule-note p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Classes Section - Dynamic Display */
.classes {
    background: var(--light-color);
    padding: 40px 0;
}

.classes .section-header {
    margin-bottom: 1.5rem;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.class-name-age {
    text-align: left;
    flex: 1;
    min-width: 0; /* Allow name/age to shrink if needed */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; /* Align content to the left */
    padding-top: 0.2rem;
}

.class-type-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--primary-color); /* Full teal outline */
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.class-type-card:hover {
    box-shadow: var(--shadow-hover);
}

.class-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: nowrap; /* Prevent wrapping to keep elements on same line */
    gap: 1rem;
    background: var(--primary-color); /* Teal background */
    color: var(--white); /* White text for contrast */
    padding: 0.5rem 1rem; /* Reduced top/bottom padding */
    border-radius: 10px 10px 0 0; /* Rounded top corners, square bottom */
    margin: -1rem -1rem 1rem -1rem; /* Extend to card edges */
    min-height: 70px; /* Ensure consistent height for alignment */
}

.class-title {
    color: var(--white); /* White text for dark background */
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 180px;
    text-align: left;
}

.class-age {
    color: #ddd; /* Light grey for readability on dark background */
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0 0 0; /* Reduced margin to bring closer to class name */
    text-align: left;
}

.class-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
    min-width: 150px;
    justify-content: center;
}

.class-price {
    color: var(--white); /* White text for dark background */
    font-weight: bold;
    margin: 0;
    font-size: 0.9rem;
}
.class-price-info {
    text-align: right;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end; /* Align content to the right */
    padding-top: 0.1rem;
}
.multi-class-note {
    font-size: 0.7rem;
    color: #ccc;
    font-style: italic;
    margin-top: 0.25rem;
}

.price-note {
    color: #ccc; /* Light grey for price note */
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.class-schedule {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: transparent; /* Remove background - just white */
    border: none; /* Remove border */
}

.schedule-day {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

.time-availability-group {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Increased gap for better separation */
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.time-slot-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Add spacing between time slot and availability */
}

.day-name {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 120px;
    font-size: 1.2rem;
    text-align: left;
}

.time-slot {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.availability {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability.open {
    background: #e8f5e8;
    color: #2d7d32;
    border: 1px solid #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.availability.limited {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.availability.full {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.class-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    padding: 1rem; /* Add padding around description */
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    background: #f8f9fa; /* Light background for description area */
    border-radius: 8px;
    margin-bottom: 0.75rem; /* Space from teal footer */
}

.class-description.show {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 0.75rem;
}

.class-description[style*="block"] {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 0.75rem;
}

.class-description p {
    margin: 0;
}

/* More Info Link Styling */
.more-info-container {
    margin-top: auto; /* Push to bottom of card */
    background: var(--primary-color); /* Purple background to match header */
    padding: 0.75rem 1rem;
    border-radius: 0 0 10px 10px; /* Rounded bottom corners, square top */
    text-align: center;
    border: none;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    cursor: pointer; /* Make entire bar clickable */
    transition: var(--transition);
    user-select: none; /* Prevent text selection */
}

.more-info-container:hover {
    background: var(--accent-color); /* Lighter purple on hover */
}

.more-info-link {
    color: var(--white); /* White text on purple background */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
    border: none;
    background: none;
    cursor: inherit; /* Inherit cursor from parent container */
    transition: var(--transition);
    display: block;
    width: 100%;
    height: 100%;
}

.more-info-link:hover {
    color: var(--white); /* Keep white text on hover */
    text-decoration: none;
}

/* Trial Offer Styling */
.trial-offer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 0 auto 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.trial-offer h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.trial-offer p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.trial-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trial-note {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0 !important;
}

/* Fallback Message Styling */
.fallback-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid #ff9800;
}

.fallback-message h3 {
    color: #f57c00;
    margin-bottom: 1rem;
}

.fallback-message p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Connection Test Styling */
.connection-test {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    text-align: center;
}

.connection-test.success {
    background: #e8f5e8;
    color: #2d7d32;
    border: 1px solid #4caf50;
}

.connection-test.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.coaches-note {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.coaches-note p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.coach-qualities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quality {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.quality:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.quality i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quality h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Coaches Section */
.coaches {
    background: var(--light-color);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 128, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-form-container {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Form labels styling to match gymnast info */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Style for gymnast information fields */
#gymnast-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

#gymnast-info .form-group {
    margin-bottom: 1rem;
}

#gymnast-info label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

#gymnast-info input,
#gymnast-info input[type="number"],
#gymnast-info textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

#gymnast-info input:focus,
#gymnast-info textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Style for contact form fields to match gymnast info */
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group input[type="number"],
.contact-form .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.contact-form .form-group input[type="text"]:focus,
.contact-form .form-group input[type="email"]:focus,
.contact-form .form-group input[type="tel"]:focus,
.contact-form .form-group input[type="number"]:focus,
.contact-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sign Up Section */
.signup {
    background: var(--gradient-primary);
    color: var(--white);
}

.signup .section-header h2,
.signup .section-header p {
    color: var(--white);
}

.signup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signup-steps {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: var(--white);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.step p {
    color: rgba(255, 255, 255, 0.9);
}

.signup-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.signup-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.signup-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}



/* Parent Info Section */
.parent-info {
    background: var(--white);
}

.parent-info-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.info-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 3rem;
    color: var(--white);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.info-card p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.parent-resources {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
}

.parent-resources h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.parent-resources ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.parent-resources li {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.1rem;
}

.parent-resources li:last-child {
    border-bottom: none;
}

/* Shop Section */
.shop {
    background: var(--light-color);
}

.shop-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.shop-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.shop-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.category {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.shop-contact {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.shop-contact p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* Birthday Parties Section */
.birthday-parties {
    background: var(--light-color);
    padding: 80px 0;
}

.birthday-parties .section-header {
    margin-bottom: 3rem;
}

.birthday-parties .section-header h2 {
    color: var(--primary-color);
}

.birthday-content {
    max-width: 1200px;
    margin: 0 auto;
}

.party-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.party-option {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.party-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.party-option h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.party-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.party-details strong {
    color: var(--dark-color);
}

.payment-info {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.payment-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.payment-info li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.payment-info li:last-child {
    border-bottom: none;
}

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

.what-we-provide,
.what-you-provide {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.what-we-provide h3,
.what-you-provide h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.what-we-provide ul,
.what-you-provide ul {
    list-style: none;
    padding: 0;
}

.what-we-provide li,
.what-you-provide li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.what-we-provide li:before,
.what-you-provide li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.party-contact {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.party-contact p {
    font-size: 1.2rem;
    margin: 0;
}

.party-contact a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

/* Private Lessons Section */
.private-lessons {
    background: var(--white);
    padding: 80px 0;
}

.private-lessons .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.private-lessons .section-header h2 {
    color: var(--primary-color);
}

.private-lessons-content {
    max-width: 1000px;
    margin: 0 auto;
}

.lessons-description {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.lessons-description p {
    margin-bottom: 0;
}

.what-to-expect {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.what-to-expect h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.what-to-expect ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.what-to-expect li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.what-to-expect li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.what-to-expect li:last-child {
    border-bottom: none;
}

.important-info {
    background: #fff8e1;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 3rem;
}

.important-info p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
/* Mobile Responsive */
@media (max-width: 600px) {
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .class-type-card {
        padding: 1rem;
        background: var(--white) !important;
        border-radius: 12px !important;
        box-shadow: var(--shadow) !important;
        border: 2px solid var(--primary-color) !important; /* Full teal outline */
        margin-bottom: 1rem;
    }
    
    .trial-offer {
        background: var(--gradient-primary) !important;
        border-radius: 15px !important;
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
        box-shadow: var(--shadow) !important;
        color: var(--white) !important;
    }
    
    .class-schedule {
        background: transparent !important;
        border: none !important;
        padding: 0.75rem !important;
        margin-bottom: 1rem;
    }
    
    /* Enhanced description styling for mobile */
    .class-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .class-description.show,
    .class-description[style*="block"] {
        max-height: none !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    /* Video optimizations for mobile */
    .hero-video video {
        object-position: center center;
        /* Slightly reduce quality for mobile performance */
        /* filter: brightness(0.75) contrast(1.05) hue-rotate(20deg); Removed purple filter per request */
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 80px 0 40px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        margin: 0 10px;
        max-width: calc(100vw - 20px);
        width: 100%;
        box-sizing: border-box;
    }

    .hero-logo img {
        height: clamp(50px, 12vw, 100px);
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .nav-logo img {
        height: 70px;
    }

    .footer-logo {
        height: 50px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Mobile menu styles - Updated to match Manchester Gymnastics style */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(75, 0, 130, 0.1); /* Using purple color with transparency */
        margin-top: 0.5rem;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem;
        margin: 0 1rem;
        border-radius: 5px;
    }
    
    .nav-dropdown {
        position: relative;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        text-align: center;
        display: block;
    }
    
    /* About section mobile fix */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact section mobile fix */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Even smaller buttons on mobile */
    .request-evaluation-btn,
    .waitlist-btn,
    .signup-class-btn {
        font-size: 0.4rem;
        padding: 0.05rem 0.15rem;
        min-width: 55px;
    }
    
    .time-availability-group {
        margin-top: 0.25rem; /* Reduce space above buttons */
        margin-bottom: 1.25rem; /* Add space below buttons */
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-slot-container {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .time-slot {
        margin-right: 1rem;
    }
    
    .class-action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .request-evaluation-btn,
    .waitlist-btn,
    .signup-class-btn {
        margin-top: 0.25rem; /* Reduce space above buttons */
        margin-bottom: 1.25rem; /* Add space below buttons */
        margin-left: 0;
        margin-right: 0.5rem;
    }
    
    .class-age {
        margin: 0.1rem 0 0 0; /* Reduced margin to bring closer to class name */
    }
    
    /* Manchester Gymnastics style mobile menu adjustments */
    .nav-menu {
        background-color: var(--dark-color);
        padding: 0.5rem 0;
    }
    
    .nav-menu a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        margin: 0.1rem 1rem;
        padding: 0.5rem 1rem;
        border-radius: 5px;
    }
    
    .nav-menu a:hover {
        background: rgba(75, 0, 130, 0.3); /* Purple hover effect */
        color: var(--white);
    }
    
    .nav-dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .nav-dropdown > a i {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Landscape orientation optimization for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-video video {
        object-position: center center;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        max-width: 80%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background: var(--primary-color);
}

.bg-light {
    background: var(--light-color);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Small button styles */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 30px;
    margin-left: auto;
    white-space: nowrap;
}

/* Class action buttons - desktop view */
.class-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto; /* Push buttons to the right */
}

.request-evaluation-btn,
.waitlist-btn,
.signup-class-btn {
    margin: 0.25rem;
    white-space: nowrap;
}

.day-name {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 120px;
    font-size: 1.2rem;
    text-align: left;
}

.time-slot-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Add spacing between time slot and availability */
}

.time-slot {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.availability {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Class action buttons - desktop view */
.class-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto; /* Push buttons to the right */
}

.request-evaluation-btn,
.waitlist-btn,
.signup-class-btn {
    margin: 0.25rem;
    white-space: nowrap;
}
