:root {
    --primary-color: #2c3e50; /* Azul quase preto */
    --secondary-color: #0056b3; /* Azul médio */
    --third-color: #024776; /* Azul claro */
    --accent-color: #ff6b00; /* Laranja do logo de 40 anos */
    --light-color: #e0eaed; /* Azul bem clarinho */
    --light-blue: #92d8ed;
    --dark-color: #2c3e50; /* Azul quase preto */
}

/* Elementos base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Tipografia */
h2, h3, h4, h5, h6, p{
    /*color: var(--dark-color);*/
    color: #024776 !important;
}
h1, a{
  color: var(--dark-color);  
}

/* Componentes de navegação */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 77px; /* altura fixa da navbar */
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    width: 90px;         /* aumenta a largura do logo */
    height: 100%;        /* ocupa toda a altura da navbar */
    max-height: 77px;    /* nunca passa da altura da navbar */
    object-fit: contain; /* mantém proporção */
}

/* Navbar grupo logo + parceiros */
.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.img-parceiros-navbar {
    height: 45px;
    border-radius: 8px;
}

.btn-parceiros-navbar {
    padding: 4px 10px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    min-height: unset;
    background: #92d8ed !important;
    color: #024776 !important;
    border: 1.5px solid #0076d6 !important;
    box-shadow: none;
}

/* Botões */

/* Botões com mais destaque visual */
.btn-azul, .btn-laranja, .btn-video, .btn-outline-laranja {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 18px !important;
    box-shadow: 0 4px 18px 0 rgba(0,86,179,0.10), 0 1.5px 0 #fff inset;
    padding: 18px 24px;
    min-height: 64px;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-azul img.parceiros-img {
    width: 50px;   /* ajuste o tamanho */
    height: auto;  /* mantém proporção */
}

.btn-laranja {
    background: linear-gradient(100deg, #ff8800 80%, #ffb366 100%);
    color: #024776 !important;
    border: 2px solid #ff6b00;
}

.btn-laranja:hover, .btn-laranja:focus {
    background: linear-gradient(100deg, #ff6b00 80%, #ff8800 100%);
    color: #fff !important;
    box-shadow: 0 8px 32px 0 #ff6b0088;
    transform: scale(1.03) translateY(-2px);
}

.btn-video {
    background: #ff6b00;
    color: #024776 !important;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: all 0.3s ease;
    white-space: normal;
}

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

.btn-outline-laranja {
    background: #fff;
    color: #0056b3 !important;
    border: 2px solid #ff6b00 !important;
    box-shadow: 0 4px 18px 0 rgba(255,107,0,0.10), 0 1.5px 0 #fff inset;
}

.btn-outline-laranja:hover, .btn-outline-laranja:focus {
    background: linear-gradient(100deg, #ff8800 80%, #ffb366 100%);
    color: #fff !important;
    box-shadow: 0 8px 32px 0 #ff6b0088;
    transform: scale(1.03) translateY(-2px);
}

.btn-azul {
    background: linear-gradient(100deg, #5bc6ff 60%, #0076d6 100%);
    color: #024776 !important;
    border: 2px solid #0076d6;
}

.btn-azul:hover, .btn-azul:focus {
    background: linear-gradient(100deg, #0076d6 60%, #5bc6ff 100%);
    color: #fff !important;
    box-shadow: 0 8px 32px 0 #0076d688;
    transform: scale(1.03) translateY(-2px);
}

/* Remove h5 de dentro dos botões para evitar parecer caixa */
.btn-azul h5, .btn-laranja h5, .btn-outline-laranja h5{
    margin: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    display: inline;
}

/*
.btn-outline-azul {
    --bs-btn-color: #3498db;
    --bs-btn-border-color: #3498db;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3498db;
    --bs-btn-hover-border-color: #3498db;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3498db;
    --bs-btn-active-border-color: #3498db;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3498db;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3498db;
    --bs-gradient: none;
}*/

/* Seções principais */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Componentes de conteúdo */
.feature-box {
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.moldura-laranja {
    border: 4px solid #ff6b00;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(255,107,0,0.08);
    background: #fff;
    padding: 24px 18px;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

/* Carrossel */
.carousel-indicators {
    bottom: 5%;
    color: white;
    transition: black 0.3s ease;
}

.carousel-inner {
    color: #007bff;
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background-color: rgba(0,0,0,0.75);
    border-radius: 10px;
    padding: 20px;
    bottom: 30%;
}

/* Barras laterais */
.barra-lateral {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    z-index: 10;
    width: auto;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.barra-lateral a {
    min-width: 300px;
    text-align: left;
}

.barra-lateral.horizontal {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.barra-lateral.horizontal a {
    min-width: 380px;
    width: auto;
    text-align: center;
    margin-bottom: 0;
}

.logos-ipappi {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.logo-img {
    height: 60px;
}

.selo-mec {
    max-width: 170px;
}

/* Containers especiais */
.container-video {
    position: relative;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 152, 219, 0.8) 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e74c3c;
}

.container-com-botoes {
    position: relative;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 152, 219, 0.8) 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 900px;
    z-index: 1;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-right: 5px solid #e74c3c;
}



/* Rodapé */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}
.footer,
.footer p,
.footer a,
.footer h5 {
    color: white !important;
}

/* Para os ícones (caso precise) */
.footer .fab {
    color: white !important;
}

/* Modal */
.modal-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal-confirm .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .modal-header {
    border-bottom: none;
    position: relative;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 26px;
    margin: 30px 0 -15px;
}

.modal-confirm .modal-body {
    color: #999;
}

.modal-confirm .modal-footer {
    border: none;
    text-align: center;
    border-radius: 5px;
    font-size: 13px;
}

.modal-confirm .btn {
    color: #fff;
    border-radius: 4px;
    background: #60c7c1;
    text-decoration: none;
    transition: all 0.4s;
    line-height: normal;
    border: none;
}

.modal-confirm .btn:hover, .modal-confirm .btn:focus {
    background: #45aba5;
    outline: none;
}

/* Seção Sobre - Versão Acessível */
.about-section {
    background: linear-gradient(135deg, #1a3a6a 0%, #2c4a8a 100%);
    padding: 4rem 0;
    position: relative;
    color: #fff;
}

.about-title-box {
    background: #2c3e50;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
    color: #fff;
    letter-spacing: 0.5px;
}

.about-list {
    padding-left: 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
}

.about-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #e74c3c;
    min-width: 30px;
    margin-top: 3px;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #2c3e50;
    font-weight: 500;
}

.about-text {
    font-weight: 700;
}

.about-text strong {
    color: #e74c3c;
    font-weight: 600;
}

/* Utilitários */
#submitSpinner, .spinner-border {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
}

.py-5, .py-5-1, .py-5-2, .py-5-3 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.bg-white, .feature-box, .card {
    background-color: var(--light-color) !important;
}

* {
    transition: all 0.3s ease-in-out;
}

a:hover .hover-effect {
    color: #007bff;
    text-decoration: underline;
}


/* Seção Course - ajustes para evitar sobreposição */
.course-section {
    position: relative;
    z-index: 2; /* Valor maior que container-com-botoes */
    background-color: white;
    padding: 60px 0;
    margin: 40px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .container-com-botoes {
        margin: 20px 0;
        padding: 20px;
    }
    
    .course-section {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .container-video {
        padding: 20px;
    }

    .barra-lateral.horizontal a {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: block;
        text-align: center;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .barra-lateral,
    .barra-lateral-video {
        position: relative;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .barra-lateral a,
    .barra-lateral-video a {
        min-width: unset;
        width: 90%;
    }

    .barra-lateral a {
        text-align: left;
    }

    .barra-lateral-video a {
        text-align: right;
    }

    .logos-ipappi {
        flex-direction: column;
        align-items: center;
    }

    .logo-img {
        height: 80px;
    }

    /* Sobre - mobile */
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .about-list li {
        padding: 1rem;
    }
    
}

.container-botoes-flex {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .container-botoes-flex {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 32px;
    }
    .container-video,
    .container-com-botoes {
        margin-bottom: 0 !important;
    }
    .container-video,
    .container-com-botoes {
        flex: 1 1 0;
        max-width: 50%;
    }
    .barra-lateral.horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .container-com-botoes {
        margin: 20px 0;
        padding: 20px;
    }
    .container-botoes-flex {
        flex-direction: column !important;
        gap: 20px;
    }
    .container-video,
    .container-com-botoes {
        max-width: 100%;
    }
    .barra-lateral.horizontal {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
}

/* Botões IPAPPI fixos na lateral direita em desktop */
@media (min-width: 1200px) {
    .container-com-botoes-lateral {
        position: fixed;
        top: 80px;
        right: -60px; /* Ajuste para quase sair da tela */
        z-index: 1001;
        width: 400px;
        max-width: 90vw;
        pointer-events: none; /* Para não bloquear clique no conteúdo abaixo */
    }
    .container-com-botoes-lateral .barra-lateral.horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.92) 100%);
        border-radius: 12px 0 0 12px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        padding: 24px 18px 18px 24px;
        pointer-events: auto; /* Permite clicar nos botões */
    }
    .container-com-botoes-lateral .barra-lateral.horizontal a {
        min-width: 220px;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    .container-com-botoes-lateral .logos-ipappi {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    
}

/* Esconde o bloco lateral em telas pequenas */
@media (max-width: 1199px) {
    .container-com-botoes-lateral {
        display: none !important;
    }
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    background: #0047bb; /* cor de fundo para as laterais */
}

#heroCarousel .carousel-item img {
    display: block;
    margin: 0 auto;
    max-height: 90vh; /* Garante que a imagem não ultrapasse a altura do carrossel */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    padding: 3%;
    background: transparent;
}

@media (max-width: 767px) {
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        max-height: 32vh !important; /* Limita altura em celulares */
        min-height: 180px;
    }
    #heroCarousel .carousel-item img {
        max-height: 30vh !important;
        min-height: 120px;
        padding: 0 !important;
    }
    .navbar-brand-group {
        gap: 20px;
    }
    .img-parceiros-navbar {
        height: 35px;
        margin-right: 0 !important;
    }
    .btn-parceiros-navbar {
        font-size: 0.65rem !important;
        padding: 2px !important;
        width: 50px;
        min-height: 50px;
        padding: 2px;
    }
    .btn-parceiros-navbar span {
        display: contents !important; 
    }
}

.accordion-button:not(.collapsed) {
  background-color: #f0f0f0;
}

.accordion .accordion .accordion-button {
  font-size: 0.95rem;
  padding-left: 2rem;
}

/* Layout local para a página de Curso de Formação: duas colunas sempre lado-a-lado (até em celulares) */
.photo-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}
.photo-slot {
  width: 100%;
  max-width: 360px;
  border: 1px dashed #d0d0d0;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
/* Garante que imagens dentro dos slots não se distorçam */
.photo-slot img,
.photo-slot .img-fluid {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}