/*
Theme Name: Haber Ortası Advanced News V2
Theme URI: https://haberortasi.com/
Author: OpenAI
Version: 1.3
Description: Panelden kategori seçilebilen çok bloklu haber teması.
Text Domain: haberortasi-advanced-news-v2
*/

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#eef1f4;
    color:#111;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
    height:auto;
}

/* HEADER */
.site-header{
    background:#0f9ca3;
    color:#fff;
    text-align:center;
    padding:22px 15px;
}

.site-title{
    margin:0;
    font-size:38px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.site-desc{
    margin:8px 0 0;
    font-size:13px;
    opacity:.95;
}

/* MENU */
.menu-wrap{
    background:#066b70;
    position:sticky;
    top:0;
    z-index:1000;
}

.menu-wrap ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.menu-wrap a{
    display:block;
    color:#fff;
    padding:14px 16px;
    font-weight:700;
    font-size:13px;
    text-transform:uppercase;
}

.menu-wrap a:hover{
    background:#0f9ca3;
}

/* BREAKING NEWS */
.breaking{
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    overflow:hidden;
}

.breaking-label{
    background:#e3001b;
    color:#fff;
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}

.breaking-track{
    overflow:hidden;
    white-space:nowrap;
    flex:1;
}

.breaking-move{
    display:inline-block;
    padding-left:100%;
    animation:tickermove 45s linear infinite;
}

.breaking-track:hover .breaking-move{
    animation-play-state:paused;
}

.breaking-item{
    margin-right:38px;
    position:relative;
    padding-left:14px;
}

.breaking-item:before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:7px;
    height:7px;
    border-radius:50%;
    background:#e3001b;
}

@keyframes tickermove{
    from{transform:translateX(0)}
    to{transform:translateX(-100%)}
}

/* CONTAINER */
.container{
    max-width:1280px;
    margin:24px auto;
    padding:0 16px;
}

/* HERO */
.hero{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    align-items:start;
}

.hero-left{
    min-width:0;
}

.hero-main-slider{
    position:relative;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
}

.hero-slide{
    display:none;
}

.hero-slide.active{
    display:block;
}

.hero-main-slider img{
    width:100%;
    height:420px;
    object-fit:cover;
}

.hero-content{
    padding:18px;
}

.hero-content h2{
    margin:0 0 10px;
    font-size:30px;
    line-height:1.2;
}

.hero-content p{
    margin:0;
    font-size:14px;
    color:#666;
    line-height:1.5;
}

/* HERO ARROWS */
.hero-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.65);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    z-index:20;
    transition:.2s;
}

.hero-arrow:hover{
    background:#e3001b;
}

.hero-prev{
    left:12px;
}

.hero-next{
    right:12px;
}

/* HERO DOTS OVERLAY */
.hero-dots-wrap{
    position:absolute;
    left:0;
    right:0;
    bottom:20px;
    z-index:25;
    display:flex;
    justify-content:center;
    pointer-events:none;
}

.hero-dots{
    display:flex !important;
    gap:10px;
    pointer-events:auto;
}

.hero-dot{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(255,255,255,.90);
    color:#111;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    border:none;
    box-shadow:0 3px 10px rgba(0,0,0,.25);
    transition:.2s;
}

.hero-dot.active{
    background:#e3001b;
    color:#fff;
    transform:scale(1.1);
}

.hero-dot:hover{
    background:#fff;
    transform:scale(1.1);
}

/* RIGHT HERO */
.hero-side-wrap{
    background:#fff;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    padding:12px;
    height:100%;
    display:flex;
    flex-direction:column;
}

.hero-side-title{
    margin:4px 0 12px;
    font-size:18px;
    font-weight:800;
    border-left:4px solid #e3001b;
    padding-left:10px;
}

.hero-side-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.hero-side-item{
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    display:flex;
    flex-direction:column;
}

.hero-side-item img{
    width:100%;
    height:120px;
    object-fit:cover;
}

.hero-side-item .inner{
    padding:10px;
}

.hero-side-item h3{
    margin:0;
    font-size:14px;
    line-height:1.3;
}

/* MAIN GRID */
.main-grid{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:20px;
    align-items:start;
    margin-top:24px;
}

.left-col{
    min-width:0;
}

.right-col{
    position:sticky;
    top:20px;
    height:fit-content;
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* GENERAL BOX */
.box{
    background:#fff;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    padding:16px;
    margin-bottom:20px;
}

.box-title{
    margin:0 0 14px;
    font-size:22px;
    font-weight:800;
    border-left:4px solid #e3001b;
    padding-left:10px;
    border-bottom:1px solid #eee;
    padding-bottom:6px;
}

/* GRID BLOCKS */
.posts-grid-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.posts-grid-5{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}

.card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #eee;
    transition:.2s;
}

.card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.10);
}

.card img{
    width:100%;
    height:130px;
    object-fit:cover;
}

.card h3{
    margin:0;
    padding:10px;
    font-size:13px;
    line-height:1.3;
}

/* LIST POSTS */
.list-post{
    display:grid;
    grid-template-columns:95px 1fr;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.list-post:last-child{
    border-bottom:none;
}

.list-post img{
    width:95px;
    height:72px;
    object-fit:cover;
    border-radius:8px;
}

.list-post h3{
    margin:0 0 5px;
    font-size:15px;
    line-height:1.3;
}

.list-post p{
    margin:0;
    font-size:12px;
    color:#666;
    line-height:1.4;
}

/* TWO COLUMN LIST BLOCK */
.two-col-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 22px;
}

.two-col-list .list-post{
    margin:0;
}

/* TWO BIG CARD BLOCK */
.two-big-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.big-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
    transition:.2s;
}

.big-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.10);
}

.big-card img{
    width:100%;
    height:210px;
    object-fit:cover;
}

.big-card .inner{
    padding:12px;
}

.big-card h3{
    margin:0 0 8px;
    font-size:18px;
    line-height:1.3;
}

.big-card p{
    margin:0;
    color:#666;
    font-size:13px;
    line-height:1.45;
}

/* WRITERS */
.writers-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.writer{
    border:1px solid #eee;
    border-top:3px solid #e3001b;
    border-radius:12px;
    padding:12px;
    display:grid;
    grid-template-columns:60px 1fr;
    gap:12px;
    align-items:start;
}

.writer img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
}

.writer-name{
    color:#e3001b;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    margin-bottom:6px;
}

.writer h3{
    margin:0 0 5px;
    font-size:15px;
    line-height:1.3;
}

.writer p{
    margin:0;
    font-size:12px;
    color:#666;
    line-height:1.4;
}

/* SIDEBAR */
.sidebar-box{
    background:#fff;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    padding:16px;
    border-left:3px solid #e3001b;
}

.sidebar-box h3{
    margin:0 0 12px;
    font-size:18px;
    font-weight:800;
}

.sidebar-item{
    padding:9px 0;
    border-bottom:1px solid #eee;
    font-size:13px;
    line-height:1.4;
}

.sidebar-item:last-child{
    border-bottom:none;
}

.sidebar-ad{
    min-height:250px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px dashed #ddd;
    border-radius:10px;
    color:#999;
    font-size:13px;
}

/* FOOTER */
.footer{
    margin-top:30px;
    background:#111;
    color:#fff;
    text-align:center;
    padding:26px 16px;
    border-top:4px solid #e3001b;
}

/* RESPONSIVE */
@media(max-width:1100px){
    .posts-grid-5{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:992px){
    .hero,
    .main-grid{
        grid-template-columns:1fr;
    }

    .right-col{
        position:static;
    }

    .posts-grid-4{
        grid-template-columns:repeat(2,1fr);
    }

    .posts-grid-5{
        grid-template-columns:repeat(2,1fr);
    }

    .two-col-list,
    .two-big-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .site-title{
        font-size:30px;
    }

    .hero-main-slider img{
        height:260px;
    }

    .posts-grid-4,
    .posts-grid-5,
    .writers-grid{
        grid-template-columns:1fr;
    }

    .hero-dot{
        width:30px;
        height:30px;
        font-size:11px;
    }

    .hero-arrow{
        width:34px;
        height:34px;
        font-size:18px;
    }
}