/*
 * RegCircle homepage portal redesign.
 * Scope: homepage only. Business links, Vue mounts and backend data stay untouched.
 */

:root {
    --reg-blue-900: #062b62;
    --reg-blue-800: #0b4ea2;
    --reg-blue-600: #1272dc;
    --reg-blue-400: #17a7e6;
    --reg-cyan-300: #61d4f5;
    --reg-ink: #08234b;
    --reg-muted: #607086;
    --reg-line: rgba(18, 112, 220, 0.12);
    --reg-page: #f4f8ff;
    --reg-card: #ffffff;
    --reg-shadow: 0 18px 50px rgba(21, 82, 156, 0.10);
    --reg-shadow-soft: 0 10px 30px rgba(21, 82, 156, 0.07);
}

body {
    background:
        linear-gradient(180deg, #eff8ff 0, #f6faff 360px, #fff 100%) !important;
}

body,
.regcircle-home-portal {
    color: var(--reg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.newIndBanner {
    padding: 26px 0 0;
    background: linear-gradient(180deg, #eff8ff 0, #f5faff 100%) !important;
}

.newIndBanner .container,
.regcircle-home-portal .container {
    width: min(1400px, calc(100% - 88px)) !important;
    max-width: none !important;
}

.newIndBanner .indBanner_con {
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--reg-line);
    border-radius: 18px;
    background: var(--reg-card);
    box-shadow: var(--reg-shadow);
}

.newIndBanner .indBanner_swiper,
.newIndBanner .indBanner_img {
    border-radius: 14px !important;
    overflow: hidden;
}

.newIndBanner:not(.courseIndBanner) .indBanner_swiper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 11 / 3;
}

.newIndBanner.courseIndBanner .indBanner_swiper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 11 / 2;
}

.newIndBanner .swiper-wrapper,
.newIndBanner .swiper-slide,
.newIndBanner .indBanner_img {
    height: 100% !important;
}

.newIndBanner .indBanner_img {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #eef6ff !important;
}

.newIndBanner .indBanner_swiperPag .swiper-pagination-bullet,
.newIndBanner .swiper-pagination-bullet {
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.newIndBanner .indBanner_swiperPag .swiper-pagination-bullet-active,
.newIndBanner .swiper-pagination-bullet-active {
    background: #fff;
}

.regcircle-home-refresh,
.regcircle-home-portal,
.regcircle-home-portal .newIndSec_bg {
    background: transparent !important;
}

.regcircle-home-portal .visible-xs .headerSearch {
    box-shadow: var(--reg-shadow-soft);
}

.regcircle-ai-bridge {
    padding: 18px 0 12px !important;
    background: transparent !important;
}

.regcircle-ai-card {
    min-height: 158px !important;
    padding: 30px 34px 28px !important;
    border: 1px solid rgba(18, 112, 220, 0.14);
    border-radius: 18px !important;
    color: var(--reg-ink) !important;
    background:
        linear-gradient(90deg, rgba(18, 114, 220, 0.11) 0, rgba(18, 114, 220, 0.04) 42%, rgba(255, 255, 255, 0) 70%),
        #fff !important;
    box-shadow: var(--reg-shadow) !important;
}

.regcircle-ai-card::before {
    inset: 0 auto 0 0 !important;
    width: 6px;
    background: linear-gradient(180deg, var(--reg-blue-600), var(--reg-blue-400)) !important;
}

.regcircle-ai-card:hover,
.regcircle-ai-card:focus {
    color: var(--reg-ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(21, 82, 156, 0.14) !important;
}

.regcircle-ai-eyebrow {
    margin-bottom: 12px !important;
    border-color: rgba(18, 112, 220, 0.18) !important;
    color: var(--reg-blue-600) !important;
    background: rgba(18, 112, 220, 0.08) !important;
}

.regcircle-ai-card h2 {
    margin-bottom: 10px !important;
    color: var(--reg-ink) !important;
    font-size: 31px !important;
    letter-spacing: 0 !important;
}

.regcircle-ai-card p {
    max-width: 720px !important;
    color: #38506d !important;
    line-height: 1.8 !important;
}

.regcircle-ai-chips span {
    color: var(--reg-blue-700, #0e5fbe) !important;
    background: rgba(18, 112, 220, 0.08) !important;
}

.regcircle-ai-action {
    right: 34px !important;
    bottom: 30px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--reg-blue-600), var(--reg-blue-400)) !important;
    box-shadow: 0 12px 26px rgba(18, 112, 220, 0.22) !important;
}

.regcircle-home-portal .newIndSec_bg {
    padding-top: 18px !important;
    padding-bottom: 48px !important;
}

.regcircle-home-portal .newIndSec0,
.regcircle-home-portal .newIndSec0-1,
.regcircle-home-portal .newIndSec1-2,
.regcircle-home-portal .newIndSec3,
.regcircle-home-portal .newIndSec5 {
    margin-top: 24px !important;
}

.regcircle-home-portal .newIndSec0:first-child {
    margin-top: 0 !important;
}

.regcircle-home-portal .newIndSec0_con,
.regcircle-home-portal .newIndSec0-1_con,
.regcircle-home-portal .newIndSec1-2_con,
.regcircle-home-portal .newIndSec3_1_con,
.regcircle-home-portal .courseSec2,
.regcircle-home-portal .newIndSec5_con {
    overflow: hidden;
    border: 1px solid var(--reg-line) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--reg-shadow-soft) !important;
}

.regcircle-home-portal .newIndSec0_con,
.regcircle-home-portal .newIndSec1-2_con,
.regcircle-home-portal .courseSec2,
.regcircle-home-portal .newIndSec5_con {
    padding: 20px !important;
}

.regcircle-home-portal .newIndSec0_con {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    padding: 22px !important;
}

.regcircle-home-portal .memberEquity_box {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 20px 18px;
    border: 1px solid rgba(18, 112, 220, 0.10);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(239, 248, 255, 0.62), rgba(255, 255, 255, 0.92));
}

.regcircle-home-portal .memberEquity_title_box {
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    height: auto !important;
    min-height: 42px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(8, 35, 75, 0.12);
}

.regcircle-home-portal .memberEquity_title_box .img_box,
.regcircle-home-portal .memberEquity_title_box .img_box img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
}

.regcircle-home-portal .memberEquity_title_box .title_box,
.regcircle-home-portal .memberEquity_title_box .title_box p {
    margin: 0 !important;
    color: var(--reg-ink) !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.regcircle-home-portal .memberEquity_con_box {
    width: 100% !important;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    align-items: center !important;
    margin-top: 12px;
}

.regcircle-home-portal .memberEquity_con_p {
    display: block !important;
    box-sizing: border-box;
    width: auto !important;
    height: 24px !important;
    margin: 0 !important;
    overflow: hidden;
    color: #738094 !important;
    font-size: 14px !important;
    line-height: 24px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.regcircle-home-portal .memberEquity_con_p:hover {
    color: var(--reg-blue-600) !important;
}

.regcircle-home-portal .newIndSec0-1_con,
.regcircle-home-portal .newIndSec3_1_con {
    padding: 18px !important;
}

.regcircle-home-portal .newIndSec3_title,
.regcircle-home-portal .courseTitle,
.regcircle-home-portal .newIndSec5_title,
.regcircle-home-portal .newIndSec0-1_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px !important;
}

.regcircle-home-portal .newIndSec3_title h6,
.regcircle-home-portal .courseTitle h6,
.regcircle-home-portal .newIndSec5_title h6,
.regcircle-home-portal .newIndSec0-1_title h6 {
    margin: 0 !important;
    color: var(--reg-ink) !important;
    font-size: 24px !important;
    line-height: 1.35;
    font-weight: 800 !important;
}

.regcircle-home-portal .newIndSec3_title h6::before,
.regcircle-home-portal .courseTitle h6::before,
.regcircle-home-portal .newIndSec5_title h6::before,
.regcircle-home-portal .newIndSec0-1_title h6::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -3px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--reg-blue-600), var(--reg-blue-400));
}

.regcircle-home-portal .newIndSec3_title a,
.regcircle-home-portal .courseTitle a,
.regcircle-home-portal .newIndSec5_title p,
.regcircle-home-portal .indSec5_more {
    color: var(--reg-blue-600) !important;
    font-size: 14px;
}

.regcircle-home-portal .newIndSec1-2_con .toggle_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 12px;
    margin-bottom: 24px !important;
    padding: 0 !important;
    border: 0 !important;
}

.regcircle-home-portal .newIndSec1-2_con .toggle_box li {
    margin: 0 !important;
}

.regcircle-home-portal .newIndSec1-2_con .toggle_box li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 106px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    color: #315d91 !important;
    background: #eef6ff !important;
    text-decoration: none !important;
}

.regcircle-home-portal .newIndSec1-2_con .toggle_box li.on a,
.regcircle-home-portal .newIndSec1-2_con .toggle_box li a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--reg-blue-600), var(--reg-blue-400)) !important;
    box-shadow: 0 8px 18px rgba(18, 112, 220, 0.18) !important;
}

.regcircle-home-portal .newIndSec1_list a,
.regcircle-home-portal .newIndSec2_leftList h6 {
    color: #18385f !important;
    line-height: 1.65;
}

.regcircle-home-portal .newIndSec1_list a:hover,
.regcircle-home-portal .newIndSec2_leftList a:hover h6 {
    color: var(--reg-blue-600) !important;
}

.regcircle-home-portal .newIndSec1-2_con .con_box {
    min-height: 0;
}

.regcircle-home-portal .newIndSec1-2_con_box.on {
    display: block !important;
}

.regcircle-home-portal .newIndSec1_box_1,
.regcircle-home-portal #app-regulation {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.regcircle-home-portal .newIndSec1_box {
    min-height: 0;
}

.regcircle-home-portal .newIndSec1_box > .newIndSec1_list:not(.newIndSec1_list_left):not(.newIndSec1_list_right) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: regcircle-home-list;
}

.regcircle-home-portal .newIndSec1_box > .newIndSec1_list:not(.newIndSec1_list_left):not(.newIndSec1_list_right) li {
    counter-increment: regcircle-home-list;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 16px 0 0 !important;
    border-bottom: 1px dashed rgba(8, 35, 75, 0.12) !important;
}

.regcircle-home-portal .newIndSec1_box > .newIndSec1_list:not(.newIndSec1_list_left):not(.newIndSec1_list_right) li::before {
    content: counter(regcircle-home-list);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--reg-blue-600), var(--reg-blue-400));
}

.regcircle-home-portal .newIndSec1_box > .newIndSec1_list:not(.newIndSec1_list_left):not(.newIndSec1_list_right) li a {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--reg-ink) !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.regcircle-home-portal .newIndSec1_box > .newIndSec1_list:not(.newIndSec1_list_left):not(.newIndSec1_list_right) li div {
    margin-left: 18px;
    color: #a4afbf;
    white-space: nowrap;
}

.regcircle-home-portal .newIndSec1_list_left,
.regcircle-home-portal .newIndSec2_leftClassify {
    display: grid !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    align-content: start;
}

.regcircle-home-portal .newIndSec1_list_left li,
.regcircle-home-portal .newIndSec2_leftClassify li {
    width: 100% !important;
    height: auto !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
}

.regcircle-home-portal .newIndSec1_list_left li a,
.regcircle-home-portal .newIndSec2_leftClassify li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(18, 112, 220, 0.20) !important;
    border-radius: 10px !important;
    color: #315d91 !important;
    background: #f4f9ff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.regcircle-home-portal .newIndSec1_list_left li.on a,
.regcircle-home-portal .newIndSec1_list_left li a:hover,
.regcircle-home-portal .newIndSec2_leftClassify li.on a,
.regcircle-home-portal .newIndSec2_leftClassify li a:hover {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--reg-blue-600), var(--reg-blue-400)) !important;
    box-shadow: 0 10px 22px rgba(18, 112, 220, 0.18);
}

.regcircle-home-portal .newIndSec1_list_right,
.regcircle-home-portal .newIndSec2_leftList {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    margin: 0 !important;
    padding: 0 !important;
}

.regcircle-home-portal .newIndSec1_list_right li,
.regcircle-home-portal .newIndSec2_leftList li {
    min-width: 0;
    height: auto !important;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px dashed rgba(8, 35, 75, 0.12) !important;
    display: flex !important;
    align-items: center !important;
}

.regcircle-home-portal .newIndSec1_list_right {
    counter-reset: regcircle-doc-list;
}

.regcircle-home-portal .newIndSec1_list_right li {
    counter-increment: regcircle-doc-list;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
}

.regcircle-home-portal .newIndSec1_list_right li::before {
    content: "★";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f2b322;
    font-size: 15px;
}

.regcircle-home-portal .newIndSec1_list_right .a_img {
    display: none !important;
}

.regcircle-home-portal .newIndSec1_list_right li a,
.regcircle-home-portal .newIndSec2_leftList li a {
    display: block !important;
    width: 100%;
    overflow: hidden;
    color: var(--reg-ink) !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.regcircle-home-portal .newIndSec2_leftList h6 {
    margin: 0 !important;
    overflow: hidden;
    color: var(--reg-ink) !important;
    font-size: 15px !important;
    line-height: 42px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.regcircle-home-portal .indSec4_list,
.regcircle-home-portal .indSec4_list_2,
.regcircle-home-portal .newIndSec5_list,
.regcircle-home-portal .courseSec2Box1_list {
    gap: 18px !important;
}

.regcircle-home-portal #newCourseBox .indSec4_list,
.regcircle-home-portal .booksBox .indSec4_list,
.regcircle-home-portal .booksBox2 .indSec4_list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.regcircle-home-portal .indSec4_list_2 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.regcircle-home-portal .courseSec2Box1_list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.regcircle-home-portal .indSec4_list li,
.regcircle-home-portal .indSec4_list_2 li,
.regcircle-home-portal .courseSec2Box1,
.regcircle-home-portal .newIndSec5_list li,
.regcircle-home-portal .booksBox li,
.regcircle-home-portal .booksBox2 li {
    width: auto !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(18, 112, 220, 0.10) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.regcircle-home-portal .indSec4_list li:hover,
.regcircle-home-portal .indSec4_list_2 li:hover,
.regcircle-home-portal .courseSec2Box1:hover,
.regcircle-home-portal .newIndSec5_list li:hover,
.regcircle-home-portal .booksBox li:hover,
.regcircle-home-portal .booksBox2 li:hover {
    transform: translateY(-3px);
    border-color: rgba(18, 112, 220, 0.24) !important;
    box-shadow: 0 16px 34px rgba(21, 82, 156, 0.12) !important;
}

.regcircle-home-portal .indSec4_img,
.regcircle-home-portal .courseSec2Box1_img {
    background: #eef6ff;
}

.regcircle-home-portal .indSec4_img img,
.regcircle-home-portal .courseSec2Box1_img img {
    display: block;
    object-fit: cover;
}

.regcircle-home-portal .indSec4_txt h6,
.regcircle-home-portal .courseSec2Box1_title a {
    color: var(--reg-ink) !important;
    font-weight: 700 !important;
}

.regcircle-home-portal .indSec4_txt h6,
.regcircle-home-portal .indSec4_txt .title,
.regcircle-home-portal .courseSec2Box1_title a {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.regcircle-home-portal .courseSec2Box1 {
    min-height: 188px;
    padding: 0 !important;
}

.regcircle-home-portal .courseSec2Box1_top {
    min-height: 128px;
}

.regcircle-home-portal .courseSec2Box1_right_bottom,
.regcircle-home-portal .courseSec2Box1_right_bottom p,
.regcircle-home-portal .courseSec2Box1_right_bottom a {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.regcircle-home-portal .courseSec2Box1_bottom {
    border-top-color: rgba(18, 112, 220, 0.10) !important;
}

.regcircle-home-portal .indSec4_txt p,
.regcircle-home-portal .courseSec2Box1_right_bottom p,
.regcircle-home-portal .courseSec2Box1_right_bottom a,
.regcircle-home-portal .newIndSec5_title p {
    color: var(--reg-muted) !important;
}

.regcircle-home-portal .price,
.regcircle-home-portal .price_text {
    color: #f05a28 !important;
}

.regcircle-home-portal .member-label span,
.regcircle-home-portal .class_hour {
    border-radius: 999px;
}

.regcircle-home-portal .footer {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .newIndBanner .container,
    .regcircle-home-portal .container {
        width: calc(100% - 12px) !important;
    }

    .newIndBanner {
        padding-top: 12px;
    }

    .newIndBanner .indBanner_con,
    .regcircle-home-portal .newIndSec0_con,
    .regcircle-home-portal .newIndSec0-1_con,
    .regcircle-home-portal .newIndSec1-2_con,
    .regcircle-home-portal .newIndSec3_1_con,
    .regcircle-home-portal .courseSec2,
    .regcircle-home-portal .newIndSec5_con {
        border-radius: 14px !important;
    }

    .regcircle-ai-card {
        padding: 24px 20px !important;
    }

    .regcircle-ai-card h2 {
        font-size: 25px !important;
    }

    .regcircle-ai-action {
        position: static !important;
        width: 100%;
        margin-top: 18px;
    }

    .regcircle-home-portal .newIndSec3_title h6,
    .regcircle-home-portal .courseTitle h6,
    .regcircle-home-portal .newIndSec5_title h6,
    .regcircle-home-portal .newIndSec0-1_title h6 {
        font-size: 21px !important;
    }

    .regcircle-home-portal .newIndSec0_con {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px !important;
    }

    .regcircle-home-portal .memberEquity_box {
        padding: 14px;
    }

    .regcircle-home-portal .memberEquity_con_box {
        grid-template-columns: 1fr;
    }

    .regcircle-home-portal .newIndSec1_box_1,
    .regcircle-home-portal #app-regulation,
    .regcircle-home-portal .newIndSec1_list_right,
    .regcircle-home-portal .newIndSec2_leftList,
    .regcircle-home-portal #newCourseBox .indSec4_list,
    .regcircle-home-portal .booksBox .indSec4_list,
    .regcircle-home-portal .booksBox2 .indSec4_list,
    .regcircle-home-portal .indSec4_list_2,
    .regcircle-home-portal .courseSec2Box1_list {
        grid-template-columns: 1fr !important;
    }

    .preparationBox {
        left: auto !important;
        right: 8px !important;
        top: auto !important;
        bottom: 14px !important;
        width: 48px !important;
        transform: scale(0.84);
        transform-origin: right bottom;
        z-index: 8 !important;
    }

    .preparation_box {
        width: 48px !important;
        height: 48px !important;
        padding: 6px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 12px 28px rgba(21, 82, 156, 0.18);
    }

    .preparation_box p,
    .preparation_box .text {
        display: none !important;
    }

    .preparation_box img {
        width: 36px !important;
        height: 36px !important;
    }

    .preparation_box2 {
        width: 48px !important;
        margin-top: 8px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 12px 28px rgba(21, 82, 156, 0.16);
    }
}
