/* General container widths */
.f1il-hero-v3,
.f1il-videos-v3,
.f1il-latest-v3 {
    max-width: 1600px;
    margin: 40px auto 32px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* =========================
   HERO
   ========================= */

.f1il-hero-v3-inner {
    display: flex;
    gap: 24px;
}

.f1il-hero-v3-main {
    flex: 0 0 70%;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
}

.f1il-hero-v3-main-bg {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.f1il-hero-v3-main-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
}

.f1il-hero-v3-main-overlay {
    position: absolute;
    inset-inline: 32px;
    bottom: 32px;
    z-index: 2;
    text-align: right;
    color: #fff;
}

.f1il-hero-v3-badge {
    display: inline-block;
    background: #ff1e00;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.f1il-hero-v3-title {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.3;
}

.f1il-hero-v3-excerpt {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* side list */

.f1il-hero-v3-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 600px;
}

.f1il-hero-v3-item {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.f1il-hero-v3-item-inner {
    display: flex;
    flex-direction: row-reverse;
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.f1il-hero-v3-item-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.12);
}

.f1il-hero-v3-thumb {
    flex: 0 0 38%;
    background-size: cover;
    background-position: center;
}

.f1il-hero-v3-meta {
    flex: 1;
    padding: 10px 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.f1il-hero-v3-item-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.f1il-hero-v3-date {
    font-size: 11px;
    color: #8b90a0;
}

/* =========================
   SECTION HEADERS
   ========================= */

.f1il-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.f1il-section-title-wrap {
    text-align: right;
}

.f1il-section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.f1il-section-underline {
    display: block;
    /* width: 46px; */
    height: 3px;
    background: #ff1e00;
    margin-top: 4px;
    margin-inline_start: auto;
}

.f1il-section-header--dark .f1il-section-title {
    color: #ffffff;
}

/* =========================
   VIDEOS
   ========================= */

.f1il-videos-v3 {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 32px 0 40px;
    background: #000 url('assets/img/f1il-videos-bg.png') repeat;
}

.f1il-videos-v3 .f1il-section-header {
    max-width: 1600px;
    margin: 0 auto 18px;
    padding: 0 16px;
    box-sizing: border-box;
}

.f1il-carousel-controls {
    display: flex;
    gap: 8px;
}

.f1il-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.f1il-arrow:hover {
    background: #ffffff;
    color: #050716;
    border-color: #ffffff;
}

.f1il-videos-row {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.f1il-video-card {
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 auto;
    text-decoration: none;
    color: #ffffff;
}

.f1il-video-thumb {
    position: relative;
    padding-top: 56.25%;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.f1il-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
}

.f1il-video-play-icon {
    position: absolute;
    inset-inline-start: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.4);
}

.f1il-video-play-icon::before {
    content: "";
    position: absolute;
    inset: 8px 10px 8px 12px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #ffffff;
}

.f1il-video-meta {
    text-align: right;
}

.f1il-video-title {
    margin: 0 0 2px;
    font-size: 14px;
}

.f1il-video-date {
    font-size: 11px;
    color: #9ea3c5;
}

/* =========================
   LATEST NEWS GRID
   ========================= */

.f1il-latest-v3 {
    background: #f5f4f2;
    padding: 36px 0 44px;
    max-width: none;
    width: 100%;
    margin: 0;
}

.f1il-latest-v3 .f1il-section-header {
    max-width: 1600px;
    margin: 0 auto 18px;
    padding: 0 16px;
    box-sizing: border-box;
}

.f1il-latest-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.f1il-latest-card {
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.f1il-latest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15,23,42,0.12);
}

.f1il-latest-thumb {
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
}

.f1il-latest-meta {
    padding: 10px 14px 12px;
    text-align: right;
}

.f1il-latest-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.f1il-latest-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
    .f1il-hero-v3-inner {
        flex-direction: column;
    }

    .f1il-hero-v3-main-bg {
        height: 360px;
    }

    .f1il-hero-v3-list {
        height: auto;
    }

    .f1il-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .f1il-hero-v3,
    .f1il-videos-v3,
    .f1il-latest-v3 {
        margin-top: 24px;
    }

    .f1il-hero-v3-main-bg {
        height: 280px;
    }

    .f1il-latest-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .f1il-videos-row {
        padding-inline: 12px;
    }
}


/* F1IL custom title underline */
.f1il-title-underline {
    /* width: 150px; */
    height: 3px;
    background: var(--f1-red);
    border-radius: 2px;
    margin-top: 6px;
}

/* F1IL wide layout 1600px */
.f1il-container,
.f1il-wrapper,
.f1il-main-wrapper,
.f1il-section-wrapper,
.f1il-hero-v3,
.f1il-latest-v3,
.f1il-videos-v3,
.f1il-standings-wrap {
    max-width: 1600px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
