/* ============================================================================
   TDV — Ortak içerik tipografisi
   ----------------------------------------------------------------------------
   Panelden (CKEditor) gelen HTML, sayfalarda hiçbir stil olmadan basılıyordu ve
   düz yazı gibi görünüyordu. İçeriği saran elemana `tdv-icerik` sınıfı eklenince
   bu dosya devreye girer.

   Kullanım:  <div class="tdv-icerik"><?php echo $kayit['icerik']; ?></div>

   Not: Tema (appp.css) `.course-overview ul li:after` ile icomoon glifi basıyor
   ve `blockquote:after` ile tırnak ikonu ekliyor. Bu dosya onları kapatıp kendi
   işaretlerini kullanır; bu yüzden appp.css'ten SONRA yüklenmelidir.
   ========================================================================== */

.tdv-icerik{
    font-size: 16.5px;
    line-height: 1.9;
    color: #475569;
}
.tdv-icerik > *:first-child{ margin-top: 0; }
.tdv-icerik > *:last-child{ margin-bottom: 0; }

/* --- Paragraf --- */
.tdv-icerik p{ margin: 0 0 18px; }
.tdv-icerik strong,
.tdv-icerik b{ color: #0f2544; font-weight: 700; }
.tdv-icerik em,
.tdv-icerik i{ font-style: italic; }
.tdv-icerik small{ font-size: 14px; color: #94a3b8; }

/* --- Başlıklar --- */
.tdv-icerik h1,
.tdv-icerik h2,
.tdv-icerik h3,
.tdv-icerik h4,
.tdv-icerik h5,
.tdv-icerik h6{
    color: #0f2544;
    font-weight: 800;
    line-height: 1.35;
    margin: 38px 0 14px;
}
.tdv-icerik h1,
.tdv-icerik h2,
.tdv-icerik h3{
    padding-bottom: 12px;
    border-bottom: 1.5px solid #eef2f7;
}
.tdv-icerik h1{ font-size: 28px; }
.tdv-icerik h2{ font-size: 25px; }
.tdv-icerik h3{ font-size: 21px; }
.tdv-icerik h4{ font-size: 19px; }
.tdv-icerik h5,
.tdv-icerik h6{ font-size: 17px; margin-bottom: 8px; }

/* --- Bağlantılar --- */
.tdv-icerik a{ color: #237afc; text-decoration: underline; }
.tdv-icerik a:hover{ color: #1b63cc; }

/* --- Listeler ---
   Temanın icomoon glifini kapat, kendi işaretimizi kullan. */
.tdv-icerik ul,
.tdv-icerik ol{
    margin: 0 0 22px;
    padding-left: 0;
    list-style: none;
}
.tdv-icerik ol{ counter-reset: tdvsira; }
.tdv-icerik li{
    position: relative;
    padding-left: 32px;
    margin-bottom: 11px;
    line-height: 1.8;
}
.tdv-icerik ul > li::after,
.tdv-icerik ol > li::after{
    content: none !important;
    display: none !important;
}
.tdv-icerik ul > li::before{
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #237afc;
}
.tdv-icerik ol > li::before{
    counter-increment: tdvsira;
    content: counter(tdvsira);
    position: absolute;
    left: 0;
    top: 2px;
    width: 23px;
    height: 23px;
    line-height: 23px;
    text-align: center;
    border-radius: 7px;
    background: #eef4ff;
    color: #237afc;
    font-size: 12px;
    font-weight: 800;
}
/* İç içe listeler */
.tdv-icerik li > ul,
.tdv-icerik li > ol{ margin: 11px 0 0; }

/* --- Görsel / gömülü içerik --- */
.tdv-icerik img{
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 22px 0;
}
.tdv-icerik figure{ margin: 22px 0; max-width: 100%; }
.tdv-icerik figure img{ margin: 0; }
.tdv-icerik figcaption{
    font-size: 13.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 9px;
}
.tdv-icerik iframe,
.tdv-icerik video{
    max-width: 100%;
    border-radius: 12px;
    border: 0;
}

/* --- Alıntı ---
   Temanın blockquote::after tırnak ikonu metnin üzerine biniyordu. */
.tdv-icerik blockquote::before,
.tdv-icerik blockquote::after{
    content: none !important;
    display: none !important;
}
.tdv-icerik blockquote{
    margin: 26px 0;
    padding: 20px 26px;
    border-left: 4px solid #237afc;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    color: #475569;
    font-style: italic;
}
.tdv-icerik blockquote p:last-child{ margin-bottom: 0; }

/* --- Tablo ---
   Geniş tablolar sayfayı yatay kaydırmasın diye sarmalayıcı kaydırılır. */
.tdv-icerik .tdv-tablo-sar{
    overflow-x: auto;
    margin: 24px 0;
    -webkit-overflow-scrolling: touch;
}
.tdv-icerik table{
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.tdv-icerik .tdv-tablo-sar > table{ margin: 0; }
.tdv-icerik table td,
.tdv-icerik table th{
    border: 1px solid #e2e8f0;
    padding: 11px 13px;
    vertical-align: top;
    line-height: 1.7;
}
.tdv-icerik table th{
    background: #f8fafc;
    font-weight: 700;
    color: #0f2544;
    text-align: left;
}
.tdv-icerik table tr:nth-child(even) td{ background: #fbfcfe; }

/* --- Ayırıcı ve kod --- */
.tdv-icerik hr{
    border: none;
    border-top: 1.5px solid #eef2f7;
    margin: 32px 0;
}
.tdv-icerik code{
    background: #f1f5f9;
    color: #0f2544;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
}
.tdv-icerik pre{
    background: #0f2544;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 22px 0;
}
.tdv-icerik pre code{ background: none; color: inherit; padding: 0; }

/* --- Panelden gelen satır içi stiller sayfayı bozmasın --- */
.tdv-icerik [style*="width"]{ max-width: 100% !important; }
.tdv-icerik font{ font-size: inherit !important; font-family: inherit !important; }

@media(max-width: 767px){
    .tdv-icerik{ font-size: 15.5px; }
    .tdv-icerik h1{ font-size: 23px; }
    .tdv-icerik h2{ font-size: 21px; }
    .tdv-icerik h3{ font-size: 19px; }
    .tdv-icerik h4{ font-size: 17px; }
    .tdv-icerik table{ font-size: 13.5px; }
    .tdv-icerik table td,
    .tdv-icerik table th{ padding: 9px 10px; }
}
