/*
Theme Name: Aktywni
Theme URI: https://example.com/aktywni
Author: Antigravity
Author URI: https://example.com
Description: Custom theme for Aktywni based on provided design.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aktywni
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #00aaff;
    /* Cyan/Light Blue */
    --accent-color: #ffffff;
    --text-color: #333333;
    --text-light: #f4f4f4;
    --bg-color: #f4f4f4;
    --font-main: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky Footer - main content takes remaining space */
.site-footer {
    margin-top: auto;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Header */
.site-header {
    background: var(--primary-color);
    /* background-image: url('assets/water-bg.jpg'); */
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    position: relative;
}

/* Mobile Menu Toggle */
/* Mobile Menu Toggle - Hidden by default on Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 51, 102, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-menu-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.mobile-navigation ul {
    flex-direction: column;
    gap: 20px;
}

.mobile-navigation a {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    padding: 10px;
}

.mobile-cta {
    margin-top: 40px;
}



/* Home Hero */
.home-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--primary-color);
    background-image: url('assets/water-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
    /* Reset padding now that header is relative */
}

.home-hero h1,
.home-hero p {
    color: #ffffff !important;
    text-shadow: none !important;
}

.home-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo img {
    height: auto;
    max-height: 90px;
    /* Slightly larger log */
    width: auto;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* Center the menu items */
    margin: 0 40px;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap to next line if needed */
    justify-content: center;
    /* Center the items */
    gap: 10px 30px;
    /* Reduced vertical gap, standard horizontal */
    max-width: 800px;
    /* Limit width */
}

.main-navigation a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    /* Slightly larger text */
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    /* White underline */
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-cta .btn {
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 35px;
    /* Larger button padding */
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Dropdown */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 51, 102, 0.95);
    min-width: 220px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(10px);
}

.menu-item-has-children:hover>.sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sub-menu li a {
    padding: 10px 25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
}

.sub-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sub-menu .menu-item-has-children>.sub-menu {
    top: 0;
    left: 100%;
    margin-top: -15px;
    border-radius: 10px;
}

/* Hero Section */

/* Home Hero */
.home-hero {
    position: relative;
    background-color: var(--primary-color);
    background-image: url('assets/water-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
}


/* Page Hero - Matching Template Class */
.page-hero {
    position: relative;
    height: 300px;
    background-color: var(--primary-color);
    background-image: url('assets/water-bg.jpg');
    /* Fallback / Base texture */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    color: #fff;
    overflow: hidden;
}


.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    transform: rotate(5deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* News Section */
.news-section {
    background: #fff;
}

/* Horizontal Scroll Snap Mixin/Common */
/* Horizontal Scroll Snap Mixin/Common REMOVED - Using Grid Now */
.news-grid,
.offer-grid,
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 0;
}

.news-item,
.offer-card,
.instructor-card {
    flex: unset;
    /* Remove fixed width */
    scroll-snap-align: unset;
    margin-bottom: 0;
}

/* Pricing Grid & Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    /* Ensure full width */
}

.pricing-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 0;
    /* Prevent grid blowout */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pricing-header h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.pricing-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    /* max-height: 200px; */
    /* Let image determine height or crop? */
    text-align: center;
}

.pricing-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.pricing-body {
    flex-grow: 1;
    margin-bottom: 25px;
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: auto;
    /* Allow scrolling for wide content like tables */
}

.pricing-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.pricing-body th,
.pricing-body td {
    padding: 8px;
    border: 1px solid #eee;
    text-align: left;
}

.pricing-body ul {
    padding-left: 20px;
    margin: 0;
}

.pricing-body li {
    margin-bottom: 8px;
}

.pricing-cost {
    background: var(--light-bg-color);
    color: var(--primary-color);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    padding: 15px;
    border-radius: 8px;
    margin-top: auto;
    /* Push to bottom */
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Offer Card Styling - Blue Gradient */
.offer-card {
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 26, 51, 0.9) 100%);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    position: relative;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-card h3 {
    padding: 25px 20px 10px;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-excerpt {
    padding: 0 20px 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-grow: 1;
}

.offer-card img,
.placeholder-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
}

.offer-card .btn {
    display: none;
    /* Button inside card removed in Figma design, clicking card usually works or simple hover */
}

/* If button is needed, style it to sit at bottom, but design usually clean */
.offer-card a.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Specific overrides */
.instructor-card {
    background-image: linear-gradient(to bottom, #003366, #001a33);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

/* Instructor Image Fix */
.instructor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    /* Ensure image stays in circle */
}

.instructor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
}

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

.instructor-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials-section {
    background-color: #004d40;
    color: #fff;
    background: linear-gradient(135deg, #004d40 0%, #002620 100%);
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.testimonial-item {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.testimonial-item h4 {
    text-align: right;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: #001122;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    transform: scale(1.1);
}

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

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

/* Responsive */
/* Responsive */

/* Extracted News Styles */
.news-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.news-thumb {
    height: 250px;
    position: relative;
    background: #eee;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-read-more {
    align-self: flex-start;
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 0.8rem;
}

@media (max-width: 1200px) {

    .news-grid,
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .main-navigation,
    .desktop-only {
        display: none !important;
    }

    /* Show hamburger on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
        /* Hide collage on mobile if too crowded, or adjust */
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .news-grid,
    .offer-grid,
    .instructors-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
    }

    .footer-links ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   Contact Form Section
   ============================================ */
.contact-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    color: #fff;
    padding: 100px 0;
}

.contact-form-section .section-title {
    color: #fff;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.contact-form select option {
    background: var(--primary-color);
    color: #fff;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.contact-submit {
    display: block;
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: #fff;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
}

.contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-success-message,
.contact-error-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.contact-success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #a5d6a7;
}

.contact-error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef9a9a;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ============================================
   Schedule Selection (Grafiki) Tiles
   ============================================ */
.schedule-selection {
    background-color: #f4f4f4;
    padding-bottom: 80px;
}

.schedule-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.schedule-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.schedule-tile {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
}

.schedule-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 51, 102, 0.4);
}

.schedule-tile .tile-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.schedule-tile h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-tile .tile-description {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    flex-grow: 1;
}

.schedule-tile .tile-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.schedule-tile:hover .tile-link {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

@media (max-width: 992px) {
    .schedule-tiles {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ============================================
   Schedule Subpage Styles
   ============================================ */
.schedule-section {
    background: #f4f4f4;
    padding-bottom: 80px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0, 51, 102, 0.08);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.schedule-category {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

.schedule-group {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #e0e0e0;
}

.schedule-group h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.schedule-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.schedule-item {
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.schedule-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.schedule-item-content {
    padding: 15px;
}

.schedule-item-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.schedule-placeholder {
    color: #888;
    font-style: italic;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    text-align: center;
}

/* Schedule Info Card for Hallera Adult Swimming */
.schedule-info-card {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1) 0%, rgba(0, 51, 102, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.schedule-time {
    padding: 8px 0;
    font-size: 1rem;
}

.schedule-time strong {
    color: var(--primary-color);
}

.schedule-instructor {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.instructor-label {
    color: #666;
    font-size: 0.9rem;
}

.instructor-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .schedule-category {
        padding: 25px;
    }

    .schedule-group {
        padding-left: 15px;
    }
}
