.counter {
    position: relative;
    padding: 80px 0 0 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.counter-title h3 {
    font-family: 'Bodoni 72', serif;
    font-size: 3rem;  /* 50px */
    color: #fff;
    font-weight: normal;
    margin: 0 auto 10px;
    max-width: 520px;
    text-align: center;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    align-items: center;
    max-width: 960px;
    margin: 20px auto;
    padding: 40px 20px;
    gap: clamp(40px, 6vw, 80px);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.stat-item:not(.last-item)::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.number {
    font-family: 'Bodoni 72', serif;
    font-size: 3.125rem;  /* 50px */
    color: #fff;
    margin-bottom: 10px;
}

.label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;  /* 20px */
    color: #fff;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 4vw, 40px);
        padding: 20px;
    }

    .counter-title h3 {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    .stat-item {
        padding: 0;
    }

    .stat-item:not(.last-item)::after {
        display: none;
    }

    /* Add divider between odd columns */
    .stat-item:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        height: 30px;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.5);
        display: block;
    }

    .number {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .label {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .counter {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .counter-title h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .statistics {
        padding: 20px;
        gap: clamp(20px, 4vw, 40px);
    }

    .stat-item {
        padding: 0 10px;
    }

    .number {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .label {
        font-size: 0.75rem;
    }

    .stat-item:not(.last-item)::after {
        height: 30px;
        right: -20px;
    }
}

/* Additional tweaks for very short screens */
@media (max-height: 400px) and (orientation: landscape) {
    .counter {
        padding: 20px 0;
    }

    .counter-title h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .statistics {
        padding: 10px;
        gap: clamp(10px, 3vw, 30px);
    }

    .number {
        font-size: 1.5rem;
    }

    .label {
        font-size: 0.625rem;
    }
} 