.modern-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    padding: 20px 15px;
    height: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

.modern-box:hover {
    border-color: #d0d0d0;
    overflow: hidden;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.06);
}

/* Efeito de ícone de fundo no hover */
.modern-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.modern-box:hover::after {
    opacity: 0.05;
    transform: translateY(-10px) scale(1.08) rotate(-8deg);
    filter: blur(0.5px) brightness(1.15);
}

/* Ícones específicos para cada box no hover */
.box-noticias::after {
    content: '\e111'; /* glyphicon-comment */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-ouvidoria::after {
    content: '\2709'; /* glyphicon-envelope */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-produtos::after {
    content: '\e139'; /* glyphicon-briefcase */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-autweb::after {
    content: '\e164'; /* glyphicon-new-window */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-anexorn::after {
    content: '\e022'; /* glyphicon-file */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box-redecredenciada::after {
    content: '\e062'; /* glyphicon-map-marker */
    font-family: 'Glyphicons Halflings';
    font-size: 10vw;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modern-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-icon i {
    color: white;
    font-size: 20px;
    line-height: 1;
}

.modern-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 12px 0 8px 0;
    text-align: center;
    flex-shrink: 0;
}

.modern-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 12px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    color: #495057;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.modern-btn:focus {
    color: #495057;
    text-decoration: none;
}

.modern-btn.btn-sx {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    color: #495057;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Cores específicas para cada ícone */
.icon-noticias { background: #6c757d; }
.icon-ouvidoria { background: #6c757d; }
.icon-produtos { background: #6c757d; }
.icon-autweb { background: #6c757d; }
.icon-anexorn { background: #6c757d; }
.icon-redecredenciada { background: #6c757d; }

/* Espaçamento otimizado para Bootstrap */
.row {
    margin-left: -5px;
    margin-right: -5px;
}

/* Container flexbox */
.row {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha */
    margin: 0 -5px;
    width: 100%;
}

/* Garantir que as boxes ocupem todo o espaço */
.modern-box {
    width: 100%;
    box-sizing: border-box;
}

/* CSS puro - comportamento Bootstrap 4 */
.box-item {
    flex: 1;
    min-width: 0;
    padding: 0 5px;
    margin-bottom: 15px;
}

/* Mobile - 1 por linha */
@media (max-width: 767px) {
    .box-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
}

/* Tablet - 2 por linha */
@media (min-width: 768px) and (max-width: 991px) {
    .box-item {
        flex: 1;
        min-width: 0;
    }
}

/* Desktop - distribuição automática */
@media (min-width: 992px) {
    .box-item {
        flex: 1;
        min-width: 0;
    }
}

html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

.container {
    overflow: visible !important;
}

/* Seção Fale Conosco - Padrão dos boxes */
.contact-section {
    padding: 25px 0;
    margin: 20px 0;
    border-top: 1px solid #f1f2f3;
    border-bottom: 1px solid #f1f2f3;
    margin: 50px 0;
    padding: 50px 0;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-card {
    margin-bottom: 10px;
    padding: 0 15px;
    flex: 1;
    min-width: 0;
}

.contact-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 12px 12px 0 0;
}

.contact-card-inner:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(99, 102, 241, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Ícones específicos para cada card no hover */
.contact-card:nth-child(1) .contact-card-inner:hover::after {
    content: '\e182'; /* telefone */
    font-family: 'Glyphicons Halflings';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    font-size: 10vw;
    color: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}

.contact-card:nth-child(2) .contact-card-inner:hover::after {
    content: '\2709'; /* mail */
    font-family: 'Glyphicons Halflings';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    font-size: 10vw;
    color: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}

.contact-card:nth-child(3) .contact-card-inner:hover::after {
    content: '\e111'; /* comentário */
    font-family: 'Glyphicons Halflings';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    font-size: 10vw;
    color: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}

.contact-card:nth-child(4) .contact-card-inner:hover::after {
    content: '\e164'; /* nova janela */
    font-family: 'Glyphicons Halflings';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    font-size: 10vw;
    color: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}

/* Ícones removidos */

.contact-title {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-description {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-info {
    color: #374151;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-btn {
    background: #f1f3f4;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 5px 10px;
    color: #6b7280;
    font-weight: 400;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #4b5563;
    text-decoration: none;
}

/* Responsividade para a seção de contato */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .contact-row {
        flex-direction: column;
    }
    
    .contact-card {
        margin-bottom: 20px;
        flex: none;
    }
    
    .contact-card-inner {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    /* Ícones removidos */
    
    .contact-title {
        font-size: 13px;
    }
    
    .contact-description {
        font-size: 11px;
    }
    
    .contact-info {
        font-size: 13px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .contact-card:nth-child(1) .contact-card-inner:hover::after,
    .contact-card:nth-child(2) .contact-card-inner:hover::after,
    .contact-card:nth-child(3) .contact-card-inner:hover::after,
    .contact-card:nth-child(4) .contact-card-inner:hover::after {
        font-size: 8vw;
    }
}


/* Responsividade para mobile */
@media (max-width: 768px) {
    .modern-box {
        padding: 15px 10px;
        height: 260px;
    }
    
    .modern-icon {
        width: 50px;
        height: 50px;
    }
    
    .modern-icon i {
        font-size: 20px;
    }
    
    .modern-title {
        font-size: 13px;
    }
    
    .modern-description {
        font-size: 11px;
    }
    
    /* Ajustar ícone de hover para mobile */
    .modern-box::after {
        bottom: 0;
        right: 0;
        width: 50%;
        height: 50%;
        transform: translateY(15px);
    }
    
    /* Ajustar tamanho dos ícones específicos para mobile */
    .box-noticias::after,
    .box-ouvidoria::after,
    .box-produtos::after,
    .box-autweb::after,
    .box-anexorn::after,
    .box-redecredenciada::after {
        font-size: 8vw;
    }
}
