/* ===== OPTIMALIZÁLT ACCORDION RENDSZER CSS ===== */

/* =============================================== */
/* ===== GLOBÁLIS CSS SZABÁLYOK (MINDEN ESZKÖZ) ===== */
/* =============================================== */

/* === CSS VÁLTOZÓK === */
:root {
    --primary-blue: #000B8C;
    --border-blue: #585DFF;
    --accent-orange: #ff4712;
    --text-dark: #1A1A1A;
    --text-light: #555;
    --text-white: #fff;
    --background-light: #fff;
    --background-hover: #e9ecef;
    --border-light: #e0e0e0;
    --border-table: #ddd;
    --transition-fast: 0.3s ease;
}

/* === ALAPVETŐ STÍLUSOK === */
.grey-text {
    color: var(--text-dark);
}

.background-image {width:100%;}

.form-title {
    font-size: 14px;
    color: #fff;
    text-align: center;
    margin-bottom:20px;
}

.h2-title {
    font-size: 20px;
    text-transform: none;
    font-weight: bold;
    color: var(--text-dark);
    text-align: left;
    padding-left: 0px;
    margin-bottom: 30px;
    padding-bottom: 0px;
}

.hero-block h1 {
    font-weight: bold;
    font-size: 28px;
    color: #FFFFFF;
    line-height: 1.4em;
}

/* Pulzáló körök desktop-on rejtettek */
    .image-container {
        position: relative;
    }


/* === Contact adatok === */

.contact-item {
            display: block;
            color: white;
            text-decoration: none;
            margin-bottom: 10px;
            transition: opacity 0.3s ease;
        }

        .contact-item:hover {
            opacity: 0.8;
        }

        .contact-item:last-child {
            margin-bottom: 0;
        }

        .contact-icon {
            display: none;
            width: 20px;
            height: 20px;
            margin-right: 10px;
            vertical-align: middle;
            filter: brightness(0) invert(1);
        }

/* === GRID RENDSZER === */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.grid-item {
    display: flex;
    align-items: stretch;
}

/* === PANEL STÍLUSOK === */
.panel {
    display: flex;
    flex-direction: column;
    max-width: 360px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-radius: 4px;
    padding: 20px;
    border: 1px solid var(--border-blue);
}

.panel .text-content h3,
.panel .accordion-header h3 {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
}

.panel .text-content p {
    color: var(--text-white);
}

.panel-container.mobile-content {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 10px;
}

.mobile-content .panel .accordion-content {
    background-color:#000b8c;
}

/* === IKON ÉS TARTALOM ELRENDEZÉS === */
.icon {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.text-content h3 {
    margin: 0;
    font-size: 16px;
    line-height:1.4;
    font-weight: bold;
}

.text-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* === CÉGPROFIL SPECIFIKUS STÍLUSOK === */
.company-profile-container {
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.company-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 30px;
}

.company-logo-section img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

.company-mobile-logo {
    max-height: 60px;
    width: auto;
    margin-right: 15px;
    flex-shrink: 0;
}

.company-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.company-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
}

/* === TÁBLÁZAT STÍLUSOK === */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    border:none!important;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.responsive-table td {
    padding: 5px 0px!important;
    border:none;
    vertical-align: top;
}
.entry-content tr td {border:none;}

.responsive-table .label {
    font-weight: bold;
    color: #333;
    width: 30%;
    background-color: var(--background-light);
}

.responsive-table .value {
    color: #1a1a1a;
    width: 70%;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

/* === LOGO GRID === */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Desktop képek megjelenítése alapértelmezetten */
.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

/* === HERO SECTION === */
.hero-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size:16px;
    line-height:1.4;
}

.hero-block .cta-btn {
    font-size:14px;
    padding: 12px 20px;
    background-color: #ff4712;
    border: 1px solid #BF2B00;
    color: #fff;
    width: auto;
    border-radius: 4px;
    transition: all 300ms ease 0ms;
}

.hero-block .cta-btn:hover {
    background-color: #ff683c;
}

.hero-row-block,
.hero-row-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    color: #fff;
}

.eszkozok-bekezdes-mobile {
text-align: center;
font-size: 14px;    
}

/* =============================================== */
/* ===== DESKTOP NÉZET (1025px+) ===== */
/* =============================================== */

@media (min-width: 1025px) {
    /* Cégprofil desktop layout */
    .company-profile-container {
        display: grid;
        align-items: stretch;
        grid-template-columns: 240px 4fr;
        gap: 0px;
        margin-bottom: 20px;
    }
    
    .eszkozok-bekezdes-mobile {display:none;}
    .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;    
    }
    .form-title {display:none;}
    .contact-item {
                padding: 0;
                margin:0;
                border: none;
                background: none;
                border-radius: 0;
            }

            .contact-icon {
                display: none !important;
            }
        
    .pulsing-circle {display:none;}
    
    .company-grid-item .desktop-content {
        border-left: 2px solid #ff4712;
        padding-left: 30px;
        font-size:14px;
    }

    /* Accordion elemek elrejtése desktop-on */
    .accordion-header {
        display: none !important;
    }

    .accordion-content {
        display: none !important;
    }
    
    /* Mobil elemek elrejtése asztalon */
    .mobile-content {
        display: none !important;
    }
    
    /* Pozicionálási vonalak */
    .vonal {
        position: absolute;
    }
    
    .vonal-1 {
        top: 25px;
        left: -26px;
    }
    
    .vonal-2 {
        top: -75px;
        left: 20px;
    }
    
    .vonal-3 {
        top: -46px;
        left: -175px;
    }
    
    .vonal-4 {
        top: -78px;
        left: 20px;
    }
    
    /* Panel pozícionálás */
    .panel-1 {
        position: absolute;
        top: 110px;
        left: -75px;
    }
    
    .panel-2 {
        position: absolute;
        bottom: -60px;
        left: -75px;
    }
    
    .panel-3 {
        position: absolute;
        top: 110px;
        right: -65px;
    }
    
    .panel-4 {
        position: absolute;
        bottom: -20px;
        right: -165px;
    }
}

/* =============================================== */
/* ===== FEKVŐ TABLET NÉZET (981px - 1024px) ===== */
/* =============================================== */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) {
    .et_pb_code_1 {
        width: 700px !important;
    }
    .panel-1 {
        top: 50px;
        left: -110px;
    }
    .panel-2 {
        bottom: -80px;
        left: -100px;
    }
    .panel-3 {
        top: 80px;
        right: -130px;
    }
    .panel-4 {
        position: absolute;
        bottom: -120px;
        right: -135px;
    }
    .et_pb_section_2.et_pb_section {padding-top:40px!important;}
    .et_pb_row {width:100%;}
    .et_pb_section_0.et_pb_section,
    .et_pb_section_6 {
        padding-left:40px!important;
        padding-right:40px!important;
    }
    .et_pb_section_6.et_pb_section {margin-top:-140px!important;}
}


/* =============================================== */
/* ===== TABLET NÉZET (768px - 980px) ===== */
/* =============================================== */

@media all and (min-width: 768px) and (max-width: 980px) {
.hero-row-block {width: 440px;}
}

/* =============================================== */
/* ===== TABLET ÉS MOBIL NÉZET (1024px-) ===== */
/* =============================================== */

@media (max-width: 1024px) {
    /* Grid átállítása egyoszlopra */
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .eszkozok-bekezdes-desktop {display:none;}
    .grid-wrapper.piller .accordion-content {background-color:#fff;}
    
    .hero-block .cta-btn {
        position:absolute;
        bottom:-20px;
        font-size:16px;
    }
    
    .contact-item {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 20px 10px;
                border: 1px solid white;
                border-radius: 4px;
                background: none;
                margin-bottom: 15px;
            }

            .contact-item:last-child {
                margin-bottom: 0;
            }

            .contact-icon {
                display: inline-block;
            }
    
    .h2-title {
        font-size: 16px;
        text-align: center;
        padding-left: 0px;
        margin-bottom: 20px;
    }
    
    .hero-block h1 {
        font-size: 24px;
    }
    
    /* Pulzáló körök megjelenítése */
    .pulsing-circle {
        display: flex;
    }
    
    .pulsing-circle {
        position: absolute;
        width: 32px;
        height: 32px;
        background-color: #ff4712;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 13px;
        font-weight: bold;
        transform: translate(-50%, -50%);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 71, 18, 0.7);
        }
        50% {
            box-shadow: 0 0 0 15px rgba(255, 71, 18, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 71, 18, 0);
        }
    }

    .circle-1 {
        top: 52%;
        left: 7%;
    }

    .circle-2 {
        top: 63%;
        left: 23%;
    }

    .circle-3 {
        top: 15%;
        left: 50%;
    }

    .circle-4 {
        top: 75%;
        left: 80%;
    }

    .panel {
        width: 100%;
        max-width:100%;
        padding: 0px;
    }

    .grid-item {
        flex-direction: column;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        overflow: hidden;
    }

    /* Cégprofil tablet/mobil beállítások */
    .company-profile-container {
        display: block;
        padding: 0px;
    }

    .company-logo-section {
        display: none;
    }

    .company-content-section {
        width: 100%;
    }

    .company-grid-item {
        flex-direction: column;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    /* Desktop elemek elrejtése tablet/mobilon */
    .desktop-icon,
    .desktop-content {
        display: none !important;
    }
    
    /* Logo grid tablet/mobil beállítások */
    .logo-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .logo-item img {
        max-height: 50px;
    }
    
    /* Mobile képek megjelenítése */
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
    }

    /* Hero section tablet/mobil */
    .hero-block {
        gap: 0px;
    }
    
    .hero-row-1 {
        display: flex;
        flex-direction: column;
        padding: 20px;
        background-image: url(https://znz.hu/wp-content/uploads/2025/07/ipari-es-logisztikai-megelozo-vedelmi-megoldasok-hero-mobile.webp);
        background-size: cover;
        background-position: bottom;
        height: 450px;
    }
    
    
    .hero-row-block {
        background-color: rgb(0 11 140 / 90%);
        text-align: center;
        align-items: center;
        padding: 20px 20px 40px 20px;
        border-radius: 8px;
        color: #fff;
        margin: 0px;
        position:relative;
    }
    
    .hero-row-2 {
        background-color: #ececec;
        padding: 20px;
        color: #1a1a1a;
        text-align:center;
    }


    /* === TÁBLÁZAT tablet/mobil beállítások === */
    .responsive-table {
        font-size: 15px;
        border-radius: 0px;
        margin: 0px !important;
    }
            
    .responsive-table td {
        padding: 5px 20px!important;
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
            
    .responsive-table .label {
        background-color: #f0f0f0;
        font-weight: bold;
        border-bottom: none;
        padding-bottom: 5px;
    }
            
    .responsive-table .value {
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }
            
    .responsive-table tr:last-child .value {
        border-bottom: none;
    }
        
    /* === ACCORDION HEADER STÍLUSOK === */
    .accordion-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px 10px 10px;
        cursor: pointer;
        background-color: var(--background-light);
        transition: background-color var(--transition-fast);
    }


    .grid-item.active .accordion-header {
        background-color: #fff;
    }

    /* Panel specifikus accordion header */
    .panel .accordion-header {
        padding: 15px 10px;
        background-color: var(--primary-blue);
    }

    .panel .accordion-header:hover {
        background-color: rgba(0, 11, 140, 0.9);
    }

    /* Cégprofil specifikus accordion header */
    .company-content-section .accordion-header {
        padding: 15px 20px;
        background-color: var(--background-light);
    }

    /* === ACCORDION HEADER TARTALOM === */
    .accordion-header .icon {
        margin-right: 0;
        margin-bottom: 0;
        width: 64px;
        height: 64px;
    }

    .accordion-header h3 {
        margin: 0;
        flex-grow: 1;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        padding: 0;
        padding-right: 10px;
    }

    /* Panel h3 specifikus beállítás */
    .panel .accordion-header h3 {
        color: var(--text-white);
        font-size: 16px;
        font-weight:bold;
    }

    /* Sima grid h3 beállítás */
    .grid-item:not(.panel) .accordion-header h3 {
        color: var(--text-dark);
    }

    /* Cégprofil h3 beállítás */
    .company-content-section .accordion-header h3 {
        color: var(--text-dark);
        font-size: 16px;
    }

    /* === ACCORDION TOGGLE (+ ikon) === */
    .accordion-toggle {
        font-size: 24px;
        font-weight: bold;
        color: var(--accent-orange);
        transition: transform var(--transition-fast);
        line-height: 1;
        transform: rotate(90deg);
    }

    .grid-item.active .accordion-toggle {
        transform: rotate(-90deg);
    }

    /* === ACCORDION CONTENT === */
    .accordion-content {
        display: block !important;
        overflow: hidden;
        transition: max-height var(--transition-fast);
        max-height: 0;
        padding: 0px;
    }

    .grid-item.active .accordion-content {
        max-height: 600px;
        padding: 0px;
        border-top: 1px solid var(--border-light);
    }

    /* Panel specifikus content */
    .panel.active .accordion-content {
        border-top: 1px solid var(--border-blue);
    }

    /* Cégprofil specifikus content */
    .company-grid-item.active .accordion-content {
        border-top: 1px solid var(--border-table);
        background-color: var(--background-light);
    }

    /* === ACCORDION CONTENT PADDING === */
    .accordion-content p {
        margin: 0;
        padding: 20px !important;
    }

    .company-content-section .accordion-content-inner {
        padding: 0px;
    }
    
    .company-content-section .accordion-content-inner h3 {
        padding: 20px;
        font-size: 1.2em;
        color: var(--text-dark);
    }

    /* Panel lista specifikus padding beállítás */
    .panel-list .accordion-content p {
        padding: 20px !important;
    }
}

/* =============================================== */
/* ===== MOBIL ESZKÖZÖK (768px-) ===== */
/* =============================================== */

@media (max-width: 768px) {
.circle-1 {
    top: 50%;
    left: 7%;
}
.circle-2 {
    top: 60%;
    left: 20%;
}
.circle-3 {
    top: 10%;
    left: 50%;
}
.circle-4 {
    top: 60%;
    left: 80%;
}

.gform-theme--foundation .gform_footer {justify-content: center!important;}
    
}