/* GLOBAALIT TYYLIT */
:root {
    --bg-main: #567268;
    --bg-card: #FFFFFF;
    --bg-card-header: #4ac296;
    --text-main: #1E1E1E;
    --text-dark: #0A0A0A;
    --text-bright: #FFFFFF;
    --text-muted: #555;
    --accent: #2BB3C0;
    --accent-secondary: #6F7CF7;
    --border-light: #E2E2E7;
    --radius: 12px;
    --shadow-light: 0 4px 14px rgba(0, 0, 0, 0.06);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}



/* Prevent content from bumping on mobile */
* {
    box-sizing: border-box;
}

/* BANNERI */
.banner {
    width: 100%;
    text-align: center;
    padding: 12px 30px 16px;
    /*background: linear-gradient(180deg, wheat, #04AA6D);*/
    background: wheat;
}

.banner .blog-image img {
    width: 175px;
    height: 175px;
    border-radius: var(--radius);
    object-fit: cover;
}

.banner h1 {
    font-size: 40px !important;
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.banner p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ARTIKKELIT */

.article-container {
    width: 100%;
    padding: 20px 16px;
}

/* Single article */

.article {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
    animation: fadeIn 0.4s ease;
}

.article h2, .published {
    background: var(--bg-card-header);
    text-align: center;
    margin: 0;
    padding: 6px;
}

.article h2 {
    border-top-right-radius: var(--radius);
    border-top-left-radius: var(--radius);
    margin-bottom: 0 !important;
}

.article-content {
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ARTIKKELIN OTSIKOT JA TEKSTI */

.article h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.article .date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ARTIKKELIN KUVAT */

.article-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

/* NAVIGAATIO (home + translate) */

.img-banner {
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 1);
    height: 50px;
    z-index: 1000; /* pitää sen muiden elementtien yläpuolella */
    display: flex;
    align-items: center;
    justify-content: center;
}

.translate-form {
    margin: 0;
}

.logo-img {
    height: auto;
    width: 48px;
}

/* BUTTONS */
#english-btn,
#finnish-btn {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

#english-btn {
    background-image: url(../images/union_jack.png);
    margin-right: 70px;
}

#finnish-btn {
    background-image: url(../images/finnish.png);
    margin-left: 70px;
}

/* FOOTER */
footer {
    padding: 40px 20px;
}

.footer-container {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    max-width: 500px;
    margin: 0 auto;
}

.footer-details h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--text-dark);
}

.footer-details a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

.footer-details a:hover {
    color: var(--accent-secondary);
}

@media (max-width: 600px) {
    .banner h1 {
        font-size: 32px !important;
    }
}

/* Mobile image optimization */

@media (max-width: 600px) {
    .article-image {
        max-height: 400px;
        object-fit: cover;
    }
}

/* RESPONSIVE BREAKOUTS */

/* Tablet */
@media (min-width: 700px) {
    .article-container {
        max-width: 650px;
        margin: 0 auto;
    }
}

/* Desktop */
@media (min-width: 1100px) {
    .article-container {
        max-width: 750px;
    }

    article:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        transition: 0.25s ease;
    }

    .article img {
        width: 50%;
        margin: 16px auto 16px;
        border-radius: var(--radius);
    }
}