﻿/* =========================================================
   KEPSAŞ - HABERLER
   ========================================================= */

:root {
    --kepsas-blue: #155e8a;
    --kepsas-blue-bright: #2f80ed;
    --kepsas-teal: #2fb7b8;
    --kepsas-red: #e3222a;
    --kepsas-green: #1fa463;
    --kepsas-yellow: #f7c948;
    --kepsas-orange: #f58220;
    --kepsas-ink: #132033;
    --kepsas-muted: #5f6f82;
    --kepsas-border: rgba(19, 32, 51, 0.09);
}

.news-premium-wrapper {
    min-height: 70vh;
    background: #ffffff;
}

/* HERO */
.news-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 32, 51, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

    .news-hero .container {
        position: relative;
        z-index: 2;
    }

    .news-hero .badge {
        position: relative;
        z-index: 2;
        border: 1px solid rgba(26, 76, 107, 0.1);
        box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06) !important;
    }

    .news-hero h1 {
        position: relative;
        z-index: 2;
        letter-spacing: 0;
    }

.news-breadcrumb {
    position: relative;
    z-index: 2;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.news-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 25%, rgba(16, 155, 215, 0.09), transparent 24%), radial-gradient(circle at 82% 78%, rgba(47, 183, 184, 0.08), transparent 25%), linear-gradient(90deg, rgba(21, 94, 138, 0.035) 1px, transparent 1px), linear-gradient(180deg, rgba(21, 94, 138, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
}

/* HABERLER ALANI */
.news-list-section {
    padding: 52px 0 72px;
    background: radial-gradient(circle at 8% 12%, rgba(47, 128, 237, 0.075), transparent 29%), radial-gradient(circle at 92% 86%, rgba(31, 164, 99, 0.06), transparent 28%), #ffffff;
}

/* HABER KARTI */
.news-card {
    position: relative;
    width: 100%;
    border: 1px solid var(--kepsas-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(19, 32, 51, 0.075);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

    .news-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 5;
        height: 3px;
        background: linear-gradient(90deg, var(--kepsas-red), var(--kepsas-yellow), var(--kepsas-green), var(--kepsas-blue-bright));
    }

    .news-card:hover {
        transform: translateY(-4px);
        border-color: rgba(21, 94, 138, 0.16);
        box-shadow: 0 22px 54px rgba(19, 32, 51, 0.12);
    }

.home-news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.home-news-media {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #102130;
    text-decoration: none !important;
}

    .home-news-media::before {
        content: "";
        position: absolute;
        inset: -18px;
        z-index: 0;
        background-image: var(--news-image);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        filter: blur(18px);
        transform: scale(1.12);
        opacity: 0.58;
    }

    .home-news-media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: rgba(5, 18, 31, 0.18);
    }

    .home-news-media img {
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transform: none;
        transition: transform 0.28s ease;
    }

.news-card:hover .home-news-media img {
    transform: none;
}

.home-news-body {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 23px;
}

.home-news-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: #7a8797;
    font-size: 0.7rem;
    font-weight: 750;
}

    .home-news-date i {
        color: var(--kepsas-orange);
    }

.home-news-body h2 {
    margin: 0 0 11px;
    font-size: 1.12rem;
    font-weight: 850;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

    .home-news-body h2 a {
        color: var(--kepsas-ink);
        text-decoration: none !important;
        transition: color 0.2s ease;
    }

        .home-news-body h2 a:hover {
            color: var(--kepsas-blue);
        }

.home-news-excerpt {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 19px;
    overflow: hidden;
    color: var(--kepsas-muted);
    font-size: 0.78rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(19, 32, 51, 0.08);
}

.home-news-author,
.home-news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-news-author {
    color: #7b8795;
}

.home-news-read-link {
    color: var(--kepsas-blue);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

    .home-news-read-link i {
        transition: transform 0.22s ease;
    }

    .home-news-read-link:hover {
        color: var(--kepsas-orange);
    }

        .home-news-read-link:hover i {
            transform: translateX(3px);
        }

/* TABLET */
@media (max-width: 991.98px) {
    .news-list-section {
        padding: 44px 0 58px;
    }

        .news-list-section .row {
            --bs-gutter-x: 1.15rem;
            --bs-gutter-y: 1.15rem;
        }

    .home-news-body {
        padding: 20px;
    }

        .home-news-body h2 {
            font-size: 1.03rem;
        }

    .home-news-excerpt {
        min-height: 62px;
        margin-bottom: 16px;
        font-size: 0.76rem;
        line-height: 1.65;
    }
}

/* 480px - 767px: iki kart yan yana */
@media (min-width: 480px) and (max-width: 767.98px) {
    .news-hero {
        padding-top: 2.15rem !important;
        padding-bottom: 2.15rem !important;
    }

        .news-hero .container {
            padding-top: 0.8rem !important;
            padding-bottom: 0.8rem !important;
        }

        .news-hero .badge {
            margin-bottom: 0.7rem !important;
            padding: 0.42rem 1rem !important;
            font-size: 0.7rem;
        }

        .news-hero h1 {
            margin-bottom: 0.7rem !important;
            font-size: 2rem;
            line-height: 1.12;
        }

    .news-breadcrumb {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .news-list-section {
        padding: 32px 0 44px;
    }

        .news-list-section .row {
            --bs-gutter-x: 0.85rem;
            --bs-gutter-y: 0.85rem;
        }

            .news-list-section .row > .col-lg-4.col-md-6 {
                flex: 0 0 50%;
                width: 50%;
                max-width: 50%;
            }

    .news-card {
        border-radius: 10px;
    }

    .home-news-body {
        padding: 15px;
    }

    .home-news-date {
        gap: 5px;
        margin-bottom: 8px;
        font-size: 0.63rem;
    }

    .home-news-body h2 {
        margin-bottom: 8px;
        font-size: 0.91rem;
        line-height: 1.28;
    }

    .home-news-excerpt {
        min-height: 50px;
        margin-bottom: 12px;
        font-size: 0.7rem;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }

    .home-news-footer {
        gap: 7px;
        padding-top: 11px;
    }

    .home-news-author,
    .home-news-read-link {
        gap: 5px;
        font-size: 0.62rem;
    }
}

/* 479px ve altı: tek kolon */
@media (max-width: 479.98px) {
    .news-premium-wrapper {
        min-height: auto;
    }

    .news-hero {
        padding-top: 1.65rem !important;
        padding-bottom: 1.65rem !important;
    }

        .news-hero .container {
            padding-top: 0.65rem !important;
            padding-bottom: 0.65rem !important;
        }

        .news-hero .badge {
            margin-bottom: 0.65rem !important;
            padding: 0.38rem 0.9rem !important;
            font-size: 0.66rem;
        }

        .news-hero h1 {
            margin-bottom: 0.65rem !important;
            font-size: 1.75rem;
            line-height: 1.12;
        }

    .news-breadcrumb {
        font-size: 10.5px;
        letter-spacing: 0.85px;
    }

    .news-bg-pattern {
        background-size: auto, auto, 54px 54px, 54px 54px;
    }

    .news-list-section {
        padding: 28px 0 40px;
    }

        .news-list-section .row {
            --bs-gutter-x: 1rem;
            --bs-gutter-y: 1rem;
        }

    .home-news-body {
        padding: 17px;
    }

    .home-news-date {
        margin-bottom: 8px;
        font-size: 0.66rem;
    }

    .home-news-body h2 {
        margin-bottom: 8px;
        font-size: 1rem;
        line-height: 1.3;
    }

    .home-news-excerpt {
        min-height: 0;
        margin-bottom: 14px;
        font-size: 0.75rem;
        line-height: 1.58;
    }

    .home-news-footer {
        gap: 10px;
        padding-top: 12px;
    }

    .home-news-author,
    .home-news-read-link {
        font-size: 0.67rem;
    }
}

@media (max-width: 359.98px) {
    .news-hero h1 {
        font-size: 1.58rem;
    }

    .news-breadcrumb {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .home-news-body {
        padding: 15px;
    }

    .home-news-author,
    .home-news-read-link {
        font-size: 0.64rem;
    }
}

@media (hover: none) {
    .news-card:hover {
        transform: none;
        border-color: var(--kepsas-border);
        box-shadow: 0 12px 30px rgba(19, 32, 51, 0.075);
    }

    .home-news-body h2 a:hover {
        color: var(--kepsas-ink);
    }

    .home-news-read-link:hover {
        color: var(--kepsas-blue);
    }

        .home-news-read-link:hover i {
            transform: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .home-news-media img,
    .home-news-body h2 a,
    .home-news-read-link,
    .home-news-read-link i {
        transition: none !important;
    }

        .news-card:hover,
        .home-news-read-link:hover i {
            transform: none;
        }
}
