/* TIHASE PESA – HOONEST | ainult infoplokkide kujundus.
   Lehe hero ja H1 kasutavad olemasoleva teema ühiseid stiile. */
#hoonest p{
	max-width:650px;
}
.page-template-page-hoonest .hoonest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 2.5%;
    margin: clamp(50px, 6vw, 90px) 0 0;
    padding: 0;
}
.page-template-page-hoonest .hoonest-grid-item {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    margin: 0;
    padding: 25px 15%;
    /* border-bottom: 1px solid #dedede; */
    border: solid 2px black;
    border-radius: 30px;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.page-template-page-hoonest .hoonest-grid-content {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.page-template-page-hoonest .hoonest-grid-content h2 {
    margin: 0 0 12px;
    padding: 0;
    color: #171717;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.page-template-page-hoonest .hoonest-grid-content p {
    margin: 0;
    padding: 0;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    line-height: 135%;
}

.page-template-page-hoonest .hoonest-grid-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: auto;
    background: #ffd521;
    border-radius: 10px;
}

.page-template-page-hoonest .hoonest-grid-icon img {
    display: block;
    width: 100%
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .page-template-page-hoonest .hoonest-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        margin-top: 45px;
    }

    .page-template-page-hoonest .hoonest-grid-item {
        gap: 16px;
       
    }

    .page-template-page-hoonest .hoonest-grid-content h2 {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .page-template-page-hoonest .hoonest-grid-content p {
        font-size: 15px;
    }

    /*.page-template-page-hoonest .hoonest-grid-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .page-template-page-hoonest .hoonest-grid-icon img {
        width: 24px;
        height: 24px;
    }*/
}
