:root {
            --primary: #1F3C5F;
            --secondary: #6BA2D9;
            --accent: #F57C51;
            --text: #333333;
            --light-bg: #F5F5F5;
            --white: #FFFFFF;
}
        
* {
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
        
/* Color Palette */
:root {
    --primary: #1F3C5F;
    --secondary: #6BA2D9;
    --accent: #F57C51;
    --text: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --neon-yellow: #FFFF00;
    
    /* Native Social Media Colors */
    --strava-orange: #FC4C02;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    --facebook-blue: #1877F2;
    --garmin-blue: #007CC3;
}

.top-bar {
    background-color: var(--neon-yellow);
    color: var(--text);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

 .events-dropdown {
position: relative;
flex: 1;
min-width: 200px;
}

.dropdown-toggle {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: var(--white);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 14px;
padding: 8px 16px;
border-radius: 25px;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(31, 60, 95, 0.3);
}

.dropdown-toggle:hover {
background: linear-gradient(to right, var(--secondary), var(--accent));
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(31, 60, 95, 0.4);
}

.dropdown-toggle span {
font-weight: bold;
}

.dropdown-toggle i {
transition: transform 0.3s ease;
}

.events-dropdown.active .dropdown-toggle i {
transform: rotate(180deg);
}

.dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
box-shadow: 0 8px 25px rgba(31, 60, 95, 0.2);
border-radius: 12px;
padding: 20px;
max-width: 350px;
z-index: 1000;
margin-top: 32px;
border: 2px solid var(--secondary);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}

.events-dropdown.active .dropdown-menu {
display: block;
opacity: 1;
transform: translateY(0);
}

.event-item {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 15px;
border-radius: 8px;
margin-bottom: 12px;
transition: all 0.3s ease;
background: var(--white);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
border-left: 4px solid var(--primary);
}

.event-item:hover {
transform: translateX(5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
border-left: 4px solid var(--accent);
}

.event-item:last-child {
margin-bottom: 0;
}

.event-details {
flex: 1;
margin-right: 15px;
}

.event-title {
font-weight: bold;
color: var(--primary);
display: block;
margin-bottom: 5px;
font-size: 15px;
}

.event-register-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: var(--white);
border: none;
padding: 8px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
white-space: nowrap;
box-shadow: 0 2px 8px rgba(31, 60, 95, 0.3);
}

.event-register-btn:hover {
background: linear-gradient(135deg, var(--secondary), var(--accent));
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(31, 60, 95, 0.4);
}

/* Content for demonstration */
        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .content h1 {
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .content p {
            line-height: 1.6;
            margin-bottom: 15px;
        }

        /* Responsive adjustments */
        @media (max-width: 991px) {
            .events-dropdown {
                min-width: auto;
                order: 1;
                width: 100%;
                margin-bottom: 10px;
                margin-left: 0px;
                margin-top: 20px;
            }
            
            .dropdown-toggle {
                justify-content: center;
                width: 100%; 
            }
            
            .dropdown-menu {
                left: 50%;
                transform: translateX(-50%) ;
                min-width: 90%;
                max-width: 400px;
            }
            
            .events-dropdown.active .dropdown-menu {
                transform: translateX(-50%) translateY(0);
            }
        }

        @media (max-width: 575px) {
            .event-item {
                flex-direction: column;
                text-align: center;
            }
            
            .event-details {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .btn-text-short {
                display: inline;
            }
            
            .btn-text-full {
                display: none;
            }
        }

.next-event {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.next-event span {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary);
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone {
    display: flex;
    align-items: center;
    color: var(--text);
}

.phone i {
    margin-right: 5px;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    transition: transform 0.3s ease, filter 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.social-icons a:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Native Social Media Colors */
.strava-icon {
    color: var(--strava-orange) !important;
}

.instagram-icon {
    background: var(--instagram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.facebook-icon {
    color: var(--facebook-blue) !important;
}

.garmin-icon {
    color: var(--garmin-blue) !important;
}

/* Register Button */ 
.register-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(31, 60, 95, 0.2);
    white-space: nowrap;
    text-decoration: none; /* 👈 Remove underline for anchor elements */
    margin-right: 20px;
}

.register-btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 60, 95, 0.3);
    text-decoration: none;
}

.register-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(31, 60, 95, 0.2);
}

 

.member-btn {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(31, 60, 95, 0.2);
    white-space: nowrap;
    text-decoration: none; /* 👈 Remove underline for anchor elements */
}
.member-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 60, 95, 0.3);
    text-decoration: none;
}
.member-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(31, 60, 95, 0.2);
}

/* Responsive Text Control */
.btn-text-full {
    display: inline;
}

.btn-text-short {
    display: none;
}

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .top-bar {
        padding: 10px 8%;
        font-size: 15px;
    }
    
    .contact-social {
        gap: 25px;
    }
    
    .social-icons {
        gap: 18px;
    }
    
    .social-icons a {
        font-size: 20px;
    }
    
    .register-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Desktop - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .top-bar {
        padding: 8px 6%;
    }
    
    .contact-social {
        gap: 18px;
    }
    
    .social-icons {
        gap: 12px;
    }
}

/* Tablet - 768px to 991px */
@media (max-width: 991px) and (min-width: 768px) {
    .top-bar {
        padding: 8px 4%;
        font-size: 13px;
        gap: 15px;
    }
    
    .next-event {
        min-width: 250px;
        flex: 1;
    }
    
    .contact-social {
        gap: 15px;
        justify-content: flex-end;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        font-size: 16px;
    }
    
    .register-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Large Mobile - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    .top-bar {
        padding: 10px 3%;
        font-size: 13px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .next-event {
        min-width: auto;
        justify-content: center;
        text-align: center;
        order: 1;
    }
    
    .contact-social {
        order: 2;
        justify-content: center;
        gap: 20px;
        margin-top: 5px;
    }
    
    .phone {
        order: 1;
    }
    
    .social-icons {
        order: 2;
        gap: 15px;
    }
    
    .register-btn {
        order: 3;
        padding: 8px 16px;
        font-size: 12px;
        align-self: center;
    }
}

/* Small Mobile - 480px to 575px */
@media (max-width: 575px) and (min-width: 480px) {
    .top-bar {
        padding: 12px 4%;
        font-size: 12px;
        gap: 10px;
        flex-direction: column;
    }
    
    .next-event {
        min-width: auto;
        justify-content: center;
        text-align: center;
    }
    
    .next-event span {
        margin-right: 8px;
    }
    
    .contact-social {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .phone {
        margin-bottom: 8px;
        justify-content: center;
    }
    
    .social-icons {
        gap: 12px;
        justify-content: center;
    }
    
    .social-icons a {
        font-size: 16px;
    }
    
    .register-btn {
        padding: 8px 14px;
        font-size: 11px;
        margin-top: 5px;
        align-self: center;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    .btn-text-full {
        display: none;
    }
}

/* Extra Small Mobile - up to 479px */
@media (max-width: 479px) {
    .top-bar {
        padding: 10px 3%;
        font-size: 15px;
        gap: 8px;
        flex-direction: column;
        text-align: center; 
    }
    
    .next-event {
        min-width: auto;
        flex-direction: column;
        gap: 5px;
    }
    
    .next-event span {
        margin-right: 0;
        margin-bottom: 3px;
    }
    
    .contact-social {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .phone {
        justify-content: center;
        font-size: 11px;
    }
    
    .phone i {
        margin-right: 4px;
    }
    
    .social-icons {
        gap: 15px;
        justify-content: center;
    }
    
    .social-icons a {
        font-size: 18px;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .register-btn {
        padding: 10px 16px;
        font-size: 11px;
        margin-top: 5px;
        width: fit-content;
        align-self: center;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    .btn-text-full {
        display: none;
    }
}

        
/* Main Header */
header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  
}
        
.header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%; 
            margin: 0 auto;
}
        
.logo {
            height: 100px;
}
        
.nav-links {
            display: flex;
            list-style: none;
}
        
.nav-links li {
            margin-left: 30px;
            position: relative;
}
        
.nav-links a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
            transition: color 0.3s;
            padding: 5px 0;
}
        
.nav-links a:hover {
            color: var(--accent);
}
        
.nav-links li.active a {
            color: var(--accent);
}
        
.nav-links li.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--accent);
}

/* Cart Link Special Styling */
.cart-item .nav-link {
    position: relative;
    padding: 12px;
    border-radius: 50%;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.cart-item .nav-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
 

.cta-button {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(107, 162, 217, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(107, 162, 217, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 162, 217, 0.3);
}

.cta-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

.cta-button span {
    font-weight: 700;
    position: relative;
    z-index: 1;
}
        
/* Mobile Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 3.8rem;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 50px;
    margin-right: 60px;
}

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

.hamburger.active {
    color: var(--accent);
}

/* Hamburger Lines */
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 60, 95, 0.45); /* tinted with --primary */
    backdrop-filter: blur(4px);
    z-index: 1200; /* sit above page content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Compact, elevated mobile menu using core colors */
.mobile-menu {
    position: fixed;
    top: 80px;                       /* leave space for top bar */
    right: -320px;
    width: 280px;                    /* slightly narrower */
    height: calc(100vh - 100px);     /* shorter than full height */
    margin-top: 12px;
    background: linear-gradient(180deg, var(--white) 0%, rgba(107,162,217,0.03) 100%);
    border-left: 1px solid rgba(31,60,95,0.06);
    border-radius: 12px 0 0 12px;
    box-shadow: 0 20px 45px rgba(31, 60, 95, 0.18);
    z-index: 1250;                   /* ensure it floats above other sections */
    transition: right 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.28s;
    overflow-y: auto;
    padding: 14px 0;
    -webkit-overflow-scrolling: touch;
    opacity: 0.98;
}

.mobile-menu.active {
    right: 12px; /* visible state offset from edge */
}

/* Mobile header inside menu */
.mobile-menu-header {
    padding: 0 18px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.close-menu:hover {
    color: var(--accent);
}

/* Mobile Links */
.mobile-links {
    list-style: none;
    padding: 8px 12px;
    margin: 0;
}

.mobile-links li {
    margin-bottom: 8px;
    opacity: 1;
    transform: none;
    animation: none; /* keep subtle by default */
}

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease, box-shadow 0.18s ease;
    background: transparent;
}


.mobile-links a:hover,
.mobile-links li.active a {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateX(-4px);
    box-shadow: 0 6px 18px rgba(31, 60, 95, 0.12);
}

/* CTA button inside menu */
.mobile-cta {
    padding: 16px;
    border-top: 1px solid rgba(31,60,95,0.04);
    margin-top: 8px;
}

.mobile-cta-button {
    width: calc(100% - 28px);
    margin: 0 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mobile-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(31,60,95,0.14);
}

/* Disable scrolling when menu is open */
.no-scroll {
    overflow: hidden;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation for menu items */
.mobile-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-links li:nth-child(2) { animation-delay: 0.15s; }
.mobile-links li:nth-child(3) { animation-delay: 0.2s; }
.mobile-links li:nth-child(4) { animation-delay: 0.25s; }
.mobile-links li:nth-child(5) { animation-delay: 0.3s; }
.mobile-links li:nth-child(6) { animation-delay: 0.35s; }
.mobile-links li:nth-child(7) { animation-delay: 0.4s; }

 /* Mobile Devices (320px - 480px) */
@media screen and (max-width: 480px) { 
    
    .header-container {
        padding: 10px 3%;
        flex-wrap: wrap;
    }
    
    .logo {
        height: 60px;
        flex-shrink: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
        margin-left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 20px;
        display: block;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
        margin-right: 20px;
        font-size: 2.5rem;
    }
    
    .nav-links li.active::after {
        bottom: 10px;
        width: 80%;
        left: 10%;
    }
}

/* Small Tablets (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .header-container {
        padding: 12px 4%;
    }
    
    .logo {
        height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 20px;
        display: block;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
        margin-right: 40px;
        font-size: 3rem;
    }
}

/* Large Tablets (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 15px 4%;
    }
    
    .logo {
        height: 80px;
    }
    
    .nav-links li {
        margin-left: 20px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .hamburger {
        display: none;
    }
}

/* Small Desktops (1025px - 1200px) */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .header-container {
        padding: 15px 4%;
    }
    
    .logo {
        height: 90px;
    }
    
    .nav-links li {
        margin-left: 25px;
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media screen and (max-width: 320px) {
    .header-container {
        padding: 8px 2%;
    }
    
    .logo {
        height: 50px;
    }
    
    .hamburger {
        margin-right: 10px;
        font-size: 2.2rem;
        width: 25px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        padding: 20px;
    }
    
    .nav-links li {
        margin: 10px 15px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 1rem;
    }
}



 :root {
    --primary: #1F3C5F;
    --secondary: #6BA2D9;
    --accent: #F57C51;
    --text: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --neon-yellow: #FFFF00;

    --strava-orange: #FC4C02;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    --facebook-blue: #1877F2;
    --garmin-blue: #007CC3;
  }

  /* Scope everything so it drops cleanly into an existing page */
  .r867 {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }

  .r867 * { box-sizing: border-box; }

  .r867 h1, .r867 h2, .r867 h3 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--primary);
    margin: 0;
  }

  .r867__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ============ HERO — SPLIT LAYOUT ============ */
  .hero {
    position: relative;
    background: var(--primary);
    color: var(--white);
    padding: 132px 0 0;
    overflow: hidden;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    min-height: calc(92vh - 132px);
  }

  .hero__content {
    padding: 20px 0 64px;
    position: relative;
    z-index: 2;
  }

  .hero__bib {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 3px;
    margin-bottom: 22px;
  }
  .hero__bib::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }

  .hero__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    color: var(--white);
  }
  .hero__title span {
    color: var(--accent);
  }

  .hero__subtitle {
    margin-top: 16px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 480px;
    color: var(--secondary);
    line-height: 1.55;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 22px 36px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(107,162,217,0.35);
  }

  .hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hero__meta-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
  }
  .hero__meta-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
  }

  .hero__cta {
    margin-top: 34px;
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  /* Right side: the poster */
  .hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 0;
  }

  .hero__visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--secondary);
    opacity: 0.16;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
  }

  .hero__poster-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    transform: rotate(2deg);
  }

  .hero__poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero__poster-badge {
    position: absolute;
    top: 18px;
    right: -34px;
    background: var(--neon-yellow);
    color: var(--primary);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 40px;
    transform: rotate(35deg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  }

  .hero__poster-tag {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--accent);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(245,124,81,0.4);
  }
  .hero__poster-tag small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.85;
    margin-top: 2px;
  }

  .btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn:hover { transform: translateY(-2px); }

  .btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(245,124,81,0.35);
  }
  .btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.6);
  }

  /* Track/share strip — native platform colors, sits under the hero */
  .track-strip {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(107,162,217,0.25);
    padding: 18px 0;
  }
  .track-strip__row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
  }
  .track-strip__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
  }
  .track-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    padding: 7px 14px 7px 10px;
    border-radius: 20px;
  }
  .track-chip__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .track-chip--strava { background: rgba(252,76,2,0.16); }
  .track-chip--strava .track-chip__dot { background: var(--strava-orange); }
  .track-chip--garmin { background: rgba(0,124,195,0.18); }
  .track-chip--garmin .track-chip__dot { background: var(--garmin-blue); }
  .track-chip--facebook { background: rgba(24,119,242,0.18); }
  .track-chip--facebook .track-chip__dot { background: var(--facebook-blue); }
  .track-chip--instagram { background: rgba(220,39,67,0.16); }
  .track-chip--instagram .track-chip__dot { background: var(--instagram-gradient); }

  /* Elevation-line divider — Iten's whole identity is its altitude */
  .contour {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 0;
  }
  .contour--flip { transform: scaleY(-1); }

  /* ============ WHY ITEN ============ */
  .why {
    background: var(--primary);
    color: var(--white);
    padding: 64px 0 76px;
  }
  .why__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
  }
  .why__eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 14px;
  }
  .why h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }
  .why p {
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
  }
  .why__altitude {
    display: inline-block;
    margin-top: 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--neon-yellow);
    letter-spacing: 0.04em;
  }

  /* ============ QUICK FACTS ============ */
  .facts {
    background: var(--light-bg);
    padding: 60px 0;
  }
  .facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .fact-card {
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-top: 4px solid var(--accent);
    border-radius: 6px;
    padding: 26px 22px;
  }
  .fact-card__label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
  }
  .fact-card__value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--primary);
    line-height: 1.15;
  }
  .fact-card__sub {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 6px;
    opacity: 0.75;
  }

  .distances-strip {
    margin-top: 22px;
    background: var(--primary);
    border-radius: 6px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 34px;
  }
  .distances-strip__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12px;
  }
  .distances-strip__list {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .distance-pill {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 8px 20px;
  }
  .distance-pill--10 { background: rgba(107,162,217,0.25); border-color: var(--secondary); }
  .distance-pill--21 { background: var(--accent); border-color: var(--accent); }
  .distance-pill--42 { background: var(--accent); border-color: var(--accent); }
  .distance-pill--56 {
    background: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: var(--primary);
  }

  /* ============ WEEKEND ITINERARY ============ */
  .itinerary {
    padding: 76px 0;
    background: var(--white);
  }
  .section-head {
    max-width: 640px;
    margin: 0 0 44px;
  }
  .section-head__eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
  .section-head p {
    margin-top: 12px;
    line-height: 1.6;
    color: var(--text);
  }

  .day-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
  }
  .day-card {
    background: var(--white);
    padding: 32px 28px;
    border-left: 1px solid #e6e6e6;
    position: relative;
  }
  .day-card:first-child { border-left: none; }
  .day-card--active {
    background: var(--light-bg);
  }
  .day-card__day {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
  }
  .day-card__title {
    font-size: 1.6rem;
    margin-top: 6px;
    color: var(--primary);
  }
  .day-card__title span { color: var(--accent); }
  .day-card__date {
    font-size: 0.82rem;
    color: var(--text);
    opacity: 0.65;
    margin-top: 4px;
    margin-bottom: 20px;
  }

  .timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .timeline li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .timeline__time {
    flex-shrink: 0;
    width: 62px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
    padding-top: 1px;
  }
  .timeline__text strong { color: var(--primary); }
  .timeline__text small {
    display: block;
    opacity: 0.65;
    font-size: 0.8rem;
    margin-top: 2px;
  }

  /* ============ LOGISTICS ============ */
  .logistics {
    background: var(--light-bg);
    padding: 76px 0;
  }
  .logistics__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
  }
  .log-card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #e6e6e6;
  }
  .log-card h3 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .log-card h3::before {
    content: '';
    width: 22px;
    height: 3px;
    background: var(--accent);
    display: inline-block;
  }

  .checkpoint-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .checkpoint-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.95rem;
  }
  .checkpoint-list li:last-child { border-bottom: none; }
  .checkpoint-list .k {
    color: var(--primary);
    font-weight: 600;
  }
  .checkpoint-list .v {
    text-align: right;
    color: var(--text);
    opacity: 0.85;
  }
  .checkpoint-list .v small {
    display: block;
    opacity: 0.7;
    font-size: 0.78rem;
  }

  .discount-note {
    margin-top: 18px;
    background: rgba(245,124,81,0.08);
    border: 1px solid rgba(245,124,81,0.3);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--primary);
  }
  .discount-note strong { color: var(--accent); }

  .hotel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hotel-list li {
    padding: 14px 16px;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: 0.92rem;
  }
  .hotel-list .hotel-name {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
  }
  .hotel-list .hotel-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--secondary);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
  }

  /* Link buttons — registration / transport / sponsorship */
  .link-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
  }
  .btn--block {
    width: 100%;
    text-align: center;
  }
  .btn--outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
  }
  .btn--outline:hover {
    background: var(--primary);
    color: var(--white);
  }

  /* ============ PARTNERS ============ */
  .partners {
    padding: 48px 0 68px;
    background: var(--white);
    text-align: center;
  }
  .partners__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 22px;
  }
  .partners__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  .partners__row span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.7;
    letter-spacing: 0.02em;
  }

  /* Sponsor video carousel */
  .partners__carousel-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
  }
  .partners__carousel {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--light-bg);
  }
  .sponsor-video-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    text-align: left;
  }
  .sponsor-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 8px;
    background: var(--primary);
    object-fit: cover;
  }
  .sponsor-video-label {
    display: block;
    margin-top: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
  }
  .carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--secondary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .carousel-arrow:hover {
    background: var(--secondary);
    color: var(--white);
  }

  @media (max-width: 560px) {
    .partners__carousel-wrap { gap: 8px; }
    .sponsor-video-card { flex-basis: 200px; }
    .carousel-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .hero { padding-top: 112px; }
    .hero__grid {
      grid-template-columns: 1fr;
      min-height: auto;
      gap: 8px;
    }
    .hero__visual { order: -1; padding: 12px 0 28px; }
    .hero__poster-frame { max-width: 300px; transform: none; }
    .hero__content { padding: 8px 0 48px; text-align: left; }
    .facts__grid { grid-template-columns: repeat(2, 1fr); }
    .day-track { grid-template-columns: 1fr; }
    .day-card { border-left: none; border-top: 1px solid #e6e6e6; }
    .day-card:first-child { border-top: none; }
    .logistics__grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 560px) {
    .hero__meta { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero__poster-frame { max-width: 240px; }
    .hero__poster-badge { right: -46px; font-size: 11px; }
    .track-strip__row { gap: 14px; }
    .facts__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .fact-card { padding: 18px 16px; }
    .fact-card__value { font-size: 1.3rem; }
    .distances-strip { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; text-align: center; }
    .hero__cta { flex-direction: column; width: 100%; }
  }


/* Footer Styles */
.site-footer {
    background-color: var(--neon-yellow);
    color: var(--text);
    padding: 60px 5% 30px;
    font-size: 0.95rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-heading {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 2px;
}

.footer-about {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    background-color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    text-decoration: none;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Native Social Media Colors */
.footer-social .facebook-icon {
    color: var(--facebook-blue) !important;
}

.footer-social .facebook-icon:hover {
    background-color: var(--facebook-blue);
    color: var(--white) !important;
}
 
.footer-social .strava-icon {
    color: var(--strava-orange) !important;
}

.footer-social .strava-icon:hover {
    background-color: var(--strava-orange);
    color: var(--white) !important;
}

.footer-social .garmin-icon {
    color: var(--garmin-blue) !important;
}

.footer-social .garmin-icon:hover {
    background-color: var(--garmin-blue);
    color: var(--white) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 500;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    padding: 14px 16px;
    border: none;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--white);
    color: var(--text);
    border-radius: 6px;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 120px;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: translateX(-2px);
}

.footer-notes {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
    font-weight: 500;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 2px solid rgba(31, 60, 95, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.legal-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.legal-links a:hover::before {
    width: 100%;
}

/* Footer Media Queries */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .site-footer {
        padding: 50px 4% 25px;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .newsletter-form {
        grid-template-columns: 1fr auto;
        margin-bottom: 12px;
    }
    
    .newsletter-form button {
        min-width: 100px;
        padding: 14px 20px;
    }
}

/* Medium tablets */
@media (max-width: 768px) {
    .site-footer {
        padding: 45px 3% 20px;
        font-size: 0.9rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .footer-heading::after {
        width: 40px;
        height: 2px;
    }
    
    .footer-about {
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-contact li {
        margin-bottom: 12px;
    }
    
    .footer-contact i {
        margin-right: 10px;
        width: 18px;
        font-size: 14px;
    }
    
    .newsletter-form {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .newsletter-form input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .newsletter-form button {
        padding: 12px 18px;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .footer-notes {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding-top: 25px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        gap: 15px;
    }
}

/* Small tablets and large phones */
@media (max-width: 640px) {
    .site-footer {
        padding: 40px 3% 18px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
    }
    
    .footer-about {
        text-align: center;
        margin-bottom: 12px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-contact {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-contact li {
        margin-bottom: 10px;
        justify-content: flex-start;
    }
    
    .newsletter-form {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 300px;
        margin: 0 auto 10px;
    }
    
    .newsletter-form input {
        padding: 12px 14px;
        text-align: center;
    }
    
    .newsletter-form button {
        padding: 12px 16px;
        min-width: auto;
        width: 100%;
    }
    
    .footer-bottom {
        padding-top: 20px;
        gap: 12px;
    }
    
    .legal-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .site-footer {
        padding: 35px 4% 15px;
        font-size: 0.85rem;
    }
    
    .footer-container {
        gap: 20px;
    }
    
    .footer-column {
        margin-bottom: 12px;
    }
    
    .footer-heading {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .footer-heading::after {
        width: 30px;
        height: 2px;
    }
    
    .footer-about {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-contact {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .footer-contact li {
        margin-bottom: 8px;
    }
    
    .footer-contact i {
        margin-right: 8px;
        width: 16px;
        font-size: 13px;
    }
    
    .newsletter-form {
        max-width: 280px;
        margin-bottom: 8px;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .newsletter-form button {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .footer-notes {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 18px;
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .legal-links {
        gap: 10px;
    }
    
    .legal-links a {
        font-size: 0.75rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .site-footer {
        padding: 30px 3% 12px;
    }
    
    .footer-container {
        gap: 18px;
    }
    
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-heading::after {
        width: 25px;
    }
    
    .footer-about {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .footer-social {
        gap: 6px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .footer-links {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        font-size: 0.8rem;
        max-width: 260px;
    }
    
    .footer-contact i {
        margin-right: 6px;
        width: 14px;
        font-size: 12px;
    }
    
    .newsletter-form {
        max-width: 260px;
        gap: 6px;
    }
    
    .newsletter-form input {
        padding: 9px 10px;
        font-size: 0.75rem;
    }
    
    .newsletter-form button {
        padding: 9px 12px;
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 0.7rem;
        gap: 8px;
    }
    
    .legal-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links a {
        font-size: 0.7rem;
    }
}

/* Landscape orientation adjustments for small screens */
@media (max-width: 640px) and (orientation: landscape) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-heading {
        text-align: left;
    }
    
    .footer-heading::after {
        left: 0;
        transform: none;
    }
    
    .footer-about {
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .newsletter-form {
        margin: 0 0 10px 0;
    }
}

/* Enhanced animations for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced animations for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Footer Media Queries */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .site-footer {
        padding: 50px 4% 25px;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .newsletter-form {
        grid-template-columns: 1fr auto;
        margin-bottom: 12px;
    }
    
    .newsletter-form button {
        min-width: 100px;
        padding: 14px 20px;
    }
}

/* Medium tablets */
@media (max-width: 768px) {
    .site-footer {
        padding: 45px 3% 20px;
        font-size: 0.9rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .footer-heading::after {
        width: 40px;
        height: 2px;
    }
    
    .footer-about {
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-contact li {
        margin-bottom: 12px;
    }
    
    .footer-contact i {
        margin-right: 10px;
        width: 18px;
        font-size: 14px;
    }
    
    .newsletter-form {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .newsletter-form input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .newsletter-form button {
        padding: 12px 18px;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .footer-notes {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding-top: 25px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        gap: 15px;
    }
}

/* Small tablets and large phones */
@media (max-width: 640px) {
    .site-footer {
        padding: 40px 3% 18px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column {
        margin-bottom: 15px;
        text-align: center;
        animation: fadeInUp 0.5s ease-out;
    }
    
    /* Adjusted animation delays for single column layout */
    .footer-column:nth-child(1) { animation-delay: 0.1s; }
    .footer-column:nth-child(2) { animation-delay: 0.15s; }
    .footer-column:nth-child(3) { animation-delay: 0.2s; }
    .footer-column:nth-child(4) { animation-delay: 0.25s; }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
    }
    
    .footer-about {
        text-align: center;
        margin-bottom: 12px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-contact {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-contact li {
        margin-bottom: 10px;
        justify-content: flex-start;
    }
    
    .newsletter-form {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 300px;
        margin: 0 auto 10px;
    }
    
    .newsletter-form input {
        padding: 12px 14px;
        text-align: center;
    }
    
    .newsletter-form button {
        padding: 12px 16px;
        min-width: auto;
        width: 100%;
    }
    
    .footer-bottom {
        padding-top: 20px;
        gap: 12px;
    }
    
    .legal-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .site-footer {
        padding: 35px 4% 15px;
        font-size: 0.85rem;
    }
    
    .footer-container {
        gap: 20px;
    }
    
    .footer-column {
        margin-bottom: 12px;
        animation: fadeInUp 0.4s ease-out;
    }
    
    /* Faster animations for mobile */
    .footer-column:nth-child(1) { animation-delay: 0.05s; }
    .footer-column:nth-child(2) { animation-delay: 0.1s; }
    .footer-column:nth-child(3) { animation-delay: 0.15s; }
    .footer-column:nth-child(4) { animation-delay: 0.2s; }
    
    .footer-heading {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .footer-heading::after {
        width: 30px;
        height: 2px;
    }
    
    .footer-about {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-contact {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .footer-contact li {
        margin-bottom: 8px;
    }
    
    .footer-contact i {
        margin-right: 8px;
        width: 16px;
        font-size: 13px;
    }
    
    .newsletter-form {
        max-width: 280px;
        margin-bottom: 8px;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .newsletter-form button {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .footer-notes {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 18px;
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .legal-links {
        gap: 10px;
    }
    
    .legal-links a {
        font-size: 0.75rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .site-footer {
        padding: 30px 3% 12px;
    }
    
    .footer-container {
        gap: 18px;
    }
    
    .footer-column {
        animation: fadeInUp 0.3s ease-out;
    }
    
    /* Very fast animations for small screens */
    .footer-column:nth-child(1) { animation-delay: 0.03s; }
    .footer-column:nth-child(2) { animation-delay: 0.06s; }
    .footer-column:nth-child(3) { animation-delay: 0.09s; }
    .footer-column:nth-child(4) { animation-delay: 0.12s; }
    
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-heading::after {
        width: 25px;
    }
    
    .footer-about {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .footer-social {
        gap: 6px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .footer-links {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        font-size: 0.8rem;
        max-width: 260px;
    }
    
    .footer-contact i {
        margin-right: 6px;
        width: 14px;
        font-size: 12px;
    }
    
    .newsletter-form {
        max-width: 260px;
        gap: 6px;
    }
    
    .newsletter-form input {
        padding: 9px 10px;
        font-size: 0.75rem;
    }
    
    .newsletter-form button {
        padding: 9px 12px;
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 0.7rem;
        gap: 8px;
    }
    
    .legal-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links a {
        font-size: 0.7rem;
    }
}

/* Landscape orientation adjustments for small screens */
@media (max-width: 640px) and (orientation: landscape) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-column {
        text-align: left;
        animation: fadeInUp 0.4s ease-out;
    }
    
    /* Adjusted delays for 2-column landscape layout */
    .footer-column:nth-child(1) { animation-delay: 0.1s; }
    .footer-column:nth-child(2) { animation-delay: 0.1s; }
    .footer-column:nth-child(3) { animation-delay: 0.2s; }
    .footer-column:nth-child(4) { animation-delay: 0.2s; }
    
    .footer-heading {
        text-align: left;
    }
    
    .footer-heading::after {
        left: 0;
        transform: none;
    }
    
    .footer-about {
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .newsletter-form {
        margin: 0 0 10px 0;
    }
}

