/* PressFly 3.6.38 r16 — public full-width + homepage layout authority
 * Loaded after responsive-flat-final.css.
 * Goals: make Full Width genuinely full on desktop, remove redundant homepage
 * decoration, prevent public header/navigation/card overlap, preserve compact mobile.
 */

:root{
    --pf-public-max: 1840px;
    --pf-public-gutter: clamp(14px, 1.65vw, 28px);
    --pf-home-gap: clamp(12px, 1.25vw, 20px);
}

/* ---------- Shared public geometry ---------- */
body:not(.pf-admin-flat) .top-nav > .container,
body:not(.pf-admin-flat) .header > .container,
body:not(.pf-admin-flat) .navbar-main > .container,
body:not(.pf-admin-flat) main > .container,
body:not(.pf-admin-flat) .pf-hp-top-space > .container,
body:not(.pf-admin-flat) .pf-home-builder-shell{
    min-width:0;
}

body.pf-layout-full:not(.pf-admin-flat) .top-nav > .container,
body.pf-layout-full:not(.pf-admin-flat) .header > .container,
body.pf-layout-full:not(.pf-admin-flat) .navbar-main > .container,
body.pf-layout-full.homepage .pf-hp-top-space > .container,
body.pf-layout-full.homepage .pf-home-builder-shell{
    width:min(calc(100% - (var(--pf-public-gutter) * 2)), var(--pf-public-max))!important;
    max-width:var(--pf-public-max)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
}

@media (min-width:1920px){
    :root{--pf-public-max:1880px;}
}

/* Normal width remains intentionally restrained. */
body.pf-layout-normal.homepage .pf-home-builder-shell{
    width:min(calc(100% - (var(--pf-public-gutter) * 2)),1320px)!important;
    max-width:1320px!important;
    margin-inline:auto!important;
}

/* ---------- Homepage: clean flat section heads ---------- */
body.homepage .pf-home-builder-shell,
body.homepage .pf-category-section,
body.homepage .pf-category-section-head,
body.homepage .pf-category-title-wrap{
    min-width:0!important;
    max-width:100%!important;
}

/* Remove the redundant marked decorative strips/inner title card. */
body.homepage .pf-section-title-wrap::before,
body.homepage .pf-category-section-head .pf-section-title-wrap::after,
body.homepage .pf-latest-news-section::before,
body.homepage .pf-latest-news-head::after{
    content:none!important;
    display:none!important;
}
body.homepage .pf-section-title-wrap,
body.homepage .pf-category-section-head .pf-section-title-wrap,
body.homepage .pf-category-title-wrap{
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.homepage .pf-home-section-head,
body.homepage .pf-category-section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:0 0 13px!important;
    margin:0 0 15px!important;
    border:0!important;
    border-bottom:1px solid var(--pf-home-border-2,#eef2f7)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
body.homepage .pf-section-title{
    font-size:clamp(20px,1.25vw,25px)!important;
    line-height:1.15!important;
    letter-spacing:-.025em!important;
    overflow-wrap:anywhere;
}
body.homepage .pf-home-section-link{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:45%!important;
    min-height:36px!important;
    margin:0!important;
    padding:8px 12px!important;
    border-radius:10px!important;
    white-space:nowrap!important;
}

/* Category section now consumes the available Full Width canvas. */
body.pf-layout-full.homepage .pf-home-section,
body.pf-layout-full.homepage .pf-category-section,
body.pf-layout-full.homepage .pf-latest-news-section{
    width:100%!important;
    max-width:none!important;
}
body.pf-layout-full.homepage .pf-home-section{
    padding:clamp(15px,1.15vw,20px)!important;
    margin:clamp(14px,1vw,18px) 0!important;
}

/* ---------- Desktop full-width density ---------- */
@media (min-width:1600px){
    body.pf-layout-full.homepage .pf-category-grid-news,
    body.pf-layout-full.homepage .pf-category-cards-news,
    body.pf-layout-full.homepage .pf-category-masonry-news,
    body.pf-layout-full.homepage .pf-category-split-news,
    body.pf-layout-full.homepage .pf-category-overlay-news,
    body.pf-layout-full.homepage .pf-category-editorial-grid,
    body.pf-layout-full.homepage .pf-category-minimal-news{
        display:grid!important;
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        gap:var(--pf-home-gap)!important;
    }
    body.pf-layout-full.homepage .pf-category-magazine-news,
    body.pf-layout-full.homepage .pf-category-spotlight-news{
        display:grid!important;
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        gap:var(--pf-home-gap)!important;
    }
    body.pf-layout-full.homepage .pf-latest-news-grid,
    body.pf-layout-full.homepage .pf-latest-news-list.pf-latest-news-grid{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        gap:var(--pf-home-gap)!important;
    }
    body.pf-layout-full.homepage .pf-category-compact-news{
        grid-template-columns:repeat(5,minmax(0,1fr))!important;
        gap:12px!important;
    }
    body.pf-layout-full.homepage .pf-category-list-news,
    body.pf-layout-full.homepage .pf-category-horizontal-news,
    body.pf-layout-full.homepage .pf-category-thumb-list-news,
    body.pf-layout-full.homepage .pf-category-timeline-news{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:14px!important;
    }
    body.pf-layout-full.homepage .pf-hp-hero-with-featured{
        grid-template-columns:minmax(0,1.65fr) minmax(420px,.85fr)!important;
        gap:20px!important;
    }
}

@media (min-width:1200px) and (max-width:1599.98px){
    body.pf-layout-full.homepage .pf-category-grid-news,
    body.pf-layout-full.homepage .pf-category-cards-news,
    body.pf-layout-full.homepage .pf-category-masonry-news,
    body.pf-layout-full.homepage .pf-category-split-news,
    body.pf-layout-full.homepage .pf-category-magazine-news,
    body.pf-layout-full.homepage .pf-category-spotlight-news,
    body.pf-layout-full.homepage .pf-category-overlay-news,
    body.pf-layout-full.homepage .pf-category-editorial-grid,
    body.pf-layout-full.homepage .pf-category-minimal-news,
    body.pf-layout-full.homepage .pf-latest-news-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}

/* Keep cards stable no matter how long Turkish titles become. */
body.homepage .pf-news-card,
body.homepage .pf-latest-news-item,
body.homepage .pf-news-card-body,
body.homepage .pf-latest-news-body{
    min-width:0!important;
    max-width:100%!important;
}
body.homepage .pf-news-card h3,
body.homepage .pf-latest-news-item h3,
body.homepage .pf-news-card h3 a,
body.homepage .pf-latest-news-item h3 a{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}
body.homepage .pf-news-card-image,
body.homepage .pf-latest-news-image{
    overflow:hidden!important;
}
body.homepage .pf-news-card-image img,
body.homepage .pf-latest-news-image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
}

/* ---------- Public desktop navigation overlap protection ---------- */
@media (min-width:992px){
    body:not(.pf-admin-flat) .navbar-main .navbar-collapse{
        min-width:0!important;
        max-width:100%!important;
    }
    body:not(.pf-admin-flat) .navbar-main .pf-news-menu{
        display:flex!important;
        flex-wrap:nowrap!important;
        min-width:0!important;
        max-width:100%!important;
        overflow-x:auto!important;
        overflow-y:visible!important;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }
    body:not(.pf-admin-flat) .navbar-main .pf-news-menu::-webkit-scrollbar{display:none;}
    body:not(.pf-admin-flat) .navbar-main .pf-news-menu-item{flex:0 0 auto!important;}
    body:not(.pf-admin-flat) .navbar-main .pf-news-menu-link{max-width:280px!important;text-overflow:ellipsis;overflow:hidden;}
}

/* Prevent media/ad embeds from shifting the public canvas. */
body:not(.pf-admin-flat) .pf-revenue-ad-slot,
body:not(.pf-admin-flat) .pf-clean-ad-slot,
body:not(.pf-admin-flat) iframe,
body:not(.pf-admin-flat) video,
body:not(.pf-admin-flat) object,
body:not(.pf-admin-flat) embed{
    max-width:100%!important;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width:1199.98px){
    body.pf-layout-full.homepage .pf-hp-top-space > .container,
    body.pf-layout-full.homepage .pf-home-builder-shell{
        width:calc(100% - 28px)!important;
        max-width:none!important;
    }
}
@media (max-width:767.98px){
    body.pf-layout-full.homepage .pf-hp-top-space > .container,
    body.pf-layout-full.homepage .pf-home-builder-shell,
    body.pf-layout-normal.homepage .pf-home-builder-shell{
        width:calc(100% - 20px)!important;
        padding-left:0!important;
        padding-right:0!important;
    }
    body.homepage .pf-home-section-head,
    body.homepage .pf-category-section-head{
        align-items:center!important;
        flex-direction:row!important;
        flex-wrap:nowrap!important;
        gap:8px!important;
        padding-bottom:10px!important;
        margin-bottom:12px!important;
    }
    body.homepage .pf-section-title-wrap,
    body.homepage .pf-category-title-wrap{
        flex:1 1 auto!important;
        width:auto!important;
        min-width:0!important;
    }
    body.homepage .pf-section-title{
        font-size:18px!important;
        white-space:nowrap!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }
    body.homepage .pf-home-section-link{
        flex:0 0 auto!important;
        max-width:48%!important;
        min-height:34px!important;
        padding:7px 9px!important;
        font-size:11px!important;
        border-radius:9px!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }
}
@media (max-width:380px){
    body.homepage .pf-home-section-head,
    body.homepage .pf-category-section-head{gap:6px!important;}
    body.homepage .pf-section-title{font-size:16px!important;}
    body.homepage .pf-home-section-link{max-width:46%!important;padding:7px 8px!important;}
}

/* ---------- Dark mode consistency ---------- */
html.dark-mode-site body.homepage .pf-home-section-head,
body.dark-mode-site.homepage .pf-home-section-head,
html.dark-mode-site body.homepage .pf-category-section-head,
body.dark-mode-site.homepage .pf-category-section-head{
    border-bottom-color:#243044!important;
    background:transparent!important;
}

