html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste este valor com base na altura do seu cabeçalho fixo */
}

.gradient-bg {
            background: linear-gradient(135deg, #1e40af 0%, #15304d 50%, #136933ff 100%);
        }

        .floating-animation {
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        .fade-in-ready {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.8s ease-out;
        }

        .fade-in-hidden {
            opacity: 0;
            transform: translateY(30px);
        }

        .hero-content {
            opacity: 1;
            transform: translateY(0);
        }

        .video-overlay {
            /*background: rgba(30, 64, 175, 0.7);*/
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

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

        .hero-content-wrapper {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
        }

        .loading-shimmer {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .scrolling-flags-wrapper {
            width: 100%;
            overflow: hidden;
            -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
            mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
            padding: 2.5rem 0;
        }

        .scrolling-flags-wrapper:hover .scrolling-flags-track {
            animation-play-state: paused;
        }

        .scrolling-flags-track {
            display: flex;
            width: max-content; /* Ensure it's wide enough for all content */
            animation: scroll 60s linear infinite;
        }

        .flag-item {
            position: relative;
            margin: 0 4.5rem; /* Desktop spacing */
        }

        .flag-item img {
            height: 4rem; /* Desktop flag size */
            transition: transform 0.3s ease-in-out;
            flex-shrink: 0; /* Prevent image from shrinking */
        }

        .flag-item:hover img {
            transform: scale(1.25);
        }

        .country-name-tooltip {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #1e40af;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            font-weight: 600;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            margin-top: 0.5rem;
        }

        .flag-item:hover .country-name-tooltip {
            opacity: 1;
            visibility: visible;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%); /* Move by half the total width */
            }
        }

        @media (max-width: 768px) {
            .flag-item {
                margin: 0 1rem; /* Mobile spacing */
            }

            .flag-item img {
                height: 2.5rem; /* Mobile flag size */
            }
        }

        /* Partners Section Styles */
        .partners-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 2.5rem;
        }
        .partner-logo {
            height: 90px;
            /*filter: grayscale(100%);*/
            transition: all 0.3s ease;
        }
        .partner-logo:hover {
            filter: grayscale(0%);
            transform: scale(1.1);
        }

        .organizer-logo {
            height: 120px;
            transition: all 0.3s ease;
        }
        .organizer-logo:hover {
            transform: scale(1.1);
        }

        .logo-hero {
            max-width: 420px;
        }

        .text-justify {
            text-align: justify;
        }

        @media (max-width: 768px) {
            .logo-hero {
                max-width: 300px;
            }
        }

        /* Speakers Section Styles */
        .speaker-card {
            background: white;
            border-radius: 1rem;
            
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .speaker-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }

        .speaker-photo {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            margin: 1.5rem auto 1rem;
            border: 4px solid #1e40af;
        }

        .speaker-country-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #f3f4f6;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 600;
            color: #4b5563;
        }

        .speaker-country-badge img {
            width: 20px;
            height: 15px;
            object-fit: cover;
            border-radius: 2px;
        }

        /* Modal Styles */
        .speaker-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .speaker-modal.active {
            display: flex;
        }

        .modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            position: relative;
            background: white;
            border-radius: 1rem;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            z-index: 10000;
            animation: slideUp 0.3s ease;
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #ef4444;
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            transition: all 0.2s ease;
            z-index: 10001;
        }

        .modal-close:hover {
            background: #dc2626;
            transform: rotate(90deg);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #videoModal .modal-content {
            background-color: transparent;
            max-width: 56rem; /* 896px */
            width: 90%;
            overflow: visible; /* Allow close button to be outside */
        }
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 */
            height: 0;
            overflow: hidden;
            width: 100%;
            background-color: #000;
             border-radius: 0.5rem;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        @media (max-width: 768px) {
            .speaker-photo {
                width: 120px;
                height: 120px;
            }

            .modal-content {
                width: 95%;
                max-height: 80vh;
            }
        }

        /* Animação para palestrantes que aparecem dinamicamente */
        .fade-in-speaker {
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
		
		.art-category-card {
			background: white;
			border-radius: 1rem;
			padding: 1.5rem;
			box-shadow: 0 4px 6px rgba(0,0,0,0.1);
			transition: all 0.3s ease;
		}
		.art-category-card:hover {
			transform: translateY(-10px);
			box-shadow: 0 12px 24px rgba(0,0,0,0.15);
		}
		.image-container {
			position: relative;
			border-radius: 0.75rem;
			overflow: hidden;
			cursor: pointer;
			height: 200px;
		}
		.image-container.placeholder {
			display: flex;
			justify-content: center;
			align-items: center;
			background-color: #f3f4f6; /* bg-gray-100 */
		}
		.art-image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 0.3s ease;
		}
		.image-container:hover .art-image {
			transform: scale(1.1);
		}
		.overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(30, 64, 175, 0.7); /* apcore-blue com opacidade */
			display: flex;
			justify-content: center;
			align-items: center;
			color: white;
			font-size: 2.5rem;
			opacity: 0;
			transition: opacity 0.3s ease;
		}
		.image-container:hover .overlay {
			opacity: 1;
		}
.gallery-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            .gallery-item {
                position: relative;
                overflow: hidden;
                border-radius: 1rem;
                box-shadow: 0 4px 16px rgba(0,0,0,0.10);
                cursor: pointer;
                transition: transform 0.3s;
            }
            .gallery-item:hover {
                transform: scale(1.04);
                z-index: 2;
            }
            .gallery-img {
                width: 100%;
                height: 14rem;
                object-fit: cover;
                transition: filter 0.3s;
            }
            .gallery-item:hover .gallery-img {
                filter: brightness(0.7) blur(1px);
            }
            .gallery-overlay {
                position: absolute;
                top: 0; left: 0; right: 0; bottom: 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                opacity: 0;
                background: rgba(30,64,175,0.55);
                color: #fff;
                font-size: 1.5rem;
                font-weight: 500;
                transition: opacity 0.3s;
            }
            .gallery-item:hover .gallery-overlay {
                opacity: 1;
            }
            .gallery-overlay i {
                font-size: 2.5rem;
                margin-bottom: 0.5rem;
            }
            @media (max-width: 900px) {
                .gallery-grid { grid-template-columns: 1fr 1fr; }
            }
            @media (max-width: 600px) {
                .gallery-grid { grid-template-columns: 1fr; }
            }

            .schedule-tabs .active {
                background-color: #1e40af;
                color: white;
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }
            .timeline {
                position: relative;
                padding-left: 2rem;
                border-left: 3px solid #e5e7eb;
            }
            .timeline-item {
                position: relative;
                margin-bottom: 2rem;
                padding: 1rem;
                background-color: #f9fafb;
                border-radius: 0.5rem;
            }
            .timeline-item::before {
                content: '';
                position: absolute;
                left: -2.7rem;
                top: 1.25rem;
                width: 1.25rem;
                height: 1.25rem;
                background-color: #1e40af;
                border-radius: 50%;
                border: 3px solid white;
                box-shadow: 0 0 0 3px #1e40af;
            }
			
			.footer-links a {
				position: relative;
				color: #d1d5db; /* text-gray-400 */
				transition: color 0.3s;
			}
			.footer-links a::after {
				content: '';
				position: absolute;
				width: 100%;
				height: 2px;
				bottom: -2px;
				left: 0;
				background-color: #eab308; /* apcore-yellow */
				transform: scaleX(0);
				transform-origin: bottom right;
				transition: transform 0.3s ease-out;
			}
			.footer-links a:hover {
				color: #ffffff; /* text-white */
			}
			.footer-links a:hover::after {
				transform: scaleX(1);
				transform-origin: bottom left;
			}

/* Efeito de neon para palestrantes internacionais */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.international-speaker {
    position: relative;
    z-index: 0;
    background: transparent; /* O card em si fica transparente */
    display: flex; /* Garante que o container flex ocupe a altura total */
}

.international-speaker > div {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 100%; /* Ocupa a largura total do pai */
    display: flex; /* Torna o conteúdo interno um container flex */
    flex-direction: column; /* Organiza o conteúdo em coluna */
}

/* Faz o parágrafo da biografia crescer para preencher o espaço, alinhando os botões na parte inferior */
.international-speaker p.text-sm {
    flex-grow: 1;
}

.international-speaker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    z-index: 1;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 1.2rem;
    background: conic-gradient(
      from var(--angle),
      transparent 0,
      transparent 80%,
      #2563eb 95%,
      transparent 100%
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity .3s;
}

.international-speaker:hover::before {
    opacity: 1;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

/* Committee Section Styles - Enhanced Tabs */
#committees button {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    color: #4b5563;
    font-weight: 600;
    position: relative;
}

#committees button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #15304d);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#committees button:hover {
    background-color: rgba(30, 64, 175, 0.08);
    color: #1e40af;
    transform: translateY(-2px);
}

#committees button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

#committees button.active {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(21, 48, 77, 0.1) 100%);
    color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2), inset 0 -2px 0 #1e40af;
    font-weight: 700;
}

#committees button.active::before {
    transform: scaleX(1);
}

.committee-content {
    animation: fadeIn 0.5s ease-in;
}

.committee-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for committee section */
@media (max-width: 768px) {
    #committees {
        padding: 0;
    }
    
    #committees button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem !important;
    }
}

/* --- Social Media Feed --- */
.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.social-media-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #e5e7eb; /* Cor de fundo para placeholders */
}

.social-media-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.2);
}

.social-media-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.social-media-card:hover img {
    filter: brightness(0.6);
}

.social-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: white;
    text-align: center;
    opacity: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.8) 0%, rgba(30, 64, 175, 0) 100%);
    transition: opacity 0.4s ease;
}

.social-media-card:hover .social-media-overlay {
    opacity: 1;
}

.social-media-icon {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}

.social-media-card:hover .social-media-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.social-media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.social-media-card:hover .social-media-caption {
    transform: translateY(0);
}

/* Efeito de pulso para o botão de inscrição */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation-blue {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
    }
}


.btn-pulse-blue {
    animation: pulse-animation-blue 2s infinite;
}

/* Timeline Interativa - Horizontal Carousel */
.timeline-h-wrapper {
    position: relative;
    padding: 0 3rem;
}
.timeline-h-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 2rem 0 3rem 0;
}
.timeline-h-container::-webkit-scrollbar {
    display: none;
}
.timeline-h-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.timeline-h-item {
    scroll-snap-align: center;
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 400px; /* Altura fixa para permitir sobe/desce */
}
@media (min-width: 768px) {
    .timeline-h-item {
        width: 320px;
    }
}

.timeline-h-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #cbd5e1;
    z-index: 10;
}
.timeline-connecting-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    width: 100%;
    height: 4px;
    background-color: #cbd5e1;
    z-index: 0;
}
.timeline-h-item:last-child .timeline-connecting-line {
    display: none;
}

.timeline-h-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: absolute;
    width: 90%;
    left: 5%;
}

/* Odd items: Content Below */
.timeline-h-item:nth-child(odd) .timeline-h-content {
    top: calc(50% + 2rem);
    border-top: 4px solid transparent;
}
/* Even items: Content Above */
.timeline-h-item:nth-child(even) .timeline-h-content {
    bottom: calc(50% + 2rem);
    border-bottom: 4px solid transparent;
}

/* Colors & States */
.timeline-h-item.past .timeline-h-dot { background-color: #94a3b8; box-shadow: 0 0 0 4px #f1f5f9; }
.timeline-h-item.past .timeline-connecting-line { background-color: #94a3b8; }
.timeline-h-item.past .timeline-h-content { 
    opacity: 0.45; /* Transparency for past */
    filter: grayscale(80%); 
}

/* Current target lines */
.timeline-h-item.line-heading-current .timeline-connecting-line {
    background: linear-gradient(to right, #94a3b8 0%, #eab308 100%);
}
.timeline-h-item.current .timeline-connecting-line { 
    background: linear-gradient(to right, #eab308 0%, #e2e8f0 100%); 
}

.timeline-h-item.current .timeline-h-dot { background-color: #eab308; box-shadow: 0 0 0 4px #fef08a; animation: pulse-dot-yellow 2s infinite; }
.timeline-h-item.current .timeline-h-content { border: 2px solid #eab308; transform: scale(1.05); box-shadow: 0 10px 15px rgba(234,179,8,0.2); z-index: 20; }

.timeline-h-item.future .timeline-h-dot { background-color: #e2e8f0; box-shadow: 0 0 0 4px #f8fafc; }
.timeline-h-item.future .timeline-connecting-line { background-color: #e2e8f0; }

/* Dynamic Borders */
.timeline-h-item:nth-child(odd).past .timeline-h-content { border-top-color: #94a3b8; }
.timeline-h-item:nth-child(even).past .timeline-h-content { border-bottom-color: #94a3b8; }

.timeline-h-item:nth-child(odd).future .timeline-h-content { border-top-color: #1e40af; }
.timeline-h-item:nth-child(even).future .timeline-h-content { border-bottom-color: #1e40af; }

@keyframes pulse-dot-yellow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.timeline-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #1e40af;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border: none;
}
.timeline-btn:hover {
    background: #1e40af;
    color: white;
}
.timeline-btn-prev { left: 0; margin-top: -24px; }
.timeline-btn-next { right: 0; margin-top: -24px; }
