
/* Kasvutaival – Inter koko sivustolle */

/* Lataa Inter-fontti */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Sivuston tekstit */
body,
p,
li,
a,
h1, h2, h3, h4, h5, h6,
button,
input,
textarea,
select,
label,
blockquote,
td,
th {
    font-family: 'Inter', sans-serif !important;
}

/* Leipätekstit */
body,
p,
li {
    font-weight: 400;
}

/* Otsikot */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Valikot */
.navbar-nav a,
.navbar-custom a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
}

/* Painikkeet */
button,
input[type="submit"],
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
}




/* ==========================================
   KASVUTAIVAL – PALVELUKORTIT
   ========================================== */

/* Korttien rivi */
.home .portfolio-section > .container > .row:last-of-type {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch !important;
}

/* Korttien sarakkeet */
.home .portfolio-section .port1,
.home .portfolio-section .port2,
.home .portfolio-section .port3 {
    display: flex !important;
    flex-direction: column;
    float: none !important;
    margin-bottom: 24px;
}

/* Kortit samankorkuisiksi */
.home .portfolio-section .port1 > article.post,
.home .portfolio-section .port2 > article.post,
.home .portfolio-section .port3 > article.post {
    display: block !important;
    flex: 1 1 auto;
    width: 100%;
    height: auto !important;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

/* Kuvan säiliö – kiinteä korkeus */
.home .portfolio-section .post-thumbnail {
    display: block !important;
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    overflow: hidden;
    flex: none !important;
}

/* Kaikki kuvat samankokoisiksi */
.home .portfolio-section .post-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center;
}

/* Otsikot heti kuvan alle */
.home .portfolio-section .entry-header {
    display: block !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.home .portfolio-section .entry-title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Leipätekstit otsikoiden alle */
.home .portfolio-section .entry-content {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* Mobiili */
@media (max-width: 767px) {
    .home .portfolio-section .port1,
    .home .portfolio-section .port2,
    .home .portfolio-section .port3 {
        width: 100%;
    }
}
