/* =================================================================== */
/* ===== SADECE ANASAYFA MEDYA MERKEZİ BÖLÜMÜNE ÖZEL STİLLER ===== */
/* =================================================================== */

.home-media-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    overflow: hidden;
}

.home-media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-media-header {
    text-align: center;
    margin-bottom: 20px;
}

.home-media-title {
    font-size: 44px;
    font-weight: 700;
    color: #1a2530;
    margin-bottom: 15px;
}

.home-media-text {
    font-size: 18px;
    font-weight: 400;
    color: #1a2530;
    margin-bottom: 15px;
}

/* --- ANA TAŞIYICI VE DÜZEN --- */
.home-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start; /* Dikeyde hizalama sorununu çözer */
}


/* --- SOLDAKİ BÜYÜK (ÖNE ÇIKAN) KART --- */
.home-media-featured-card {
    width: calc(60% - 15px);
    position: relative;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
}

.home-media-featured-card .home-media-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-media-featured-card:hover .home-media-img {
    transform: scale(1.05);
}

.home-media-featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.home-media-featured-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.home-media-featured-card .home-media-info {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.home-media-featured-card .home-media-date {
    font-size: 14px;
    font-weight: 600;
    color: #f7b731;
    margin-bottom: 8px;
}

.home-media-featured-card .home-media-title-inner {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}


/* --- SAĞDAKİ KAYDIRILABİLİR LİSTE (SORUNU ÇÖZEN KISIM) --- */
.home-media-scroll-list {
    width: calc(40% - 15px);
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 480px;
    overflow-y: auto;
    padding: 5px;
}

.home-media-scroll-list .home-media-list-item {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease; /* DEĞİŞTİ: Daha pürüzsüz bir geçiş için 'all' kullanıldı */
    flex-shrink: 0;
    cursor: pointer; /* YENİ: Öğenin tıklanabilir olduğunu belirtir */
}

/* YENİ: JavaScript ile eklenecek olan 'active' sınıfının stili */
.home-media-scroll-list .home-media-list-item.active {
    border-color: #f7b731;
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.2); /* YENİ: Vurguyu artırmak için gölge eklendi */
}

/* YENİ: 'active' durumundaki başlık rengi */
.home-media-scroll-list .home-media-list-item.active .home-media-title-inner {
    color: #c28e20;
}

.home-media-scroll-list .home-media-list-item:hover {
    border-color: #f7b731;
}

.home-media-scroll-list .home-media-list-item:hover .home-media-title-inner {
    color: #c28e20;
}

.home-media-scroll-list .home-media-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-media-scroll-list .home-media-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.home-media-scroll-list .home-media-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.home-media-scroll-list .home-media-title-inner {
    font-size: 16px;
    font-weight: 600;
    color: #1a2530;
    line-height: 1.4;
    transition: color 0.3s;
}

/* --- RESPONSIVE (MOBİL/TABLET) AYARLARI --- */
@media (max-width: 992px) {
    .home-media-grid {
        flex-direction: column;
    }

    .home-media-featured-card,
    .home-media-scroll-list {
        width: 100%;
    }

    .home-media-scroll-list {
        height: auto;
        max-height: 450px;
        overflow-y: auto;
    }
}