/* =========================================================
   OUR CLUB
   HOME
========================================================= */


/* =========================================================
   HOME CONTENT
========================================================= */

.home-content-section {
    padding:
        70px 0;
}


.home-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    gap: 32px;

    align-items: start;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 28px;
}


.section-label {
    display: inline-block;

    margin-bottom: 6px;

    color:
        var(--club-primary);

    font-size: .72rem;

    font-weight: 900;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.section-heading h2 {
    margin: 0;

    color:
        var(--club-dark);

    font-size: 2rem;

    line-height: 1.15;
}


/* =========================================================
   NEWS GRID
========================================================= */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.news-card {
    overflow: hidden;

    background:
        var(--club-white);

    border:
        1px solid
        var(--club-border);

    border-radius:
        var(--club-radius);

    box-shadow:
        0 8px 28px
        rgba(16, 24, 20, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.news-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 16px 35px
        rgba(16, 24, 20, .10);
}


.news-card-image {
    display: block;

    overflow: hidden;
}


.news-card-image img {
    width: 100%;

    aspect-ratio:
        9 / 9;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.news-card:hover
.news-card-image img {
    transform:
        scale(1.03);
}


.news-card-image-empty {
    aspect-ratio:
        16 / 9;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--club-primary),
            var(--club-dark)
        );

    color:
        var(--club-secondary);

    font-size: 1.3rem;

    font-weight: 900;

    letter-spacing: .1em;
}


.news-card-content {
    padding: 20px;
}


.news-card-date {
    color:
        var(--club-primary);

    font-size: .72rem;

    font-weight: 800;
}


.news-card h3 {
    margin:
        7px 0 9px;

    font-size: 1.15rem;

    line-height: 1.3;
}


.news-card h3 a:hover {
    color:
        var(--club-primary);
}


.news-card p {
    margin: 0;

    color:
        var(--club-muted);

    font-size: .88rem;
}


/* =========================================================
   SIDEBAR
========================================================= */

.home-sidebar {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 22px;
}


/* =========================================================
   SIDEBAR WIDGET
========================================================= */

.club-sidebar-widget {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid
        rgba(15, 23, 42, .07);

    border-radius:
        20px;

    box-shadow:
        0 2px 4px
        rgba(15, 23, 42, .02),

        0 10px 30px
        rgba(15, 23, 42, .06);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.club-sidebar-widget:hover {
    transform:
        translateY(-2px);

    border-color:
        color-mix(
            in srgb,
            var(--club-primary) 18%,
            transparent
        );

    box-shadow:
        0 5px 12px
        rgba(15, 23, 42, .04),

        0 18px 40px
        rgba(15, 23, 42, .09);
}


/* =========================================================
   WIDGET HEADER
========================================================= */

.club-sidebar-widget-heading {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 58px;

    margin: 0;

    padding:
        0 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
        );

    border-bottom:
        1px solid
        rgba(15, 23, 42, .07);
}


.club-sidebar-widget-heading::before {
    content: "";

    position: absolute;

    left: 0;

    top: 17px;
    bottom: 17px;

    width: 4px;

    border-radius:
        0 5px 5px 0;

    background:
        var(--club-primary);
}


.club-sidebar-widget-heading::after {
    content: "";

    position: absolute;

    left: 20px;

    bottom: -1px;

    width: 42px;
    height: 3px;

    border-radius:
        3px 3px 0 0;

    background:
        var(--club-primary);
}


.club-sidebar-widget-heading h3 {
    margin: 0;
    padding: 0;

    color:
        #111827;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: -.015em;
}


/* =========================================================
   WIDGET CONTENT
========================================================= */

.club-sidebar-widget > *:not(.club-sidebar-widget-heading) {
    box-sizing: border-box;
}


/* =========================================================
   NEWS WIDGET
========================================================= */

.club-news-widget-list {
    display: flex;

    flex-direction: column;

    padding:
        6px 20px 10px;
}


.club-news-widget-item {
    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        14px 0;

    border-bottom:
        1px solid
        rgba(15, 23, 42, .06);
}


.club-news-widget-item:first-child {
    padding-top: 10px;
}


.club-news-widget-item:last-child {
    padding-bottom: 8px;

    border-bottom: 0;
}


.club-news-widget-image {
    position: relative;

    flex:
        0 0 76px;

    width: 76px;
    height: 58px;

    overflow: hidden;

    border-radius: 11px;

    background:
        #f1f3f5;
}


.club-news-widget-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 50%,
            rgba(255, 255, 255, .12)
        );

    pointer-events: none;
}


.club-news-widget-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.club-news-widget-item:hover
.club-news-widget-image img {
    transform:
        scale(1.07);
}


.club-news-widget-content {
    min-width: 0;

    flex: 1;
}


.club-news-widget-title {
    margin:
        0 0 6px;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 750;

    letter-spacing: -.01em;
}


.club-news-widget-title a {
    display: -webkit-box;

    overflow: hidden;

    color:
        #18212f;

    text-decoration: none;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    transition:
        color .2s ease;
}


.club-news-widget-title a:hover {
    color:
        var(--club-primary);
}


.club-news-widget-date {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        #8b95a3;

    font-size: 11px;

    line-height: 1.3;

    font-weight: 500;
}


.club-news-widget-date::before {
    content: "";

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--club-primary);

    opacity: .7;
}


.club-news-widget-empty {
    margin: 0;

    padding: 20px;

    color:
        #7b8490;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   GENERIC WIDGET CONTENT
========================================================= */

.club-sidebar-widget-content {
    padding:
        18px 20px;
}


.club-sidebar-list {
    display: flex;

    flex-direction: column;

    gap: 0;
}


.club-sidebar-list-item {
    padding:
        13px 0;

    border-bottom:
        1px solid
        rgba(15, 23, 42, .06);
}


.club-sidebar-list-item:first-child {
    padding-top: 0;
}


.club-sidebar-list-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.club-sidebar-more {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 15px;

    padding-top: 13px;

    border-top:
        1px solid
        rgba(15, 23, 42, .06);

    color:
        var(--club-primary);

    font-size: 12px;

    font-weight: 700;
}


.club-sidebar-more:hover {
    opacity: .75;
}


/* =========================================================
   HOME RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .home-sidebar {
        gap: 18px;
    }

    .club-sidebar-widget {
        border-radius: 18px;
    }
}


@media (max-width: 950px) {

    .home-layout {
        grid-template-columns:
            1fr;
    }

    .home-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .news-grid {
        grid-template-columns:
            1fr;
    }

    .home-sidebar {
        grid-template-columns:
            1fr;
    }

    .home-content-section {
        padding:
            50px 0;
    }
}


@media (max-width: 600px) {

    .club-sidebar-widget {
        border-radius: 16px;
    }

    .club-sidebar-widget-heading {
        min-height: 54px;

        padding:
            0 17px;
    }

    .club-sidebar-widget-heading::before {
        top: 16px;
        bottom: 16px;
    }

    .club-sidebar-widget-heading::after {
        left: 17px;
    }

    .club-sidebar-widget-heading h3 {
        font-size: 15px;
    }

    .club-news-widget-list {
        padding-left: 17px;
        padding-right: 17px;
    }

    .club-news-widget-image {
        flex-basis: 68px;

        width: 68px;
        height: 54px;

        border-radius: 10px;
    }

    .club-news-widget-title {
        font-size: 13px;
    }
}