/* Apollo Beach Running Club - Styles */

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

:root {
    --primary-color: #1E88E5;
    --secondary-color: #1565C0;
    --tertiary-color: #0D47A1;
    --accent-color: #42A5F5;
    --success-color: #2ECC71;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --dark-gray: #34495e;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 10001;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

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

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    position: relative;
}

.header-logo {
    height: 200px;
    width: 200px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 1.25rem 0;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.nav-brand:hover::before {
    left: 100%;
}

.nav-brand:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(30, 136, 229, 0.4);
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

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

.nav-menu a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
    color: var(--dark-gray);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: transparent;
}

.nav-menu i {
    margin-right: 0.25rem;
}

.nav-menu a i.fab {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover i.fab {
    color: var(--secondary-color);
    transform: scale(1.15);
}

.nav-menu a i.fa-facebook:hover {
    color: #1877F2;
}

.nav-menu a i.fa-instagram:hover {
    color: #E4405F;
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.6) 0%, rgba(21, 101, 192, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.carousel-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Section (keep for other pages) */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-small {
    padding: 0.75rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-small .container {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
}

.hero-small h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    line-height: 1.2;
    width: auto;
    flex-shrink: 0;
}

.hero-small p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
    margin: 0;
    display: none;
}

.hero-small .hero-icon {
    font-size: 1.8rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    line-height: 1;
    width: auto;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

section::before {
    content: '🏃';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.05;
    z-index: 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '🏃';
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.about-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: center;
    color: var(--text-color);
}

/* Events Section */
.events-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* Schedule Section */
.schedule-section {
    background-color: var(--light-bg);
}

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

.schedule-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.schedule-card::before {
    content: '🏃‍♂️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0.1;
    z-index: 1;
}

.schedule-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.schedule-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.schedule-card h3 {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-gray);
}

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

.card-content {
    padding: 1.5rem;
}

.card-content p {
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--light-gray);
    height: 280px;
    position: relative;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.7), rgba(21, 101, 192, 0.7));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

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

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Upcoming Events Preview Section */
.upcoming-events-section {
    background-color: var(--light-bg);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--gray);
}

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

.event-preview {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.event-preview::before {
    content: '🎽';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.05;
    transform: rotate(15deg);
    z-index: 0;
}

.event-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-preview:hover::after {
    transform: scaleX(1);
}

.event-preview:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.event-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.event-preview h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.event-preview p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.event-note {
    color: var(--gray) !important;
    font-weight: 400 !important;
    font-size: 0.9rem;
}

.events-cta-button {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta, .btn-cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    color: var(--white);
}

.btn-cta-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-cta-secondary i {
    margin-right: 0.5rem;
}

/* Running Tips & Benefits Section */
.tips-benefits-section {
    padding: 4rem 0;
    background: var(--white);
}

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

.tip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-color);
}

.tip-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    transition: var(--transition);
}

.tip-card:hover .tip-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.5);
}

.tip-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.tip-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Events Listing Page */
.events-listing-section {
    padding: 3rem 0;
}

.events-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.facebook-events-embed {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    text-align: center;
}

.facebook-events-embed h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.embed-note {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.fb-embed-container {
    margin-top: 1.5rem;
}

.fb-events-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1877f2;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.fb-events-button:hover {
    background: #166fe5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.fb-events-button i:first-child {
    font-size: 1.3rem;
}

.fb-events-button i:last-child {
    font-size: 0.9rem;
}

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

.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.event-card.special {
    border: 2px solid var(--accent-color);
}

.event-image {
    width: 100%;
    overflow: hidden;
    background: var(--light-bg);
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.event-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.event-date .day {
    font-size: 1.5rem;
}

.event-date .month {
    font-size: 1.1rem;
    opacity: 0.9;
}

.event-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-type.recurring {
    background: rgba(255, 255, 255, 0.25);
}

.event-type.special-event {
    background: var(--accent-color);
}

.event-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-body h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-details {
    margin: 1rem 0;
    color: var(--text-color);
}

.event-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details i {
    color: var(--primary-color);
    width: 20px;
}

.event-description {
    color: var(--gray);
    line-height: 1.6;
    margin-top: 1rem;
}

.event-footer {
    padding: 1rem 1.5rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--light-gray);
}

.btn-event {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

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

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calendar-nav h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.calendar-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Calendar Grid */
.calendar-container {
    margin: 2rem 0;
}

.calendar {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.calendar-day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--light-gray);
}

.calendar-day {
    background: var(--white);
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.calendar-day.empty {
    background: var(--light-bg);
}

.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid var(--primary-color);
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event .event-time {
    font-weight: 700;
    margin-right: 0.25rem;
    display: inline-block;
}

.calendar-event:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.event-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-modal-close {
    color: var(--gray);
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

#eventModalBody {
    padding: 2rem;
}

.modal-event-image {
    margin: -2rem -2rem 1.5rem -2rem;
}

.modal-event-header {
    margin-bottom: 1.5rem;
}

.modal-event-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-event-type {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-event-type.recurring {
    background: var(--accent-color);
}

.modal-event-type.special {
    background: var(--success-color);
}

.modal-event-details {
    margin: 1.5rem 0;
    color: var(--text-color);
}

.modal-event-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.modal-event-details i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    min-width: 20px;
}

.modal-event-description {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-color);
}

.modal-event-footer {
    margin-top: 2rem;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-modal-content {
        margin: 10% 1rem;
        max-width: calc(100% - 2rem);
    }
}

.events-cta {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-top: 3rem;
}

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

.events-cta p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: var(--gray);
}

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

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

.btn-primary i, .btn-secondary i {
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

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

.contact-form-container h3,
.contact-info h3 {
    text-align: left;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.info-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.info-item p {
    color: var(--gray);
}

.map-container {
    margin-top: 3rem;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Attribution Section */
.attribution-section {
    background-color: var(--light-bg);
}

.attribution-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.attribution-content h3 {
    text-align: left;
}

.thanks-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.thanks-section:last-child {
    border-bottom: none;
}

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

.thanks-section ul {
    margin-left: 2rem;
    line-height: 2;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-color) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

footer::after {
    content: '🏃‍♀️ 🏃‍♂️';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.15;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.footer-content a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.footer-content a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .schedule-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .header-logo {
        position: relative;
        top: auto;
        right: auto;
        height: 80px;
        width: 80px;
        order: -1;
        margin: 0 auto 1rem auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-brand .logo {
        height: 40px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .schedule-card h3,
    section h2 {
        font-size: 1.5rem;
    }
}
