/**
 * GLOBAL CSS OVERRIDE
 * Bu dosya main.min.css'deki !important kurallarını geçersiz kılar
 * Her sayfada main.min.css'den SONRA yüklenmelidir
 * 
 * Sorun: main.min.css şu kuralları içeriyor:
 * h1, h2, h3, h4, h5, h6 { padding: 0 !important; line-height: 1 !important; }
 * Bu kurallar tüm başlıkların line-height ve margin değerlerini bozuyor.
 */

/* =============================================
   SMOOTH SCROLL
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* =============================================
   BAŞLIK ETİKETLERİ OVERRIDE (h1-h6)
   ============================================= */

/* Genel başlık sıfırlama - !important ile geçersiz kıl */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Paragraf sıfırlama */
p {
    line-height: 1.6 !important;
    margin: 0 0 1em 0 !important;
}

/* =============================================
   SAYFA ÖZEL OVERRIDE'LAR
   ============================================= */

/* Eğitimler Sayfası */
.egitimler-page-wrapper h1,
.egitimler-page-wrapper h2,
.egitimler-page-wrapper h3,
.egitimler-page-wrapper h4,
.egitimler-page-wrapper h5,
.egitimler-page-wrapper h6 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

.egitimler-page-wrapper .paket-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.egitimler-page-wrapper .card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

/* Paket Detay Sayfası */
.paket-detay-wrapper h1,
.paket-detay-wrapper h2,
.paket-detay-wrapper h3,
.paket-detay-wrapper h4 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Sepet Sayfası */
.cart-page-wrapper h1,
.cart-page-wrapper h2,
.cart-page-wrapper h3,
.cart-page-wrapper h4 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Ödeme Sayfası */
.odeme-page-wrapper h1,
.odeme-page-wrapper h2,
.odeme-page-wrapper h3,
.odeme-page-wrapper h4 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Frontend Detail (Eğitim Detay) */
.frontend-detail-wrapper h1,
.frontend-detail-wrapper h2,
.frontend-detail-wrapper h3,
.frontend-detail-wrapper h4 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Index (Ana Sayfa) */
.indexmain h1,
.indexmain h2,
.indexmain h3,
.indexmain h4,
body > .container h1,
body > .container h2,
body > .container h3,
body > .container h4 {
    line-height: 1.4 !important;
}

/* Paket Programlar Listesi */
.paket-programlar-wrapper h1,
.paket-programlar-wrapper h2,
.paket-programlar-wrapper h3,
.paket-programlar-wrapper h4 {
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* =============================================
   KART BİLEŞENLERİ
   ============================================= */

/* Eğitim Kartları */
.egitim-card .card-title,
.egitim-card .card-title a {
    line-height: 1.4 !important;
    margin: 0 0 22px 0 !important;
}

/* Paket Kartları */
.paket-highlight-card .paket-title {
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
}

.paket-card .paket-title {
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
}

/* Sepet Kartları */
.cart-item h4,
.cart-item-title {
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
}

/* =============================================
   FORM ELEMANLARı
   ============================================= */

input, textarea, select {
    line-height: 1.5 !important;
}

/* =============================================
   MODAL VE POPUP
   ============================================= */

.modal h1, .modal h2, .modal h3, .modal h4,
.popup h1, .popup h2, .popup h3, .popup h4 {
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
}

/* =============================================
   ADMIN PANEL
   ============================================= */

.admin-wrapper h1,
.admin-wrapper h2,
.admin-wrapper h3,
.admin-wrapper h4 {
    line-height: 1.4 !important;
}

/* =============================================
   FOOTER
   ============================================= */

footer h1, footer h2, footer h3, footer h4,
.footer h1, .footer h2, .footer h3, .footer h4 {
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
}

/* Footer Menu Title */
footer .footer-menu-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Footer Container */
footer .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
}

/* Footer Copyright */
footer .footer-copyright-text {
    margin: 0 !important;
    padding: 0 !important;
}
