* {
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Raleway', sans-serif;
}

h2 {
    font-size: 1.4rem;
}

.menusor {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.menusor nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
}

.menusor nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex-wrap: wrap;
}

.menusor nav li {
    margin: 0 10px;
}

.menusor nav a {
    text-decoration: none;
    color: #544f4f;
    font-weight: 500;
    padding: 5px 5px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.menusor nav a:hover {
    background-color: #e0e0e0;
    color: #000;
}

#logo1, #logo2 {
    height: 80px;
    width: auto;
}

@media (max-width: 1035px) {
    .menusor nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #logo1 {
        height: 60px;
    }

    #logo2 {
        height: 0px;
    }

    .menusor nav li {
        margin: 5px 0;
    }
}

.idezet-blokk {
    width: 100%;
    background-image: url('img/kezdo_fokep.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-shadow: none;
}

.idezet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.idezet-tartalom {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.idezet {
    font-size: 3.6rem;
    font-style: italic;
    margin-bottom: 15px;
    margin-top: 50px;
}

.szerzo {
    font-size: 2rem !important;
}

.haziko-szekcio {
    width: 62.5%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.haziko {
    width: 24%;
    aspect-ratio: 1 / 1;
    background: #e9e9e9;
    clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.haziko span {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.haziko-szekcio p {
    position: absolute;
    transform: translate(-50%, -80%);
    color: rgb(0, 0, 0);
    font-size: 1.6rem;
    text-align: center;
    z-index: 1;
}

.haziko:hover {
    background: #fcd34d;
}

.haziko:hover span {
    color: #2a2a2a;
}

.koszonto-blokk {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 100px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: #505050;
}

.koszonto-blokk p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.koszonto-blokk .alairas {
    font-weight: bold;
    margin-top: 40px;
    text-align: left;
}

.jelentkezes-kontener {
    width: 75%;
    margin: 0 auto;
    overflow: hidden;
}

#jelentkezesott {
    float: left;
    width: 45%;
    margin-right: 5%;
    border-radius: 8px;
    height: auto;
}

.jelentkezesszoveg {
    float: left;
    width: 50%;
    font-size: 1.1rem;
    color: #505050;
    text-align: justify;
    line-height: 1.6;
}

.jelentkezes-blokk h2{
    text-align: center;
    padding-bottom: 4%;
}

.jelentkezes-blokk{
    background-color: rgb(255, 255, 255);
}

.jelentkezesszoveg {
    flex: 1 1 55%;
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.6;
    text-align: justify;
}

.jelentkezesszoveg h3{
    padding-top: 4%;
    color: #505050;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.jelentkezesszoveg ul {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.jelentkezesszoveg p strong {
    color: #d32020 !important;
}

@media (max-width: 768px) {
    .jelentkezes-kontener {
        flex-direction: column;
    }

    #jelentkezesott,
    .jelentkezesszoveg {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.utmutato-blokk {
    background-image: url('img/utmutatoul.jpg');
    width: 100%;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 20px;
    text-align: center;
    position: relative;
}

.utmutato-blokk h3 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.utmutato-blokk blockquote {
    font-size: 1.4rem;
    font-style: italic;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.utmutato-blokk span {
    position: absolute;
    right: 5%;
    bottom: -80px;
    font-size: 1.8rem;
}

.szakapolas-blokk {
    max-width: 75%;
    margin: 40px auto;
    padding: 20px;
}

.szakapolas-blokk h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.szakapolas-blokk h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #505050;
    margin-bottom: 15px;
}

.szakapolas-blokk p {
    font-size: 1.1rem;
    color: #505050;
    margin-bottom: 15px;
    line-height: 1.8;
}

/******************************************Ellátásaink*************************************/

.ellatasaink-blokk {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.ellatasaink-blokk h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.ellatas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.ellatas-item {
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ellatas-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.ellatas-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.ellatas-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/******************************************Jelentkezés*************************************/

.jelentkezes-blokk ul {
    list-style: disc inside;
    padding-left: 20px;
    font-size: 1.1rem;
    color: #505050;
}

.jelentkezes-blokk p strong {
    color: rgb(250, 225, 215);
}

.jelentkezesott {
    width: 48%;
}

.jelentkezesszoveg {
    margin-left: 52%;
    margin-top: -33%;
    margin-bottom: 20%;
}

/******************************************Galéria*************************************/

.galeria-blokk {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.galeria-blokk h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.galeria-3x3 {
    width: 100%;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "kep1 kep2 kep3"
        "kep1 kep4 kep5"
        "kep6 kep7 kep8";
    gap: 16px;
    grid-auto-rows: minmax(210px, 1fr);
}

.galeria-item {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    min-height: 210px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galeria-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.item1 { 
    grid-area: kep1;
    min-height: 436px;
}

.item2 { 
    grid-area: kep2;
}

.item3 { 
    grid-area: kep3;
}

.item4 { 
    grid-area: kep4;
}

.item5 { 
    grid-area: kep5;
}

.item6 { 
    grid-area: kep6;
}

.item7 { 
    grid-area: kep7;
}

.item8 { 
    grid-area: kep8;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 30px;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "kep1"
            "kep2"
            "kep3"
            "kep4"
            "kep5"
            "kep6"
            "kep7"
            "kep8";
    }

    .galeria-item,
    .item1 {
        min-height: 260px;
    }

    .lightbox {
        padding: 20px 12px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .jelentkezes-blokk, .utmutato-blokk, .szakapolas-blokk, .idezet-blokk {
        padding: 20px;
    }

    .jelentkezes-blokk h2, .szakapolas-blokk h2, .idezet-blokk h2 {
        font-size: 1.8rem;
    }

    .jelentkezes-blokk h3, .szakapolas-blokk h3 {
        font-size: 1.6rem;
    }
}

/******************************************Kapcsolatok*************************************/

#kapcsolatok {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
}

#kapcsolatok h2 {
    font-size: 2em;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.kapcsolat-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.kapcsolatok-block, .uzenetkuldo-block {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-basis: 48%;
    box-sizing: border-box;
    text-align: left;
}

.kapcsolatok-block h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
}

.kapcsolatok-block p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.uzenetkuldo-block form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.uzenetkuldo-block label {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

.uzenetkuldo-block input, .uzenetkuldo-block textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.uzenetkuldo-block button {
    padding: 10px 15px;
    background-color: #7e7775;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.uzenetkuldo-block button:hover {
    background-color: #333;
}

#gondozohazfooter {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.szech img {
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 10px; 
    z-index: 10; 
    width: 7%;
}

/************************************** DOKUMENTUMOK ***********************************/

.downloads {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

.downloads h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.document-list li {
    background: #7e7775;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    box-sizing: border-box;
}


.document-list li:hover {
    background-color: #333;
}

.document-list a {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 100%;
}

.doc-icon {
    width: 32px;
    height: 32px;
    grid-column: 1;
    margin: 0;
}

.document-list span {
    font-size: 16px;
    font-weight: 500;
    grid-column: 2;
    text-align: center;

}

@media (max-width: 480px) {
    .document-list li {
    padding: 10px 12px;
    }

    .doc-icon {
    width: 28px;
    height: 28px;
    }

    .document-list span {
    font-size: 15px;
    }
}