/*
Theme Name: Magazilla Child
Theme URI: http://cmsmasters.net/magazilla-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Magazilla Child Theme
Template: magazilla
Version: 1.0.1
License:
License URI:
Text Domain: magazilla-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ===== MUHA1.tr ozellestirmeleri ===== */

/* Ust baslik: beyaz zemin, logo okunur olsun (alttaki kirmizi menu cubugu kalir) */
.header_mid { background: #fff !important; border-bottom: 1px solid #e5e5e5; }
.header_mid .header_mid_inner, .header_mid .header_mid_inner_cont { height: auto !important; }
.header_mid .logo_wrap { height: auto !important; width: auto !important; padding: 14px 0; position: static !important; display: block; }
.header_mid .logo_wrap .logo { display: inline-block !important; width: auto !important; height: auto !important; position: static !important; }
.header_mid .logo_wrap .logo img:not(.logo_retina) { display: none !important; }
.header_mid .logo_wrap .logo img.logo_retina { height: 84px !important; width: auto !important; max-width: none !important; position: static !important; display: block !important; }

/* "Manset" kategorisi yalnizca slider'i beslemek icin; etiket olarak gosterme */
a[href*="/category/manset"], .cat-item-manset { display: none !important; }


/* ===== MUHA1.tr haber bilesenleri ===== */

.m1-chip { display: inline-block; background: #d61018; color: #fff; font: 700 12px/1 Roboto, Arial, sans-serif; text-transform: uppercase; padding: 6px 10px; letter-spacing: .3px; }
.m1-date { font: 400 12px/1.2 Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .4px; opacity: .85; }

/* Bolum basligi (kirmizi alt cizgili) */
.m1-h, .cmsmasters_heading_wrap h2.cmsmasters_heading { position: relative; }
.m1-h { display: inline-block; font: 700 22px/1.2 Roboto, Arial, sans-serif; margin: 0 0 22px; padding-bottom: 6px; border-bottom: 3px solid #d61018; }

/* --- Tam genislik manset --- */
.m1-hero { position: relative; width: 100%; height: 540px; overflow: hidden; background: #111; }
.m1-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: block; color: #fff; text-decoration: none; }
.m1-slide.is-active { opacity: 1; z-index: 1; }
.m1-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m1-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%); }
.m1-slide-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 1180px; margin: 0 auto; padding: 0 40px 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.m1-slide-title { flex: 0 0 100%; font: 700 38px/1.18 Roboto, Arial, sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 900px; }
.m1-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer; padding: 0 0 4px; }
.m1-nav:hover { background: #d61018; }
.m1-prev { left: 18px; } .m1-next { right: 18px; }
.m1-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.m1-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.m1-dot.is-active { background: #d61018; transform: scale(1.25); }

/* --- Liste (numarali / kucuk resimli) --- */
.m1-list { list-style: none; margin: 0; padding: 0; }
.m1-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid #e6e6e6; }
.m1-list li:first-child { padding-top: 0; }
.m1-list li:last-child { border-bottom: 0; }
.m1-list a { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.m1-list a:hover .m1-ttl { color: #d61018; }
.m1-num { flex: 0 0 34px; font: 300 40px/1 Roboto, Arial, sans-serif; color: #cfcfcf; }
.m1-thumb { flex: 0 0 82px; width: 82px; height: 62px; background: #e8e8e8; overflow: hidden; }
.m1-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m1-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.m1-txt .m1-date { color: #777; opacity: 1; font-size: 11px; }
.m1-ttl { font: 500 15px/1.35 Roboto, Arial, sans-serif; color: #111; }

/* --- Koyu bant --- */
.m1-dark-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.m1-card { position: relative; display: block; min-height: 320px; overflow: hidden; background: #222; color: #fff; text-decoration: none; }
.m1-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.m1-card:hover img { transform: scale(1.05); }
.m1-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0) 65%); }
.m1-card-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.m1-card-title { font: 700 18px/1.25 Roboto, Arial, sans-serif; }
.m1-card-big .m1-card-title { font-size: 28px; }

/* --- Ana sayfa satirlari --- */
.m1-dark-row { background: #151515; }
.m1-dark-row .m1-h { color: #fff; }

@media (max-width: 1023px) {
    .m1-hero { height: 420px; }
    .m1-slide-title { font-size: 30px; }
    .m1-dark-grid { grid-template-columns: 1fr 1fr; }
    .m1-card-big { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .m1-hero { height: 340px; }
    .m1-slide-cap { padding: 0 18px 50px; }
    .m1-slide-title { font-size: 22px; }
    .m1-nav { display: none; }
    .m1-dark-grid { grid-template-columns: 1fr; }
    .m1-card { min-height: 230px; }
    .m1-card-big .m1-card-title { font-size: 22px; }
}

/* Manseti kenardan kenara tasi (satirin 40px ic bosluklarini sifirla) */
.cmsmasters_row_inner:has(.m1-hero) { padding-left: 0 !important; padding-right: 0 !important; }
.cmsmasters_row_margin:has(.m1-hero), .cmsmasters_row_margin:has(.m1-hero) .cmsmasters_column { margin-left: 0 !important; margin-right: 0 !important; }
.cmsmasters_row_margin:has(.m1-hero) .cmsmasters_column { padding: 0 !important; }

/* Uretilmis kapaklar kirpilmadan, tam gorunsun */
.m1-thumb.m1-thumb-cover { background: #fff; border: 1px solid #e4e4e4; }
.m1-thumb.m1-thumb-cover img { object-fit: contain; }

/* ===== Haber sayfasi ===== */
.single-post .cmsmasters_post_title.entry-title { font-weight: 700; line-height: 1.2; }
.single-post .cmsmasters_post_cont_info .cmsmasters_post_author a { pointer-events: none; color: inherit; }
.single-post .cmsmasters_post_cont .cmsmasters_img_wrap img, .single-post .cmsmasters_post_cont .cmsmasters_img img { width: 100%; height: auto; }
.single-post .entry-content img { max-width: 100%; height: auto; }
.single-post .entry-content p { line-height: 1.75; font-size: 17px; }
.single-post .entry-content figure { margin: 24px 0; }

/* Yan cubuk basliklari ve sosyal baglantilar */
.widget .m1-h, .widgettitle { font: 700 20px/1.2 Roboto, Arial, sans-serif; }
.widget .m1-h { display: inline-block; margin: 0 0 18px; padding-bottom: 6px; border-bottom: 3px solid #d61018; }
.m1-social { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m1-social a { display: block; padding: 10px 14px; background: #f1f1f1; color: #111; font-weight: 600; text-decoration: none; border-left: 4px solid #d61018; }
.m1-social a:hover { background: #d61018; color: #fff; }
