:root {
    --primary-orange: #f26522;
    --dark-bg: #000000;
    --overlay-black: rgba(0, 0, 0, 0.5);
}

html {
    font-size: 110%;
    /* Az alap 16px-et 17.6px-re emeli mindenhol */
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* FELSŐ SÁV ÉS NAV */
.top-bar {
    background-color: var(--light-grey);
    /* Világos háttér */
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

/* Az új csoportosító elem elrendezése */
.top-left-group {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Távolság a logó és a nyelvválasztó között */
}

/* A logó méretének finomhangolása, hogy ne legyen túl nagy */
.top-bar-logo img {
    width: 50%;
    /* Vagy amennyi neked esztétikus */
    height: auto;
}

/* Biztosítjuk, hogy a container továbbra is kitolja a GINOP képet jobbra */
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*
.top-bar-logo img {
    width: 60%;
    height: auto;
}
*/
/*
.top-right-section {
    display: flex;
    align-items: center;
}
*/

.top-right-section {
    display: flex;
    align-items: center;
    position: relative;
    /* Ez lesz a viszonyítási pont a képnek */
}

.flag-icon {
    width: 25px;
    /* Zászló mérete */
    height: auto;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-right: 5px;
}

.top-right-image img {
    position: absolute !important;
    top: 0px;
    /* Távolság a lap tetejétől */
    right: 0px;
    /* Távolság a jobb szélétől */
    width: 20%;
    /* A kép szélessége */
    height: auto;
    z-index: 1000;
    /* Magas érték, hogy ne takarja el más elem */
}



/* NYELVVÁLASZTÓ DROPDOWN */
.dropdown-toggle {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.dropdown-menu {
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item img {
    margin-right: 10px;
}

.navbar {
    background-color: var(--dark-bg);
    padding: 10px 0;
    /* Kicsit kisebb padding */
    border-bottom: 2px solid var(--primary-orange);
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--primary-orange);
}

/* Menüpontok távolságának javítása - CSAK ASZTALI NÉZETBEN */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        align-items: center;
    }

    .navbar .nav-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar .nav-link {
        padding-left: 12px !important;
        padding-right: 12px !important;
        white-space: nowrap;
    }
}

/* MOBIL NÉZET FINOMHANGOLÁSA (három csíkos menühöz) */
@media (max-width: 991px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        /* Visszaállítjuk függőlegesre */
        padding: 15px 0;
    }

    .navbar .nav-item {
        width: 100%;
    }

    .navbar .nav-link {
        padding: 10px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobilnézetben a lenyíló almenü ne "lebegjen", hanem legyen a lista része */
    .navbar .dropdown-menu {
        position: static !important;
        background-color: #111;
        border: none;
        border-left: 3px solid var(--primary-orange);
        margin: 5px 20px;
    }
}

/* A dropdown elem speciális igazítása, hogy ne ugorjon el */
.navbar .dropdown {
    position: static !important;
    /* Vagy relative, ha a menü fix helyen van */
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    /* Menüpontok paddingje */
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

/* HERO */
.hero {
    height: 70vh;
    background: url('images/bg-1.jpg') center/cover;
    display: flex;
    align-items: center;
}


.hero-text-box {
    width: 50%;
    height: 70%;
    background: var(--overlay-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: white;
}

.hero-text-box h1 {
    font-weight: bold;
}

.btn-cta {
    background-color: var(--primary-orange);
    color: white;
    font-size: 1.6rem;
    padding: 15px 40px;
    /*font-weight: bold;*/
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: #d4561b;
    color: white;
    /*transform: scale(1.05);*/
}

/* 10%-OS MARGÓS SZEKCIÓK */
.margin-section {
    padding: 60px 10%;
    background-color: #fff;
}

.margin-section h3 {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 25px;
}

.margin-section h1 {
    font-weight: 700;
    margin-bottom: 25px;
}

.margin-section p {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.section-subcontent {
    text-align: center;
}

.section-subcontent p {
    padding-bottom: 30px;
}

/* FELSOROLÁS STÍLUS */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.custom-list li i {
    color: var(--primary-orange);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* BERENDEZÉSEK LENYÍLÓ MENÜ STÍLUSA */

/* Egérmutatásra (hover) történő lenyitás asztali nézetben */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* A lenyíló ablak stílusa */
.navbar .dropdown-menu {
    background-color: var(--dark-bg);
    /* Fekete háttér */
    border: 1px solid var(--primary-orange);
    /* Narancs keret */
    border-radius: 0;
    padding: 0;
}

/* Az almenüpontok stílusa */
.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 20px;
    transition: 0.3s;
}

/* Almenüpont hover állapota */
.navbar .dropdown-item:hover {
    background-color: var(--primary-orange);
    color: white;
}

/* A kis nyíl eltüntetése (opcionális, ha tisztább kinézetet szeretnél) */
.dropdown-toggle::after {
    display: none !important;
}

/* Elválasztó vonal színe */
.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* DINAMIKUS TECH SZEKCIÓK */
.tech-section {
    padding: 40px 0;
    background: #fff;
}

.tech-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.tech-container-reverse {
    justify-content: flex-end;
}

.tech-image-left,
.tech-image-right,
.tech-image-full {
    /*    height: 450px;*/
    height: 60vh;
    object-fit: cover;
    z-index: 1;
}

.tech-image-left,
.tech-image-right {
    width: 70%;
}

.tech-image-full {
    width: 100%;
}

.tech-text-right {
    width: 35%;
    background: var(--overlay-black);
    color: white;
    padding: 40px;
    margin-left: -30%;
    z-index: 2;
    position: relative;
    border-left: 5px solid var(--primary-orange);
}

.tech-text-left {
    width: 35%;
    background: var(--overlay-black);
    color: white;
    padding: 40px;
    margin-right: -30%;
    z-index: 2;
    position: relative;
    border-right: 5px solid var(--primary-orange);
    text-align: right;
}

.tech-container-bottom {
    flex-direction: column;
    align-items: center;
    /*padding-bottom: 100px;*/
}

.tech-image-center {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tech-text-bottom {
    width: 50%;
    background: var(--overlay-black);
    color: white;
    padding: 40px;
    margin-top: -80px;
    z-index: 3;
    position: relative;
    border-top: 5px solid var(--primary-orange);
    text-align: center;
}

/* TELJES SZÉLESSÉGŰ ZÁRÓ KÉP */
.full-width-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* LÁBLÉC (3 RÉSZES) */
footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 0;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-text {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.footer-menu {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-left: 100px;
}

.footer-menu li {
    margin-bottom: 5px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    /*text-transform: uppercase;*/
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: var(--primary-orange);
}

@media (max-width: 992px) {

    .tech-container,
    .tech-container-reverse,
    .tech-container-bottom {
        flex-direction: column !important;
        align-items: center;
        padding-bottom: 20px;
    }

    .tech-image-left,
    .tech-image-right,
    .tech-image-center {
        width: 100%;
        height: 300px;
    }

    .tech-text-right,
    .tech-text-left,
    .tech-text-bottom {
        width: 90%;
        margin: -40px 0 20px 0;
        text-align: left;
        border: none;
        border-left: 5px solid var(--primary-orange);
    }

    .footer-menu {
        text-align: left;
        margin-top: 30px;
    }

    .footer-center {
        margin: 30px 0;
    }
}