* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100vw;
    height: 100vh;

}

header {
    width: 100%;
    height: 30vh;
}

header img {
    background-color: #5C17FC;
    margin-top: 3%;
    margin-left: 3%;
}

header h1 {
    font-weight: 800;
    font-size: 60px;
    text-align: center;
    background: linear-gradient(to right, #5C17FC, #D766DD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.search-box {
    position: relative;
    width: 80vw;
    border: 1px solid #868693;
    border-radius: 60px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 28px;
    padding: 30px;
}

.fa-magnifying-glass {
    position: absolute;
    color: #868693;
    top: 40%;
    right: 5%;
}
.questions{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-top: 20px;
}
.faq-question{
    display: flex;
    width: 100%;
    margin-top: 20px;
    position: relative;
    /* background: red; */
    border: 1px solid #868693;
    border-radius: 20px;
    margin-bottom: 10px;
}
.faq-question img{
    position: absolute;
    right: 3%;
    top: 36%;

}
.faq-question h3{
    padding: 10px;
    font-size: 28px;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: transparent;
  border-radius: 0 0 20px 20px;
  transition: all 0.4s ease;
}

/* Aktiv olarkən */
.faq-item.active .faq-answer {
  max-height: 120px; /* boş sahə kimi görünmək üçün */
  opacity: 1;
  background-color: #fff; /* ağ fonda görünsün */
  border: 1px solid #868693;
  border-top: none; /* sual ilə birləşsin */
}

/* Ox fırlanır */
.faq-item.active .toggle-arrow {
  transform: rotate(180deg);
}
/* Mobil telefonlar üçün (max 600px) */
@media screen and (max-width: 600px) {
    header h1 {
        font-size: 36px;
    }

    .search-box {
        width: 90vw;
    }

    .search-box input {
        font-size: 20px;
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 20px;
        padding: 8px;
    }

    .faq-question img {
        top: 30%;
        width: 10px;
        height: 10px;
    }

    .questions {
        width: 95%;
    }
}

/* Planşetlər üçün (601px – 900px) */
@media screen and (min-width: 601px) and (max-width: 900px) {
    header h1 {
        font-size: 48px;
    }

    .search-box {
        width: 85vw;
    }

    .search-box input {
        font-size: 24px;
        padding: 25px;
    }

    .faq-question h3 {
        font-size: 24px;
        padding: 10px;
    }

    .faq-question img {
        top: 34%;
        width: 15px;
        height: 15px;
    }

    .questions {
        width: 90%;
    }
}
