/* CSS Variables */
:root {
    --dark: #01402E;
    --accent: #00a37e;
    --light: #FDFDFD;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

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

.container-fluid-custom {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header.visible {
    transform: translateY(0);
    opacity: 1;
}

.hover-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 999;
}

.hover-wrapper:hover + .header,
.header:hover {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.logo-img {
    width: 75px;
    height: auto;
    transition: width 0.3s ease;
}

@media (max-width: 480px) {
    .logo-img {
        width: 60px;
    }
}

.logo h1 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-open .hamburger {
    background-color: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--light);
    z-index: 40;
    padding-top: 5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-mobile.open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.nav-list a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    background-color: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 1.125rem;
}

.btn:hover {
    background-color: #00A876;
    transform: translateY(-2px);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

.btn-large:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Gym Badge Styles */
.gym-badge {
    display: inline-block;
    color: var(--dark);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 163, 126, 0.1);
}

/* Update Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

/* Profile Image */
.perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 0.5rem 0;
}

/* Social Links */
.social {
    list-style: none;
    display: flex;
    gap: 15px;
}

.social a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social a:hover {
    color: var(--dark);
}

/* Timeline */
.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 30vh;
}

.hero-title, .hero-subtitle {
    color: #fff !important;
    text-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 0 #222;
    font-family: 'Barlow', Arial, sans-serif;
    letter-spacing: 0.01em;
    opacity: 0;
    line-height: 0.85;
    animation: heroFadeUp 1.1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title {
    font-weight: 900;
    margin-bottom: 0.3em;
    font-size: 12vw;
    line-height: 0.8;
    animation-delay: 0.1s;
}

.hero-subtitle {
    font-size: 7vw;
    font-weight: 500;
    line-height: 0.85;
    animation-delay: 0.45s;
}

.hero-date {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    max-width: 900px;
    width: 85vw;
    height: auto;
    display: block;
    opacity: 0;
    animation: heroFadeUp 1.1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.45) 100%);
    backdrop-filter: blur(1.5px);
}

@media (max-width: 900px) {
    .hero-title { 
        font-size: 7rem; 
        line-height: 0.85;
    }
    .hero-subtitle { 
        font-size: 3rem; 
        line-height: 0.9;
    }
    .hero-date { 
        max-width: 95vw;
        margin-bottom: 0.2em;
    }
    .hero-overlay {
        margin-top: 25vh;
    }
}

@media (min-width: 674px) and (max-width: 780px) {
    .hero-title { 
        font-size: 5rem; 
        line-height: 0.85;
    }
    .hero-subtitle { 
        font-size: 3rem; 
        line-height: 0.9;
    }
    .hero-date { 
        max-width: 95vw;
        margin-bottom: 0.2em;
    }
}

@media (min-width: 400px) and (max-width: 674px) {
    .hero-title { 
        font-size: 4.5rem; 
        line-height: 0.9;
    }
    .hero-subtitle { 
        font-size: 2.5rem; 
        line-height: 0.95;
    }
    .hero-date { 
        max-width: 98vw;
        margin-top: 0.1em;
        margin-bottom: 0.1em;
    }
    .hero-overlay {
        margin-top: 20vh;
    }
}

@media (max-width: 400px) {
    .hero-title { 
        font-size: 4rem; 
        line-height: 0.95;
    }
    .hero-subtitle { 
        font-size: 2.5rem; 
        line-height: 1;
    }
    .hero-date { 
        max-width: 98vw;
        margin-top: 0.1em;
        margin-bottom: 0.1em;
    }
    .hero-overlay {
        margin-top: 15vh;
    }
}

.celebration-text {
    position: relative; /* Ensure text is above the image */
    z-index: 2; /* Bring text to front */
    background-color: transparent; /* Make background fully transparent */
    padding: 1.5rem;
    border-radius: 12px; /* Maintain card-like appearance */
    text-align: left;
    overflow: hidden; /* Hide overflowing background */
    min-height: 600px; /* Temporarily increase height to ensure image visibility */
}

.celebration-text h2 {
    color: #00b894;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.celebration-text p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
    font-size: 1.125rem;
}

.celebration-text ul {
    list-style: none;
    margin: 20px 0;
}

.celebration-text li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 1.125rem;
}

.celebration-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

.main-content {
    padding: 4rem 0;
}

.main-content .container-fluid-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.celebration-card {
    display: flex;
    flex: 1;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.celebration-text {
    flex: 1;
    min-width: 0;
    z-index: 1;
    background-color: rgba(253, 253, 253, 0.8);
    padding: 1.5rem;
    border-radius: 12px 0 0 12px;
    text-align: left;
}

.celebration-image {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 0;
}

.celebration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 12px 12px 0;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    gap: 2rem;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-subtitle {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .main-content .container-fluid-custom {
        flex-direction: column; /* Stack elements vertically */
        text-align: left;
        gap: 2rem; /* Restore gap for mobile */
        padding: 0 1rem; /* Add padding for mobile */
    }

    .celebration-card {
        background-image: url('imagen/FINAL_GE_24-2.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-blend-mode: overlay;
        width: 100%;
    }

    .celebration-text {
        z-index: 1;
        background-color: rgba(253, 253, 253, 0.95); /* Increased opacity for better readability */
        padding: 1.5rem;
        border-radius: 12px;
        text-align: left;
    }

    .celebration-image {
        display: none;
    }

    .agenda-item {
        flex-direction: column;
        align-items: stretch;
    }
    .agenda-item time {
        border-radius: 12px 12px 0 0;
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    .agenda-content {
        border-radius: 0 0 12px 12px;
        border-left: 2px solid var(--accent);
        border-top: none;
        padding: 1rem;
    }
    .agenda-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page Content */
.page-content {
    padding: 2rem 0;
    min-height: 70vh;
}

/* Projects Grid */
.projects-grid,
.finalistas-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid,
    .finalistas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .finalistas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team Sections */
.team-sections {
    max-width: 100%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 1rem;
    text-align: left;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.main-content a {
    color: #777;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-content a:hover {
    color: var(--accent);
}

.main-content .btn {
    background-color: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 1.125rem;
}

.main-content .btn:hover {
    background-color: #00A876;
    transform: translateY(-2px);
    color: white;
}

#teams {
    background-color: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 22px; /* Reduced padding to account for border */
    box-sizing: border-box;
}

#teams:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Agenda Section */
.agenda-section {
    padding: 4rem 0;
    background-color: #F8FDFB;
    padding-top: 95px; /* Add padding to account for fixed navbar */
}

.agenda-section h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.agenda-list {
    display: grid;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.agenda-item {
    display: flex;
    align-items: stretch;
    background: none;
    padding: 0;
}

.agenda-item time {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--accent);
    color: #fff;
    border-radius: 12px 0 0 12px;
    margin: 0;
    padding: 0 1.25rem;
    height: 100%;
    text-align: center;
    box-shadow: none;
}

.agenda-content {
    background: #f6f6f6;
    border-radius: 12px 12px 12px 12px;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.agenda-desc {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.agenda-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: auto;
}

.agenda-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.agenda-link:hover {
    color: #018c6a;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .agenda-title { font-size: 1.2rem; }
    .agenda-desc { font-size: 1rem; }
    .agenda-item time { font-size: 1.1rem; min-width: 70px; padding: 0 0.75rem; }
    .agenda-content { padding: 1rem 1rem 1rem 0.75rem; }
}

@media (max-width: 1100px) {
    .agenda-content {
        padding: 0.6rem 0.6rem 0.6rem 0.6rem;
    }
    .agenda-title { font-size: 0.95rem; }
    .agenda-desc { font-size: 0.8rem; }
    .agenda-link { font-size: 0.85rem; }
    .agenda-item time {
        font-size: 0.85rem;
        min-width: 45px;
        max-width: 60px;
        padding: 0.2rem 0.5rem;
    }
}

.agenda-item--right .agenda-content {
    border: 2px solid var(--accent);
}

/* Categories Section */
.categories-section {
    padding: 6rem 0;
    background-image: url('imagen/gradiente.png');
    background-size: cover;
    background-position: center center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.categories-section .container {
    position: relative;
    z-index: 2;
}

.categories-section .section-title {
    text-align: left;
    font-size: 3.6rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.category-item {
    /* Removed background, border-radius, padding, border */
    transition: none; /* No transition as there's no hover effect on background */
}


.category-item p {
    font-size: 1.25rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.category-item .prize {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--light);
    margin-top: 0.5rem;
}

.categories-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.categories-cta .btn-primary {
    background-color: var(--light);
    color: var(--accent);
}

.categories-cta .btn-primary:hover {
    background-color: #e0e0e0;
    color: var(--accent);
}

.categories-cta .btn-secondary {
    background: none;
    border: 2px solid var(--light);
    color: var(--light);
}

.categories-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transform: translateY(-2px);
}

/* Responsividade para a secção de categorias */
@media (max-width: 768px) {
    .categories-section {
        padding: 4rem 0;
    }
    
    .categories-section .section-title {
        font-size: 2.9rem;
        text-align: center;
        color: var(--light);
    }

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

    .category-item {
        padding: 0; /* Remove padding for mobile */
    }

    .category-item h3 {
        font-size: 2.1rem;
    }

    .category-item p {
        font-size: 1.15rem;
    }

    .category-item .prize {
        font-size: 1.25rem;
    }
    
    .categories-cta {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .categories-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .categories-section .section-title {
        font-size: 2.5rem;
    }
    .category-item h3 {
        font-size: 1.9rem;
    }
    .category-item p {
        font-size: 1.05rem;
    }
    .category-item .prize {
        font-size: 1.15rem;
    }
}

/* Jury Section */
.jury-section {
  padding: 3rem 0 0 0;
}

.jury-card {
  margin-top: 0;
  margin-bottom: 0;
}

.jury-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: left;
  color: var(--dark);
}

.jury-highlight {
  color: var(--accent);
}

.jury-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.jury-member {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  padding: 2rem 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
}

.jury-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
}

.jury-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.jury-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  margin-bottom: 0.5rem;
}

.jury-role {
  font-size: 1.15rem;
  color: #555;
  text-align: left;
  font-weight: 400;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .jury-grid {
    gap: 1.2rem;
  }
  .jury-member {
    padding: 2rem 1rem 1rem 2rem;
    min-width: 180px;
    max-width: 100%;
    align-items: flex-start;
  }
  .jury-name {
    font-size: 1.3rem;
  }
  .jury-role {
    font-size: 1rem;
  }
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background-color: var(--light);
    overflow: hidden;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.partner-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.partner-carousel-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
}

.partner-carousel-track.paused {
    animation-play-state: paused;
}

.partner-carousel-track img {
    height: 80px;
    flex-shrink: 0;
    margin: 0 2rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.partner-carousel-track img:hover {
    opacity: 1;
}

/* Custom Scrollbar for Desktop */
@media (min-width: 769px) {
    .partner-carousel-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 163, 126, 0.5) rgba(0, 0, 0, 0.05);
    }

    .partner-carousel-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .partner-carousel-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .partner-carousel-wrapper::-webkit-scrollbar-thumb {
        background-color: rgba(0, 163, 126, 0.5);
        border-radius: 2px;
    }

    .partner-carousel-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 163, 126, 0.7);
    }
}

/* Mobile styles - CSS animation */
@media (max-width: 768px) {
    .partner-carousel-wrapper {
        overflow: hidden;
        padding-bottom: 0;
    }
    
    .partner-carousel-track {
        animation: scrollPartners 10s linear infinite;
        width: max-content;
        will-change: transform;
    }
    
    .partner-carousel-track img {
        height: 60px;
        margin: 0 1.5rem;
    }
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@media (max-width: 480px) {
    .partners-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .partner-carousel-track img {
        height: 50px;
        margin: 0 1rem;
    }
}

/* Video Youtube Section */
.video-youtube {
    padding: 4rem 0;
    color: var(--dark);
    text-align: left;
}

.video-youtube h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--dark);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .video-youtube {
        padding: 3rem 0;
    }
    .video-youtube h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .video-youtube h2 {
        font-size: 1.8rem;
    }
}

/* Mapa Evento Section */
.mapa-evento {
    padding: 4rem 0;
    background-color: var(--light);
    color: var(--dark);
}

.mapa-evento h2 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

.mapa-evento-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mapa-evento {
        padding: 3rem 0;
    }
    .mapa-evento h2 {
        font-size: 2rem;
    }
    .mapa-evento-img {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mapa-evento h2 {
        font-size: 1.8rem;
    }
    .mapa-evento-img {
        border-radius: 8px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: var(--light);
    color: var(--dark);
}

.faq-section .section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--dark);
}

.faq-section .section-title .highlight {
    color: var(--accent);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    background-color:#f6f6f6;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    position: relative;
}

.faq-question::-webkit-details-marker, /* Hide default marker */
.faq-question::marker {
    display: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    content: '\2304'; /* Unicode for down arrow */
    font-size: 1.5rem;
    color: var(--accent);
    position: absolute;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0.5rem 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.faq-answer p {
    margin: 0;
    font-weight:500;
    font-size: 1.2rem;

}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }
    .faq-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    .faq-question {
        font-size: 1.3rem;
        padding: 1.2rem;
    }
    .faq-answer {
        padding: 1rem 1.2rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .faq-section .section-title {
        font-size: 1.8rem;
    }
    .faq-question {
        padding: 1rem;
    }
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .agenda-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1.2rem 2rem;
        grid-template-areas:
            "item1 item5"
            "item2 item5"
            "item3 item6"
            "item4 item7";
    }
    .agenda-item { margin: 0; display: flex; align-items: flex-start; min-height: 70px; height: auto; }
    .agenda-item:nth-child(1) { grid-area: item1; }
    .agenda-item:nth-child(2) { grid-area: item2; }
    .agenda-item:nth-child(3) { grid-area: item3; }
    .agenda-item:nth-child(4) { grid-area: item4; }
    .agenda-item:nth-child(5) { grid-area: item5; }
    .agenda-item:nth-child(6) { grid-area: item6; }
    .agenda-item:nth-child(7) { grid-area: item7; }
    .agenda-item time {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        max-width: 80px;
        font-size: 0.95rem;
        padding: 0.3rem 1.2rem;
        border-radius: 12px 0 0 12px;
        height: auto;
        margin-top: 0.7rem;
        box-shadow: none;
        margin-right: 0.3rem;
    }
    .agenda-content {
        padding: 0.7rem 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 12px 12px 12px 12px;
        border-left: none;
        border-top: none;
    }
    .agenda-links {
        gap: 1.5rem;
    }
}

/* Search Bar Styles */
.search-container {
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    font-family: 'Barlow', sans-serif;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 163, 126, 0.2);
}

.search-input::placeholder {
    color: #666;
}

/* Gym Title Styles */
.gym-title {
    font-family: 'Barlow', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 4rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    width: 100%;
    text-align: left;
}

@media (max-width: 768px) {
    .gym-title {
        font-size: 1.8rem;
        margin: 3rem 0 1.5rem;
    }
    
    .search-container {
        padding: 0 0.5rem;
    }
}

/* Button in card */
.card .btn {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 200px;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
    opacity: 0.92;
    cursor: pointer;
    transition: opacity 0.5s;
}
.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}
.scroll-text {
    font-family: 'Barlow', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 0.2em;
    animation: scrollTextFade 2.5s infinite;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.45);
}
.scroll-arrow {
    font-size: 2.2rem;
    color: #fff;
    animation: scrollArrowBounce 1.5s infinite;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.45);
}
@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}
@keyframes scrollTextFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 40px;
    }
    .scroll-arrow {
        font-size: 1.5rem;
    }
    .scroll-text {
        font-size: 0.9rem;
    }
}

.hero-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 5px 5px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: auto;
    max-width: 80%;
}

/* Tablet */
@media screen and (max-width: 768px) {
    .hero-button-overlay {
        max-width: 90%;
        padding: 3px 3px;
    }
    
    .btn-large {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .hero-button-overlay {
        max-width: 95%;
        padding: 2px 2px;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 10px 20px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Small Mobile */
@media screen and (max-width: 320px) {
    .btn-large {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}