﻿/* =========================================================
   CLB HỌC SINH
========================================================= */

.student-club-section {
    position: relative;
    padding: 58px 0 52px;
    background: #fff;
    overflow: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.student-club-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 34px;
}

.student-club-header-left {
    flex: 1;
    min-width: 0;
}

.student-club-title-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.student-club-title {
    position: relative;
    margin: 0;
    padding-right: 22px;
    color: #203f98;
    font-size: 35px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: -.5px;
    font-family: 'Montserrat-ExtraBold';
    white-space: nowrap;
}

.student-club-title-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9d9d9;
    margin-top: 3px;
}

.student-club-category-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
}

.student-club-category-item {
    position: relative;
    list-style: none;
    padding-right: 14px;
}

    .student-club-category-item::after {
        content: "";
        position: absolute;
        top: 3px;
        right: 0;
        width: 1px;
        height: 15px;
        background: #d4d4d4;
    }

    .student-club-category-item:last-child {
        margin-right: 0;
        padding-right: 0;
    }

        .student-club-category-item:last-child::after {
            display: none;
        }

    .student-club-category-item a {
        color: #232323;
        font-family: 'Montserrat-SemiBold';
        font-size: 16px;
        font-style: normal;
        font-weight: normal;
        line-height: normal;
        text-transform: uppercase;
        transition: all .2s ease;
        text-decoration: none;
    }

        .student-club-category-item a:hover {
            color: #2144a6;
        }

/* =========================================================
   BUTTON
========================================================= */

.student-club-header-right {
    flex-shrink: 0;
}

.student-club-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #2a2a2a;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Montserrat-Medium';
    transition: all .25s ease;
}

    .student-club-view-all::after {
        content: "›";
        margin-left: 8px;
        font-size: 1.6rem;
        margin-top: -5px;
    }

    .student-club-view-all:hover {
        background: #203f98;
        border-color: #203f98;
        color: #fff;
        text-decoration: none;
    }

/* =========================================================
   MAIN GRID
========================================================= */

.student-club-layout {
    display: grid;
    grid-template-columns: 36% 36% 25%;
    gap: 18px;
    align-items: flex-start;
}

/* =========================================================
   FEATURED LEFT
========================================================= */

.student-club-featured-link {
    display: block;
    text-decoration: none !important;
}

.student-club-featured-thumb {
    overflow: hidden;
    border-radius: 14px;
}

    .student-club-featured-thumb img {
        display: block;
        width: 100%;
        height: 350px;
        object-fit: cover;
        border-radius: 14px;
        transition: transform .45s ease;
    }

.student-club-featured-post:hover .student-club-featured-thumb img {
    transform: scale(1.04);
}

.student-club-featured-content {
    padding-top: 19px;
}

.student-club-featured-title {
    margin: 0;
    color: #1c1c1c;
    font-size: 19px;
    line-height: 150%;
    font-family: 'Montserrat-SemiBold';
    transition: all .25s ease;
    letter-spacing: -.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.student-club-featured-post:hover .student-club-featured-title {
    color: #2144a6;
}

.student-club-meta-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 9px;
    margin-bottom: 8px;
}

.student-club-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .student-club-meta-item img {
        width: 15px;
        height: 15px;
        object-fit: contain;
        filter: brightness(0) saturate(100%) invert(22%) sepia(28%) saturate(4050%) hue-rotate(204deg) brightness(95%) contrast(91%);
    }

    .student-club-meta-item span {
        color: #8c8c8c;
        font-size: 12px;
        font-family: 'Montserrat-Medium';
    }

.student-club-featured-description {
    margin-top: 7px;
}

    .student-club-featured-description span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        color: #1c1c1c;
        font-size: 15px;
        line-height: 1.7;
        font-family: 'Montserrat-Medium';
        text-align: justify;
    }

.student-club-featured-more svg path {
    fill: #203f98;
}

.student-club-featured-more {
    display: inline-flex;
    margin-top: 13px;
    color: #203f98;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Montserrat-SemiBold';
    align-items: center;
    line-height: normal;
}

li.mini-banner-item a, li.mini-banner-item a img {
    display: block;
    width: 100%;
    height: 100%;
}

li.mini-banner-item {
    margin-bottom: 10px;
}

ul.mini-banner-list.rs {
    background: #fff;
    border: 1px solid #dddddd;
    padding: 10px 10px;
    border-radius: 10px;
}
/* =========================================================
   CENTER LIST
========================================================= */

.student-club-center {
    display: flex;
    flex-direction: column;
}

.student-club-small-post {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ececec;
}

    .student-club-small-post:last-child {
        margin-bottom: 0;
        border-bottom: 0;
        padding-bottom: 0;
    }

.student-club-small-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none !important;
}

.student-club-small-thumb {
    width: 174px;
    min-width: 174px;
    overflow: hidden;
    border-radius: 10px;
}

    .student-club-small-thumb img {
        display: block;
        width: 100%;
        height: 130px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform .4s ease;
    }

.student-club-small-post:hover .student-club-small-thumb img {
    transform: scale(1.05);
}

.student-club-small-content {
    flex: 1;
}

.student-club-small-title {
    margin: 0;
    color: #1c1c1c;
    font-size: 17px;
    line-height: 1.5;
    font-family: 'Montserrat-SemiBold';
    transition: all .2s ease;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.student-club-small-post:hover .student-club-small-title {
    color: #2144a6;
}

.student-club-highlight-mini-list ul li:before {
    content: "";
    position: absolute;
    background: url(/Design/img/THPTHamThuanNam/icon/8.png) no-repeat;
    background-size: cover;
    left: 0;
    top: 11px;
    width: 14px;
    height: 8px;
}

.student-club-highlight-mini-list ul li a {
    text-decoration: none;
    color: #fff;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Montserrat-SemiBold';
}

.student-club-highlight-mini-list ul li {
    position: relative;
    padding: 3px 0;
    padding-left: 19px;
}

.student-club-highlight-mini-list {
    border-top: 1px solid #fff;
    margin-top: 9px;
    padding-top: 8px;
}

.student-club-small-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

    .student-club-small-meta img {
        width: 14px;
        height: 14px;
        filter: brightness(0) saturate(100%) invert(22%) sepia(28%) saturate(4050%) hue-rotate(204deg) brightness(95%) contrast(91%);
    }

    .student-club-small-meta span {
        color: #8a8a8a;
        font-size: 12px;
        font-family: 'Montserrat-Medium';
    }

/* =========================================================
   RIGHT BOX
========================================================= */

.student-club-highlight-box {
    padding: 20px 20px 18px;
    border-radius: 20px;
    background: #203f98;
}

.student-club-highlight-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: 'Montserrat-ExtraBold';
}

.student-club-highlight-thumb {
    overflow: hidden;
    border-radius: 12px;
}

    .student-club-highlight-thumb img {
        width: 100%;
        height: 186px;
        object-fit: cover;
        border-radius: 12px;
    }

.student-club-highlight-content {
    margin-top: 5px;
}

    .student-club-highlight-content span {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        color: rgba(255,255,255,.85);
        font-size: 12px;
        font-family: 'Montserrat-Medium';
    }

        .student-club-highlight-content span::before {
            content: "";
            width: 14px;
            height: 14px;
            background: url(../../Design/img/THPTHamThuanNam/icon/6.png) no-repeat;
            background-size: contain;
            filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1%) hue-rotate(138deg) brightness(107%) contrast(101%);
        }

article.student-club-highlight-item a {
    display: block;
    text-decoration: none;
}

.student-club-highlight-content h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    font-family: 'Montserrat-SemiBold';
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.student-club-highlight-list-mini {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.25);
}

.student-club-highlight-mini-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
}

    .student-club-highlight-mini-item:last-child {
        margin-bottom: 0;
    }

    .student-club-highlight-mini-item::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 0;
        width: 8px;
        height: 8px;
        background: #fff;
    }

    .student-club-highlight-mini-item a {
        color: #fff;
        font-size: 13px;
        line-height: 1.4;
        text-decoration: none;
        font-family: 'Montserrat-Medium';
        transition: all .2s ease;
    }

        .student-club-highlight-mini-item a:hover {
            opacity: .8;
        }

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

@media(max-width:1199px) {
    .student-club-layout {
        grid-template-columns: 1fr;
    }

    .student-club-small-title {
        font-size: 16px;
    }

    .student-club-title-wrap::after {
        display: none;
    }
}

@media(max-width:767px) {
    .student-club-section {
        padding: 30px 0;
    }

    .student-club-highlight-content h3 {
        font-size: 15px;
    }

    .student-club-highlight-title {
        font-size: 20px;
    }

    .student-club-small-title {
        font-size: 15px;
        text-align: justify;
    }

    .student-club-header {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 24px;
    }

    .student-club-header-right {
        display: none;
    }

        .student-club-header-right.none {
            display: block !important;
            text-align: center;
            margin-top: 19px;
        }

    ul.mini-banner-list.rs {
        margin-top: 30px;
    }

    .student-club-title {
        font-size: 20px;
    }

    .student-club-right .student-club-header-right.none {
        margin-top: 0;
    }

    .student-club-category-list {
        margin-top: 14px;
        gap: 4px;
    }

    .student-club-layout {
        gap: 26px;
    }

    .student-club-featured-thumb img {
        height: 240px;
    }

    .student-club-featured-title {
        font-size: 16px;
        text-align: justify;
    }

    .student-club-featured-description span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        color: #1c1c1c;
        font-size: 14px;
        line-height: 150%;
        font-family: 'Montserrat-Medium';
        text-align: justify;
    }

    .student-club-featured-more {
        font-size: 15px;
    }

    .student-club-small-link {
        gap: 10px;
    }

    .student-club-small-thumb {
        display: block;
        width: 128px;
        min-width: 128px;
    }

        .student-club-small-thumb img {
            height: 86px;
        }

    .student-club-highlight-thumb img {
        height: 220px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
/* =========================================================
   CATEGORY SCROLL MOBILE
========================================================= */

@media(max-width:767px) {
    .student-club-view-all {
        padding: 0 18px;
        height: 38px;
        font-size: 14px;
        font-family: 'Montserrat-SemiBold';
    }

        .student-club-view-all::after {
            margin-top: -6px;
        }

    .student-club-header-left {
        width: 100%;
        overflow: hidden;
    }

    .student-club-category-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: calc(100% + 24px);
        margin: 16px -12px 0;
        padding: 0 12px 8px;
        scrollbar-width: none;
    }

        .student-club-category-list::-webkit-scrollbar {
            display: none;
        }

    .student-club-category-item {
        flex: 0 0 auto !important;
        display: block;
        margin-right: 0px !important;
        padding-right: 0 !important;
        border: none !important;
    }

        .student-club-category-item::after {
            display: none !important;
        }

        .student-club-category-item a {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 38px;
            padding: 0 9px;
            border-radius: 999px;
            background: #f3f5fb;
            color: #1743aa;
            font-size: 13px;
            line-height: normal;
            white-space: nowrap;
            font-family: 'Montserrat-SemiBold';
        }
}
/* =========================================================
   HOVER EFFECTS - PROFESSIONAL SCHOOL STYLE
   (BỔ SUNG THÊM - GIỮ NGUYÊN CSS CŨ)
========================================================= */

/* =========================
   FEATURED LEFT
========================= */

.student-club-featured-post {
    position: relative;
    border-radius: 16px;
    transition: all .35s ease;
}

    .student-club-featured-post::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 18px;
        opacity: 0;
        transition: all .35s ease;
        pointer-events: none;
    }

    .student-club-featured-post:hover {
        transform: translateY(-6px);
    }

        .student-club-featured-post:hover::before {
            opacity: 1;
        }

.student-club-featured-thumb {
    position: relative;
}

    .student-club-featured-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 14px;
        background: linear-gradient(to top,rgba(0,0,0,.28),rgba(0,0,0,0));
        opacity: 0;
        transition: all .4s ease;
    }

.student-club-featured-post:hover .student-club-featured-thumb::after {
    opacity: 1;
}

.student-club-featured-post:hover .student-club-featured-title {
    color: #1a46b8;
    text-shadow: 0 1px 0 rgba(255,255,255,.3);
}

.student-club-featured-description span {
    transition: all .3s ease;
}

.student-club-featured-post:hover .student-club-featured-description span {
    color: #4b4b4b;
}

.student-club-featured-more svg {
    margin-left: 4px;
}

.student-club-featured-more {
    position: relative;
    transition: all .3s ease;
}

    .student-club-featured-more::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: #2144a6;
        transition: width .3s ease;
    }

.student-club-featured-post:hover .student-club-featured-more::after {
    width: 100%;
}

.student-club-featured-post:hover .student-club-featured-more {
    letter-spacing: .5px;
}

/* =========================
   CENTER POSTS
========================= */

.student-club-small-post {
    position: relative;
    transition: all .3s ease;
}

    .student-club-small-post::before {
        content: "";
        position: absolute;
        inset: -6px;
        opacity: 0;
        transform: scale(.96);
        transition: all .3s ease;
        z-index: -1;
    }

    .student-club-small-post:hover::before {
        opacity: 1;
        transform: scale(1);
    }

    .student-club-small-post:hover {
        transform: translateX(5px);
    }

.student-club-small-thumb {
    position: relative;
}

    .student-club-small-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 10px;
        background: linear-gradient(to top,rgba(0,0,0,.25),transparent);
        opacity: 0;
        transition: all .35s ease;
    }

.student-club-small-post:hover .student-club-small-thumb::after {
    opacity: 1;
}

.student-club-small-post:hover .student-club-small-title {
    color: #2144a6;
}

.student-club-small-meta span {
    transition: all .3s ease;
}

.student-club-small-post:hover .student-club-small-meta span {
    color: #2144a6;
}

/* =========================
   RIGHT SIDEBAR
========================= */

.student-club-highlight-box {
    position: relative;
    overflow: hidden;
}

    .student-club-highlight-box::before {
        content: "";
        position: absolute;
        top: -120px;
        right: -120px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255,255,255,.05);
        transition: all .5s ease;
    }

    .student-club-highlight-box:hover::before {
        transform: scale(1.15) rotate(8deg);
    }

.student-club-highlight-item {
    position: relative;
    transition: all .35s ease;
}

    .student-club-highlight-item:hover {
        transform: translateY(-4px);
    }

.student-club-highlight-thumb {
    position: relative;
}

    .student-club-highlight-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
        background: linear-gradient(to top,rgba(0,0,0,.45),rgba(0,0,0,0));
        opacity: 0;
        transition: all .35s ease;
    }

.student-club-highlight-item:hover .student-club-highlight-thumb::after {
    opacity: 1;
}

.student-club-highlight-thumb img {
    transition: transform .45s ease,filter .35s ease;
}

.student-club-highlight-item:hover .student-club-highlight-thumb img {
    transform: scale(1.06);
    filter: brightness(.96);
}

.student-club-highlight-content h3 {
    transition: all .3s ease;
}

.student-club-highlight-item:hover .student-club-highlight-content h3 {
    color: #ffffff;
    transform: translateX(3px);
}

.student-club-highlight-content span {
    transition: all .3s ease;
}

.student-club-highlight-item:hover .student-club-highlight-content span {
    opacity: 1;
}

/* =========================
   MINI LIST RIGHT
========================= */

.student-club-highlight-mini-list ul li {
    transition: all .25s ease;
}

    .student-club-highlight-mini-list ul li:hover {
        transform: translateX(6px);
    }

    .student-club-highlight-mini-list ul li::before {
        transition: all .25s ease;
    }

    .student-club-highlight-mini-list ul li:hover::before {
        transform: translateX(3px);
    }

    .student-club-highlight-mini-list ul li a {
        transition: all .25s ease;
    }

    .student-club-highlight-mini-list ul li:hover a {
        color: #FFEB3B;
        opacity: 1;
    }

/* =========================
   CATEGORY MENU
========================= */

.student-club-category-item a {
    position: relative;
}

    .student-club-category-item a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background: #2144a6;
        transition: width .28s ease;
    }

    .student-club-category-item a:hover::after {
        width: 100%;
    }

/* =========================
   BUTTON
========================= */

.student-club-view-all {
    position: relative;
    overflow: hidden;
}

    .student-club-view-all::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
        transition: all .7s ease;
    }

    .student-club-view-all:hover::before {
        left: 120%;
    }

    .student-club-view-all:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(32,63,152,.22);
    }

/* =========================
   MOBILE OPTIMIZE
========================= */

@media(max-width:767px) {
    .student-club-featured-post:hover,
    .student-club-small-post:hover,
    .student-club-highlight-item:hover {
        transform: none;
    }

    .student-club-view-all:hover {
        transform: none;
    }

    .student-club-small-post::before {
        display: none;
    }

    .student-club-featured-post::before {
        display: none;
    }
}