.konu-icerik img {
        display: block;
        margin: 10px auto;
        height: auto;
        max-width: 100%;
        border-radius: 5px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .konu-icerik img:hover {
        transform: scale(1.03);
        box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
    }

    .konu-icerik .hidden-answer {
        display: none;
    }
    .konu-icerik .highlight {
        color: #c0392b;
    }
    .konu-icerik .highlight-text {
        color: #2980b9;
    }
    .konu-icerik .example-header {
        background-color: yellow;
        color: #8e44ad;
    }
    .konu-icerik .example-content {
        background-color: yellow;
        color: #2980b9;
    }

    .konu-icerik .table {
        font-size: 18px;
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        margin: 20px auto;
        overflow-x: auto;
    }
    .konu-icerik .table td,
    .konu-icerik .table th {
        border: 1px solid #ddd;
        padding: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
        vertical-align: middle;
    }
    .konu-icerik .table th {
        background-color: #f8f9fa;
        color: #333;
        font-weight: bold;
        text-align: center;
    }
    .konu-icerik .table img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 10px auto;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .konu-icerik .table td iframe {
        width: 100%;
        max-width: 560px;
        height: 315px;
        margin: 0 auto;
        display: block;
        border: none;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .konu-icerik .video-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        margin-bottom: 20px;
        overflow: hidden;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .konu-icerik .video-container video,
    .konu-icerik .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        object-fit: cover;
    }

    .konu-icerik p {
        margin: 0 0 10px;
        line-height: 1.2;
        font-size: inherit;
    }
    .konu-icerik p:last-child {
        margin-bottom: 0;
    }

    .konu-icerik .not-kutusu {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        background-color: #F2FFF2;
        border: 1px solid #ccc;
        border-left: 5px solid #007bff;
        font-family: Arial, sans-serif;
        font-size: 16px;
        color: #333;
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        padding-top: 50px;
        padding-bottom: 15px;
        box-sizing: border-box;
    }
    .konu-icerik .not-baslik {
        background-color: #6fbfff;
        color: white;
        font-weight: bold;
        padding: 10px;
        position: absolute;
        top: -20px;
        left: 10px;
        border-radius: 3px;
        font-size: 16px;
        margin-bottom: 0;
        text-align: left;
        line-height: 1.5;
        max-width: calc(100% - 20px);
        z-index: 1;
    }
    .konu-icerik .not-icerik {
        font-size: 16px;
        line-height: 1.8;
        display: flex;           /* block yerine flex */
        flex-wrap: wrap;         /* alt satıra geçmesine izin ver */
        gap: 15px;               /* kutular arası boşluk */
        width: 100%;
        margin-top: -10px;
        padding: 10px 0;
        background-color: transparent;
        border: none;
        border-radius: 0;
        justify-content: center; /* ortalamak istersen, opsiyonel */
    }

    .konu-icerik .not-icerik p {
        flex: 1 1 100%;
        margin: 0 0 3px;
    }
    .konu-icerik .not-icerik p:last-child {
        margin-bottom: 0;
    }
    .konu-icerik .not-icerik img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 10px auto;
        display: block;
    }
    .konu-icerik .not-icerik img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .konu-icerik .not-tablosu {
        width: 100%;
        border-collapse: collapse;
        font-size: 16px;
        table-layout: fixed;
    }
    .konu-icerik .not-tablosu th,
    .konu-icerik .not-tablosu td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .konu-icerik .not-tablosu th {
        background-color: #FF8C00;
        color: white;
        font-weight: bold;
    }
    .konu-icerik .not-tablosu tr:nth-child(odd) td {
        background-color: #f9f9f9;
    }
    .konu-icerik .not-tablosu tr:nth-child(even) td {
        background-color: #fff;
    }

    .konu-icerik .resim-kapsayici {
        text-align: center;
        flex: 1 1 calc(50% - 15px);
        max-width: 200px;
    }
    .konu-icerik .resim-kapsayici img {
        width: 100%;
        height: auto;
    }
    .konu-icerik .resim-kapsayici p {
        margin: 10px 0 0;
        font-size: 14px;
        color: #333;
    }

    .konu-icerik p img {
        display: block;
        margin: 0 auto;
        height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        border: 0;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .konu-icerik p img:hover {
        transform: scale(1.03);
        box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
    }

    .konu-icerik .pdf-container {
        width: 100%;
        margin-bottom: 40px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background-color: #fff;
        box-sizing: border-box;
    }

    /* Masaüstü ve büyük ekranlar */
    .konu-icerik .pdf-container iframe {
        width: 100%;
        height: 80vh;          /* Ekran yüksekliğinin %80’i */
        max-height: 900px;     /* Çok büyük ekranlarda taşmasın diye üst sınır */
        border: none;
        display: block;
    }

    /* Tablet ve küçük ekranlar */
    @media (max-width: 768px) {
        .konu-icerik .pdf-container {
            margin-bottom: 20px;
            padding: 8px;
        }
        .konu-icerik .pdf-container iframe {
            height: 75vh;      /* Tabletlerde biraz daha küçük */
        }
    }

    /* Küçük telefonlar */
    @media (max-width: 576px) {
        .konu-icerik .pdf-container {
            margin-bottom: 15px;
            padding: 6px;
        }
        .konu-icerik .pdf-container iframe {
            height: 70vh;      /* Küçük telefonlarda biraz daha küçük */
        }
    }


    @media (max-width: 768px) {
        .konu-icerik .table {
            font-size: 16px;
        }
        .konu-icerik .table td,
        .konu-icerik .table th {
            padding: 10px;
        }
        .konu-icerik .video-container {
            padding-bottom: 75%;
            margin-bottom: 15px;
        }
        .konu-icerik .table td iframe {
            max-width: 100%;
            height: auto;
        }
        .konu-icerik .not-tablosu {
            font-size: 14px;
            table-layout: auto;
        }
        .konu-icerik .not-tablosu th,
        .konu-icerik .not-tablosu td {
            padding: 8px;
            font-size: 10px;
            white-space: normal;
            word-wrap: break-word;
        }
    }

    @media (max-width: 576px) {
        .konu-icerik p img {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
            margin-top: 2px;
            margin-bottom: 2px;
        }
        .konu-icerik .not-tablosu {
            display: table;
            width: 100%;
        }
        .konu-icerik .not-tablosu thead {
            display: table-header-group;
        }
        .konu-icerik .not-tablosu tbody {
            display: table-row-group;
        }
        .konu-icerik .not-tablosu tr {
            display: table-row;
        }
        .konu-icerik .not-tablosu td {
            display: table-cell;
            text-align: left;
            padding: 8px;
            border: 1px solid #ddd;
        }
        .konu-icerik .not-tablosu td:before {
            content: none;
        }
    }

    @media (max-width: 480px) {
        .konu-icerik .not-tablosu {
            display: table;
        }
        .konu-icerik .not-tablosu thead {
            display: table-header-group;
        }
        .konu-icerik .not-tablosu tbody {
            display: table-row-group;
        }
        .konu-icerik .not-tablosu tr {
            display: table-row;
        }
        .konu-icerik .not-tablosu td {
            display: table-cell;
            padding: 8px;
        }
    }

    .konu-icerik iframe {
        max-width: 100%;
        width: 100%;
    }

    /* Dikey Video Özel Kapsayıcı - Yükseklik Ayarlı */
    .konu-icerik .dikey-video-alani {
        display: flex;
        justify-content: center;
        background-color: #050505; /* Videonun etrafında sinematik siyahlık */
        padding: 15px 0;
        border-bottom: 1px solid #16a085;
    }
    .konu-icerik .dikey-video-kutu {
        height: 440px; /* Videonun sayfadaki dikey boyutu (İdeal ölçüdür, değiştirebilirsiniz) */
        aspect-ratio: 9/16; /* Dikey video oranını korur, genişliği otomatik ayarlar */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    }


/* Konu detayı soru / cevap popup sistemi */
.konu-icerik .konu-question-card {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.konu-icerik .konu-question-card h5 {
    color: #008080;
    font-weight: 700;
}

.konu-icerik .konu-question-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 12px;
}

.konu-icerik .konu-question-option {
    width: 100%;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #ffffff;
    color: #222;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.konu-icerik .konu-question-option:hover {
    border-color: #008080;
    transform: translateY(-1px);
}

.konu-icerik .konu-question-option:disabled,
.konu-icerik .konu-question-card[data-answered="1"] .konu-question-option {
    cursor: default;
    pointer-events: none;
}

.konu-icerik .konu-question-option.is-pending {
    background: #ffc107;
    border-color: #ffc107;
    color: #222;
}

.konu-icerik .konu-question-option.is-correct {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}

.konu-icerik .konu-question-option.is-wrong {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.konu-icerik .konu-question-option.is-correct .konu-option-letter,
.konu-icerik .konu-question-option.is-wrong .konu-option-letter {
    color: #ffffff;
}

.konu-icerik .konu-option-letter {
    min-width: 26px;
    color: #008080;
    font-weight: 700;
}

.konu-icerik .konu-option-content {
    flex: 1;
}

.konu-icerik .konu-option-content img {
    max-height: 120px;
    margin: 0 0 6px 0;
}

.konu-icerik .konu-open-ended-note {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-left: 4px solid #008080;
    border-radius: 8px;
    background: #f1fbfb;
    color: #355;
    font-size: 0.92rem;
}

.konu-icerik .konu-answer-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: #008080;
    color: #ffffff;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.konu-icerik .konu-answer-button:hover {
    background: #006b6b;
    transform: translateY(-1px);
}

.konu-icerik .konu-answer-button.is-visible {
    display: inline-flex;
}

.konu-icerik .konu-answer-content {
    display: none;
}

.konu-icerik .konu-answer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.konu-icerik .konu-answer-modal.is-open {
    display: flex;
}

.konu-icerik .konu-answer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.konu-icerik .konu-answer-modal-dialog {
    position: relative;
    width: min(720px, 96vw);
    max-height: 86vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.konu-icerik .konu-answer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f2;
}

.konu-icerik .konu-answer-modal-header h5 {
    margin: 0;
    color: #008080;
}

.konu-icerik .konu-answer-modal-close {
    border: 0;
    background: #f1f3f5;
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.konu-icerik .konu-answer-modal-body {
    padding: 18px;
    line-height: 1.55;
}

.konu-icerik .konu-answer-modal-body img {
    max-width: 100%;
    height: auto;
}

.konu-icerik .konu-answer-correct {
    margin-bottom: 10px;
}

.konu-icerik .konu-answer-correct span {
    display: inline-block;
    margin-left: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #198754;
    color: #ffffff;
    font-weight: 700;
}

.konu-icerik .konu-answer-explanation {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
}

@media (max-width: 576px) {
    .konu-icerik .konu-question-card {
        padding: 12px;
    }

    .konu-icerik .konu-answer-modal-dialog {
        width: 96vw;
        max-height: 88vh;
    }
}

body.konu-answer-modal-open {
    overflow: hidden;
}
