/* =========================================================
   MOBILE FIRST – OLETUS: MOBIILISSA MENU ON PIILOSSA
   ========================================================= */
body{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #e9ecef;
    height:100%;
}
/* --- Logo --- */
#logoImg {
    width:100px;
    height:auto;
    display: block;
    margin:0;
}
/* --- Header --- */
.header {
    background-image: linear-gradient(to bottom,#ffffff,#f3f3f3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0px;
    z-index: 20;
}

/* --- Otsikko --- */
h1 {
    font-family: "sofia", sans-serif;
    color: #003366;
    font-size: clamp(32px, 4vw, 64px);
    margin: 0;
    justify-self:center;
    text-shadow: 2px 2px #cacaca;
}
.etusivukuva{
    display: flex;
    justify-content: center;
}

/* --- Navi (taustalaatikko) --- */
.navi {
    background-image: linear-gradient(to bottom,#ffffff,#dadada);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
   padding: 5px;
    position: sticky;
   margin-top: 10px;
    z-index: 15;
}


/* --- Hamburger-nappi (mobiilissa näkyvä) --- */
.menu-btn {
    display: block;
    margin-left: auto;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #003366;
}

/* --- Menu-lista MOBIILISSA (piilossa) --- */
.menu-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 0px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.35s ease;   /* liuku-animaatio */
    z-index: 10;
    position: relative;
}

.menu-list.open {
    display: flex;
    max-height: 500px;         /* riittävä arvo listan korkeudelle */
}

/* --- Yleiset linkkityylit --- */
.menu-list li a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 20px;
    color:#003366;
}

.menu-list li a:hover {
    background-color:#003366;
    color:white;
    border-radius:10px;
}



/* --- Sivun sisältö --- */
.content {
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
    border-radius:6px;
    padding:20px;
    margin-top: 10px;
}
.pohjustus{
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 5px;
    margin-bottom: 10px;
    background-image: linear-gradient(to bottom,#ffffff,#dadada);
}
.pohjustushead, .pohjustustext{
    margin-left: 10px;
}
.ytlist{
    display: grid;
    grid-template-rows: max-content auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-image: linear-gradient(to bottom,#ffffff,#dadada);
    border-radius:6px;
    margin-bottom: 5px; 
}
.yt-images{
    width: 80%;
    max-width: 1920px;
    padding-left: 10px;
}
.thumbimg{
    display:block;
    margin-left: 20px;
    margin-top:20px;
}
#thumb{
    width: 150px;
}
.thumbtext{
    text-align: left;
    margin: 10px;
    max-width:1000px;
}
.twoCol{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
}

.footer{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 10px;
    border-radius: 6px;
    background-image: linear-gradient(to bottom,#ffffff,#dadada);
    align-items: center;
}
.rightfooter{
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}
.rightfooter a{
    text-decoration: none;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}
.footer-icon-link {
    display: inline-flex;
    padding: 6px;
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
}

/* Ikoni */
.footer-icon {
    width: 32px;
    height: 32px;
    transition: 0.25s ease;
}

/* Punainen glow hoverissa */
.footer-icon-link:hover .youtube-icon {
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.7));
    transform: scale(1.12);
}
.footer > div {
    padding: 5px 0;
}

.rightfooter a:hover {
    /*background-color: rgba(0,0,0,0.08);*/
    color: #000;
}

.mail-icon {
    vertical-align: middle;
    transition: 0.2s;
}

.rightfooter a:hover .mail-icon {
    transform: scale(1.12);
}


.boldText{
     font-weight: bold;
}
.italicText{
    font-style: italic;
}

.email-btn {
    background-color: #2a6fdb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.email-btn:hover {
    background-color: #1d51a8;
}
.heroContent{
    background-image: url('/images/heroIndex.jpg');
 /* Full height */
  height: 100%; 

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* =========================================================
   DESKTOP (> 720px) – NAVI OIKEALLE & HAMBURGER PIILOON
   ========================================================= */

@media (min-width: 721px) {

    /* Hamburger pois desktopissa */
    .menu-btn {
        display: none;
    }

    /* Navi desktop-muotoon */
    .menu-list {
        display: flex;                     /* näkyviin */
        flex-direction: row;
        justify-content: flex-end;         /* oikealle */
        gap: 18px;
        margin: 0;
        padding: 10px;
    }

    #logoImg {
    width:200px;
    height:auto;
    display: block;
    }

    .ytlist{
        /* kuva vasemmalla, teksti oikealla */
        grid-template-columns: max-content auto; 
    }

    .pohjustushead, .pohjustustext{
    margin-left: 20px;
    }
    .twoCol{
    grid-template-columns: 50% 50%;
   
}}