/* Page specific styles */
.hero-overlay:after {
    background-color: rgba(0, 0, 0, 0.3);
}

.comparisonSection {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 0 50px 0;
}

.comparisonImage {
    width: 100%;
    height: 0;
}

.comparisonImage img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container while maintaining its aspect ratio */
}

.afterImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
}

.afterImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container while maintaining its aspect ratio */
    transform: translateX(-100%);
}

.model-info-text {
    margin: 50px 10% 100px 10%;
    font-size: 20px;
    line-height: 32px;
    font-weight: 200;
    color: #ffffff;
    text-align: left;
}

p.model-info-text span.highlight-text {
    font-weight: 600;
}

.model-info-text a {
    color: var(--mitsubishi-red);
    text-decoration: underline;
    font-weight: 600;
}

/* Aspect ratios */
@media (max-width: 767px) {
    .comparisonSection {
        margin: 0 0 50px 0;
        padding-bottom: 100%;
        /* Maintain 1:1 aspect ratio on mobile */
    }
}

@media (min-width: 768px) {
    .comparisonSection {
        margin: 0 0 50px 0;
        padding-bottom: 56.25%;
        /* Maintain 16:9 aspect ratio on desktop */
    }

    .model-info-text {
        margin: 100px 10% 100px 10%;
        font-size: 45px;
        line-height: normal;
    }
}

.news-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 150px 25px;
    background-color: #ffffff;
    color: #000000;
}

.news-section h2 {
    margin: 0 0 25px 0;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}

.news-section p {
    margin: 0;
    max-width: 700px;
    font-weight: 400;
    text-align: center;
}

/* Video iframe */
.video-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #000000;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*.image-container:first-child:not(.no-padding) {
    padding: 10px 10px 10px 0;
}

.image-container:last-child:not(.no-padding) {
    padding: 10px 0 10px 10px;
}*/

.image-container .bg-image {
    max-height: 100dvh;
}

.no-padding {
    padding: 0;
}

.model-section-separator {
    padding: 150px 0;
    text-align: center;
    background-color: #404040;
}

.model-section-separator .title {
    margin: 0 0 25px 0;
    padding: 0 5%;
    font-size: 25px;
    line-height: 30px;
    font-weight: 700;
    color: #ffffff;
}

.model-section-separator button,
.model-section-separator a {
    margin: 10px 3px 0 0 !important;
}

.model-section-separator button:last-child,
.model-section-separator a:last-child {
    margin: 10px 0 0 0 !important;
}



















.stats-section-container {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 100px;
    /* Ajuste do gap horizontal para replicar o espaçamento */
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    /* Pequeno padding para as extremidades */
    box-sizing: border-box;
}

.stat-item {
    position: relative;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
}

/* Remove a borda dos dois últimos itens */
.stat-item:nth-last-child(-n+2) {
    /* Seleciona os últimos 2 elementos */
    border-bottom: none;
}

/* Estilos para o bloco que contém o número e a unidade */
.stat-value-container {
    display: flex;
    align-items: flex-end;
    /* Alinha o conteúdo à base por defeito */
    line-height: 1;
    /* Garante alinhamento preciso */
    margin-bottom: 10px;
    /* Espaço entre o valor e a descrição */
}

.stat-number-wrapper {
    display: flex;
    align-items: flex-end;
    /* Alinha o número e prefixo pela base */
}

/* Alinhamento à esquerda por defeito para os itens da coluna 1 */
.stat-item:nth-child(odd) .stat-value-container {
    justify-content: flex-start;
}

/* Alinhamento à direita para os itens da coluna 2 */
.stat-item:nth-child(even) .stat-value-container {
   /* justify-content: flex-end;*/
}

.stat-number {
    font-size: 70px;
        font-weight: 700;
        line-height: normal;
        line-height: 70px;
        white-space: nowrap;
    }

.stat-unit {
    line-height: normal;
    font-size: 2.5rem;
    /* Tamanho da unidade */
    font-weight: 300;
    /* Mais leve */
    color: #ccc;
    margin-left: 10px;
    /* Espaçamento entre o número e a unidade */
    position: relative;
    /* Ajustes de posição específicos para cada unidade para replicar a imagem */
}

.stat-number small {
    font-size: 2.5rem;
    /* Tamanho mais pequeno, como o das unidades */
    font-weight: 300;
    /* Peso mais leve */
    color: #ccc;
    margin: 0 0.3em;
    /* Espaçamento lateral */
    vertical-align: middle;
}

/* Para L */


.stat-prefix {
    font-size: 5rem;
    font-weight: 700;
    margin-right: 10px;
    /* Espaço entre o prefixo e o número animado */
    white-space: nowrap;
}

/* Ajustes para o prefixo "+" e "de +" para ficarem alinhados */
.stat-prefix.plus {
    /* Sem margin-right para "+" já que o número animado é imediatamente a seguir */
    margin-right: 0;
}

.stat-prefix.plus-de {
    font-size: 5rem;
    /* Manter o mesmo tamanho para "+ de " */
    font-weight: 700;
    margin-right: 10px;
}

.stat-description {
    font-size: 0.9rem;
    /* Tamanho da fonte para a descrição */
    font-weight: 400;
    /* Peso normal */
    color: #ccc;
    line-height: 1.4;
}

/* MEDIA QUERIES para Responsividade */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        /* Uma coluna em ecrãs pequenos */
        gap: 50px;
        padding: 0;
        /* Remover padding em mobile se necessário */
    }

    .stat-item {
        border-bottom: 1px solid #333;
        /* Adiciona borda a todos em mobile */
    }

    .stat-item:nth-last-child(1) {
        /* Remove apenas no último */
        border-bottom: none;
    }

    /* Em mobile, alinhamos tudo à esquerda para melhor leitura */
    .stat-item:nth-child(odd) .stat-value-container,
    .stat-item:nth-child(even) .stat-value-container {
        justify-content: flex-start;
    }
}