/* Yleinen tyyli */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #005baa;
    color: white;
    padding: 1rem 0;
}
.logo {
    display: flex;
    align-items: center;
}
.logo > span {
    padding: 0 1rem;
}
/* Mobile-friendly navigation with hamburger menu */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 1rem;
    position: relative;

}
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
}
.menu-toggle {
    color: white;
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #005baa;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
        color: #005baa;

    }
    .menu-toggle {
        display: block;
    }
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-photo {
    width: 180px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Desktop layout */
@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-photo {
        margin-right: 2rem;
        margin-bottom: 0;
    }

    .about-text {
        flex: 1;
    }
}


/* Hero-osio */
#hero {
    background-color: #f2ca1b;
    color: #005baa;
    text-align: center;
    padding: 1rem 1rem;
}

#hero .cta-button {
    background-color: #005baa;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
}

/* Osioiden yleinen tyyli */
section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #005baa;
    margin-bottom: 1rem;
}

.issue {
    margin-bottom: 1rem;
}
.moreSpace {
    margin-bottom: 3rem !important;
}
/* Ajankohtaista-osio */
.news-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Yhteydenottolomake */

#contact a {
    color: black;
    text-decoration: none;
}

#contact img {
    vertical-align: text-bottom;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: bold;
}

form input, form textarea, form button {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background-color: #005baa;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background-color: #003f7d;
}

/* Footer */
footer {
    text-align: center;
    background-color: #005baa;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}

.profile-photo {
    width: 200px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
}

.full-body-photo {
    max-width: 300px;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 10px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-container img {
    flex-shrink: 0;
}


.candidate-circle {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: 2px solid black; /* black outline */
    color: black;           /* text color */
    border-radius: 50%;     
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;      /* Adjust as needed */
    font-weight: bold;
    margin: 1rem auto;      /* centers the circle horizontally */
  }
  