/*
Theme Name: Jasmin Portfolio
Author: Jasmin Antensteiner
Description: Moderni ja responsiivinen portfoliosivusto.
Version: 1.0
Text Domain: jasmin-portfolio
*/

/* Sivuston perustyylit */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F5F2ED;
    color: #292E34;
    line-height: 1.7;
}

a {
    color: #526B53;
    text-decoration: none;
}

/* Ylätunniste */

header {
    background-color: #FFFFFF;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #DDDDDD;
}

header a {
    font-weight: bold;
    font-size: 20px;
}

/* Navigaatio */

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 16px;
    color: #292E34;
}

nav a:hover {
    color: #526B53;
}

/* Pääsisältö */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
    min-height: 60vh;
}

h1 {
    font-size: 42px;
    line-height: 1.2;
}

h2 {
    font-size: 30px;
}

p {
    font-size: 17px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Alatunniste */

footer {
    background-color: #292E34;
    color: #FFFFFF;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 8px 0;
    font-size: 14px;
}
.hero img {
    width: 100%;
    max-width: 380px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 30px;
    }

    .hero img {
        height: auto;
    }
}
/* Alasivujen ulkoasu */

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 30px;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 42px;
    color: #4d6952;
    margin-bottom: 30px;
}

.page-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Osaamiskortit */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #4d6952;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 35px;
}

.skill-card h2 {
    color: #4d6952;
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.skill-card ul {
    padding-left: 20px;
    line-height: 1.9;
}

.skill-card li {
    margin-bottom: 5px;
}

/* Osaamiskorttien mobiilinäkymä */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 25px;
    }
}

/* Projektikortit */

.projects-content .wp-block-group {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 18px;
    border-top: 4px solid #4d6952;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.projects-content .wp-block-group:hover {
    transform: translateY(-5px);
}

.projects-content h2 {
    color: #4d6952;
    font-size: 25px;
    margin-top: 10px;
}

.projects-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.projects-content p {
    line-height: 1.8;
}

@media (max-width: 768px) {
    .projects-content .wp-block-group {
        padding: 20px;
    }
}
/* Projektikuvien koko */

.projects-content .wp-block-gallery {
    max-width: 650px;
    margin: 25px auto;
}

.projects-content .wp-block-gallery img {
    max-height: 230px;
    object-fit: contain;
}

.projects-content .wp-block-group > .wp-block-image img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Projektien prototyypit */

.projects-content h3 {
    color: #4d6952;
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.projects-content .wp-block-gallery {
    max-width: 100%;
    margin: 20px auto;
    gap: 15px;
}

.projects-content .wp-block-gallery img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.projects-content .wp-block-columns {
    align-items: center;
    gap: 35px;
    margin-top: 25px;
}

.projects-content .wp-block-column img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.projects-content .wp-block-button__link {
    background-color: #4d6952;
    color: white;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.projects-content .wp-block-button__link:hover {
    background-color: #354d3a;
}

.projects-content .wp-block-group > .wp-block-buttons {
    justify-content: center;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .projects-content .wp-block-columns {
        gap: 20px;
    }

    .projects-content .wp-block-column img {
        max-width: 140px;
    }
}
/* Desktop-gallerian asettelun korjaus */

.projects-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    align-items: center;
}

.projects-content .wp-block-gallery figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}

.projects-content .wp-block-gallery img {
    width: 100%;
    height: auto;
}

.projects-content .wp-block-buttons {
    display: flex;
}

@media (max-width: 600px) {
    .projects-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }
}
.projects-content .wp-block-gallery.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 100%;
}

.projects-content .wp-block-gallery.columns-2 figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}

.projects-content .wp-block-gallery.columns-2 img {
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .projects-content .wp-block-gallery.columns-2 {
        grid-template-columns: 1fr;
    }
}
.projects-content .wp-block-gallery.columns-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.projects-content .wp-block-gallery.columns-2 > figure {
    width: 100% !important;
    max-width: 100% !important;
}

.projects-content .wp-block-gallery.columns-2 img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
}

@media (max-width: 768px) {
    .projects-content .wp-block-gallery.columns-2 {
        grid-template-columns: 1fr !important;
    }
}
.projects-content .wp-block-gallery.columns-default {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    gap: 20px;
}

.projects-content .wp-block-gallery.columns-default > figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .projects-content .wp-block-gallery.columns-default {
        grid-template-columns: 1fr !important;
    }
}
.projects-content .desktop-gallery-three {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px;
}

.projects-content .desktop-gallery-three figure {
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .projects-content .desktop-gallery-three {
        grid-template-columns: 1fr !important;
    }
}
.projects-content .wp-block-gallery.desktop-gallery-three {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
}

.projects-content .wp-block-gallery.desktop-gallery-three > figure.wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.projects-content .desktop-gallery-three img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .projects-content .wp-block-gallery.desktop-gallery-three {
        grid-template-columns: 1fr !important;
    }
}
/* YouTube-videoiden ulkoasu */

.projects-content .wp-block-embed-youtube {
    max-width: 800px;
    margin: 25px auto;
}

.projects-content .wp-block-embed-youtube iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
}
/* Projektiohjaajan palaute */
.projects-content blockquote {
    background-color: #eef3ed;
    border-left: 4px solid #4d6952;
    border-radius: 0 12px 12px 0;
    padding: 25px;
    margin: 20px 0;
}

.projects-content blockquote p {
    font-style: italic;
    margin-bottom: 15px;
}

.projects-content blockquote cite {
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #4d6952;
}

/* PROJEKTISIVUN UUSI RAKENNE */

.projects-intro {
    margin-bottom: 30px;
    color: #555;
}

/* Suodatuspainikkeet */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    background: #ffffff;
    color: #4d6952;
    border: 1px solid #4d6952;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4d6952;
    color: #ffffff;
}

/* Projektikorttien ruudukko */

.projects-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    align-items: start;
}

.projects-content > .wp-block-group {
    margin: 0;
    padding: 25px;
    min-width: 0;
    box-sizing: border-box;
}

.projects-content > .wp-block-group h2 {
    font-size: 23px;
    line-height: 1.4;
}

/* Projektin avaaminen */

.project-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    padding: 12px 18px;
    background: #4d6952;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.project-toggle:hover {
    background: #3b5340;
}

.project-details {
    margin-top: 25px;
}

.project-details[hidden],
.projects-content > .wp-block-group[hidden] {
    display: none !important;
}

.projects-content > .wp-block-group.is-open {
    grid-column: 1 / -1;
    transform: none;
}

/* Mobiilinäkymä */

@media (max-width: 768px) {
    .projects-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 9px 14px;
    }

    .projects-content > .wp-block-group {
        padding: 20px;
    }
}
/* Projektikorttien yhtenäinen korkeus */

.projects-content {
    align-items: stretch;
}

.projects-content > .wp-block-group {
    display: flex;
    flex-direction: column;
}

.project-summary {
    flex-grow: 1;
}

.project-toggle {
    margin-top: auto;
}

/* YHTEYSTIEDOT-SIVU */

.contact-hero {
    background: #ffffff;
    border-radius: 20px;
    border-top: 4px solid #4d6952;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-eyebrow {
    color: #4d6952;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.contact-hero h2 {
    color: #4d6952;
    font-size: 32px;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Osaamisalueiden tunnisteet */

.contact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.contact-tags span {
    background: #eef3ed;
    color: #4d6952;
    padding: 9px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Yhteydenottokortit */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    border-top: 4px solid #4d6952;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #eef3ed;
    color: #4d6952;
    border-radius: 12px;
    font-size: 28px;
    font-weight: bold;
}

.contact-card h2 {
    color: #4d6952;
    font-size: 25px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.contact-card p {
    flex-grow: 1;
    margin-bottom: 25px;
}

/* Yhteydenottopainikkeet */

.contact-button {
    display: block;
    background: #4d6952;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.3s ease;
}

.contact-button:hover {
    background: #3b5340;
    color: #ffffff;
}

.contact-button:focus-visible {
    outline: 3px solid #4d6952;
    outline-offset: 4px;
}

/* Sivun lopputeksti */

.contact-ending {
    text-align: center;
    padding: 35px 15px 10px;
}

.contact-ending h2 {
    color: #4d6952;
    font-size: 26px;
}

.contact-ending p {
    color: #666;
    font-style: italic;
}

/* Mobiilinäkymä */

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-hero {
        padding: 25px;
    }

    .contact-hero h2 {
        font-size: 26px;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-tags span {
        font-size: 13px;
    }

}

/* MINUSTA-SIVU */

/* Henkilökohtainen esittely */

.about-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 35px;
    background: #ffffff;
    border-top: 4px solid #4d6952;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.about-eyebrow {
    color: #4d6952;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-hero h2 {
    color: #4d6952;
    font-size: 30px;
    line-height: 1.3;
    margin-top: 15px;
}

.about-portrait img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

/* Sisältöosiot */

.about-section {
    background: #ffffff;
    border-top: 4px solid #4d6952;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.about-section h2,
.about-strengths h2,
.about-ending h2 {
    color: #4d6952;
    font-size: 28px;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Koulutuspolun aikajana */

.education-timeline {
    border-left: 3px solid #d5e2d3;
    margin: 30px 0 10px 12px;
    padding-left: 30px;
}

.education-item {
    position: relative;
    padding-bottom: 25px;
}

.education-item:last-child {
    padding-bottom: 0;
}

.education-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #4d6952;
    border-radius: 50%;
}

.education-year {
    display: inline-block;
    background: #eef3ed;
    color: #4d6952;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.education-item h3 {
    color: #4d6952;
    font-size: 21px;
    margin: 8px 0;
}

.education-item p {
    margin: 5px 0;
}

/* Vahvuuskortit */

.about-strengths {
    margin-bottom: 35px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.strength-card {
    background: #ffffff;
    border-top: 4px solid #4d6952;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-5px);
}

.strength-card span {
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
}

.strength-card h3 {
    color: #4d6952;
    font-size: 19px;
    margin-bottom: 10px;
}

.strength-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Vapaa-ajan kuvat */

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.about-gallery img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

/* Sivun lopun navigointipainikkeet */

.about-ending {
    text-align: center;
    padding: 20px 0;
}

.about-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.about-links .contact-button {
    margin: 0;
}

/* Responsiivisuus */

@media (max-width: 768px) {

    .about-hero {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 20px;
    }

    .about-hero h2 {
        font-size: 25px;
    }

    .about-portrait img {
        height: auto;
        max-height: 450px;
        object-fit: contain;
    }

    .about-section {
        padding: 25px;
    }

    .strengths-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .about-gallery img {
        height: 250px;
    }

    .about-links {
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-gallery img {
        height: auto;
    }

}
/* Henkilökuvan rajauksen viimeistely */

.about-portrait img {
    object-position: center top;
}

/* MINUSTA-SIVUN TARINALLINEN ULKOASU */

.about-story {
    max-width: 1100px;
}

/* Henkilökohtainen esittely */

.story-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 55px;
    margin-bottom: 65px;
}

.story-text h2 {
    color: #4d6952;
    font-size: 34px;
    line-height: 1.3;
    margin: 15px 0 25px;
}

.story-text p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.story-image img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
}

.story-portrait img {
    height: 450px;
    object-position: center top;
}

/* Koulutuspolku */

.story-education {
    border-top: 1px solid #ccd7ca;
    padding-top: 40px;
    margin-bottom: 60px;
}

.story-education h2 {
    color: #4d6952;
    font-size: 32px;
    margin-top: 15px;
}

.story-education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.story-education-item {
    border-top: 3px solid #4d6952;
    padding-top: 20px;
}

.story-number {
    display: block;
    font-size: 45px;
    font-weight: 300;
    color: #81977e;
    margin-bottom: 15px;
}

.story-education-item h3 {
    color: #4d6952;
    font-size: 22px;
    margin: 0 0 10px;
}

.story-date {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.story-education-item strong {
    display: block;
    color: #4d6952;
    margin-bottom: 10px;
}

.story-education-item p {
    font-size: 16px;
    line-height: 1.7;
}

/* Työskentelytapa ja vahvuudet */

.story-strengths {
    background: #e3ebe0;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 65px;
}

.story-strengths h2 {
    color: #4d6952;
    font-size: 30px;
    margin-top: 15px;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.story-tags span {
    background: #ffffff;
    color: #4d6952;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Vuorottelevat kuva- ja tekstiosiot */

.story-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 50px;
    margin-bottom: 65px;
}

.story-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.story-split .story-image img {
    height: 380px;
    object-fit: cover;
    object-position: center;
}

/* Tulevaisuus ja navigointi */

.story-future {
    border-top: 1px solid #ccd7ca;
    text-align: center;
    padding: 45px 20px 15px;
}

.story-future h2 {
    color: #4d6952;
    font-size: 30px;
    margin-top: 15px;
}

.story-future p {
    max-width: 750px;
    margin: 20px auto 30px;
}

.story-future .about-links {
    margin-top: 30px;
}

/* Mobiilinäkymä */

@media (max-width: 768px) {

    .story-hero,
    .story-split,
    .story-reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .story-text h2,
    .story-education h2,
    .story-strengths h2,
    .story-future h2 {
        font-size: 26px;
    }

    .story-education-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .story-education {
        margin-bottom: 40px;
    }

    .story-number {
        font-size: 36px;
    }

    .story-strengths {
        padding: 25px;
        margin-bottom: 40px;
    }

    .story-image img,
    .story-portrait img,
    .story-split .story-image img {
        height: auto;
        max-height: 450px;
        object-fit: contain;
    }

    .story-reverse .story-image {
        grid-row: 1;
    }

    .story-future {
        padding: 30px 0 15px;
    }

}

/* =========================================
   PORTFOLION UUDISTETTU ETUSIVU
========================================= */

.portfolio-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
    box-sizing: border-box;
}

/* Etusivun esittely */

.home-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 75px;
}

.home-eyebrow {
    display: block;
    color: #4d6952;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.home-hero-text h1 {
    font-size: clamp(34px, 4vw, 48px);
    color: #4d6952;
    line-height: 1.2;
    margin: 0 0 20px;
}

.home-hero-text h2 {
    font-size: 30px;
    line-height: 1.35;
    color: #303b32;
    margin: 0 0 25px;
}

.home-hero-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Henkilökuva */

.home-hero-image {
    width: 100%;
    min-width: 0;
}

.home-hero-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

/* Painikkeet */

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-button,
.home-button-outline {
    display: inline-block;
    padding: 14px 22px;
    border: 2px solid #4d6952;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.home-button {
    background: #4d6952;
    color: #ffffff;
}

.home-button-outline {
    background: transparent;
    color: #4d6952;
}

.home-button:hover {
    background: #354e39;
    border-color: #354e39;
    color: #ffffff;
    transform: translateY(-2px);
}

.home-button-outline:hover {
    background: #4d6952;
    color: #ffffff;
    transform: translateY(-2px);
}

.home-button:focus-visible,
.home-button-outline:focus-visible {
    outline: 3px solid #81977e;
    outline-offset: 4px;
}

/* Osaamisalueiden otsikko */

.home-expertise {
    border-top: 1px solid #ccd7ca;
    padding-top: 50px;
    margin-bottom: 65px;
}

.home-section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.home-section-heading h2 {
    color: #4d6952;
    font-size: 34px;
    margin: 10px 0 15px;
}

.home-section-heading p {
    font-size: 17px;
    line-height: 1.7;
}

/* Osaamiskortit */

.home-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-expertise-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border-top: 3px solid #4d6952;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.home-expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.home-card-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.home-expertise-card h3 {
    color: #4d6952;
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.home-expertise-card p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.home-card-tools {
    display: block;
    margin-top: auto;
    color: #4d6952;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.home-center {
    text-align: center;
    margin-top: 30px;
}

/* Projektit ja työnäytteet */

.home-projects {
    background: #e3ebe0;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 65px;
}

.home-projects h2 {
    color: #4d6952;
    font-size: 32px;
    line-height: 1.3;
    margin: 10px 0 20px;
}

.home-projects p {
    max-width: 750px;
    margin: 0 auto 25px;
    font-size: 17px;
    line-height: 1.8;
}

.home-project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 35px;
}

.home-project-tags span {
    background: #ffffff;
    color: #4d6952;
    padding: 9px 17px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Yhteydenotto */

.home-contact {
    text-align: center;
    border-top: 1px solid #ccd7ca;
    padding: 45px 20px 15px;
}

.home-contact h2 {
    color: #4d6952;
    font-size: 30px;
    margin: 10px 0 20px;
}

.home-contact p {
    max-width: 650px;
    margin: 0 auto 25px;
    font-size: 17px;
    line-height: 1.8;
}

/* Tabletit ja mobiililaitteet */

@media (max-width: 768px) {

    .portfolio-home {
        padding: 35px 20px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 45px;
    }

    .home-hero-text h1 {
        font-size: 36px;
    }

    .home-hero-text h2 {
        font-size: 25px;
    }

    .home-hero-text p {
        font-size: 16px;
    }

    .home-hero-image img {
        height: auto;
        max-height: 500px;
        object-fit: contain;
    }

    .home-expertise {
        padding-top: 35px;
        margin-bottom: 40px;
    }

    .home-expertise-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-expertise-card {
        padding: 25px;
    }

    .home-section-heading h2,
    .home-projects h2,
    .home-contact h2 {
        font-size: 26px;
    }

    .home-projects {
        padding: 35px 20px;
        margin-bottom: 40px;
    }

    .home-contact {
        padding: 30px 0 15px;
    }

    .home-buttons {
        gap: 12px;
    }

}

/* Pienet puhelimet */

@media (max-width: 480px) {

    .home-hero-text h1 {
        font-size: 30px;
    }

    .home-hero-text h2 {
        font-size: 23px;
    }

    .home-buttons {
        flex-direction: column;
    }

    .home-buttons a {
        text-align: center;
    }

    .home-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

}

/* Vähennetyn liikkeen saavutettavuusasetus */

@media (prefers-reduced-motion: reduce) {

    .home-button,
    .home-button-outline,
    .home-expertise-card {
        transition: none;
    }

    .home-button:hover,
    .home-button-outline:hover,
    .home-expertise-card:hover {
        transform: none;
    }

}

/* =========================================
   UUDISTETTU OSAAMINEN-SIVU
========================================= */

.skills-page {
    max-width: 1100px;
}

/* Johdanto */

.skills-intro {
    max-width: 850px;
    margin-bottom: 45px;
}

.skills-eyebrow {
    display: block;
    color: #4d6952;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.skills-intro h2 {
    color: #4d6952;
    font-size: 36px;
    line-height: 1.3;
    margin: 15px 0 25px;
}

.skills-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Osaamiskokonaisuudet */

.skills-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
    border-top: 1px solid #ccd7ca;
    padding: 40px 0;
}

/* Numerot ja ikonit */

.skills-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skills-number {
    color: #81977e;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
}

.skills-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: #e3ebe0;
    border-radius: 18px;
    font-size: 30px;
}

/* Osaamisen kuvaukset */

.skills-description h2 {
    color: #4d6952;
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 20px;
}

.skills-description p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 15px;
}

/* Osaamistunnisteet */

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.skills-tags span {
    display: inline-block;
    background: #e3ebe0;
    color: #405c45;
    padding: 9px 17px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.2s ease;
}

.skills-tags span:hover {
    background: #d1dfce;
}

/* Jatkuva oppiminen */

.skills-learning {
    background: #ffffff;
    border-left: 4px solid #4d6952;
    border-radius: 0 16px 16px 0;
    padding: 35px 40px;
    margin: 25px 0 50px;
}

.skills-learning h2 {
    color: #4d6952;
    font-size: 28px;
    margin: 15px 0 20px;
}

.skills-learning p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Työnäytteisiin ohjaava osio */

.skills-ending {
    background: #e3ebe0;
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    margin-top: 35px;
}

.skills-ending h2 {
    color: #4d6952;
    font-size: 30px;
    line-height: 1.3;
    margin: 15px 0 20px;
}

.skills-ending p {
    max-width: 650px;
    margin: 0 auto 25px;
    font-size: 17px;
    line-height: 1.8;
}

/* Tabletit ja mobiililaitteet */

@media (max-width: 768px) {

    .skills-intro {
        margin-bottom: 30px;
    }

    .skills-intro h2 {
        font-size: 28px;
    }

    .skills-intro p {
        font-size: 16px;
    }

    .skills-row {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 20px;
        padding: 30px 0;
    }

    .skills-number {
        font-size: 36px;
    }

    .skills-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 12px;
    }

    .skills-description h2 {
        font-size: 23px;
    }

    .skills-description p {
        font-size: 16px;
    }

    .skills-tags {
        gap: 8px;
        margin-top: 20px;
    }

    .skills-tags span {
        font-size: 13px;
        padding: 7px 12px;
    }

    .skills-learning {
        padding: 25px;
        margin-bottom: 35px;
    }

    .skills-ending {
        padding: 30px 20px;
    }

    .skills-learning h2,
    .skills-ending h2 {
        font-size: 25px;
    }

}

/* Pienet puhelimet */

@media (max-width: 480px) {

    .skills-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .skills-marker {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    .skills-intro h2 {
        font-size: 25px;
    }

    .skills-intro h2 br {
        display: none;
    }

    .skills-description h2 {
        font-size: 22px;
    }

    .skills-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

}

/* Saavutettavuus */

@media (prefers-reduced-motion: reduce) {

    .skills-tags span {
        transition: none;
    }

}
/* =========================================
   ETUSIVUN UUSIMMAT TYÖNÄYTTEET
========================================= */

.home-latest-projects {
    margin: 60px 0;
}

.home-latest-projects .portfolio-widget-title {
    font-size: 32px;
    color: #4d6952;
    text-align: center;
    margin-bottom: 30px;
}

.home-latest-projects .pm-project-grid {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .home-latest-projects {
        margin: 40px 0;
    }

    .home-latest-projects .portfolio-widget-title {
        font-size: 26px;
    }
}

/* =========================================
   TAKAISIN YLÖS -PAINIKE
========================================= */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4d6952;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    background: #38513d;
    transform: translateY(-3px);
}

.back-to-top:focus-visible {
    outline: 3px solid #81977e;
    outline-offset: 4px;
}

/* Mobiilinäkymä */

@media (max-width: 768px) {

    .back-to-top {
        right: 15px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

/* Saavutettavuus */

@media (prefers-reduced-motion: reduce) {

    .back-to-top {
        transition: none;
    }

    .back-to-top:hover {
        transform: none;
    }
}

/* =========================================
   UUSI NAVIGAATIOPALKKI
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #4d6952;
    border-bottom: none;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.site-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-sizing: border-box;
}

/* Nimi ja portfolio */

.site-header .site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
    margin: 0;
}

.site-logo-name {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}

.site-logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #e3ebe0;
}

/* Päävalikko */

.site-header .main-navigation {
    margin: 0;
}

.site-header .primary-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .primary-menu li {
    margin: 0;
    padding: 0;
}

.site-header .primary-menu a {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

/* Aktiivinen sivu */

.site-header .primary-menu a:hover,
.site-header .primary-menu .current-menu-item > a,
.site-header .primary-menu .current-menu-ancestor > a {
    color: #ffffff;
    border-bottom-color: #e3ebe0;
}

/* Yhteystiedot-painike */

.site-header .primary-menu li:last-child > a {
    border: 1px solid #dce5d9;
    border-radius: 8px;
    padding: 10px 18px;
}

.site-header .primary-menu li:last-child > a:hover,
.site-header .primary-menu li:last-child.current-menu-item > a {
    background: #ffffff;
    color: #4d6952;
}

/* Näppäimistökäyttö */

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

/* WordPressin hallintapalkki */

.admin-bar .site-header {
    top: 32px;
}

/* =========================================
   MOBIILIVALIKON PAINIKE
========================================= */

.site-header .menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

/* Sulkemisristi */

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBIILINÄKYMÄ
========================================= */

@media (max-width: 900px) {

    .site-header .header-container {
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 15px;
    }

    .site-logo-name {
        font-size: 20px;
    }

    .site-header .menu-toggle {
        display: flex;
    }

    .site-header .main-navigation {
        display: none;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .site-header .main-navigation.is-open {
        display: block;
    }

    .site-header .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-header .primary-menu a {
        padding: 12px 5px;
    }

    .site-header .primary-menu li:last-child > a {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 782px) {

    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {

    .admin-bar .site-header {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-header a,
    .menu-toggle span {
        transition: none;
    }
}

/* =========================================
   MINUSTA-SIVUN SISÄINEN NAVIGAATIO
========================================= */

/* Sivun leveys */

.page-content.about-story {
    max-width: 1350px;
}

/* Sivupalkki ja sisältöalue */

.about-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}

.about-main-content {
    min-width: 0;
}

/* Sivupalkki */

.about-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
}

.about-navigation {
    background: #e3ebe0;
    border: 1px solid #d5dfd2;
    border-radius: 15px;
    padding: 22px 18px;
}

.about-navigation h2 {
    color: #4d6952;
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #c5d3c2;
}

.about-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-navigation li {
    margin: 5px 0;
    padding: 0;
}

/* Navigaatiolinkit */

.about-navigation a {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
    color: #4d6952;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.about-navigation a:hover {
    background: #d0ddcd;
}

/* Aktiivinen osio */

.about-navigation a.active {
    background: #4d6952;
    color: #ffffff;
    font-weight: 600;
}

.about-navigation a:focus-visible {
    outline: 2px solid #4d6952;
    outline-offset: 3px;
}

/* Ankkurilinkkien vieritys */

.about-main-content > section[id] {
    scroll-margin-top: 150px;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   TABLETTINÄKYMÄ
========================================= */

@media (max-width: 1100px) {

    .about-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 25px;
    }

    .about-navigation {
        padding: 18px 12px;
    }

    .about-main-content .story-education-grid {
        grid-template-columns: 1fr;
    }

    .about-main-content .story-hero,
    .about-main-content .story-split {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBIILINÄKYMÄ
========================================= */

@media (max-width: 900px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-sidebar {
        position: static;
    }

    .about-navigation {
        padding: 20px;
    }

    .about-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .about-navigation li {
        margin: 0;
    }

    .about-navigation a {
        font-size: 13px;
        padding: 10px;
    }

    .about-main-content > section[id] {
        scroll-margin-top: 130px;
    }
}

/* Saavutettavuus */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .about-navigation a {
        transition: none;
    }
}

/* Minusta-sivun tiiviimpi sivupalkki */

.about-sidebar .about-navigation {
    padding: 16px;
}

.about-sidebar .about-navigation h2 {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 10px;
    padding-bottom: 10px;
}

.about-sidebar .about-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 3px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-sidebar .about-navigation li {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.about-sidebar .about-navigation li a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 6px;
}

/* Tiiviimpi sisällysluettelo mobiilissa */

@media (max-width: 900px) {

    .about-sidebar .about-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .about-sidebar .about-navigation li a {
        font-size: 13px;
        padding: 8px;
    }
}
