/*
 * home-sections.css — Ana sayfaya özgü "Son Dakika" (breaking news) ve
 * "Sponsorlu" bölümleri.
 *
 * Temanın style.css'i yalnızca orijinal .html dosyaları taranarak üretildiği için
 * (bkz. tailwind-suplement.css notu), bu bölümler için gerekli sınıflar style.css'te
 * YOKTU. Tailwind utility'leri tek tek tanımlamak yerine — public-content.css ile aynı
 * yaklaşımı izleyerek — bu bölümleri Tailwind'den BAĞIMSIZ, anlamlı (semantic) sınıflarla
 * tanımlıyoruz. Böylece görünüm derleme/JIT durumundan etkilenmez.
 *
 * Tema renkleri: #3756f7 (mavi), #232f4b (lacivert), #eef0fc / #eee (kenarlık).
 */

/* ----------------------------------------------------------------------- *
 * Ortak bölüm başlığı (Son Haberler / Blog'dan başlıklarıyla uyumlu)       *
 * ----------------------------------------------------------------------- */
.bolum-baslik {
    position: relative;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #232f4b;
    text-transform: capitalize;
    padding-bottom: 18px;
    margin: 0;
}
.bolum-baslik::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55px;
    height: 4px;
    border-radius: 10px;
    background: #3756f7;
}
.bolum-baslik::after {
    content: "";
    position: absolute;
    left: 65px;
    bottom: 0;
    width: 80%;
    height: 4px;
    border-radius: 10px;
    background: #f2f2f2;
}

/* ----------------------------------------------------------------------- *
 * SON DAKİKA (Breaking News) — yatay kayan kartlar                          *
 * ----------------------------------------------------------------------- */
.son-dakika {
    background: #f9faff;
    padding: 30px 0 14px;
}
.son-dakika-box {
    position: relative;
    background: #fff;
    border: 1px solid #e9ebf6;
    border-radius: 8px;
    padding: 26px 26px 18px;
}
.son-dakika-badge {
    position: absolute;
    top: -15px;
    left: 22px;
    display: inline-block;
    background: #3756f7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 5px;
}
/* owl-carousel öğesinin içindeki kart düzeni */
.son-dakika-wrap .owl-stage { display: flex; }
.brk-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding-right: 18px;
}
.brk-thumb {
    flex: 0 0 auto;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}
.brk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.brk-item:hover .brk-thumb img { transform: scale(1.08); }
.brk-content { min-width: 0; }
.brk-date {
    display: block;
    font-size: 13px;
    color: #9aa1b1;
    margin-bottom: 4px;
}
.brk-date i { margin-right: 5px; color: #3756f7; }
.brk-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
}
.brk-title a { color: #232f4b; transition: color .3s ease; }
.brk-title a:hover { color: #3756f7; }

/* owl yüklenmeden önce (JS hazır olana kadar) kartların yan yana görünmesi */
.son-dakika-wrap:not(.owl-loaded) {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}
.son-dakika-wrap:not(.owl-loaded) .brk-item { flex: 0 0 33.333%; }

/* ----------------------------------------------------------------------- *
 * SPONSORLU İÇERİKLER                                                       *
 * ----------------------------------------------------------------------- */
.sponsorlu { padding: 60px 0; }
.sponsorlu-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}
.sponsorlu-not {
    flex: 0 0 auto;
    font-size: 13px;
    color: #9aa1b1;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.sponsorlu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.sponsorlu-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef0fc;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.sponsorlu-card:hover {
    box-shadow: 0 14px 34px rgba(35, 47, 75, .12);
    transform: translateY(-3px);
}
.sponsorlu-thumb {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}
.sponsorlu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.sponsorlu-card:hover .sponsorlu-thumb img { transform: scale(1.06); }
.sponsorlu-rozet {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(35, 47, 75, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
}
.sponsorlu-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.sponsorlu-date {
    display: block;
    font-size: 13px;
    color: #9aa1b1;
    margin-bottom: 8px;
}
.sponsorlu-date i { margin-right: 5px; color: #3756f7; }
.sponsorlu-title {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 8px;
}
.sponsorlu-title a { color: #232f4b; transition: color .3s ease; }
.sponsorlu-title a:hover { color: #3756f7; }
.sponsorlu-ozet { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

/* ----------------------------------------------------------------------- *
 * Responsive (tema ile aynı: md <= 991px, sm <= 767px)                      *
 * ----------------------------------------------------------------------- */
@media (max-width: 991px) {
    .sponsorlu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .son-dakika-wrap:not(.owl-loaded) .brk-item { flex: 0 0 100%; }
    .sponsorlu-grid { grid-template-columns: 1fr; }
    .sponsorlu-head { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------------------------------------------------- *
 * HERO SLIDER — anasayfadaki büyük "öne çıkan" alan (Slider modülü)         *
 * Owl Carousel ile döner; veri yoksa view son habere/placeholder'a düşer.   *
 * ----------------------------------------------------------------------- */
.hero-slider { position: relative; border-radius: 8px; overflow: hidden; }
/* owl yüklenene kadar yalnızca ilk slayt görünsün (içerik sıçraması engeli) */
.hero-slider:not(.owl-loaded) .hero-slide { display: none; }
.hero-slider:not(.owl-loaded) .hero-slide:first-child { display: block; }
.hero-slide { position: relative; overflow: hidden; border-radius: 8px; }
.hero-slide-img { width: 100%; height: 480px; object-fit: cover; display: block; }
.hero-slide::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(to top, #232f4b 0%, rgba(35, 47, 75, 0.2) 55%, rgba(35, 47, 75, 0) 100%);
    z-index: 1;
}
.hero-slide-content { position: absolute; left: 0; bottom: 0; width: 100%; padding: 35px; z-index: 2; }
.hero-slide-badge {
    display: inline-block;
    background: #3756f7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.hero-slide-title { font-size: 34px; line-height: 1.25; font-weight: 700; margin: 0 0 10px; }
.hero-slide-title, .hero-slide-title a { color: #fff; }
.hero-slide-title a { transition: color .3s ease; }
.hero-slide-title a:hover { color: #cbd4fd; }
.hero-slide-sub { color: rgba(255, 255, 255, 0.9); font-size: 16px; line-height: 1.6; margin: 0; max-width: 640px; }

/* owl dots */
.hero-slider .owl-dots { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.hero-slider .owl-dots .owl-dot span { width: 9px; height: 9px; margin: 0; background: rgba(255, 255, 255, 0.5); transition: all .3s ease; }
.hero-slider .owl-dots .owl-dot.active span { width: 22px; border-radius: 5px; background: #fff; }

@media (max-width: 991px) {
    .hero-slide-img { height: 360px; }
    .hero-slide-title { font-size: 26px; }
    .hero-slide-content { padding: 20px; }
}
@media (max-width: 767px) {
    .hero-slide-img { height: 280px; }
    .hero-slide-title { font-size: 20px; line-height: 1.3; }
    .hero-slide-sub { font-size: 14px; }
}

/* ----------------------------------------------------------------------- *
 * YAN BANNER (sağ sütun reklam alanı) — Banner modülü, carousel            *
 * ----------------------------------------------------------------------- */
.yan-banner-slider { position: relative; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
/* owl yüklenene kadar yalnızca ilk banner görünsün */
.yan-banner-slider:not(.owl-loaded) .yan-banner-item { display: none; }
.yan-banner-slider:not(.owl-loaded) .yan-banner-item:first-child { display: block; }
.yan-banner-item { display: block; }
.yan-banner-item img { width: 100%; height: auto; display: block; border-radius: 8px; }
.yan-banner-slider .owl-dots { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; line-height: 1; }
.yan-banner-slider .owl-dots .owl-dot span { width: 8px; height: 8px; margin: 0 4px; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(35, 47, 75, .12); }
.yan-banner-slider .owl-dots .owl-dot.active span { background: #3756f7; }
