/* Kanews + Spixer homepage layout */
:root {
    --burak-theme-color: #e12e2e;
    --burak-theme-border: #d5d7da;
}

.home-page {
    background: #eef1f4;
}

.site-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-body {
    padding-top: 10px;
    padding-bottom: 32px;
}

/* ===== KANEWS HERO — sayfa genişliğinde ===== */
.kn-hero-shell {
    background: #eef1f4;
    padding: 12px 0 0;
}

.kn-hero-container {
    padding-bottom: 0;
}

.kn-hero {
    background: #111;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.kn-hero-main {
    position: relative;
    overflow: hidden;
}

.kn-hero-main .swiper-slide {
    position: relative;
    height: clamp(280px, 34vw, 420px);
    background-size: cover;
    background-position: center;
}

.kn-hero-main .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.kn-hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    padding: 0 0 28px;
}

.kn-hero-slide-inner {
    width: 100%;
    padding: 0 18px;
}

.kn-hero-badge {
    display: inline-block;
    background: var(--burak-theme-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.kn-hero-tag {
    display: inline-block;
    background: var(--burak-theme-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    margin-bottom: 8px;
}

.kn-hero-title {
    color: #fff;
    font-size: clamp(18px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    max-width: 760px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.kn-hero-nav {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, background 0.2s;
}

.kn-hero-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.kn-hero-nav--prev {
    right: auto;
    left: 10px;
}

/* Thumbnail strip — ince dikdörtgen (Kanews oranı) */
.kn-hero-thumbs-wrap {
    background: #fff;
    padding: 7px 12px 8px;
    margin: 0;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.kn-hero-thumbs .swiper {
    overflow: hidden;
}

.kn-hero-thumbs .swiper-slide {
    width: 88px;
    height: 50px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    border-radius: 2px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.kn-hero-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #2563eb;
    box-shadow: none;
    transform: none;
}

.kn-hero-thumbs .swiper {
    padding: 0;
}

.kn-hero-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== TICKER — hero bloğunun altında, üst üste binme yok ===== */
.kn-hero-container .kn-ticker {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    min-height: 38px;
    overflow: hidden;
    margin: 0 0 14px;
    position: relative;
    z-index: 3;
    clear: both;
}

.kn-ticker-standalone {
    background: #eef1f4;
    padding: 0 0 12px;
    margin: 0;
}

.kn-ticker-standalone .kn-ticker-inner {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    min-height: 38px;
}

.kn-ticker-label {
    flex: 0 0 auto;
    background: var(--burak-theme-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    line-height: 1;
    min-height: 38px;
}

.kn-ticker-track {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    animation: kn-ticker-scroll 40s linear infinite;
    padding: 8px 14px;
}

.kn-ticker-track:hover {
    animation-play-state: paused;
}

.kn-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
}

.kn-ticker-item time {
    color: var(--burak-theme-color);
    font-weight: 700;
    font-size: 12px;
}

@keyframes kn-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 5 KART — tam genişlik, büyük ===== */
.kn-five-cards-section {
    margin-bottom: 16px;
}

.kn-five-cards {
    position: relative;
}

.kn-five-cards-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 0 6px;
}

.kn-five-cards-track::-webkit-scrollbar {
    display: none;
}

.kn-mini-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 210px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.kn-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.kn-mini-card-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.kn-mini-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.kn-mini-card:hover .kn-mini-card-image img {
    transform: scale(1.05);
}

.kn-mini-card-cat {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.kn-cat-1 { background: #eab308; }
.kn-cat-2 { background: #8b5cf6; }
.kn-cat-3 { background: var(--burak-theme-color); }
.kn-cat-4 { background: #2563eb; }
.kn-cat-5 { background: #059669; }

.kn-mini-card-body {
    padding: 14px 14px 16px;
}

.kn-mini-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kn-five-nav {
    position: absolute;
    top: 42%;
    right: -4px;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kn-five-nav:hover {
    background: var(--burak-theme-color);
    color: #fff;
}

/* ===== ANA SATIR: Son Yazılar + Sidebar hizalı ===== */
.home-main-row {
    --bs-gutter-x: 24px;
    align-items: flex-start;
    margin-top: 0;
}

.home-main-col {
    min-width: 0;
}

.home-sidebar {
    min-width: 0;
}

/* Son Gelişmeler paneli — geniş sidebar */
.kn-latest-panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 18px;
}

.kn-latest-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--burak-theme-border);
    background: #fff;
    position: relative;
}

.kn-latest-panel-head::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -1px;
    height: 2px;
    width: 50px;
    background: var(--burak-theme-color);
    z-index: 5;
}

.kn-latest-panel-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.kn-latest-panel-head span {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kn-latest-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.kn-latest-list li {
    border-bottom: 1px solid #f3f4f6;
}

.kn-latest-list li:last-child {
    border-bottom: none;
}

.kn-latest-list a {
    display: flex;
    gap: 14px;
    padding: 13px 18px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s;
}

.kn-latest-list a:hover {
    background: #fef2f2;
}

.kn-latest-time {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--burak-theme-color);
    min-width: 44px;
}

.kn-latest-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SPIXER SON YAZILAR ===== */
.spixer-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
    overflow: hidden;
}

.spixer-section-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--burak-theme-border);
    position: relative;
}

.spixer-section-head::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -1px;
    height: 2px;
    width: 50px;
    background: var(--burak-theme-color);
    z-index: 5;
}

.spixer-section-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #111;
}

.spixer-post-item {
    display: flex;
    gap: 22px;
    padding: 20px;
    border-bottom: 1px solid #eef1f4;
    transition: background 0.2s;
}

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

.spixer-post-item:hover {
    background: #fafbfc;
}

.spixer-post-thumb {
    flex: 0 0 260px;
    position: relative;
    display: block;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    text-decoration: none;
}

.spixer-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.spixer-cat-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--burak-theme-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
}

.spixer-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.spixer-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.spixer-post-title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.spixer-post-title a {
    color: #111;
    text-decoration: none;
}

.spixer-post-title a:hover {
    color: var(--burak-theme-color);
}

.spixer-post-excerpt {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    flex: 1;
}

.spixer-read-more {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--burak-theme-color);
    color: var(--burak-theme-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 1rem;
    transition: background 0.2s, color 0.2s;
}

.spixer-post-item:hover .spixer-read-more {
    background: var(--burak-theme-color);
    color: #fff !important;
}

/* ===== SIDEBAR WIDGETS — genişletilmiş ===== */
.home-sidebar .home-widget {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 18px;
}

.home-sidebar .sidebar-widget.home-widget {
    background: #fff;
    padding: 20px;
}

.home-sidebar .sidebar-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--burak-theme-border);
    position: relative;
}

.home-sidebar .sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 50px;
    background: var(--burak-theme-color);
    z-index: 5;
}

.home-sidebar .post-item-small {
    padding: 12px 0;
    gap: 14px;
}

.home-sidebar .post-item-small img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-sidebar .post-item-small-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.home-view-all {
    text-align: center;
    padding: 4px 0 18px;
}

.home-view-all .btn {
    background: var(--burak-theme-color);
    border-color: var(--burak-theme-color);
    color: #fff;
    font-weight: 700;
    padding: 10px 28px;
}

/* Desktop: 5 kart grid, kaydırma gizle */
@media (min-width: 1200px) {
    .kn-five-cards-track {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
    }

    .kn-mini-card {
        flex: none;
        min-width: 0;
    }

    .kn-five-nav {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 768px) {
    .kn-mini-card {
        flex: 0 0 calc(33.333% - 11px);
        min-width: 240px;
    }

    .spixer-post-thumb {
        flex: 0 0 220px;
    }

    .home-sidebar .kn-latest-panel {
        margin-bottom: 16px;
    }
}

@media (max-width: 991px) {
    .home-main-row {
        --bs-gutter-x: 20px;
    }

    .kn-five-cards-section {
        margin-bottom: 14px;
    }

    .kn-mini-card {
        flex: 0 0 calc(40% - 10px);
        min-width: 260px;
    }

    .spixer-post-item {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .spixer-post-thumb {
        flex: none;
        width: 100%;
    }

    .home-sidebar {
        margin-top: 4px;
    }

    .home-sidebar .kn-latest-panel {
        max-height: none;
    }
}

/* Mobil */
@media (max-width: 767px) {
    .site-container {
        padding: 0 14px;
    }

    .home-body {
        padding-top: 10px;
    }

    .kn-hero-main .swiper-slide {
        height: 260px;
    }

    .kn-hero-slide-link {
        padding-bottom: 18px;
    }

    .kn-hero-title {
        font-size: 17px;
    }

    .kn-hero-nav {
        width: 36px;
        height: 36px;
    }

    .kn-hero-thumbs .swiper-slide {
        width: 72px;
        height: 42px;
    }

    .kn-hero-thumbs-wrap {
        padding: 6px 10px 7px;
    }

    .kn-ticker-label {
        padding: 0 10px;
        font-size: 10px;
    }

    .kn-ticker-item {
        font-size: 12px;
    }

    .kn-mini-card {
        flex: 0 0 78%;
        min-width: 0;
    }

    .kn-mini-card-title {
        font-size: 14px;
    }

    .kn-five-nav {
        display: none;
    }

    .spixer-post-title {
        font-size: 16px;
    }

    .spixer-post-meta {
        font-size: 12px;
        gap: 10px;
    }

    .kn-latest-list a {
        padding: 11px 14px;
    }

    .home-sidebar .post-item-small img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .kn-hero-main .swiper-slide {
        height: 240px;
    }

    .kn-mini-card {
        flex: 0 0 85%;
    }
}
