:root {
    --primary-color: #2e8540;
    --secondary-color: #3a9b4e;
    --accent-color: #f8c537;
    --dark-color: #1e5631;
    --light-color: #f5f9f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    padding-bottom: 80px; /* Space for fixed navigation */
}

.hero-section {
    height: 80vh;
    background: linear-gradient(rgba(30, 86, 49, 0.7), rgba(30, 86, 49, 0.8)), url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-img {
    position: absolute;
    z-index: 5;
    object-fit: contain;
}

/* Desktop sizes */
.hero-img-1, .hero-img-2, .hero-img-3 {
    width: 120px;
    height: auto;
}



.hero-logo {
    width: 200px;
    height: auto;
}


.nav-buttons {
    height: 20vh;
    background-color: var(--light-color);
}

.nav-btn {
    width: 100%;
    height: 100%;
    background-color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    padding: 10px;
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    background-color: var(--primary-color);
    color: white;
}

.nav-btn i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.nav-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.content-section {
    padding: 60px 0;
    display: none;
}

.active-content {
    display: block;
}

.page-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.theme-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.fixed-nav-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
}

.program-table td {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.program-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn-inscription {
    background-color: var(--accent-color);
    border: none;
    color: #333;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: auto;
}

.btn-inscription:hover {
    background-color: #e6b22c;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: auto;
}

.btn-nav:hover {
    background-color: var(--dark-color);
    color: white;
}

.sponsors-section {
    padding: 40px 0;
    background-color: var(--light-color);
}

.sponsors-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
}

.sponsor-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.sponsor-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 14); /* Double the number of sponsors for smooth loop */
}

.sponsor-item {
    height: 150px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-item img {
    /* max-height: 100%; */
    max-width: 130px;
    object-fit: contain;
}

.sponsor-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    z-index: 10;
}

.badge-diamond {
    background: linear-gradient(135deg, #b9f2ff, #4ee2ff);
    box-shadow: 0 0 8px rgba(78, 226, 255, 0.8);
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.badge-premium {
    background: linear-gradient(135deg, #e6e6fa, #9370db);
    box-shadow: 0 0 8px rgba(147, 112, 219, 0.8);
}

.sponsor-wrapper {
    position: relative;
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7)); /* Move by half the width */
    }
}

.sponsor-slider:hover .sponsor-track {
    animation-play-state: paused;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        padding: 20px 0;
    }

    .hero-img-1, .hero-img-2 {
        width: 100px;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section h3 {
        font-size: 1.4rem;
    }
    
    .hero-section h4 {
        font-size: 1rem;
    }
    
    .hero-section h5 {
        font-size: 0.9rem;
    }
    
    .nav-buttons {
        height: auto;
        padding: 15px 0;
    }
    
    .nav-btn {
        height: 100px;
        margin-bottom: 15px;
    }
    
    .nav-btn i {
        font-size: 1.5rem;
    }
    
    .nav-btn span {
        font-size: 0.8rem;
    }
    
    .fixed-nav-buttons {
        padding: 10px;
    }
    
    .btn-inscription {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-nav {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    .hero-img-3 {
        width: 120px;
    }
    
    .sponsor-item {
        height: 70px;
        margin: 0 15px;
    }
    
    .sponsor-track {
        animation: scroll 20s linear infinite;
        width: calc(150px * 14);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 7));
        }
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 65vh;
    }

    .hero-img-1, .hero-img-2 {
        width: 80px;
    }
    
    .hero-logo {
        width: 100px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h3 {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        height: 90px;
    }
    
    .fixed-nav-buttons .container {
        padding: 0;
    }
    
    .fixed-nav-buttons .row {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between !important;
    }
    
    .fixed-nav-buttons .col-4 {
        padding: 0 5px;
        display: flex;
        align-items: center;
    }
    
    .fixed-nav-buttons .col-4:first-child {
        justify-content: flex-start;
    }
    
    .fixed-nav-buttons .col-4:nth-child(2) {
        justify-content: center;
    }
    
    .fixed-nav-buttons .col-4:last-child {
        justify-content: flex-end;
    }
    
    .btn-inscription {
        width: 50px;
        height: 50px;
        padding: 10;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-inscription i {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .btn-inscription span {
        display: none;
    }
    
    .btn-nav {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-nav i {
        margin: 0;
        font-size: 1rem;
    }
    
    .btn-nav span {
        display: none;
    }
    .hero-img-3 {
        width: 100px;
    }
    
    .sponsor-item {
        height: 60px;
        margin: 0 10px;
    }
    
    .sponsor-track {
        width: calc(120px * 14);
    }
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 7));
        }
    }
}

/* Desktop specific styles */
@media (min-width: 577px) {
    .btn-inscription {
        min-width: 160px;
    }
    
    .btn-nav {
        min-width: 140px;
    }
}

/* Animation for page transitions */
.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}