/* RSF News Section Widget Styles */

/* Ana Container */
.rsf-news-section {
    font-family: 'Georgia', serif;
    color: #333;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Grid Layout */
.rsf-news-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Üst Bölüm - Ana Grid Alanları */
.rsf-top-section {
    display: flex;
    grid-column: span 12;
    flex-direction: row;
    gap: 20px;
}

/* Ana Haber */
.rsf-main-news {
    flex: 1;
    position: relative;
}

.rsf-main-news a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rsf-main-news-image {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
}

.rsf-main-news-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.rsf-main-news:hover .rsf-main-news-image img {
    transform: scale(1.03);
}

.rsf-main-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.rsf-main-news-category {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #e63946;
    text-transform: uppercase;
    margin-right: 5px;
}

.rsf-main-news-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #000;
}

.rsf-main-news-description {
    font-size: 18px;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

/* Sağ Bölüm Container */
.rsf-right-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: space-between;
}

/* Dünya Özeti */
.rsf-world-brief {
    background-color: #f9f9f9;
    padding: 20px;
    flex: 1;
    width: 100%;
}

.rsf-world-brief-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #FFC121;
    border-bottom: 2px solid #FFC121;
    padding-bottom: 5px;
    display: inline-block;
}

.rsf-brief-items {
    margin-bottom: 15px;
}

.rsf-brief-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.rsf-brief-item:last-child {
    margin-bottom: 0;
}

.rsf-brief-item p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.rsf-continue-reading {
    text-align: center;
    margin-top: 20px;
}

.rsf-continue-reading a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e63946;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rsf-continue-reading a:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Orta Boy Haberler */
.rsf-medium-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    padding-left: 20px;
    padding-right: 20px;
}

.rsf-medium-news-item {
    position: relative;
    flex: 1;
    padding-bottom: 15px;
}

.rsf-medium-news-item:not(:last-child) {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.rsf-medium-news-item.no-image .rsf-medium-news-content {
    padding-top: 0;
}

.rsf-medium-news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rsf-medium-news-image {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
}

.rsf-medium-news-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.rsf-medium-news-item:hover .rsf-medium-news-image img {
    transform: scale(1.03);
}

.rsf-medium-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.rsf-medium-news-category {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #e63946;
    text-transform: uppercase;
    margin-right: 5px;
}

.rsf-medium-news-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #000;
}

.rsf-medium-news-description {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

/* Alt Bölüm - Haber Kartları */
.rsf-bottom-section {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Diğer Haberler */
.rsf-secondary-news {
    position: relative;
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.rsf-secondary-news:last-child {
    border-right: none;
}

.rsf-secondary-news a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rsf-secondary-news-image {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
}

.rsf-secondary-news-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.rsf-secondary-news:hover .rsf-secondary-news-image img {
    transform: scale(1.03);
}

.rsf-secondary-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.rsf-secondary-news-category {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #e63946;
    text-transform: uppercase;
    margin-right: 5px;
}

.rsf-secondary-news-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #000;
}

.rsf-secondary-news-description {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .rsf-bottom-section {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 20px;
    }

    /* Tüm haberler için grid düzeni */
    .rsf-secondary-news {
        grid-column: auto;
        grid-row: auto;
    }

    /* İlk 2 haber yan yana */
    .rsf-secondary-news:nth-child(1),
    .rsf-secondary-news:nth-child(2) {
        grid-row: 1;
    }

    /* Son 2 haber yan yana ve altta */
    .rsf-secondary-news:nth-child(3),
    .rsf-secondary-news:nth-child(4) {
        grid-row: 2;
    }

    /* Çizgi düzeni */
    .rsf-secondary-news:nth-child(2n) {
        border-right: none;
    }

    .rsf-secondary-news:nth-child(n+3) {
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    /* 5. haber için özel düzen */
    .rsf-secondary-news:nth-child(5) {
        grid-column: 1 / span 2;
        grid-row: 3;
        border-right: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 15px;
    }

    /* 1024px'e özel düzenlemeler */
    /* Üst bölüm düzeni - sütun olacak */
    .rsf-top-section {
        flex-direction: column;
    }

    /* Sıralama değişikliği - rsf-right-section yukarıda, rsf-main-news aşağıda */
    .rsf-top-section .rsf-right-section {
        order: 1;
        margin-bottom: 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .rsf-top-section .rsf-main-news {
        order: 2;
    }

    /* Orta haberler düzeni */
    .rsf-medium-news {
        flex-direction: column;
        margin-bottom: 0;
        flex: 1;
    }

    /* Dünya özeti */
    .rsf-world-brief {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 767px) {
    /* Ana grid yapısı */
    .rsf-news-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }

    /* Üst bölüm düzeni */
    .rsf-top-section {
        flex-direction: column;
        gap: 15px;
    }

    /* Alt bölüm düzeni - mobil için tek sütun */
    .rsf-bottom-section {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 15px;
    }

    /* Tüm haberler tek sütunda */
    .rsf-secondary-news:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

    /* Sağ bölüm düzeni */
    .rsf-right-section {
        flex-direction: column;
        gap: 15px;
    }

    /* Orta haberler düzeni */
    .rsf-medium-news {
        flex-direction: column;
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    /* Yazı boyutları */
    .rsf-main-news-title {
        font-size: 24px;
    }

    .rsf-main-news-description {
        font-size: 16px;
    }

    /* Haber öğeleri */
    .rsf-medium-news-item {
        margin-bottom: 15px;
    }

    /* İkincil haberler */
    .rsf-secondary-news {
        margin-bottom: 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        grid-column: 1;
        padding-right: 0px;
    }

    .rsf-secondary-news:nth-child(n+4) {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .rsf-secondary-news:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Resim düzeni */
    .rsf-news-image {
        max-width: 100%;
        margin-bottom: 10px;
    }

}

@media (max-width: 580px) {
    /* Sağ bölüm düzeni - medium-news'i world-brief'in üstüne getir */
    .rsf-right-section {
        order: 2 !important;
        flex-direction: column !important;
    }

    .rsf-right-section .rsf-medium-news {
        order: 1;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .rsf-medium-news-item {
        padding-bottom: 0px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    /* Medium news item içindeki öğeleri alt-alta hizala */
    .rsf-medium-news-item a {
        display: flex;
        flex-direction: column;
    }

    .rsf-right-section .rsf-world-brief {
        order: 2;
    }

    /* Alt bölümdeki haberler - resim sağda, içerik solda */
    .rsf-bottom-section .rsf-secondary-news {
        padding-right: 0;
    }

    .rsf-bottom-section .rsf-secondary-news a {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 15px;
    }

    .rsf-bottom-section .rsf-secondary-news-image {
        width: 40%;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .rsf-bottom-section .rsf-secondary-news-content {
        flex: 1;
        text-align: left;
    }

    /* Kategori, başlık ve açıklama düzeni */
    .rsf-bottom-section .rsf-secondary-news-category {
        margin-top: 0;
    }

    .rsf-bottom-section .rsf-secondary-news-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .rsf-bottom-section .rsf-secondary-news-description {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Daha küçük yazı boyutları */
    .rsf-main-news {
        order: 1 !important;
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    .rsf-main-news-title {
        font-size: 20px;
    }

    .rsf-main-news-description {
        font-size: 14px;
    }

    .rsf-medium-news-title {
        font-size: 16px;
    }

    .rsf-secondary-news-title {
        font-size: 16px;
    }

    /* Daha küçük boşluklar */
    .rsf-news-grid {
        grid-gap: 10px;
    }

    .rsf-top-section,
    .rsf-right-section {
        gap: 10px;
    }

    .rsf-bottom-section {
        gap: 10px;
    }

    /* Dünya özeti */
    .rsf-world-brief {
        padding: 15px;
    }

    .rsf-world-brief-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .rsf-brief-item p {
        font-size: 13px;
    }
}