@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/roboto.woff2') format('woff2');
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/bebas-neue.woff2') format('woff2');
}
@font-face {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/alumni-sans.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: white;
    padding: 22px 50px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    box-sizing: border-box; z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; }
.brand a { text-decoration: none; color: inherit; }

.brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700; font-size: 40px;
    margin: 0; line-height: 1.1;
}
.brand-tagline {
    color: #268226;
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700; font-size: 24px;
    margin: 0; line-height: 0.5;
}

.nav-links { display: flex; gap: 10px; align-items: center; }

.nav-link {
    border: 2px solid transparent;
    width: 126px; height: 42px;
    color: #268226;
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700;
    background-color: white; font-size: 19px;
    box-sizing: border-box; cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 3px;
        outline: none;
}
.nav-link:hover {
    background-color: green;
    color: white;
    transform: scale(1.05);
}
.nav-link:focus-visible {
    outline: 3px solid #268226;
    outline-offset: 2px;
}
.nav-link.is-active {
    background-color: green;
    color: white;
}

.social-links { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }

.social-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}
.social-icon img, .social-icon svg { width: 29px; height: 29px; display: block; }
.social-icon:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.social-icon:focus-visible { outline: 3px solid #268226; outline-offset: 3px; border-radius: 16px; }

.social-icon--instagram {
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 30%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
}
.social-icon--tiktok    { background: #000000; }
.social-icon--youtube   { background: #FF0000; }
.social-icon--facebook  { background: #1877F2; }

.nav-link--back {
    width: auto; padding: 0 18px; gap: 8px;
}
.nav-link--back svg {
    width: 16px; height: 16px;
    stroke: currentColor; flex-shrink: 0;
    transition: stroke 0.5s ease;
}

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
    display: block; width: 26px; height: 3px;
    background: #000; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 3px solid #268226; outline-offset: 2px; border-radius: 3px; }

.mobile-menu {
    display: none; position: fixed;
    top: 116px; left: 0; width: 100%;
    background: white; z-index: 999;
    flex-direction: column; padding: 12px 20px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link {
    width: 100%; text-align: left; justify-content: flex-start;
    padding: 12px 16px; font-size: 22px;
    border-bottom: 1px solid #f0f0f0; height: auto;
}
.mobile-menu .nav-link:last-child { border-bottom: none; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .blog-grid { grid-template-columns: 1fr; }
}
.blog-grid .post-card {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 8px;
    margin-bottom: 0;
}
.blog-grid .post-card__arrow { align-self: flex-end; }

.blog-pagination {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 14px; margin-top: 24px;
}
.pagination-btn {
    border: 2px solid #268226; background: white; color: #268226;
    font-family: 'Alumni Sans', sans-serif; font-weight: 700; font-size: 16px;
    padding: 6px 16px; border-radius: 4px; cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-btn:hover:not(:disabled) { background: #268226; color: white; }
.pagination-btn:disabled { opacity: 0.35; cursor: default; }
.pagination-info {
    font-family: 'Alumni Sans', sans-serif; color: #666; font-size: 15px;
}

.post-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0 20px;
    text-decoration: none; color: inherit;
    background: white; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px 24px; margin-bottom: 14px;
    border-left: 4px solid transparent;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    position: relative; overflow: hidden;
}
.post-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, #26822608 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
    border-left-color: #268226;
}
.post-card:hover::after { opacity: 1; }
.post-card:focus-visible {
    outline: 3px solid #268226;
    outline-offset: 2px;
}
.post-card.is-hidden { display: none; }

.post-card__date {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1px; min-width: 56px; height: 56px;
    background: #268226; border-radius: 8px;
    flex-shrink: 0;
}
.post-card__day {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 22px; font-weight: 700;
    color: white; line-height: 1;
}
.post-card__month {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 12px; font-weight: 700; color: white;
    text-transform: uppercase; letter-spacing: 0.5px;
    opacity: 0.9;
}
.post-card__body { display: flex; flex-direction: column; gap: 5px; }
.post-card__title {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #2e8b2e; margin: 0;
}
.post-card__excerpt {
    font-family: 'Roboto', sans-serif;
    color: #444; font-size: 14px;
    line-height: 1.55; margin: 0;
}
.post-card__arrow {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 22px; color: #268226; font-weight: 700;
    transition: transform 0.3s;
}
.post-card:hover .post-card__arrow { transform: translateX(4px); }

.tiktok-consent-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    z-index: 2000;
}
.tiktok-consent-modal {
    background: white; border-radius: 12px;
    max-width: 440px; width: 100%;
    padding: 32px; box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    text-align: center;
}
.tiktok-consent-modal__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px; color: #235723;
    margin-bottom: 14px;
}
.tiktok-consent-modal p {
    font-family: 'Roboto', sans-serif; font-size: 15px;
    color: #333; line-height: 1.6; margin-bottom: 22px;
}
.tiktok-consent-modal a { color: #268226; text-decoration: underline; }

.video-ohje {
    font-family: 'Alumni Sans', sans-serif;
    color: #888; font-size: 15px;
    margin-bottom: 16px;
}
.video-list {
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.video-card {
    background: white; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px; display: inline-block; max-width: 100%;
}
.video-card__title {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #2e8b2e; margin: 0 0 12px;
}

.loading-text {
    color: #888; font-family: 'Roboto', sans-serif;
    font-size: 15px; padding: 10px 0;
}
.error-text {
    color: #c0392b; background: #fdecea;
    padding: 14px 18px; border-radius: 6px;
    font-family: 'Roboto', sans-serif; font-size: 14px;
}
.empty-text {
    color: #888; font-family: 'Roboto', sans-serif;
    font-size: 15px; padding: 10px 0;
}

.site-footer {
    background-color: #235723;
    color: white;
    padding: 30px 20px;
    width: 100%; box-sizing: border-box;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-top: auto;
}
.site-footer p { margin: 5px 0; }
.site-footer__message {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700; font-size: 24px;
    letter-spacing: 0.3px;
}
.site-footer__copyright {
    margin-top: 16px !important;
    font-size: 13px;
    color: #a8e6a8;
    opacity: 0.85;
}
.site-footer a { color: #a8e6a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid #a8e6a8; outline-offset: 2px; border-radius: 2px; }

.footer-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 16px;
    padding: 10px 26px;
    border: 2px solid #a8e6a8;
    border-radius: 30px;
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700; font-size: 18px;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.footer-cta:hover {
    background: #a8e6a8;
    color: #235723 !important;
    transform: scale(1.05);
}
.footer-cta__arrow { transition: transform 0.3s ease; }
.footer-cta:hover .footer-cta__arrow { transform: translateX(4px); }

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1; margin: 12px 0 8px;
}
.page-title__divider {
    width: 56px; height: 4px;
    background: #268226; border-radius: 2px;
    margin-bottom: 32px;
}

.post-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05; margin: 12px 0 10px;
}
.post-title__divider {
    width: 56px; height: 4px;
    background: #268226; border-radius: 2px;
    margin-bottom: 36px;
}
.post-meta {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.post-date {
    font-family: 'Alumni Sans', sans-serif;
    color: #666; font-size: 16px;
}

.post-article p {
    font-family: 'Roboto', sans-serif;
    font-size: 17px; color: #222;
    line-height: 1.8; margin-bottom: 1.4em;
}
.post-article h2 {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 26px; font-weight: 700;
    color: #235723; margin: 2em 0 0.5em;
}
.post-article h3 {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 20px; font-weight: 700;
    margin: 1.5em 0 0.4em;
}
.post-article ul,
.post-article ol {
    padding-left: 1.4em; margin-bottom: 1.4em;
}
.post-article li {
    font-family: 'Roboto', sans-serif;
    font-size: 17px; margin-bottom: 0.4em; line-height: 1.7;
}
.post-article blockquote {
    border-left: 4px solid #268226;
    margin: 2em 0; padding: 14px 24px;
    background: #f0faf0; border-radius: 0 6px 6px 0;
}
.post-article blockquote p { color: #2a6a2a; font-style: italic; }

.share-section {
    margin-top: 56px; padding-top: 32px;
    border-top: 1px solid #ddd;
    display: flex; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.share-label {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 17px; color: #666;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0 16px; height: 40px; border-radius: 4px;
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700; font-size: 16px;
    color: white; border: none; cursor: pointer;
    transition: all 0.4s ease; text-decoration: none;
}
.share-btn:hover  { transform: scale(1.05); opacity: 0.88; }
.share-btn:focus-visible { outline: 3px solid #268226; outline-offset: 2px; }
.share-btn--x        { background: #000; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--copy     { background: #555; }
.share-btn svg { width: 15px; height: 15px; fill: white; flex-shrink: 0; }

.copy-confirmation {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 15px; color: #268226;
    opacity: 0; transition: opacity 0.3s;
}
.copy-confirmation.is-visible { opacity: 1; }

.related-posts__title {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 22px; font-weight: 700;
    color: #235723; margin: 64px 0 20px;
}

@media (max-width: 900px) {
    .site-header { padding: 20px; flex-wrap: nowrap; }
    .nav-links .nav-link:not(.nav-link--back) { display: none; }
    .menu-toggle { display: flex; }
    .brand-name { font-size: 38px; }
    .brand-tagline  { font-size: 22px; }
    .mobile-menu { top: 100px; }
}
