/* Hero */
.hero-section {
    position: relative;
    height: 150vh; /* 180% magasságú */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-section h1, .hero-section p{
    text-align: center;
    width: 600px;
}


.iranyitastachnika_image-container {
    position: absolute;
    width: 100%;
    height: 150vh; /* A kép is 200vh */
    top: -25vh; /* Középen induljon */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Alatta legyen a szöveg */
}

.iranyitastachnika_image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    pointer-events: none;
}

.grid {
    width: 90vw;
}

.caption {
    position: absolute;;
    top: 40vh; /* Magasabbra állítva */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    pointer-events: none;
    will-change: transform;
    z-index: 2; /* Mindig a kép fölött legyen */
}

.caption .grid {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    border-radius: 0;
    pointer-events: none;
}

.scroll-down {
    position: relative;
    top: 30px;
    max-width: 80px;
    max-height: 80px;
    z-index: 1;
}


/*Megtakarítás****************/

.megtakarítás{
    padding: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kep{
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
/*BLOKK*/
.hug {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
}

.megtakarítás .hug{
    background-color: #353535;
}

.control-section .hug {
    background-color: #efefef;
}

.blokk {
    display: flex;
    align-items: top;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
}


.control-section .blokk{
    background-color: none;
}

.blokk h2 {
    margin: 0 0 10px 0;
}


/**********/

.blokk img.icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    top: 0;
}

.feutere h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.feutere p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.feature1 .icon {
    background-color: #000;
}

/*Mitől működik************************/
.mitol-mukodik {
    display: flex;
    flex-wrap: wrap;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    align-items: stretch;
}

.mitol-mukodik p{
    width: 60%;
    max-width: 450px;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.header, .diagram{
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header{
    margin-bottom: 10px;
    height: 40%;
    background-color: #C8FF35;
}

.diagram{
    margin-top: 10px;
    height: 60%;
    padding-bottom: 30px;
    background-color: #161616;
}

.diagram p{
    margin: 0;
    font-size: 1.5rem;
    font-weight: lighter;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #161616;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 20px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}


.feature .kep3, .feature .kep2, .feature .kep1{
    position: absolute;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
    z-index: 0;
    margin-top: 10px;
}

.kep3{
    width: 350px;
    top: -70px;
    right: -130px;
}

.kep1{
    width: 350px;
    top: -90px;
    right: -110px;
}

.kep2{
    width: 200px;
    top: 30px;
    right: -60px;
}

.feature div {
    z-index: 1;
}

.control-section img {
    max-width: 100%;
    height: auto;
    display: block; 
}

.bars {
    display: flex;
    margin-top: 10px;
    align-items: flex-end;
}

.bar {
    height: 90px;
    background-color: #3498db;
    text-align: center;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.magyarazatok {
    margin-top: 15px;
    display: flex;
    font-size: 14px;
    align-items: top;
}

.grid-off {
    background-color: #0A3C23;
}

.szolgaltato {
    background-color: #B287FB;
}

.generator {
    background-color: #C8FF35;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 1;
}

span {
    position: relative;
    top: -2px;
    left: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: lighter;
}

h6 {
    font-size: 1rem;
    font-weight: lighter;
    margin-top: 2px;
}

/*TrendLine****************************/

.trend-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 70vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
    gap: 20px;
}

.trend-line .left, .trend-line .right {
    flex: 1;
    min-width: 0px;
}

.trend-line .right svg {
    width: 100%;
    height: auto;
}

/*Mindent irányíts egy helyről*********/

.control-section {
    padding: 75px;
    padding-bottom: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.control-section_image-container {
    border-radius: 16px;
    width: 100%;
    height: 392px; /* Fix magasság */
    /*padding: 17px 17px 0px 17px;*/
    justify-content: left;
    align-items: center;
    flex-shrink: 0;
    /*align-self: flex-start;*/
    overflow: hidden; /* Rejtse el a túlcsorduló tartalmat */
}

.control-image {
    width: 100%;
    height: 100%;
    min-height: 392px;
    object-fit: cover;
    object-position: center;
    bottom: 0;
    margin: 0;
}

.svg-icons {
    /*top: 10px;
    right: 10px;
    padding: 17px;*/
    display: flex;
    gap: 10px;
    fill: #fff;
}

.control-title {
    margin-top: -20px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-left: 0; /* Add this line to start the title from the left edge of the image */
    align-self: flex-start;
}

.icons-title {
    text-align: center;
    font-size: 1.5rem;
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.icons-container .icon {
    width: 50px;
    height: 50px;
}

/*faq*********************************/

/* Reset default margins and paddings for all elements */
/** {
box-sizing: border-box;
margin: 0;
padding: 0;
}*/

/* Style for the main FAQ container */
.faq-container {
    /*height: 100vh; /* Full viewport height */
    max-width: 800px; /* Limit the width for better readability */
    margin: 0px auto; /* Center the container and add vertical spacing */
    padding: 100px 20px 100px 20px;
}

.faq-container h1 {
    text-align: center; /* Center the heading */
    padding-bottom: 20px; /* Add some space below the heading */
}

/* Style for each FAQ item */
.faq-item {
    border-bottom: 2px solid #000; /* Light gray border between items */
    overflow: hidden; /* Hide overflowing content */
    word-wrap: break-word;
}

/* Style for the question buttons */
.faq-question {
    background-color: #fff; /* fehér background */
    width: 100%;
    padding: 20px 45px 20px 20px;
    text-align: left;
    font-size: 1.1rem;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.5s ease; /* Smooth background transition on hover */
}

/* Hover effect for question buttons */
.faq-question:hover {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
}

/* Style for the arrow icon */
.faq-question .arrow {
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the arrow when the question is active (expanded) */
.faq-question.active .arrow {
    transform: rotate(180deg); /* Rotate arrow 180 degrees */
}

/* Style for the answer sections */
.faq-answer {
    max-height: 0; /* Initially hide the answer */
    overflow: hidden;
    transition: max-height 0.3s ease; /* Smooth transition for expanding */
    background-color: #fff; /* White background for answers */
}

/* Style for the answer text */
.faq-answer p, .faq-answer ul {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5; /* Increase line height for better readability */
    color: #555; /* Slightly lighter text color for answers */
}






@media screen and (min-width: 1024px){
    .control-section_image-container {
        height: 580px;

    }
}
  
@media screen and (max-width: 840px) {
    /*Megtakaítás*/
    .megtakarítás {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {

    /*HERO*/
    .hero-section {
        padding: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        width: auto;
        margin: auto;
        padding-bottom: 20px;
    }

    .hero-section p {
        font-size: 1rem;
        width: 90vw;
        margin: auto;
    }

    /*Megtakarítás*/
    .mitol-mukodik {
        flex-direction: column;
        align-items: center;
    }

    .left, .right {
        flex: unset;
        min-width: 100%;
    }

    .hug {
        flex-direction: column;
        gap: 15px;
        width: auto;
    }

    .blokk {
        flex-direction: row; /* Ikonok és szöveg egymás mellett maradjanak */
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .blokk img.icon {
        margin-bottom: 0; /* Ikonok ne legyenek a szöveg fölött */
        margin-right: 10px; /* Ikonok és szöveg közötti távolság */
    }

    .blokk .feature1 {
        flex: 1;
        max-width: calc(100% - 50px); /* Szöveg szélessége csökkenjen */
    }

    .trend-line {
        flex-direction: column;
        align-items: center;
    }

    .trend-line .left, .trend-line .right {
        min-width: 100%;
    }

    .control-section {
        padding: 5px;
    }

    /*Mindent irányíts egy helyről*/

    .control-section{
        padding-bottom: 100px;
    }

    .hug {
        max-width: 90%;
    }

    .hug .blokk {
        flex-direction: column;
        align-items: flex-start;
    }

    .hug .blokk img.icon {
        width: 40px;
        height: 40px;
    }

    /*Kapcsolat*/

    #backgroundGrid {
        display: none;
    }

    /*FAQ*/
    .faq-container {
        padding: 50px 10px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 40px;
        justify-content: center;
        align-items: center;
    }

    .faq-question .arrow {
        top: 30px;
        right: 5px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    
}

@media screen and (max-width: 375px) {

    .faq-answer p, .faq-answer ul {
        font-size: 0.8rem;
    }       
}