/* ===== CSS Variables ===== */
:root {
    --primary-color: #1b4d7a;
    --primary-dark: #0f3555;
    --primary-light: #2a6ca3;
    --accent-color: #4a8c5c;
    --accent-dark: #3a7249;
    --accent-light: #5fa86f;
    --gold-accent: #c9a227;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f5f7f9;
    --bg-cream: #f0f4f3;
    --bg-dark: #1b2a3a;
    --border-color: #d8dee4;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-accent {
    background-color: var(--gold-accent);
    color: var(--text-dark);
    border-color: var(--gold-accent);
}

.btn-accent:hover {
    background-color: #b8911f;
    border-color: #b8911f;
}

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

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

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

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

.btn-secondary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.header .logo {
    color: white;
}

.header .logo-icon {
    color: var(--gold-accent);
}

.header .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.header .nav-links a:hover {
    color: var(--gold-accent);
}

.header .btn-primary {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--text-dark);
}

.header .btn-primary:hover {
    background-color: #b8911f;
    border-color: #b8911f;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover {
    color: var(--gold-accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 77, 122, 0.85) 0%, rgba(15, 53, 85, 0.9) 60%, rgba(74, 140, 92, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 60px 0;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--text-dark);
    font-weight: 700;
}

.hero-buttons .btn-primary:hover {
    background-color: #ddb62e;
    border-color: #ddb62e;
}

.hero-buttons .btn-primary:last-child {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.hero-buttons .btn-primary:last-child:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ===== Events Section ===== */
.events-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.events-table {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.events-table-header {
    display: grid;
    grid-template-columns: 120px 140px 150px 80px auto;
    gap: 16px;
    padding: 12px 16px;
    background-color: var(--bg-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-table-row {
    display: grid;
    grid-template-columns: 120px 140px 150px 80px auto;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.events-table-row:last-child {
    border-bottom: none;
}

.event-date {
    font-size: 14px;
    color: var(--text-medium);
}

.event-name {
    font-weight: 600;
    color: var(--text-dark);
}

.event-location {
    color: var(--text-medium);
    font-size: 14px;
}

.event-image img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.signup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
}

.signup-link:hover {
    color: var(--accent-color);
}

.events-footer {
    margin-top: 24px;
    text-align: center;
}

/* Quick Links Sidebar */
.quick-links {
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    padding: 24px;
    color: white;
}

.quick-links h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.quick-links ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.quick-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold-accent);
}

.quick-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 4px solid var(--accent-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-content .btn {
    margin-top: 8px;
}

.about-content .btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.about-content .btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

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

/* ===== Routes Section ===== */
.routes-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.routes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.routes-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.route-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.route-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.route-map {
    height: 140px;
    background-color: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.route-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(27, 77, 122, 0.1) 49%, rgba(27, 77, 122, 0.1) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(27, 77, 122, 0.1) 49%, rgba(27, 77, 122, 0.1) 51%, transparent 51%);
    background-size: 20px 20px;
}

/* Hide grid when map background is present */
.route-map[style*="background-image"]::before {
    display: none;
}

/* Add slight overlay for better route visibility on map */
.route-map[style*="background-image"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.route-map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 77, 122, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.route-map-overlay svg {
    color: white;
}

.route-map-overlay span {
    font-size: 14px;
    font-weight: 600;
}

.route-card:hover .route-map-overlay {
    opacity: 1;
}

.route-card[data-lat] {
    cursor: pointer;
}

/* ===== Routes Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    z-index: 10;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--bg-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: var(--transition);
}

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

.routes-filters {
    padding: 24px 32px;
    background-color: var(--bg-light);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.filter-value {
    color: var(--primary-color);
    font-weight: 700;
}

.filter-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.routes-results-info {
    padding: 16px 32px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-medium);
}

.routes-results-info span {
    font-weight: 600;
    color: var(--primary-color);
}

.modal-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 32px;
}

.modal-routes-grid .route-card {
    margin: 0;
}

.no-routes-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
}

@media (max-width: 768px) {
    .modal {
        padding: 20px 10px;
    }

    .modal-header,
    .routes-filters,
    .routes-results-info,
    .modal-routes-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .routes-filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-routes-grid {
        grid-template-columns: 1fr;
    }
}

.route-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.route-info {
    padding: 16px;
}

.route-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.route-distance {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.route-type {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== News Section ===== */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.news-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-featured {
    grid-row: span 2;
}

.news-featured .news-image {
    height: 300px;
}

.news-image {
    height: 180px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(27, 77, 122, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.news-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

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

.social-links a:hover {
    background-color: var(--accent-color);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: white;
}

/* ===== Routes Section Updates ===== */
.routes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.routes-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.location-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: none;
}

.location-status.loading {
    display: block;
    background-color: rgba(27, 77, 122, 0.1);
    color: var(--primary-color);
}

.location-status.success {
    display: block;
    background-color: rgba(74, 140, 92, 0.1);
    color: var(--accent-color);
}

.location-status.error {
    display: block;
    background-color: rgba(200, 50, 50, 0.1);
    color: #c83232;
}

/* ===== Training Section ===== */
.training-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.training-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    text-align: center;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.program-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.program-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 140, 92, 0.2);
}

.program-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-light);
    color: var(--text-medium);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.program-card.featured .program-badge {
    background-color: var(--accent-color);
    color: white;
}

.program-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.program-card > p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.program-features {
    text-align: left;
    margin-bottom: 24px;
}

.program-features li {
    padding: 8px 0;
    color: var(--text-medium);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.program-features li:last-child {
    border-bottom: none;
}

/* ===== Membership Section ===== */
.membership-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.membership-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.membership-benefits {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.benefits-header {
    margin-bottom: 32px;
}

.free-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefits-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.benefits-header p {
    color: var(--text-medium);
    font-size: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.benefit-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.benefit-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.4;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ===== Safety Section ===== */
.safety-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.safety-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.safety-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.safety-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.safety-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.safety-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.safety-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Beginners Section ===== */
.beginners-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.beginners-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.guide-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-step {
    display: flex;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
}

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

.step-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

.guide-tips {
    background-color: var(--primary-color);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
}

.guide-tips h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--gold-accent);
}

.guide-tips ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-tips li {
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.guide-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
}

/* ===== FAQs Section ===== */
.faqs-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.faqs-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question svg {
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
}

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

.contact-form {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

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

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        order: -1;
    }

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

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

    .guide-content {
        grid-template-columns: 1fr;
    }

    .guide-tips {
        position: static;
    }

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

    .quick-links ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .nav-links a:hover {
        color: var(--gold-accent) !important;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        order: -1;
    }

    .events-table-header,
    .events-table-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .events-table-header span:nth-child(3),
    .events-table-header span:nth-child(4),
    .events-table-row .event-location,
    .events-table-row .event-image {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .programs-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-card {
        padding: 24px;
    }

    .guide-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .routes-actions {
        flex-direction: column;
        width: 100%;
    }

    .routes-actions .btn {
        width: 100%;
    }
}

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

    .hero-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .routes-header,
    .news-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
