/* Tek site genişliği: header (.mgh-wrap) ve footer (.mgf-wrap) ile aynı.
   Kutu 1280px, kenar boşluğu 24px (telefonda 16px) → içerik 1232px.
   Yeni bir bölüm eklerken bu iki değişkeni kullanın. */
:root { --mg-w: 1280px; --mg-pad: 24px; }
@media (max-width: 767px) { :root { --mg-pad: 16px; } }

/* Sayfa banner'ı, blog ve alt çağrı bandı */
#main-content :is(.mph, .mph-stats, .mga, .bl, .seo-band) .wrap {
    max-width: var(--mg-w); padding-left: var(--mg-pad); padding-right: var(--mg-pad);
}

/* Eski sayfaların kapsayıcısı. Satırın -15px boşluğu kolonun 15px'ini dengeler.
   768px ve altında custom.css kolon boşluğunu sıfırladığı için satır da kaydırılmaz. */
#main-content .container {
    width: 100%; max-width: var(--mg-w); padding-left: var(--mg-pad); padding-right: var(--mg-pad);
}
@media (min-width: 769px) {
    #main-content .container > .row { margin-left: -15px; margin-right: -15px; }
}
#main-content .container .container { max-width: none; padding-left: 0; padding-right: 0; }

/* Blog yazısı: içteki ikinci kolon boşluğu metni 15px daraltıyordu */
#main-content .blog-det .gallery > .col-xs-12,
#main-content .blog-det .mce { padding-left: 0; padding-right: 0; }

/* Kendi dar genişliği olan bloklar */
#main-content .mgb-w-normal,
#main-content .magna-about-showcase,
#main-content .magna-business-partners .container-inner { max-width: calc(var(--mg-w) - 2 * var(--mg-pad)); }

/* Footer telefonda header ile aynı kenar boşluğunu kullanır */
@media (max-width: 767px) {
    body #footer.mgf .mgf-wrap { padding-left: var(--mg-pad); padding-right: var(--mg-pad); }
}

/* ===== Dikey ritim: header · banner · sayfa yolu · içerik · footer =====
   Banner header'a bitişik; banner → sayfa yolu → içerik arası eşit (--mg-gap); içerik → footer arası --mg-gap-end. */
:root { --mg-gap: 24px; --mg-gap-end: 64px; }
@media (max-width: 767px) { :root { --mg-gap: 16px; --mg-gap-end: 40px; } }

/* Klasik banner: üstte/yanlarda boşluk yok, görsel kenardan kenara */
#main-content > .page-promo { margin: 0; }
#main-content .page-promo .page-promo__container { padding-top: 0; padding-bottom: 0; }
@media (min-width: 992px) {
    #main-content .page-promo .page-promo__container { padding-left: 0; padding-right: 0; max-width: 100%; }
    #main-content .page-promo .img { width: 100%; }
}

/* Sayfa yolu: içerikle aynı sol kenarda, alt ve üst boşluk eşit */
#main-content .magna-breadcrumb__container { padding-top: var(--mg-gap); padding-bottom: var(--mg-gap); }
#main-content .magna-breadcrumb__list { padding-left: 0; padding-right: 0; }

/* İçeriğin ilk bloğu kendi üst boşluğunu taşımaz; boşluğu yukarıdaki sayfa yolu verir
   (bloğun başındaki <style> etiketi de "ilk çocuk" sayıldığı için ikisi birlikte seçilir; zincir 14 kat derine iner:
   editörden gelen iç içe kapsayıcılar da kendi 40px'lik üst dolgularını taşımaz). Arka planlı kutuların (alıntı vb.) iç dolgusuna dokunulmaz. */
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) { margin-top: 0; }
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]),
#main-content #main > .container > .row > [class*="col-"]:first-child > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *) > :is(:first-child, style:first-child + *):is(.container, .row, [class*="col-"], .block, .prose, .gallery, .info-ek, .masonry-holder, .team-grid, [class*="wrk-"], div:not([class]), [class*="magna-"]) { padding-top: 0 !important; }
#main-content #main .row.mt-35 { margin-top: 0; }
/* Yalnız boş bir ara boşluk div'inden oluşan ilk metin bloğu */
#main-content #main > .container > .row > [class*="col-"]:first-child > .block-text:first-child:not(:has(p, h1, h2, h3, h4, h5, h6, img, ul, ol, a, table, blockquote, section, iframe, form)) { display: none; }

/* İçerik → footer */
#main-content #main { padding-bottom: var(--mg-gap-end); }
#main-content #main > .container > .row > [class*="col-"] > :last-child { margin-bottom: 0; }
#main-content #main section.m4-faq:last-child > .m4-faq-wrap { padding-bottom: 0; }

/* Yapışkan öğeler sabit header'ın altında kalır (header kaydırılmış halde ~66px) */
@media (min-width: 992px) {
    #main-content .magna-text-image .mtxi-img-inner { top: 96px; }
}

/* Hizmet bölümleri (tam genişlik bantlar) 100vw kullanır; kaydırma çubuğu payı yatay taşma yapmasın */
#main-content { overflow-x: clip; }

/* Banner başlığı: kapsayıcının eski 15px yan dolgusu kalkar; başlık içerik/sayfa yoluyla aynı kenarda */
#main-content .page-promo .page-promo__container { padding-left: 0; padding-right: 0; }

/* İş detay sayfalarında metin, editörün başlık efekti sınıfına (.wrk-title-line, tema: opacity .4) sarılı kalmış; gövde metni soluk görünüyordu.
   Yalnızca paragraf, liste, alt başlık ya da alıntı içeren sarmalayıcılar tam görünür; kısa başlık satırlarının efekti değişmez. */
#main-content .wrk-title-line:has(p, ul, ol, h2, h3, h4, blockquote),
#main-content blockquote .wrk-title-line { opacity: 1; }

/* İletişim gibi #main kapsayıcısı olmayan sayfalar: ilk blok satırının 25px'lik üst dolgusu sayfa yolunun altındaki boşluğa eklenmez */
#main-content .magna-breadcrumb ~ section.block:first-of-type > .container > .row { padding-top: 0 !important; }
