
@font-face {
    font-family: 'NunitoSans-Regular';
    src: url('../fonts/NunitoSans_10pt-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FreightSansProBook-Italic';
    src: url('../fonts/FreightSansProBook-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.accordion {
    display: flex;
    width: 100%;
    max-height: 85vh;
    margin: auto;
    padding-bottom: 30px;
    border-radius: 0;
}

.accordion-item {
    display: flex;
    flex-direction: row;
    flex: 1 1 13%;
    transition: flex 1s ease;
    overflow: hidden;
    border: none;
    border-radius: 0;
    position: relative;
    border-left: 1px solid #ccc;
    border-radius: 0;
}

.accordion-item.active {
    flex: 1 1 50%;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc;
    transition: width 1s ease, height 2s ease;
    height: 0%;
}

.accordion-item.active::before {
    width: 1px;
    height: 100%;
    background-color: black;
}

.accordion-header {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding: 15px;
    cursor: pointer;
    position: relative;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: right;
    font-size: 40px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-family: NunitoSans-Regular;
}

.accordion-header span {
    display: block;
    text-align: center;
}

.icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 20px;
    transform: scaleX(1.8);
    transition: transform 0.3s ease;
}

.accordion-item:hover .icon {
    transform: scaleX(1);
}

.accordion-content {
    display: none;
    padding: 15px;
    overflow-y: auto;
    max-height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
}

.accordion-content .content-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.accordion-content img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.accordion-content p {
    margin: 0;
    text-align: left;
    font-size: 26px;
    line-height: 40px;
    font-family: FreightSansProBook-Italic;
    line-spacing: 0.36px;
}

/* Eklenecek Yapı */

.accordion-item {
    min-height: 300px; /* Metni sıkıştırmayacak minimum yükseklik */
}

.accordion-content {
    display: flex; /* Başlangıçta içerik gizlenmez ama esnek kutu olarak ayarlanır */
    padding: 15px;
    overflow-y: hidden; /* Yatay kaydırmayı engellemek için auto yerine hidden */
    max-height: 0; /* Başlangıçta içeriği gizlemek için maksimum yüksekliği sıfır yapalım */
    opacity: 0; /* Başlangıçta içerik görünmez */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Hem yükseklik hem de opaklık için geçiş ekleyelim */
    flex-direction: column;
}

.accordion-item.active .accordion-content {
    max-height: 100vh; /* İçeriği tamamen açmak için maksimum yüksekliği ayarlayalım */
    opacity: 1; /* İçeriği görünür yapalım */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Hem yükseklik hem de opaklık için geçiş ekleyelim */
}


/* Mobil ekranlar için düzenleme */
@media (max-width: 768px) {
    .accordion {
        flex-direction: column;
    }

    .accordion-item {
        flex-direction: column;
        flex: 1 1 100%;
        border-left: none;
        border-top: 1px solid #ccc;
    }

    .accordion-item.active {
        flex: 1 1 100%;
    }

    .accordion-item::before {
        top: unset;
        left: unset;
        width: 100%;
        height: 1px;
    }

    .accordion-item.active::before {
        height: 1px;
        width: 100%;
    }

    .accordion-header {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: left;
        font-size: 24px;
    }
}

