body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    font-size: 1em;
    line-height: 1.6;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background-color: #f0f0f0;
    color: #000000;
    padding: 10px 15px;
    z-index: 10000;
    text-decoration: none;
    border: 1px solid #000000;
}
.skip-link:focus {
    left: 10px;
}
.site-header {
    background-color: #eeeeee;
    padding: 10px 20px;
    border-bottom: 1px solid #dddddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #333333;
}
.main-nav ul, .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.main-nav li, .footer-nav li {
    margin-left: 15px;
}
.main-nav a, .footer-nav a {
    text-decoration: none;
    color: #333333;
    padding: 5px 10px;
}
.main-nav a:hover, .footer-nav a:hover, .main-nav a.active, .footer-nav a.active {
    text-decoration: underline;
    font-weight: bold;
}
#toggle-contrast {
    background-color: #cccccc;
    color: #000000;
    border: 1px solid #aaaaaa;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
}
#toggle-contrast:hover {
    background-color: #bbbbbb;
}
main#main-content {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
}
.hero-section-with-background {
    width: 100%;
    margin-bottom: 20px;
}
.hero-background-image {
    background-image: url('https://behaviour.hu/wp-content/uploads/2023/10/140039676_l_normal_none-2048x1365.jpg');
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.hero-text-overlay {
    background-color: rgba(238, 238, 238, 0.7); 
    padding: 15px 25px;
    border-radius: 5px;
    color: #333333;
}
.hero-text-overlay h1 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 2em; 
}
.hero-text-overlay p {
    margin-bottom: 0;
    font-size: 1.1em;
}
.content-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}
.content-section:last-child {
    border-bottom: none;
}
h1 {
    font-size: 1.8em;
    color: #333333;
    margin-top: 0;
    margin-bottom: 0.75em;
}
.content-section > article > h1 {
    font-size: 1.8em; 
}
h2 {
    font-size: 1.5em;
    color: #444444;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
h3 {
    font-size: 1.2em;
    color: #555555;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
p {
    margin-bottom: 1em;
    color: #333333;
}
a {
    color: #000000;
}
a:visited {
    color: #333333;
}

/* MÓDOSÍTOTT/ÚJ STÍLUSOK A TÁBLÁZAT FELETTI DETAILS ELEMHEZ */
.table-details-container { /* A details elemet a táblázat fölé helyeztük */
    margin-bottom: 10px; /* Térköz a details és a táblázat között */
}
.table-details-container summary {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #dddddd;
    display: block; 
}
.table-details-container summary:hover {
    background-color: #e7e7e7;
}
.table-details-container[open] summary {
    border-bottom: 1px dashed #dddddd; /* Jelzi, hogy nyitva van, és tartalom követi */
}
.table-description {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-top: none; /* Összeolvad a summary alsó keretével, ha a summary nyitva van */
    font-size: 0.9em;
    color: #555555;
}
.table-description p {
    margin-bottom: 0.5em;
}
.table-description p:last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px 0; /* Nincs felső margó, ha a details felette van */
    font-size: 0.95em;
}
table th, table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}
table th {
    background-color: #f0f0f0;
    font-weight: bold;
}
video.main-video {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    background-color: #cccccc;
}
.image-gallery-section {
    margin-top: 20px;
}
.image-gallery-section figure {
    display: inline-block;
    margin: 0 10px 10px 0;
    width: calc(33.333% - 10px);
    vertical-align: top;
}
.image-gallery-section img.gallery-image {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid #dddddd;
    background-color: #eeeeee;
}
.image-gallery-section figcaption {
    font-size: 0.9em;
    text-align: center;
    color: #555555;
    padding-top: 5px;
}
.thumbnail a {
    display: block;
}
address p {
    margin-bottom: 0.5em;
}
form div, form fieldset {
    margin-bottom: 15px;
}
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333333;
}
form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #cccccc;
    font-size: 1em;
    background-color: #f9f9f9;
    color: #000000;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #aaaaaa;
    background-color: #ffffff;
}
form textarea {
    min-height: 80px;
    resize: vertical;
}
form fieldset {
    border: 1px solid #dddddd;
    padding: 10px;
}
form legend {
    font-weight: bold;
    padding: 0 5px;
    color: #333333;
}
.radio-group, .checkbox-group {
    margin-bottom: 5px;
}
.radio-group label, .checkbox-group label {
    font-weight: normal;
    margin-left: 5px;
    display: inline;
}
.form-buttons button {
    background-color: #cccccc;
    color: #000000;
    border: 1px solid #aaaaaa;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 10px;
}
.form-buttons button:hover {
    background-color: #bbbbbb;
}
.form-buttons button[type="reset"] {
    background-color: #dddddd;
}
.form-buttons button[type="reset"]:hover {
    background-color: #cccccc;
}
.sidebar-section {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eeeeee;
}
.sidebar-section ul {
    list-style: disc;
    padding-left: 20px;
}
.sidebar-section ul li a {
    text-decoration: underline;
}
.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #eeeeee;
    border-top: 1px solid #dddddd;
    font-size: 0.9em;
    color: #555555;
}
.site-footer .footer-nav {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .main-nav ul, .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li, .footer-nav li {
        margin: 5px 0;
    }
    .site-header {
        flex-direction: column;
    }
    .logo-text {
        margin-bottom: 10px;
    }
    #toggle-contrast {
        margin-top:10px;
    }
    .image-gallery-section figure {
        width: calc(50% - 10px);
    }
    .hero-text-overlay h1 {
        font-size: 1.8em;
    }
    .hero-text-overlay p {
        font-size: 1em;
    }
    form input[type="text"],
    form input[type="email"],
    form textarea {
        width: calc(100% - 22px);
    }
}
@media (max-width: 480px) {
    body {
        font-size: 0.95em;
    }
    h1 {
        font-size: 1.5em;
    }
    .hero-text-overlay h1 {
        font-size: 1.6em; 
    }
    .hero-text-overlay p {
        font-size: 0.9em; 
    }
    .image-gallery-section figure {
        width: 100%; 
        margin-right: 0;
    }
    .main-nav, .footer-nav, #toggle-contrast {
        width: 100%;
        text-align: center;
    }
    .main-nav ul, .footer-nav ul {
        width: 100%;
    }
     .main-nav li, .footer-nav li {
       width: 100%;
    }
    .main-nav a, .footer-nav a {
       display: block;
       padding: 8px;
    }
}