:root {
 --primary-color: #02774C; /* Deep Tennis Court Green */
 --primary-dark: #015D3C;
 --accent-color: #FFD600; /* Tennis Ball Yellow */
 --accent-dark: #CCA700;
 --text-dark: #212121;
 --text-light: #5f5f5f;
 --bg-light: #f7f9f7;
 --bg-white: #FFFFFF;
 --border-color: #E0E0E0;
 --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 --radius: 8px;
 --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-main);
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

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

h1, h2, h3, h4 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: var(--radius);
 font-weight: 700;
 text-align: center;
 border: 2px solid transparent;
 transition: var(--transition);
 cursor: pointer;
}
.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
}
.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}
.btn-white {
 background-color: var(--bg-white);
 color: var(--primary-color);
}
.btn-white:hover {
 background-color: var(--bg-light);
 transform: translateY(-2px);
}

.section {
 padding: 80px 0;
}
.section.bg-light { background-color: var(--bg-light); }
.section.no-padding-top { padding-top: 0; }

.section-header {
 text-align: center;
 margin-bottom: 50px;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}
.section-label, .badge {
 display: inline-block;
 background-color: var(--accent-color);
 color: var(--text-dark);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.9rem;
 font-weight: 700;
 margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 height: 70px;
 transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 100%;
}
.nav-logo { font-size: 1.5rem; font-weight: 900; color: var(--text-dark); }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 5px 0;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--text-dark); margin: 5px 0; transition: var(--transition); }

/* Hero Section */
.hero {
 position: relative;
 min-height: calc(100vh - 70px);
 display: flex;
 align-items: center;
 text-align: center;
 background-size: cover;
 background-position: center;
 margin-top: 70px;
 padding: 60px 0;
}
.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.5);
}
.hero-content {
 position: relative;
 z-index: 1;
 color: var(--bg-white);
 max-width: 800px;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; color: var(--bg-white); }
.hero-subtitle { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Page Header Section */
.page-header-section {
 padding: 120px 0 60px;
 text-align: center;
 background-color: var(--primary-color);
 color: white;
}
.page-header-section h1 { color: white; }
.page-header-section p { font-size: 1.2rem; opacity: 0.9; }

/* Card */
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { margin-bottom: 12px; }
.card-text { color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }
.card-link { font-weight: 700; margin-top: auto; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-object.reverse .media-visual { order: 2; }
.media-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-copy ul { list-style: none; padding-left: 0; margin: 20px 0; }
.media-copy li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.media-copy li::before {
 content: '';
 color: var(--primary-color);
 position: absolute;
 left: 0;
 font-weight: 700;
}
.media-copy .btn { margin-top: 20px; }
.media-object-vertical { display: flex; flex-direction: column; gap: 20px; }
.media-object-vertical .media-copy { text-align: center; }

/* Timeline */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 40px auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background-color: var(--primary-color);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
 opacity: 0.3;
}
.timeline-step {
 padding: 10px 40px;
 position: relative;
 width: 50%;
}
.timeline-step:nth-child(odd) { left: 0; }
.timeline-step:nth-child(even) { left: 50%; }
.timeline-step::after {
 content: '';
 position: absolute;
 width: 20px;
 height: 20px;
 right: -10px;
 background-color: white;
 border: 4px solid var(--primary-color);
 top: 22px;
 border-radius: 50%;
 z-index: 1;
}
.timeline-step:nth-child(even)::after { left: -10px; }
.timeline-content {
 padding: 20px 30px;
 background-color: var(--bg-light);
 border-radius: var(--radius);
 position: relative;
 border: 1px solid var(--border-color);
}
.timeline-content h3 { margin-bottom: 10px; }

/* Testimonials */
.testimonial-card {
 text-align: center;
 padding: 30px;
 background-color: var(--bg-white);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.testimonial-img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 3px solid var(--primary-color);
}
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 20px; }
.testimonial-author { display: block; font-weight: 700; }
.testimonial-role { font-size: 0.9rem; color: var(--text-light); }

/* CTA Section */
.cta-section {
 background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
 color: var(--bg-white);
 text-align: center;
 padding: 60px 24px;
}
.cta-section h2 { color: var(--bg-white); margin-bottom: 15px; }
.cta-section p { max-width: 500px; margin: 0 auto 25px; opacity: 0.9; }

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #a9a9a9;
 padding: 60px 0 20px;
 font-size: 0.95rem;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo { color: white; display: block; font-size: 1.5rem; font-weight: 900; margin-bottom: 15px; }
.footer-about { line-height: 1.7; }
.footer-heading { color: white; font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links, .footer-legal { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a9a9a9; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-contact a { color: #a9a9a9; }
.footer-contact a:hover { color: white; }
.footer-bottom {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding-top: 20px;
 border-top: 1px solid #444;
 font-size: 0.9rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #a9a9a9; }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 2fr 1.5fr; gap: 50px; }
.contact-form-wrapper h2, .contact-info h2 { margin-bottom: 10px; }
.contact-form-wrapper p, .contact-info p { margin-bottom: 30px; color: var(--text-light); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 font-family: inherit;
 font-size: 1rem;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(2, 119, 76, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; font-weight: 400; font-size: 0.9rem; }
.submit-button { width: 100%; }
.contact-info-item { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 25px; }
.contact-info-item i { font-size: 1.5rem; color: var(--primary-color); margin-top: 5px; }
.contact-info-item strong { display: block; font-size: 1.1rem; margin-bottom: 5px; }
.contact-info-item p { margin-bottom: 0; }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow);
 margin: 40px 0;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Legal Pages */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { margin-bottom: 20px; }
.legal-page p { margin-bottom: 15px; }
.legal-page section { margin-bottom: 30px; }
.legal-page h2 { margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.legal-page ul { margin-left: 20px; margin-bottom: 15px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cookie-table th, .cookie-table td { padding: 12px; border: 1px solid var(--border-color); text-align: left; }
.cookie-table th { background-color: var(--bg-light); }

/* Icons */
@font-face {
 font-family: 'icomoon';
 src: url('fonts/icomoon.eot?t97ztr');
 src: url('fonts/icomoon.eot?t97ztr#iefix') format('embedded-opentype'),
 url('fonts/icomoon.ttf?t97ztr') format('truetype'),
 url('fonts/icomoon.woff?t97ztr') format('woff'),
 url('fonts/icomoon.svg?t97ztr#icomoon') format('svg');
 font-weight: normal;
 font-style: normal;
 font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
 font-family: 'icomoon' !important;
 speak: never;
 font-style: normal;
 font-weight: normal;
 font-variant: normal;
 text-transform: none;
 line-height: 1;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
.icon-mail:before { content: "\ea86"; }
.icon-phone:before { content: "\e942"; }
.icon-map:before { content: "\e94b"; }
.icon-clock:before { content: "\e94e"; }

/* Feature Cards */
.feature-card { padding: 30px; border: 1px solid var(--border-color); border-radius: var(--radius); }
.feature-card-icon { text-align: center; padding: 30px; }
.feature-card-icon .icon-wrapper { font-size: 2.5rem; margin-bottom: 20px; }
.team-card { text-align: center; }
.team-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; }
.team-name { margin-bottom: 5px; }
.team-role { color: var(--primary-color); font-weight: 700; margin-bottom: 10px; }
.team-bio { font-size: 0.95rem; color: var(--text-light); }
.stage-calendar { display: flex; flex-direction: column; gap: 20px; }
.stage-item { display: flex; align-items: center; gap: 20px; padding: 20px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.stage-date { text-align: center; background-color: var(--primary-color); color: white; padding: 15px; border-radius: var(--radius); min-width: 80px; }
.stage-date span { font-size: 0.9rem; }
.stage-date strong { font-size: 1.5rem; display: block; }
.stage-info { flex-grow: 1; }
.stage-info p { color: var(--text-light); margin: 0; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius); }

/* Video Player */
.video-wrapper {
 position: relative;
 padding-top: 56.25%; /* 16:9 aspect ratio */
 height: 0;
 overflow: hidden;
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.video-wrapper video {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: var(--radius);
}
.video-play-btn1 {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 70px;
 height: 70px;
 border-radius: 50%;
 background-color: rgba(2, 119, 76, 0.8);
 color: white;
 border: none;
 font-size: 2rem;
 cursor: pointer;
 transition: var(--transition);
 display: flex;
 align-items: center;
 justify-content: center;
}
.video-play-btn1:hover { background-color: var(--primary-dark); }
.video-wrapper.playing .video-play-btn1 { opacity: 0; visibility: hidden; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--text-dark);
 color: white;
 padding: 15px 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 z-index: 2000;
 gap: 20px;
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--accent-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }
#cookie-banner button {
 padding: 8px 16px;
 border-radius: var(--radius);
 border: none;
 cursor: pointer;
 font-weight: 700;
}
#cookie-banner button:first-of-type {
 background-color: var(--primary-color);
 color: white;
}
#cookie-banner button:last-of-type {
 background-color: #555;
 color: white;
}

/* Validation Styles */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
}

.spinner {
 display: inline-block;
 width: 16px; height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 992px) {
 .grid-3 { grid-template-columns: 1fr 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .timeline::after { left: 30px; }
 .timeline-step { width: 100%; padding-left: 70px; padding-right: 20px; }
 .timeline-step:nth-child(even) { left: 0; }
 .timeline-step::after { left: 20px; }
 .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001;}
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 100%;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 25px;
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }
 .nav-links a { font-size: 1.5rem; }
 
 .grid-2, .grid-3 { grid-template-columns: 1fr; }
 .media-object { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual { order: 1; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-contact p { justify-content: center; }
 .footer-bottom { flex-direction: column; gap: 15px; }
 #cookie-banner { flex-direction: column; text-align: center; }
}