--- START OF FILE CSS/style.css ---
/* CSS Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background */
    margin: 0;
}

#container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; /* Clear floats/flexbox context */
}

/* Header */
#header {
    background-color: #005691; /* ÚJ FŐ HANGSÚLYSZÍN (mély kék) */
    color: #fff;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally in the header */
}

#header h1 {
    margin: 0 0 15px 0; /* Add some space below the title */
    font-size: 2.2em;
    letter-spacing: 1px;
}

/* Horizontal Navigation (Main Menu) */
.main-navigation {
    width: 100%;
    background-color: #EAF4F9; /* ÚJ KIEGÉSZÍTŐ VILÁGOS HÁTTÉRSZÍN */
    padding: 10px 0;
}

.main-navigation ul.main-menu {
    list-style: none;
    display: flex; /* Make menu items horizontal */
    flex-wrap: wrap; /* Allow items to wrap to next line on smaller screens */
    justify-content: center; /* Center menu items */
    margin: 0;
    padding: 0;
}

.main-navigation ul.main-menu li {
    margin: 0 10px; /* Space between menu items */
}

.main-navigation ul.main-menu li a {
    display: block;
    padding: 8px 15px;
    background-color: transparent; /* Transparent background for default state */
    color: #333; /* Dark text for menu items */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation ul.main-menu li a:hover,
.main-navigation ul.main-menu li a:active {
    background-color: #005691; /* ÚJ FŐ HANGSÚLYSZÍN hover esetén */
    color: #fff;
    text-decoration: none;
}

/* Related Links Wrapper (now part of header) */
.related-links-wrapper {
    width: 100%; /* Take full width */
    background-color: #f0f0f0; /* Lighter background */
    padding: 15px 20px; /* Padding above and below, left/right */
    margin-top: 15px; /* Space between main nav and this section */
    display: flex;
    flex-direction: row; /* Horizontal by default */
    flex-wrap: wrap;     /* Allow wrapping if space is tight */
    justify-content: center; /* Center blocks */
    gap: 20px; /* Space between blocks */
    border-radius: 5px; /* Slightly rounded corners */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Subtle inner shadow */
}

.related-link-block {
    flex: 1 1 200px; /* Allow blocks to grow/shrink, with a minimum width for content */
    max-width: 300px; /* Prevent blocks from becoming too wide */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9em; /* Slightly adjusted font size */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-link-block:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-link-block a {
    display: block; /* Make the entire block clickable */
    color: #007bff; /* Unified blue color */
    text-decoration: none;
}

.related-link-block a:visited {
    color: #0056b3; /* Slightly darker blue for visited links */
}

.related-link-block a:hover {
    text-decoration: underline;
    color: #007bff; /* Keep blue on hover */
}

.related-link-block a:active {
    color: #003a80; /* Darker blue when active */
}

.related-link-block p {
    margin: 0;
    line-height: 1.4;
    color: #333; /* Ensure text color is readable */
}

.related-link-block p span {
    font-weight: bold; /* Keep link text bold if desired */
}


/* Main Content Wrapper (now only contains main content) */
.content-wrapper {
    display: block; /* No longer a flex container for sidebar + main */
    padding: 20px; /* Add some padding around the main content */
}

/* Main Content */
#main-content {
    width: 100%; /* Main content takes full width */
    padding: 0; /* Remove padding as it's now on .content-wrapper */
}

#main-content h2 {
    font-size: 1.8em;
    color: #005691; /* ÚJ FŐ HANGSÚLYSZÍN */
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.content-block {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fcfcfc;
}

.content-block.content-header {
    background-color: #e9e9e9;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.content-block.content-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.6em;
    color: #333;
}

.news-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee; /* Subtle separator for news items */
}

.news-item:last-of-type {
    border-bottom: none; /* No border for the last news item */
}

.news-item h3.news-title {
    font-size: 1.4em;
    color: #005691; /* ÚJ FŐ HANGSÚLYSZÍN */
    margin-bottom: 10px;
}

.news-item p {
    margin-bottom: 10px;
}

.news-item p strong {
    font-weight: bold;
    color: #555; /* Slightly darker for strong text */
}

.news-item p span {
    font-weight: bold; /* For specific highlighted spans like names */
    color: #555;
}

.news-item p.news-subtitle {
    font-size: 1.1em;
    font-weight: bold;
    color: #666;
    margin-top: 15px;
}

.news-item .payment-info div {
    margin-bottom: 5px;
}

.news-item .payment-info-date {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}


/* Images (Centered by default, use specific classes for other alignments) */
.responsive-img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Required for margin auto to work */
    margin: 15px auto; /* Center images horizontally by default */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image Captions */
.image-caption {
    text-align: center;
    font-style: italic;
    margin-top: 5px; /* Adjust spacing to be slightly below the image */
    margin-bottom: 15px; /* Space below caption before next element */
    color: #555; /* Slightly darker grey for captions */
    font-size: 0.95em;
}

/* Staff List Specific Styles */
.staff-section {
    margin-bottom: 40px;
}

.staff-section-title {
    font-size: 1.8em;
    color: #34495e; /* Darker blue-grey for section titles */
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    text-align: left; /* Align to left as seen in image */
    font-weight: bold;
}

.staff-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: flex-start; /* Align cards to the left within the grid */
}

.staff-card {
    flex: 0 0 calc(33.333% - 20px); /* Three columns, accounting for gap */
    max-width: calc(33.333% - 20px); /* Max width for consistency */
    background-color: #fdfdfd; /* Very light background for cards */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Erősebb, láthatóbb árnyék */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Vékony, de látható keret */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left; /* Align text within card to left */
}

.staff-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Még erősebb árnyék hover esetén */
}

.staff-card .staff-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #34495e; /* Darker text for names */
    margin-bottom: 5px;
}

.staff-card .staff-role {
    font-size: 0.9em;
    color: #666;
    font-style: normal; /* Ensure role is not italic */
    line-height: 1.3;
}

/* Contact Page Specific Styles */
.contact-section {
    margin-bottom: 30px;
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-section-title {
    font-size: 1.6em;
    color: #34495e;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.contact-details-block {
    display: flex;
    flex-direction: column; /* Stack details vertically */
    gap: 8px; /* Space between lines of contact info */
    align-items: flex-start; /* Align all items to the left */
}

/* New style for image and first line of text to be in a row */
.image-text-row {
    display: flex;
    align-items: center; /* Vertically center image and text */
    margin-bottom: 10px; /* Space below this row */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.image-text-row p {
    margin: 0; /* Remove default paragraph margin */
}


/* Specific styling for small images on contact page */
.small-contact-img {
    max-width: 150px; /* Original width */
    height: auto;
    margin: 0 15px 0 0; /* Margin to the right, no vertical auto margin */
    display: block; /* Still block to maintain its own space */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Document Page Specific Styles */
.document-category {
    margin-bottom: 30px;
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.document-category-title {
    font-size: 1.6em;
    color: #34495e;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between document items */
}

.document-item p {
    margin: 0; /* Remove default paragraph margins */
}

.document-item p strong {
    font-weight: bold;
    color: #555;
}

/* Modified to make the entire line clickable for document links */
.document-item a {
    display: block; /* Make the entire link area a block element */
    padding: 5px 10px; /* Add some padding for easier clicking */
    color: #007bff; /* Ensure unified blue color */
    text-decoration: none; /* Remove underline by default */
    background-color: #f9f9f9; /* Light background for the clickable block */
    border-radius: 4px;
    transition: background-color 0.2s ease, text-decoration 0.2s ease;
}

.document-item a:hover {
    background-color: #e9f5ff; /* Lighter blue background on hover */
    text-decoration: underline; /* Underline on hover */
    color: #007bff; /* Keep blue on hover */
}

/* Decoration Section Specific Styles (for barkacsszakkor.html) */
.decoration-section {
    margin-bottom: 30px;
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center; /* Center content within the section */
}

.decoration-section-title {
    font-size: 1.6em;
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 0;
    font-weight: bold;
    text-align: center; /* Center the title */
}

.decoration-section .gallery-trigger {
    display: block; /* Make the entire trigger area clickable */
    color: #007bff; /* Unified link color */
    text-decoration: none;
    padding: 10px; /* Padding for the clickable area */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.decoration-section .gallery-trigger:hover {
    background-color: #e9f5ff; /* Light background on hover */
    text-decoration: underline; /* Underline on hover for visual feedback */
}

.decoration-section .gallery-trigger p {
    margin: 0; /* Remove default paragraph margins within the trigger */
    color: #007bff; /* Ensure link text remains blue */
}

.decoration-section .responsive-img {
    margin-bottom: 10px; /* Space between image and "Megtekintés" text */
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-direction: column;
}

.gallery-modal.active {
    display: flex; /* Show when active */
}

.gallery-content {
    position: relative;
    padding: 20px;
    background-color: transparent; /* Main content is transparent, image stands out */
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-content img {
    max-width: 100%;
    max-height: 80vh; /* Max height to fit viewport */
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    object-fit: contain; /* Ensures image fits within bounds without cropping */
}

.close-button {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #005691; /* ÚJ FŐ HANGSÚLYSZÍN hover esetén */
    text-decoration: none;
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 25px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-button {
    left: 15px;
}

.next-button {
    right: 15px;
}

#gallery-counter {
    color: #fff;
    font-size: 1.1em;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}


/* Horizontal Rule Styling */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
    width: 100%; /* Ensure it spans the full width of its container */
}

/* Footer */
#footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#footer p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) { /* Adjust for medium screens (e.g., tablets) */
    .staff-card {
        flex: 0 0 calc(50% - 20px); /* Two columns */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    #container {
        margin: 10px;
        box-shadow: none;
        border-radius: 0;
    }

    #header {
        padding: 15px;
        font-size: 0.9em;
        border-radius: 0;
    }

    #header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .main-navigation {
        padding: 8px 0;
    }

    .main-navigation ul.main-menu {
        flex-direction: column; /* Stack main menu items vertically on small screens */
        align-items: center; /* Center items */
    }

    .main-navigation ul.main-menu li {
        margin: 5px 0; /* Adjust spacing for stacked items */
        width: 90%; /* Make items take more width */
    }

    .main-navigation ul.main-menu li a {
        padding: 10px 12px;
        font-size: 0.95em;
        text-align: center;
    }

    /* Related links stack vertically on small screens */
    .related-links-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Adjust gap for stacked items */
        padding: 10px 15px;
        margin-top: 10px;
    }

    .related-link-block {
        width: 90%; /* Take more width when stacked */
        max-width: unset; /* Remove max-width for stacking */
        min-width: unset; /* Remove min-width for stacking */
        margin: 0 auto; /* Center individual blocks when stacked */
        padding: 10px;
        font-size: 0.8em; /* Further reduce font size */
    }

    .related-link-block:hover {
        transform: none; /* Disable hover effect on touch devices */
        box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Keep base shadow */
    }

    .content-wrapper {
        padding: 15px; /* Adjust padding for small screens */
    }

    #main-content h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .news-item h3.news-title {
        font-size: 1.2em;
    }

    .content-block {
        padding: 10px;
    }

    .image-caption {
        font-size: 0.85em; /* Smaller font on mobile for captions */
        margin-top: 10px; /* Adjust spacing for mobile */
    }

    .staff-section-title, .contact-section-title, .document-category-title, .decoration-section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .staff-card {
        flex: 0 0 100%; /* Single column on very small screens */
        max-width: 100%;
        padding: 15px;
    }

    .staff-card .staff-name {
        font-size: 1.1em;
    }

    .staff-card .staff-role {
        font-size: 0.85em;
    }

    .contact-section {
        padding: 15px;
    }

    .image-text-row {
        flex-direction: column; /* Stack image and text vertically on mobile */
        align-items: flex-start; /* Align image and text to the left */
        gap: 5px; /* Smaller gap for mobile stacking */
        margin-bottom: 10px;
    }

    .small-contact-img {
        max-width: 100px; /* Smaller image on mobile */
        margin: 0 0 10px 0; /* Adjust margins for stacking */
    }

    .document-category {
        padding: 15px;
    }

    .document-item a {
        padding: 8px; /* Adjust padding for mobile */
    }

    .decoration-section .decoration-title a {
        font-size: 1.4em; /* Adjust title size for mobile */
        padding: 5px 0;
    }

    /* Gallery Modal Responsive Adjustments */
    .gallery-content {
        padding: 10px;
    }

    .gallery-content img {
        max-height: 70vh; /* Adjust height for mobile */
    }

    .close-button {
        font-size: 30px;
        right: 15px;
        top: 10px;
    }

    .prev-button, .next-button {
        padding: 8px 12px;
        font-size: 20px;
    }

    .prev-button {
        left: 5px;
    }

    .next-button {
        right: 5px;
    }

    #gallery-counter {
        font-size: 0.9em;
    }
}

/* Further adjustments for really small screens to ensure content fits */
@media (max-width: 480px) {
    .main-navigation ul.main-menu li {
        width: 100%; /* Full width menu items */
        margin: 5px 0;
    }
}
--- END OF FILE CSS/style.css ---