﻿#search-section {
    background-color: #51657b;
    padding: 25px 0 125px;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 0px 1px 10px 1px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 1px 10px 1px rgba(66, 68, 90, 1);
    box-shadow: 0px 1px 10px 1px rgba(66, 68, 90, 1);
}


#search-section-inner {
}

#search-header-text1 {
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

#search-header-text2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#search-bar-container {
    background-color: white;
    padding: 8px 20px 8px 10px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 0px 7px 10px 1px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 7px 10px 1px rgba(66, 68, 90, 1);
    box-shadow: 0px 7px 10px 1px rgba(66, 68, 90, 1);
}

#search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    /*outline: 1px solid red;*/
    font-size:16px;
    border:none;
    padding-left:10px;
}

#support-box-section {
    /*padding:40px 0;*/
    margin-top:-70px;
}

#support-box-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:40px;
}

.support-box {
    height: 200px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*outline: 1px solid #d0d5db;*/
    cursor: pointer;
    border-radius: 5px;
    -webkit-box-shadow: 0px 7px 14px -5px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 7px 14px -5px rgba(66, 68, 90, 1);
    box-shadow: 0px 7px 14px -5px rgba(66, 68, 90, 1);
    background-color:white;
}

.support-box-header{
    margin:15px 0 0;
    font-weight:600;
    font-size:18px;
}

.support-box-Description {
    margin: 5px 0;
    /*font-weight: 600;*/
    font-size: 14px;
    color: #737373;
    width: 80%;
    text-align: center;
}

#faq-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
   /* box-shadow: 1px 1px 10px 3px rgba(0,0,0,0.03) inset;
    -webkit-box-shadow: 1px 1px 10px 3px rgba(0,0,0,0.03) inset;
    -moz-box-shadow: 1px 1px 10px 3px rgba(0,0,0,0.03) inset;*/
}

#faqInner {
    width: 900px;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    flex-direction: column;
}

#faqHeaderText1 {
    font-weight: 600;
    font-size: 30px;
    text-align: center;
}

#faqHeaderText2 {
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #555555;
    margin: 10px auto 10px;
    width: 80%;
}

#FaqTabHeaderContainer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tab-item {
    padding: 8px 15px;
    border-radius: 30px;
    outline: 1px solid black;
    cursor: pointer;
}

.faq-tab-item-active {
    background-color: var(--mdb);
    color: white;
}

#faq-row-container {
    margin: 20px 0;
}

.faq-row {
    border-top: 1px solid #dddddd;
    margin: 5px 0;
}

    .faq-row:last-child {
        border-bottom: 1px solid #dddddd;
    }

    .faq-row.open .faq-row-header {
        background: rgba(0,0,0,.03);
    }

.faq-row-header {
    padding: 8px 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    user-select: none;
    align-items: center;
}

.faq-row-header-text {
    font-size: 18px;
    font-weight: 400;
}

.faq-row-header-arrow {
    transition: transform .3s ease;
    transform-origin: center;
    display: inline-flex; /* kutu olsun ki transform çalışsın */
    height: 30px;
}

.faq-row.open .faq-row-header-arrow {
    transform: rotate(180deg); /* open iken 180° */
}

.faq-row-header-arrow img {
    display: block; /* hizalama için iyi olur */
    /* transition artık gereksiz; dönüşümü wrapper alıyor */
}

.faq-row-answer-container {
    color: #555555;
    font-size: 14px;
    padding: 8px 10px;
    display: none;
    overflow: hidden;
}

@media (max-width: 48rem) {

    #search-section {
        padding: 20px 10px;
    }

    #search-header-text1 {
        font-size: 28px;
    }

    #search-header-text2 {
        font-size: 20px;
    }

    #support-box-inner {
        flex-direction:column;
        gap:20px;
    }

    #support-box-section  {
        margin-top:40px;
    }

    .support-box {
        height: 200px;
        width: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        outline: 1px solid #d0d5db;
        cursor: pointer;
        border-radius: 5px;
    }

    #faq-section {
        padding: 20px 0 10px;
    }

    .faq-row-header-text {
        font-size: 14px;
        font-weight: 400;
    }

    #faqHeaderText2 {
        width: 90%;
    }

    #FaqTabHeaderContainer {
        gap: 10px;
    }

    .faq-tab-item {
        padding: 4px 7px;
        border-radius: 30px;
        outline: 1px solid black;
        cursor: pointer;
        font-size: 14px;
    }
}

:root {
    /* Orijinal başlık rengi */
    --faq-head-bg: #f7f7f7;
    /* Cevap alanı varsayılanı (şeffaf bırakmak isterseniz transparent) */
    --faq-ans-bg: transparent;
}

/* Arama sonuç paneli */
#search-bar-container {
    position: relative;
}

#search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    z-index: 2000;
}

.sr-item {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    user-select: none;
}

    .sr-item:last-child {
        border-bottom: 0;
    }

    .sr-item:hover {
        background: #f8fafc;
    }

.sr-empty {
    padding: 12px;
    color: #6b7280;
    font-size: 14px;
}

/* Eşleşme highlight */
mark.hl {
    background: #fff3bf;
    padding: 0 2px;
    border-radius: 3px;
}

/* Açık durumdaki başlığın arka planını sabitle */
.faq-row.open .faq-row-header {
    background: var(--faq-head-bg) !important;
}

/* Kısa süreli vurgu – BAŞLIK: #fff3bf -> #f7f7f7 */
.faq-row.flash .faq-row-header {
    animation: flashHead 1200ms ease-out 1 forwards; /* forwards: animasyon son karesinde kalsın */
}

@keyframes flashHead {
    0% {
        background-color: #fff3bf;
    }

    100% {
        background-color: var(--faq-head-bg);
    }
}

/* Kısa süreli vurgu – CEVAP: #fffbe6 -> varsayılan (transparent ya da istediğiniz renk) */
.faq-row.flash .faq-row-answer-container {
    animation: flashAns 1200ms ease-out 1 forwards;
}

@keyframes flashAns {
    0% {
        background-color: #fffbe6;
    }

    100% {
        background-color: var(--faq-ans-bg);
    }
}