:root {
    --primary: #0c2d8b;
    --secondary: #f90053;
    --accent: #38a974;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.laranja {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse !important;
    }

    .about-text {
        margin-top: 20px;
    }

    .about-image {
        max-width: 90%;
        margin: 0 auto;
    }
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #0c2d8b;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Header */
header {
    background-color: #0c2d8b;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    height: 60px;
}

.logo img {
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--secondary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}


/* Contact */
.contact {
    background: linear-gradient(rgba(12, 43, 90, 0.9), rgba(12, 43, 90, 0.9)),
        url('../carrossel/1.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact h2::after {
    background: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-logo {
    height: 104px;
    margin-bottom: 0px;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}


/* Timeline Modernizada */


/* Ajustes para os cards no mobile */
@media (max-width: 992px) {
    .timeline-item {
        padding-left: 70px;
        padding-right: 25px;
        padding-bottom: 30px;
        /* Espaçamento reduzido */
    }

    .timeline-content {
        min-height: 240px;
        /* Altura mínima para uniformidade */
        padding: 25px;
        /* Mais espaço interno */
    }

    .timeline-content h3 {
        font-size: 1.3rem;
        /* Título maior */
        margin-bottom: 15px;
        /* Mais espaçamento */
    }

    .timeline-content p {
        font-size: 1.1rem;
        /* Texto maior */
        line-height: 1.7;
        /* Melhor legibilidade */
    }

    .timeline-year {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
        /* Ano maior */
        left: -35px !important;
        /* Posicionamento ajustado */
        top: 25px;
        /* Alinhamento vertical */
    }


    .social-links a {
        width: 33px;
        height: 33px;
    }

}

@media (max-width: 768px) {
    .timeline-content {
        min-height: 260px;
        /* Cards um pouco maiores */
        padding: 30px;
        /* Mais espaço interno */
    }

    .timeline-content h3 {
        font-size: 1.4rem;
        /* Título maior */
    }

    .timeline-content p {
        font-size: 1.15rem;
        /* Texto maior */
    }

    .timeline-year {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
        /* Ano maior */
    }


}

@media (max-width: 576px) {
    .timeline-content {
        min-height: 280px;
        /* Cards ainda maiores */
        padding: 25px 20px;
        /* Espaçamento interno */
    }

    .timeline-content h3 {
        font-size: 1.35rem;
        /* Tamanho ajustado */
    }

    .timeline-content p {
        font-size: 1.1rem;
        /* Tamanho ajustado */
    }

    .timeline-year {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
        /* Tamanho ajustado */
    }

    .timeline-item {
        padding-left: 60px;
    }
}

/* Melhorias gerais nos cards */
.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribui o conteúdo */
}

.timeline-content p {
    flex-grow: 1;
    /* Ocupa espaço disponível */
}


.timeline-item.primeiro .timeline-content::after {
    top: 0;
    /* faz a bolinha colar no topo do card */
}

.timeline::after {
    top: 60px;
    /* Começa a linha a partir da primeira bolinha */
}


#historico {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-top: 30px;
}

#historico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.1;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #555;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Linha vertical - z-index mais baixo */
.timeline::after {
    content: '';
    position: absolute;
    width: 8px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 60px;
    bottom: 0;
    left: 50%;
    margin-left: -4px;
    z-index: 1;
    /* Ajustado para ficar atrás das bolinhas */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(12, 45, 139, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 0, 83, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 0, 83, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 0, 83, 0);
    }
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    /* Garante que os itens fiquem acima da linha */
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 80px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 80px;
}

.timeline-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(12, 45, 139, 0.05);
    overflow: hidden;
    z-index: 3;
    /* Garante que o conteúdo fique acima de tudo */
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    z-index: 1;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.timeline-content h3 i {
    margin-right: 12px;
    color: var(--secondary);
    font-size: 1.8rem;
}

.timeline-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    top: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    /* Valor mais alto - acima de tudo */
    box-shadow: 0 5px 20px rgba(12, 45, 139, 0.3);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.timeline-year:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(12, 45, 139, 0.4);
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -40px;
}


.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-item.primeiro {
    padding-top: 0;
}

.timeline-end {
    position: relative;
    text-align: center;
    padding: 60px 0 30px;
    max-width: 700px;
    margin: 0 auto;
    z-index: 3;
    /* Acima da linha */
}

.timeline-end h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.timeline-end p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.worldskills-logo {
    width: 180px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.scroll-indicator {
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .timeline::after {
        left: -1px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        padding-bottom: 50px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }


    .timeline-year {
        left: 0 !important;
        top: 15px;
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: -35px;
        right: auto;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }
}


@media (max-width: 768px) {
    .timeline-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        /* Garante que ocupe toda altura */
    }
}


@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 25px !important;
    }


    .timeline-year {
        left: -46px !important;
        right: auto !important;
        margin-top: -6px !important;
    }

    /* Remove alinhamentos alternados */
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0 !important;
        padding-left: 9px !important;
        padding-right: 0px !important;
    }
}


@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .timeline-item {
        padding-left: 60px;
        padding-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .timeline-content::before {
        width: 4px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        border-width: 3px;
    }

    .timeline-item {
        padding-left: 50px;
    }


}

@media only screen and (min-width: 600px) {

    /* Bolinhas com z-index mais alto que a linha */
    .timeline-item::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border: 4px solid white;
        top: 35px;
        border-radius: 50%;
        z-index: 4;
        /* Acima da linha e do conteúdo */
        box-shadow: 0 0 0 4px rgba(249, 0, 83, 0.2);
    }

}


/*desktop*/
@media only screen and (min-width: 600px) {
    .carrossel-top {
        margin-top: -10px;
    }
}

/*Mobile*/
@media only screen and (max-width: 601px) {
    .carrossel-top {
        margin-top: 40px;
    }
}

/* Carrossel Programação */
.carousel-fade .carousel-item {
    transition: opacity 0.9s ease-in-out;
}

.carousel-wrapper {
    max-width: 920px;
    margin: 23px auto 0;
    padding: 40px 20px;
    /* background: #f8f9fa; */
    border-radius: 12px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.multi-carousel {
    overflow: hidden;
}

.multi-carousel-inner {
    --gap: 10px;
    --visible: 5;
    display: flex;
    gap: var(--gap);
    transition: transform 0.5s ease;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.multi-carousel-inner.dragging {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .multi-carousel-inner {
        --visible: 2;
    }
}

@media (max-width: 576px) {
    .multi-carousel-inner {
        --visible: 1;
    }
}

.multi-carousel-item {
    flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
    box-sizing: border-box;
}

.carousel-image {
    width: 100%;
    height: 100%;
    max-height: 353px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    padding: 22px;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .carousel-image {
        max-height: 450px;
    }

    .card {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    #programacaoCard .row>* {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.carousel-controls {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dots .dot.active {
    width: 24px;
    border-radius: 12px;
    background: #0c2d8b;
}

/* Vídeos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#loadMoreBtn {
    background-color: #f07e00;
    /* Exemplo cor laranja */
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

#loadMoreBtn:hover {
    background-color: #d36b00;
}






.video-gradient-border {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3px; /* Espaço da “borda” */
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  max-width: 850px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.video-gradient-border:hover {
  transform: scale(1.02);
}

.video-destaque-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-destaque-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}








a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

.pillar-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}


.ocupacao-card {
    max-height: 320px;
    padding: 1rem;
}

.ocupacao-card img {
    max-height: 60px;
}

.nav-tabs .nav-link {
    font-weight: 500;
    color: #333;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #f07e00;
    /* ou sua cor 'laranja' */
    border-color: transparent;
}


.margem-negativa {
    margin-top: -50px;
}

.espacamento-img {
    display: block;
    margin: 0 auto 2rem auto;
    /* centraliza e adiciona espaçamento inferior */
}


#pagination .btn.btn-primary {
    font-weight: bold;
    border-width: 1px;
    box-shadow: 0 0 0 0.1rem #0c2d8b;
}


.news-grid {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.5s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.nav-tabs {
    border-bottom: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    color: #333;
    position: relative;
    background-color: rgba(0, 0, 0, 0.05);
    /* tom de botão leve */
    font-weight: 500;
    margin: 5px 10px;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(36, 80, 189, 0.1);
}

.nav-tabs .nav-link:hover::after {
    background-color: #2450bd;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #2450bd;
}

.nav-tabs .nav-link.active::after {
    background-color: #2450bd;
}

/* 🔥 Mobile: abas uma abaixo da outra */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }

    .nav-tabs .nav-link {
        width: 90%;
        text-align: center;
    }
}


#historico .timeline-content h3 {
    font-size: 1.1rem;
    /* Tamanho menor que o padrão h3 */
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    /* Um cinza mais suave para contraste */
}


#historico .timeline-year {
    font-weight: 700;
    font-size: 1rem;
    color: #f7fdfe;
    margin-bottom: 0.5rem;
}

.timeline-item.primeiro .timeline-content::after {
    top: 0;
    /* faz a bolinha colar no topo do card */
    z-index: 1;
}

.timeline::after {
    top: 60px;
    /* Começa a linha a partir da primeira bolinha */
    z-index: 1;
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column !important;
    }

    .about-text {
        order: 2;
        margin-top: 20px;
    }

    .about-image {
        order: 1;
    }
}


/* Sobre Section */
#sobre {
    background-color: #f900530f;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.representantes-container {
    background: linear-gradient(135deg, rgba(12, 45, 139, 0.05) 0%, rgba(249, 0, 83, 0.05) 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.representante-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.representante-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.representante-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(249, 0, 83, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.representante-info {
    flex: 1;
}

.representante-info strong {
    display: block;
    color: var(--primary);
}

.representante-info em {
    color: var(--secondary);
    font-style: normal;
    font-weight: 500;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 20px;
    border: none;
    box-shadow: 0 5px 15px rgba(249, 0, 83, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(249, 0, 83, 0.4);
}

/* Responsividade */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        max-width: 80%;
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    #sobre {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .representante-card {
        flex-direction: column;
        text-align: center;
    }

    .representante-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cta-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-image {
        max-width: 100%;
    }
}


/* Container principal da paginação */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

/* Wrapper com scroll horizontal */
.pagination-wrapper {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ff6a00 #f1f1f1;
}

/* Personalização da scrollbar */
.pagination-wrapper::-webkit-scrollbar {
    height: 6px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background-color: #ff6a00;
    border-radius: 10px;
}

/* Botões de paginação */
.pagination-buttons {
    display: flex;
    gap: 6px;
    padding: 5px 10px;
    flex-wrap: nowrap;
}

.pagination-buttons button {
    min-width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
}

.pagination-buttons button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.pagination-buttons button.active {
    background-color: #ff6a00;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 106, 0, 0.3);
}

.pagination-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Indicador de página para mobile */
.mobile-indicator {
    display: none;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .pagination-buttons {
        gap: 4px;
    }

    .pagination-buttons button {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 6px;
    }

    .pagination-buttons button:first-child,
    .pagination-buttons button:last-child {
        min-width: auto;
        padding: 0 12px;
    }

    .mobile-indicator {
        display: block;
    }
}

@media (max-width: 480px) {
    .pagination-buttons button {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .pagination-buttons button:first-child,
    .pagination-buttons button:last-child {
        padding: 0 10px;
        font-size: 12px;
    }

    .pagination-buttons button:nth-child(2),
    .pagination-buttons button:nth-last-child(2) {
        display: none;
    }
}

.observacao-importante {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
}
