﻿/* references.css - Toggle işlevselliği için gerekli stiller */

/* Toggle butonlarının stilleri */
.toggle-primary .toggle.active > label,
html .toggle-primary .toggle.active > .toggle-title {
    background-color: #f5f5f5;
    border-color: #ec6130;
}

.toggle > .toggle-title:hover,
.toggle > label:hover {
    background: #eaeaea;
    cursor: pointer;
}

/* Toggle butonlarının görünümü */
.toggle > .toggle-title,
.toggle > label {
    cursor: pointer;
    display: block;
    padding: 10px;
    position: relative;
    text-decoration: none;
    outline: none;
}

/* Toggle içeriği için stiller */
.toggle-content {
    overflow: hidden;
    will-change: height;
    transition: height 0.35s ease-in-out;
}

/* Active durumundaki toggle stilleri */
.toggle section.active .toggle-title {
    background-color: #f5f5f5;
    border-color: #ec6130;
}

/* Active durumundaki içerik stilleri */
.toggle section.active .toggle-content {
    display: block;
}

/* İçeriğin inline stillerini geçersiz kılma */
.toggle-content[style*="display: block"] {
    display: block !important;
}

.toggle-content[style*="display: none"] {
    display: none !important;
}

/* Animasyon sırasında yükseklik sorunlarını engelleme */
.toggle-content.animating {
    overflow: hidden;
}

/* Mobil görünüm için medya sorguları */
@media (max-width: 767px) {
    .content-grid-item.col-lg-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        float: left;
    }

    .content-grid-item .p-4 {
        padding: 8px !important;
    }

        .content-grid-item .p-4 img {
            width: 100% !important;
            max-width: 100%;
            height: auto;
        }

    /* Satırların düzgün görünmesi için clearfix */
    .content-grid-row:after {
        content: "";
        display: table;
        clear: both;
    }

    /* Toggle içeriğinin mobil görünümü */
    .toggle-content {
        width: 100%;
        clear: both;
    }

    /* Mobilde daha küçük boşluklar */
    .toggle > .toggle-title,
    .toggle > label {
        padding: 8px;
    }
}
