/* História Page Specific Styles */

/* Navbar Links - Same style as index page */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c5aa0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(44, 90, 160, 0.1);
    font-family: "Montserrat Alternates", sans-serif;
    font-style: italic;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    padding: 5px 8px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #4ade80;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Voltar button with icon */
.btn-voltar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1001;
    position: relative;
}

.nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* History Hero Section */
.history-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.history-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.history-hero .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.history-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.history-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 80px 0;
}

.history-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.history-hero .hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: #f8fafc;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4ade80, #2c5aa0);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ade80, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-date {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    padding: 0 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Proporção 1:1 para combinar com o texto */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.video-wrapper::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-wrapper:hover::before {
    opacity: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 20px;
    object-fit: cover;
}

.video-description {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4ade80;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.video-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    position: relative;
}

.video-description h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4ade80;
    border-radius: 2px;
}

.video-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.video-description p:last-child {
    margin-bottom: 0;
}

/* Video Actions */
.video-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff1a1a, #e60000);
    color: white;
    text-decoration: none;
}

.youtube-btn i {
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #4ade80 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #f8fafc;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-nav:hover {
    background: #4ade80;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-testimonial {
    left: 20px;
}

.next-testimonial {
    right: 20px;
}

.testimonial {
    display: none;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    position: relative;
}

.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 30px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: #4ade80;
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: #4ade80;
    position: absolute;
    bottom: -40px;
    right: -20px;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #4ade80;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonial-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators .indicator.active {
    background: #4ade80;
    transform: scale(1.2);
}

.testimonial-indicators .indicator:hover {
    background: #2c5aa0;
}

/* Share Section */
.share-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d47a1);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d47a1);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #004d7a);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-btn.copy {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.share-btn i {
    font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #4ade80;
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 20px;
    color: white;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4ade80;
}

.lightbox-info p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: white;
}

/* Carousel Styles */
.gallery-carousel {
    margin-top: 60px;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide .gallery-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    position: relative;
}

.carousel-slide .gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #4ade80;
}

.carousel-slide .gallery-placeholder p {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-description {
    transform: translateY(0);
}

.slide-description h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4ade80;
}

.slide-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: #4ade80;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #4ade80;
    transform: scale(1.2);
}

.indicator:hover {
    background: #2c5aa0;
}

/* Carousel Description */
.carousel-description {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #4ade80;
}

.carousel-description h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.carousel-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Teams Section */
.teams-section {
    padding: 100px 0;
    background: #f8fafc;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.team-category {
    margin-bottom: 80px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    justify-content: center;
}

.team-category-title i {
    color: #4ade80;
    font-size: 2.2rem;
}

/* Team Grid Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.team-member {
    background: white;
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.9), rgba(44, 90, 160, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.member-photo:hover .member-overlay {
    opacity: 1;
}

.member-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.member-overlay .member-role {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e2e8f0;
    text-align: center;
}

.member-overlay .member-description {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0.9;
}

/* Team Carousel Buttons */
.team-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-carousel-btn:hover {
    background: #4ade80;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.team-prev-btn {
    left: 15px;
}

.team-next-btn {
    right: 15px;
}

/* Team Carousel Indicators */
.team-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.team-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-indicator.active {
    background: #4ade80;
    transform: scale(1.2);
}

.team-indicator:hover {
    background: #2c5aa0;
}

/* Programming Subteams */
.programming-subteam {
    margin-bottom: 50px;
}

.subteam-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.subteam-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #4ade80;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Tablet optimizations */
    .video-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-wrapper {
        padding-bottom: 60%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .share-buttons {
        gap: 15px;
    }
    
    .share-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .testimonial {
        padding: 40px 30px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-testimonial {
        left: 10px;
    }
    
    .next-testimonial {
        right: 10px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 70px !important;
        flex-direction: column !important;
        background-color: white !important;
        width: 100% !important;
        text-align: center !important;
        transition: 0.3s !important;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05) !important;
        padding: 20px 0 !important;
        display: none !important;
        z-index: 999 !important;
        height: auto !important;
        min-height: 200px !important;
    }

    .nav-menu.active {
        left: 0 !important;
        display: flex !important;
    }

    .nav-toggle {
        display: flex !important;
        z-index: 1001 !important;
        position: relative !important;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
}

@media (max-width: 768px) {
    .history-hero .hero-title {
        font-size: 2.5rem;
    }

    .history-hero .hero-description {
        font-size: 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }

    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }

    .team-category-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .member-overlay {
        padding: 15px;
    }

    .member-overlay h4 {
        font-size: 1rem;
    }

    .member-overlay .member-role {
        font-size: 0.8rem;
    }

    .member-overlay .member-description {
        font-size: 0.75rem;
    }

    .team-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .team-prev-btn {
        left: 10px;
    }

    .team-next-btn {
        right: 10px;
    }

    .carousel-container {
        max-width: 100%;
        margin: 0 20px;
    }

    .carousel-slide .gallery-placeholder {
        height: 300px;
    }

    .carousel-slide .gallery-placeholder i {
        font-size: 3rem;
    }

    .carousel-slide .gallery-placeholder p {
        font-size: 1.1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slide-description {
        padding: 30px 20px 20px;
    }

    .slide-description h4 {
        font-size: 1.1rem;
    }

    .slide-description p {
        font-size: 0.9rem;
    }

    .carousel-description {
        margin: 20px 20px 0;
        padding: 15px;
    }

    /* Video Section Responsive */
    .video-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        align-items: stretch;
    }

    .video-wrapper {
        padding-bottom: 80%; /* Proporção mais quadrada em mobile */
    }

    .video-description {
        padding: 30px 20px;
        height: auto;
        justify-content: flex-start;
    }

    .video-description h3 {
        font-size: 1.5rem;
    }

    .video-description p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .history-hero .hero-title {
        font-size: 2rem;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

}

@media (max-width: 480px) {
    .carousel-slide .gallery-placeholder {
        height: 250px;
    }

    .carousel-slide .gallery-placeholder i {
        font-size: 2.5rem;
    }

    .carousel-slide .gallery-placeholder p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .slide-description {
        padding: 20px 15px 15px;
    }

    .slide-description h4 {
        font-size: 1rem;
    }

    .slide-description p {
        font-size: 0.85rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .member-overlay {
        padding: 10px;
    }

    .member-overlay h4 {
        font-size: 0.9rem;
    }

    .member-overlay .member-role {
        font-size: 0.75rem;
    }

    .member-overlay .member-description {
        font-size: 0.7rem;
    }

    .team-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .team-prev-btn {
        left: 5px;
    }

    .team-next-btn {
        right: 5px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    /* Video Section Mobile */
    .video-container {
        padding: 0 15px;
        gap: 25px;
        align-items: stretch;
    }

    .video-description {
        padding: 25px 15px;
        height: auto;
        justify-content: flex-start;
    }

    .video-description h3 {
        font-size: 1.3rem;
    }

    .video-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.timeline-item,
.gallery-item,
.team-member {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Fix - Garantir que todas as seções sejam visíveis no mobile */
@media (max-width: 768px) {
    .teams-section,
    .learnings-section,
    .participacoes-section,
    .share-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        padding: 60px 0 !important;
    }
    
    .team-category {
        margin-bottom: 50px !important;
    }
    
    .team-category-title {
        font-size: 1.4rem !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    
    .team-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
    
    .team-member {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .member-photo {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 15px !important;
    }
    
    .member-name {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .member-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .learnings-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding: 0 15px !important;
    }
    
    .learning-item {
        padding: 25px 20px !important;
        margin-bottom: 15px !important;
    }
    
    .learning-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 15px !important;
    }
    
    .learning-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .learning-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .share-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 20px !important;
    }
    
    .share-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 15px 20px !important;
    }
    
    .challenges-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding: 0 15px !important;
    }
    
    .challenge-item {
        padding: 25px 20px !important;
        margin-bottom: 15px !important;
    }
    
    .challenge-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 15px !important;
    }
    
    .challenge-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .challenge-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .solution {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .teams-section,
    .learnings-section,
    .participacoes-section,
    .share-section {
        padding: 80px 0 !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        padding: 0 20px !important;
    }
    
    .learnings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        margin-top: 50px !important;
        padding: 0 20px !important;
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        margin-top: 50px !important;
        padding: 0 20px !important;
    }
    
    .share-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        justify-content: center !important;
    }
    
    .share-btn {
        width: auto !important;
        min-width: 150px !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .teams-section,
    .learnings-section,
    .participacoes-section,
    .share-section {
        padding: 40px 0 !important;
    }
    
    .team-category {
        margin-bottom: 30px !important;
    }
    
    .team-category-title {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
    }
    
    .team-member {
        padding: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .member-photo {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 10px !important;
    }
    
    .member-name {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .member-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .learning-item {
        padding: 20px 15px !important;
        margin-bottom: 10px !important;
    }
    
    .learning-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 12px !important;
    }
    
    .learning-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .learning-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .challenge-item {
        padding: 20px 15px !important;
        margin-bottom: 10px !important;
    }
    
    .challenge-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 12px !important;
    }
    
    .challenge-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .challenge-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .solution {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    
    .share-btn {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
}

/* Stats section responsive improvements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding: 0 15px !important;
    }
    
    .stat-item {
        padding: 25px 15px !important;
    }
    
    .stat-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 15px !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .stat-label {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 30px !important;
        padding: 0 10px !important;
    }
    
    .stat-item {
        padding: 20px 15px !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 12px !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
        margin-bottom: 6px !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
}

/* Testimonials responsive improvements */
@media (max-width: 768px) {
    .testimonials-carousel {
        margin: 40px 15px 0 !important;
    }
    
    .testimonial {
        padding: 40px 25px !important;
    }
    
    .testimonial-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
    }
    
    .testimonial-author {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    
    .author-photo {
        width: 70px !important;
        height: 70px !important;
    }
    
    .author-info h4 {
        font-size: 1.1rem !important;
        margin-bottom: 4px !important;
    }
    
    .author-info p {
        font-size: 0.9rem !important;
    }
    
    .testimonial-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .prev-testimonial {
        left: 10px !important;
    }
    
    .next-testimonial {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .testimonial {
        padding: 30px 20px !important;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
    }
    
    .author-photo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .author-info h4 {
        font-size: 1rem !important;
    }
    
    .author-info p {
        font-size: 0.85rem !important;
    }
    
    .testimonial-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
    
    .prev-testimonial {
        left: 5px !important;
    }
    
    .next-testimonial {
        right: 5px !important;
    }
}
