/* === UUDISTETTU MODERNI ETUSIVU 2026 === */
/* ===== HERO-OSIO ===== */
.container–hero {
position: relative;
min-height: 550px !important;
display: flex;
align-items: center;
background: linear-gradient(135deg, #c8102e 0%, #8b0000 50%, #c8102e 100%) !important;
overflow: hidden;
}
.container–hero::after {
content: ”;
position: absolute;
top: -50%;
right: -20%;
width: 70%;
height: 200%;
background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
pointer-events: none;
}
.container–hero .container__inner {
width: 100%;
position: relative;
z-index: 2;
padding: 80px 20px 100px;
text-align: center;
}
.container–hero .hero-slider-wrap::before {
content: ’Myllypuron Sosialidemokraatit ry.’;
display: block;
font-size: 2.8rem;
font-weight: 900;
color: white;
text-transform: uppercase;
letter-spacing: 3px;
margin-bottom: 15px;
text-shadow: 0 3px 15px rgba(0,0,0,0.3);
line-height: 1.2;
animation: heroFadeIn 1s ease-out;
}
.container–hero .hero-slider-wrap::after {
content: ’Työtä Myllypuron hyväksi jo vuodesta 1965’;
display: block;
font-size: 1.25rem;
color: rgba(255,255,255,0.92);
margin-bottom: 35px;
font-style: italic;
letter-spacing: 1.5px;
animation: heroFadeIn 1.2s ease-out;
}
.container–hero .buttons {
display: flex !important;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
animation: heroFadeIn 1.4s ease-out;
margin-top: 10px;
}
.container–hero .buttons a.button–cta {
background: white !important;
color: #c8102e !important;
padding: 15px 35px !important;
border-radius: 50px !important;
font-weight: 800 !important;
font-size: 0.95rem !important;
text-transform: uppercase !important;
letter-spacing: 1.5px !important;
transition: all 0.3s ease !important;
box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
border: 2px solid white !important;
text-decoration: none !important;
}
.container–hero .buttons a.button–cta:hover {
background: transparent !important;
color: white !important;
transform: translateY(-3px) !important;
box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
}
.hero-facebook-link {
background: #1877f2 !important;
color: white !important;
padding: 15px 35px;
border-radius: 50px;
font-weight: 800;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 1.5px;
transition: all 0.3s ease;
box-shadow: 0 6px 20px rgba(24,119,242,0.4);
text-decoration: none !important;
display: inline-block;
border: 2px solid #1877f2;
}
.hero-facebook-link:hover {
background: #0d65d9 !important;
transform: translateY(-3px);
color: white !important;
}
.container–about {
background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%) !important;
padding: 70px 0 !important;
}
.container–about article {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background: white;
border-top: 4px solid #c8102e;
}
.container–about article:hover {
transform: translateY(-4px);
box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.container–about h2 {
color: #c8102e !important;
font-weight: 800 !important;
}
.container–recent-posts {
background: #ffffff !important;
padding: 70px 0 !important;
}
.container–recent-posts a[href] article {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container–recent-posts a[href]:hover article {
transform: translateY(-5px);
box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
.container–recent-posts article h2,
.container–recent-posts article h3 {
color: #c8102e !important;
font-weight: 700 !important;
}
.container–news-feed {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
padding: 70px 0 !important;
}
.container–news-feed h2 {
color: white !important;
font-size: 1.4rem !important;
letter-spacing: 4px !important;
font-weight: 800 !important;
border-bottom: 3px solid #c8102e !important;
padding-bottom: 12px !important;
margin-bottom: 25px !important;
}
.container–news-feed a {
color: #e8e8e8 !important;
transition: color 0.2s;
text-decoration: none;
}
.container–news-feed a:hover {
color: #ff8a8a !important;
}
.container–news-feed li {
border-bottom: 1px solid rgba(255,255,255,0.1);
padding: 12px 0 !important;
}
.container–blogs {
background: #f5f5f5 !important;
padding: 70px 0 !important;
}
.container–blogs a {
border-radius: 12px;
overflow: hidden;
display: block;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background: white;
text-decoration: none !important;
}
.container–blogs a:hover {
transform: translateY(-5px);
box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
.container–blogs h2, .container–blogs h3 {
color: #c8102e !important;
}
.site-header__social a {
transition: transform 0.2s, opacity 0.2s;
opacity: 0.85;
}
.site-header__social a:hover {
transform: scale(1.25);
opacity: 1;
}
.topbar, .top-bar {
background: linear-gradient(90deg, #8b0000, #c8102e) !important;
font-weight: 600 !important;
}
.container–footer-widgets {
background: #1a1a1a !important;
}
.container–footer-widgets a {
color: #d0d0d0 !important;
transition: color 0.2s;
}
.container–footer-widgets a:hover {
color: white !important;
}
@keyframes heroFadeIn {
from { opacity: 0; transform: translateY(25px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
.container–hero .hero-slider-wrap::before {
font-size: 1.8rem;
letter-spacing: 1px;
}
.container–hero .hero-slider-wrap::after {
font-size: 1rem;
}
.container–hero {
min-height: 420px !important;
}
.container–hero .buttons {
flex-direction: column;
align-items: center;
}
}
/* ===== OSIOIDEN JÄRJESTYS: Ajankohtaista ensin ===== */
#content {
display: flex !important;
flex-direction: column !important;
}
#hero { order: 1 !important; }
#recent-posts { order: 2 !important; }
#about { order: 3 !important; }
#news-feed { order: 4 !important; }
#blogs { order: 5 !important; }
#post-content { order: 6 !important; }
/* ===== HERO-KUVAN VAIHTO ===== */
.container–hero img.hero-banner-img {
content: url(’https://myllypuro.sdp.fi/wp-content/uploads/sites/61/2026/04/myllypuron-demarit-banner-1.png’) !important;
}
(function() {
function doChanges() {
// Vaihda hero-kuva uuteen
var heroImg = document.querySelector(’.container–hero img.hero-banner-img’);
if(heroImg) {
heroImg.src = ’https://myllypuro.sdp.fi/wp-content/uploads/sites/61/2026/04/myllypuron-demarit-banner-1.png’;
heroImg.alt = ’Myllypuron Demarit’;
}
// Järjestä osiot: Ajankohtaista ennen Mainoksia
var main = document.querySelector(’#content’);
var recentPosts = document.querySelector(’#recent-posts’);
var about = document.querySelector(’#about’);
if(main && recentPosts && about) {
main.insertBefore(recentPosts, about);
}
// Lisää Facebook-nappi hero-osioon
var buttons = document.querySelector(’.container–hero .buttons’);
if(buttons) {
var fbBtn = document.createElement(’a’);
fbBtn.href = ’https://www.facebook.com/myllypuronsosialidemokraatit’;
fbBtn.target = ’_blank’;
fbBtn.rel = ’noopener noreferrer’;
fbBtn.className = ’hero-facebook-link’;
fbBtn.textContent = ’Seuraa Facebookissa’;
buttons.appendChild(fbBtn);
}
// Korjaa header Facebook-linkki oikeaksi
var fbLinks = document.querySelectorAll(’a[href*=”facebook.com”]’);
fbLinks.forEach(function(link) {
if(link.closest(’header’) || link.closest(’.site-header’)) {
link.href = ’https://www.facebook.com/myllypuronsosialidemokraatit’;
link.target = ’_blank’;
link.rel = ’noopener noreferrer’;
}
});
}
if(document.readyState === ’loading’) {
document.addEventListener(’DOMContentLoaded’, doChanges);
} else {
doChanges();
}
})();

Myllypuron Sosialidemokraatit ry.
Työtä Myllypuron hyväksi jo vuodesta 1965.


