/* ==================================================
   FRONT PAGE – CORE (GLOBAL + ORTAK KOMPONENTLER)
================================================== */

body.home {
    background: #f5f5f5;
}

body.home .site-main {
    padding: 20px 0;
}

/* ==================================================
   DIVIDER (ŞU AN KAPALI – DAVRANIŞ KORUNUR)
   Not: İleride açmak istersen display:none kaldırman yeterli
================================================== */

.section-divider {
    width: 48px;
    height: 3px;
    background: #d32f2f;
    margin: 40px auto;
    border-radius: 3px;
    display: none;
}

/* =========================
   SECTION HEAD (ORTAK)
========================= */

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-head .section-title {
    margin: 0;
}

.section-head .see-all {
    white-space: nowrap;
}

/* ==================================================
   NEWS GRID / CARD (ORTAK - BASE)
================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card h3 {
    font-size: 15px;
    padding: 12px 14px 8px;
}

.news-date {
    padding: 0 14px 14px;
    font-size: 12px;
    color: #777;
}

/* BASE HOVER (nötr) */
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.news-card:hover img {
    transform: scale(1.05);
}

@media (hover: none) {
    .news-card:hover {
        transform: none;
        box-shadow: none;
    }

    .news-card:hover img {
        transform: none;
    }
}
/* ==================================================
   FRONT PAGE – AFTER SPONSOR BOXED (ORTAK WRAPPER)
================================================== */

.front-page-after-sponsor {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
    overflow: hidden;
}

/* =========================
   HERO → SPONSOR SPACING FIX (GENERAL)
========================= */

.home-sponsors {
    margin-top: 42px;
}

/* ==================================================
   MOBILE (ORTAK)
================================================== */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   GLOBAL IMAGE SHARPNESS FIX
========================= */

body.home img {
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.home .race-image,
body.home [style*="background-image"] {
    background-size: cover;
    background-position: center;
    image-rendering: auto;
}

/* ==================================================
   FRONT PAGE – UNIFIED SHELL
================================================== */
.front-page-after-sponsor {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: transparent;
    border-radius: 0 0 22px 22px;
    box-shadow: none;
    overflow: visible;
}

.front-page-after-sponsor__inner {
    background: #ffffff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    overflow: hidden;
    padding: 18px 0 22px;
}

.front-page-after-sponsor__inner > section,
.front-page-after-sponsor__inner > .front-after-races-banner {
    margin: 0;
}

.front-page-after-sponsor__inner > section + section,
.front-page-after-sponsor__inner > .front-after-races-banner + section,
.front-page-after-sponsor__inner > section + .front-after-races-banner {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .front-page-after-sponsor {
        border-radius: 0 0 16px 16px;
        margin-bottom: 28px;
    }

    .front-page-after-sponsor__inner {
        border-radius: 0 0 16px 16px;
        padding: 14px 0 18px;
    }
}


/* ==================================================
   FRONT PAGE – WIDTH SYSTEM + UNIFIED SPONSOR/SHELL
================================================== */
body.home {
    --home-shell-width: 1200px;
}

body.home.home-layout-editorial {
    --home-shell-width: 1120px;
}

body.home.home-layout-ultra-wide {
    --home-shell-width: 1360px;
}

body.home .front-race-weekend--sync-hero,
body.home .home-hero.hero-v1,
body.home .home-sponsors,
body.home .front-page-after-sponsor {
    max-width: var(--home-shell-width);
}

body.home .home-sponsors {
    margin: 0 auto;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: none;
    position: relative;
    z-index: 2;
}

body.home .home-sponsors .container {
    max-width: none;
    padding-top: 16px;
    padding-bottom: 16px;
}

body.home .front-page-after-sponsor {
    margin-top: 0;
    margin-bottom: 22px;
    background: #ffffff;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}

body.home .front-page-after-sponsor__inner {
    background: transparent;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    padding: 0 0 24px;
}

body.home .front-page-after-sponsor__inner > section,
body.home .front-page-after-sponsor__inner > .front-after-races-banner {
    position: relative;
}

body.home .front-page-after-sponsor__inner > section + section::before,
body.home .front-page-after-sponsor__inner > .front-after-races-banner + section::before,
body.home .front-page-after-sponsor__inner > section + .front-after-races-banner::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 28px 10px;
    background:
        linear-gradient(90deg,
            rgba(15,23,42,0) 0%,
            rgba(15,23,42,.18) 10%,
            rgba(15,23,42,.18) 45%,
            rgba(211,47,47,.95) 50%,
            rgba(15,23,42,.18) 55%,
            rgba(15,23,42,.18) 90%,
            rgba(15,23,42,0) 100%);
}

body.home .front-page-after-sponsor__inner > section + section,
body.home .front-page-after-sponsor__inner > .front-after-races-banner + section,
body.home .front-page-after-sponsor__inner > section + .front-after-races-banner {
    margin-top: 0;
    padding-top: 12px;
}

@media (max-width: 768px) {
    body.home {
        --home-shell-width: min(100%, 100%);
    }

    body.home .home-sponsors .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.home .front-page-after-sponsor {
        margin-bottom: 16px;
    }

    body.home .front-page-after-sponsor__inner {
        padding-bottom: 16px;
    }

    body.home .front-page-after-sponsor__inner > section + section::before,
    body.home .front-page-after-sponsor__inner > .front-after-races-banner + section::before,
    body.home .front-page-after-sponsor__inner > section + .front-after-races-banner::before {
        margin-left: 18px;
        margin-right: 18px;
    }
}


/* ==================================================
   HOME – HERO/SPONSOR/FOOTER MASTER SHELL
================================================== */
body.home .front-race-weekend--sync-hero,
body.home .home-hero.hero-v1 {
    max-width: var(--home-shell-width);
    margin: 0 auto;
}

body.home .home-hero.hero-v1 {
    padding-bottom: 0;
}

body.home .front-race-weekend--sync-hero .container,
body.home .home-hero.hero-v1 .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.home .home-hero.hero-v1 .hero-v1-panel {
    border-radius: 22px 22px 0 0;
    overflow: hidden;
}

body.home .home-sponsors {
    border-top: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    border-radius: 0;
    overflow: hidden;
}

body.home .front-page-after-sponsor {
    border-radius: 0 0 22px 22px;
}

body.home .front-page-after-sponsor__inner {
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

body.home .footer-sponsors,
body.home .site-footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.home .footer-sponsors {
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding-top: 14px;
    padding-bottom: 2px;
}

body.home .site-footer {
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

body.home .footer-main,
body.home .footer-bottom {
    padding-left: 0;
    padding-right: 0;
}

body.home .footer-sponsors .container,
body.home .site-footer .container {
    width: 100%;
}

@media (max-width: 768px) {
    body.home .front-race-weekend--sync-hero,
    body.home .home-hero.hero-v1,
    body.home .home-hero.hero-v1 .hero-v1-panel {
        border-radius: 16px 16px 0 0;
    }

    body.home .front-page-after-sponsor,
    body.home .front-page-after-sponsor__inner {
        border-radius: 0 0 16px 16px;
    }

    body.home .site-footer {
        border-radius: 0;
    }
}


/* ==================================================
   HOME – FOOTER FULL WIDTH + WEEKEND WIDTH SYNC
================================================== */
body.home .front-race-weekend--sync-hero {
    padding-top: 2px;
}

body.home .front-race-weekend--sync-hero .race-weekend-box {
    border-radius: 22px;
}

body.home .footer-sponsors,
body.home .site-footer,
body.home .footer-main,
body.home .footer-bottom {
    width: 100%;
    max-width: none;
}

body.home .footer-sponsors {
    margin-top: 18px;
    box-shadow: none;
}

body.home .site-footer {
    box-shadow: none;
    border-radius: 0;
}
