/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /*--primary-color: #2c5aa0;*/
    --primary-color: #4c3627; /* #765b48;*/
    --secondary-color: #e8f0f7;
    --accent-color: #d4a574;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    /*background: linear-gradient(135deg, white  0%, var(--primary-color) 100%);*/
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link a{
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link a.active {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 1000;
}

.nav-link a:hover {
    cursor: pointer;
    border-bottom: 2px var(--accent-color) solid
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-image: url("kuvat/saalem-hero32.webp");
    background-position: top;
    background-size: 100%;
    color: white;
    text-align: center;
    min-height: 378px;
    display: flex;
    position:sticky;
    top:82px;
    background-repeat: no-repeat;
}

.hero-content {
    position:absolute;
    top: 245px;
    left: 519px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 8px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #c4955c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section style*/

.section:nth-child(even) {
  background-color: white;
}

.section:nth-child(odd) {

  background-color: var(--secondary-color);
}

.section {
    padding: 80px 20px;
    background-color: white;
    position:relative;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.controls {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 2rem;
  position: relative;
}

.section-content-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.section-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-text p.bigger {
    font-size: 1.55rem;
}

.media-container {
    display: flex;
    justify-content: center;
    padding: 1rem;

}

.audio-radio {
    display: none;
}

.video-radio {
    display: none;
}

.media-button {
    border: 1px var(--accent-color) solid;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.media-button.selected {
    background-color: var(--accent-color);
    color: white;
}

.audio-label {
    padding: 3px 40px;
}

.video-label {
    padding: 3px 40px;
}

.audio-toggle {
    border-radius: 8px 0px 0px 8px;
}
.video-toggle {
    border-radius: 0px 8px 8px 0px;
}


.media-button:hover {
    background-color: #ffedd7;
}

.media-button.selected:hover {
    background-color: var(--accent-color);
    color: white;
}

.audio-container,
.video-container {
    display: none;
}

.visible {
    display: block;
}



summary {
    cursor: pointer;
    margin-bottom: 1rem;
}

.year_link:hover {
    color: var(--accent-color);
}

::marker {
    content: "";
}


audio {
    width: 100%;
}

.section-card ul {
    list-style: disc inside;
    margin-left: 20px;
    color: var(--text-light);
}

.section-card ul li {
    font-size: 1.05rem;
}

.section-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
}

.section-grid-one {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.section-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-card[open] {
    grid-row: span 2
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.section-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section a:hover {
    color: var(--accent-color);
}

.section-card p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.section-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Section */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 356px;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 24px;
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 24px;
}

.form-group-grid-cell {
    display: flex;
    flex-direction: column;
}

.form-group label {
    padding:10px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

#calendar-iframe {
    width: 100%;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-color);
        gap: 0;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .yhteys h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 1rem 1rem;
    }

    .nav-links li {
        padding: 0.8rem;
    }

    .hero {
        padding: 60px 20px;
        min-height: 228px;
    }

    .container {
        padding:0px 0px;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 80px 20px;
    }

    .section-card {
        padding: 1rem;
    }

    .section-text p.bigger {
        font-size: 1rem;
    }

    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0rem;
    }

    #calendar-iframe {
        width: 210%;
    }

    #calendar-container {
        overflow: scroll;
    }


}