/* ===== TIME ESTIMATE SIVU ===== */

.timeest-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 80px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.timeest-header {
    display: inline-block;
    background: var(--accent);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 40px) clamp(25px, 4vw, 50px);
    align-self: flex-start;
    outline: 3px solid #8ab090;
    outline-offset: 8px;
}

.timeest-title {
    font-family: "Lexend Giga", sans-serif;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.9;
    color: #4a6a4a;
    margin: 0;
    letter-spacing: 2px;
}

.timeest-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.timeest-note {
    flex: 0 0 260px;
    background: #f5ede6;
    border-radius: 16px;
    padding: clamp(20px, 3vw, 35px);
    outline: 2px solid #d4b8a8;
    outline-offset: 6px;
}

.timeest-note p {
    font-family: "Abhaya Libre", serif;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: #6f5a4a;
    text-align: center;
    margin: 0;
}

.timeest-main {
    flex: 1;
    background: #e8f0e4;
    border-radius: 20px;
    padding: clamp(25px, 4vw, 50px);
}

.timeest-main p {
    font-family: "Abhaya Libre", serif;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    color: #4a5a46;
    margin: 0 0 var(--spacing-m) 0;
}

.timeest-main p:last-child {
    margin-bottom: 0;
}

.timeest-main strong {
    color: #3a4a36;
}

.timeest-footer {
    margin-top: var(--spacing-l);
}

.back-link {
    font-family: "Abhaya Libre", serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--heading);
    text-decoration: none;
    letter-spacing: 1px;
}

.back-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .timeest-layout {
        padding: 20px;
        min-height: auto;
        gap: var(--spacing-m);
    }

    .timeest-header {
        align-self: stretch; /* ← koko leveys mobiilissa */
        text-align: center;
    }

    .timeest-content {
        flex-direction: column;
    }

    .timeest-note {
        flex: none;
    }

    .timeest-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .timeest-footer {
        text-align: left;
    }
}

@media (min-width: 2000px) {
    .timeest-layout {
        max-width: 2000px;
    }

    .timeest-title {
        font-size: clamp(6rem, 7vw, 9rem);
    }

    .timeest-main p,
    .timeest-note p {
        font-size: clamp(1.2rem, 1.4vw, 1.6rem);
    }
}
