/* css/index.css - CAROUSEL OTIMIZADO COM FALLBACKS */
:root {
    --primary-color: #002b80;
    --primary-dark: #001f5c;
    --primary-light: #1a4da6;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
}

/* ===== HERO SECTION COM SLIDES ===== */
.hero-slides {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-item {
    height: 500px;
    position: relative;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: var(--primary-color); /* Fallback color */
}

/* Fallback para imagens que não carregam */
.slide-background:not([style*="background-image"]),
.slide-background[style*="undefined"],
.slide-background[style*="null"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.slide-background:not([style*="background-image"])::after,
.slide-background[style*="undefined"]::after,
.slide-background[style*="null"]::after {
    content: "ASMG";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.3;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 43, 128, 0.85) 0%, rgba(0, 31, 92, 0.8) 100%);
    z-index: 2;
}

#heroCarousel {
    position: relative;
    z-index: 3;
    height: 100%;
}

.carousel-inner {
    height: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.hero-content {
    padding: 60px 0;
    color: var(--text-light);
    text-align: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.hero-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 650px;
    color: var(--text-light);
    opacity: 0.95;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background-color: var(--text-light);
    border: 2px solid var(--text-light);
    color: var(--primary-color);
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.hero-btn:hover:not(.disabled) {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.hero-btn.disabled {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.hero-btn.disabled:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    transform: none;
}

/* INDICADORES */
.carousel-indicators-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.carousel-indicators {
    position: relative;
    bottom: auto;
    margin: 0 !important;
    display: flex;
    gap: 12px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    background: transparent;
    margin: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--text-light);
    opacity: 1;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* CONTROLES DE NAVEGAÇÃO */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 5;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--text-light);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
    filter: invert(0.4);
}

/* ===== SEÇÃO CONHEÇA A ASMG ===== */
.asmg-intro {
    padding: 80px 0 50px;
}

.asmg-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 15px !important;
}

.asmg-location {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px !important;
    color: var(--text-secondary);
}

.asmg-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px !important;
}

.asmg-buttons {
    gap: 20px;
}

.btn-asmg {
    min-width: 200px;
    padding: 10px 25px;
    font-size: 1.1rem;
}

.asmg-image {
    max-height: 350px;
    width: auto;
    max-width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    object-fit: cover;
}

/* Placeholder para imagem que não carrega */
.image-placeholder {
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

/* Botões Primários */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 6px;
    padding: 13px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover:not(.disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 43, 128, 0.3);
    color: var(--text-light);
}

.btn-primary.disabled {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== SEÇÃO DO PRESIDENTE ===== */
.president-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.president-card {
    background: var(--bg-primary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.president-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 43, 128, 0.1);
    border-color: var(--primary-light);
}

.president-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.president-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

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

.president-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.president-role {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.president-name {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.president-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.president-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 25px 0;
}

.president-quote p {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Garantir que as colunas tenham altura igual */
.president-card .row {
    height: 100%;
    margin: 0;
}

.president-card .col-md-4,
.president-card .col-md-8 {
    padding: 0;
}

/* Placeholder personalizado para presidente */
.president-image-container .image-placeholder {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
}

.president-image-container .placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

/* Responsividade da Seção do Presidente */
@media (max-width: 992px) {
    .president-image-container {
        min-height: 300px;
        height: 300px;
    }
    
    .president-info {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .president-section {
        padding: 40px 0;
    }
    
    .president-image-container {
        min-height: 280px;
        height: 280px;
    }
    
    .president-info {
        padding: 25px 20px;
    }
    
    .president-name {
        font-size: 1.6rem;
    }
    
    .president-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .president-image-container {
        min-height: 250px;
        height: 250px;
    }
    
    .president-info {
        padding: 20px 15px;
    }
    
    .president-name {
        font-size: 1.4rem;
    }
    
    .president-role {
        font-size: 0.9rem;
    }
    
    .president-quote {
        padding-left: 15px;
        margin: 20px 0;
    }
    
    .president-quote p {
        font-size: 1rem;
    }
}

/* Correção para garantir altura igual em todos os dispositivos */
@media (min-width: 768px) {
    .president-card {
        min-height: 400px;
    }
}

@media (min-width: 992px) {
    .president-card {
        min-height: 450px;
    }
}

/* Cards de Valores */
.values-section {
    margin: 50px 0;
}

.value-card {
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    padding: 35px 25px !important;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 43, 128, 0.1);
    border-color: var(--primary-color);
}

.value-card i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.value-card:hover i {
    transform: scale(1.2);
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Cards de Destaques */
.highlights-section {
    margin: 60px 0 40px;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 2.3rem;
    position: relative;
    padding-bottom: 15px;
}

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

.highlight-card {
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    padding: 40px 30px !important;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 43, 128, 0.1);
    border-color: var(--primary-color);
}

.highlight-card i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.highlight-card:hover i {
    transform: scale(1.2);
}

.highlight-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.highlight-card .btn {
    margin-top: 15px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero-slides,
    .carousel-item,
    .hero-content {
        height: 450px;
    }
    
    .hero-content {
        padding: 50px 0;
    }
    
    .asmg-title {
        font-size: 2.2rem;
    }
    
    .asmg-image {
        max-height: 300px;
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-icon {
        font-size: 2.8rem;
        width: 80px;
        height: 80px;
    }
    
    .hero-btn {
        padding: 9px 26px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero-slides,
    .carousel-item,
    .hero-content {
        height: 400px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .hero-btn {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    
    .carousel-indicators-container {
        bottom: 15px;
    }
    
    .carousel-indicators {
        gap: 10px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .asmg-intro {
        padding: 60px 0 30px;
        text-align: center;
    }
    
    .asmg-title {
        font-size: 2rem;
    }
    
    .asmg-description {
        font-size: 1.2rem;
    }
    
    .asmg-buttons {
        justify-content: center;
    }
    
    .btn-asmg {
        min-width: 180px;
        padding: 12px 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .value-card, .highlight-card {
        margin-bottom: 20px;
        padding: 30px 20px !important;
    }
}

@media (max-width: 576px) {
    .hero-slides,
    .carousel-item,
    .hero-content {
        height: 380px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-btn {
        padding: 7px 22px;
        font-size: 0.85rem;
    }
    
    .hero-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
    
    .carousel-indicators-container {
        bottom: 10px;
    }
    
    .carousel-indicators {
        gap: 8px;
    }
    
    .carousel-indicators button {
        width: 7px;
        height: 7px;
    }
    
    .asmg-title {
        font-size: 1.8rem;
    }
    
    .asmg-location {
        font-size: 1.1rem;
    }
    
    .asmg-description {
        font-size: 1.1rem;
    }
    
    .asmg-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-asmg {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .value-card, .highlight-card {
        padding: 25px 15px !important;
    }
}

/* Garantir que todos os cards tenham mesma altura */
.h-100 {
    height: 100% !important;
}

.text-primary {
    color: var(--primary-color) !important;
}