@import 'base.css';

.home-page {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 56px;
    box-sizing: border-box;
    display: grid;
    row-gap: 18px;
}

.home-hero {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, .9fr);
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}

.home-hero__media,
.home-hero__panel,
.home-card,
.service-item,
.focus-item,
.stat-card {
    background: #fff;
    border: 1px solid #e9edf2;
    box-shadow: 0 8px 22px rgba(20, 34, 56, .045);
}

.home-hero__media {
    overflow: hidden;
    width: 100%;
    min-width: 0;
    height: clamp(220px, 20vw, 346px);
}

#bannerCarousel.home-hero__carousel {
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    box-sizing: border-box;
}

.home-hero__carousel [carousel-item],
.home-hero__carousel [carousel-item] > div {
    width: 100%;
    height: 100% !important;
}

.home-hero__carousel [carousel-item] a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero__carousel,
.home-hero__carousel [carousel-item],
.home-hero__carousel [carousel-item] > * {
    background: #f2f4f7 !important;
}

.home-hero__carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero__panel {
    position: relative;
    min-width: 0;
    padding: 38px 34px;
    background: linear-gradient(145deg, #b91022 0%, #c8102e 48%, #861320 100%);
    color: #fff;
    overflow: hidden;
}

.home-hero__panel::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -54px;
    width: 210px;
    height: 210px;
    border: 34px solid rgba(255,255,255,.11);
    border-radius: 50%;
}

.party-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.home-hero__panel h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
}

.home-hero__panel p {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,.92);
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    padding: 0 18px;
    background: #fff;
    color: #b91022;
    font-weight: 700;
}

.hero-actions a + a {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

.hero-news {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.22);
}

.hero-news span,
.hero-news a {
    display: block;
}

.hero-news span {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.hero-news a {
    color: #fff;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: stretch;
}

.spotlight-media,
.spotlight-news {
    background: #fff;
    border: 1px solid #e9edf2;
    box-shadow: 0 8px 22px rgba(20, 34, 56, .045);
}

.spotlight-media {
    position: relative;
    overflow: hidden;
    height: clamp(380px, 30vw, 480px);
}

#spotlightCarousel.spotlight-carousel {
    height: 100% !important;
    margin-top: 0 !important;
}

.spotlight-carousel,
.spotlight-carousel [carousel-item],
.spotlight-carousel [carousel-item] > div,
.spotlight-carousel [carousel-item] > div > a {
    width: 100%;
    height: 100% !important;
}

.spotlight-carousel {
    background: #f2f4f7 !important;
}

.spotlight-slide {
    position: relative;
    display: block;
    overflow: hidden;
}

.spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(18, 24, 39, .78) 100%);
    color: #fff;
}

.spotlight-caption span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    margin-bottom: 8px;
}

.spotlight-caption strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.spotlight-news {
    padding: 18px 18px 10px;
}

.spotlight-tabs {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.spotlight-tabs::-webkit-scrollbar {
    display: none;
}

.spotlight-tab {
    flex: 0 0 auto;
    height: 68px;
    min-width: 178px;
    padding: 0 24px;
    border: 0;
    background: #f3f4f6;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.spotlight-tab.is-active {
    background: #c8102e;
    color: #fff;
}

.spotlight-panel {
    display: none;
}

.spotlight-panel.is-active {
    display: block;
}

.spotlight-list li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid #edf0f4;
}

.spotlight-list li:last-child {
    border-bottom: 0;
}

.spotlight-list li::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #1f5f94;
}

.spotlight-list li a {
    color: #333;
    font-size: 17px;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-list li time {
    color: #a1a7b3;
    font-size: 15px;
    text-align: right;
}

.spotlight-empty {
    grid-template-columns: 1fr !important;
    color: #98a2b3;
    padding-left: 0 !important;
}

.spotlight-empty::before {
    display: none;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
}

.stat-card {
    padding: 18px;
    min-height: 108px;
}

.stat-card span {
    display: block;
    color: #c8102e;
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: #1f2937;
    font-size: 20px;
}

.stat-card p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
}

.stat-card--party {
    background: #fff8f1;
    border-color: #f3d5c0;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
    gap: 18px;
    margin: 0;
}

.home-grid--bottom {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
}

.home-card {
    padding: 22px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f5;
}

.section-head--center {
    justify-content: center;
    text-align: center;
    border-bottom: 0;
}

.section-kicker {
    display: block;
    color: #c8102e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.section-head h2 {
    margin: 6px 0 0;
    color: #1f2937;
    font-size: 24px;
    line-height: 1.35;
}

.section-head a {
    color: #667085;
    font-size: 14px;
}

.modern-news-list {
    margin-top: 6px;
}

.modern-news-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.modern-news-list li:last-child {
    border-bottom: 0;
}

.modern-news-list a {
    color: #2f3744;
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-news-list a:hover,
.party-list a:hover {
    color: #c8102e;
}

.modern-news-list time {
    color: #98a2b3;
    font-size: 14px;
    text-align: right;
}

.party-card {
    background: #fffaf6;
    border-color: #f0d8c9;
}

.party-feature {
    margin-top: 16px;
    padding: 18px;
    background: #c8102e;
    color: #fff;
}

.party-mark {
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #ffd76a;
    color: #b91022;
    font-size: 26px;
    font-weight: 700;
    border-radius: 50%;
}

.party-feature h3 {
    margin: 14px 0 8px;
    font-size: 20px;
    line-height: 1.45;
}

.party-feature p {
    margin: 0;
    color: rgba(255,255,255,.92);
    line-height: 1.8;
}

.party-list {
    margin-top: 14px;
}

.party-list li {
    padding: 10px 0 10px 18px;
    border-bottom: 1px dashed #ead2c3;
    position: relative;
}

.party-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 6px;
    height: 6px;
    background: #c8102e;
    border-radius: 50%;
}

.party-list a {
    color: #3b3f46;
    line-height: 1.65;
}

.column-card {
    margin-bottom: 0;
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.column-panel {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
}

.column-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7ebf0;
}

.column-panel__head h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
}

.column-panel__head a {
    color: #c8102e;
    font-size: 13px;
    white-space: nowrap;
}

.column-panel li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #dde3ea;
}

.column-panel li:last-child {
    border-bottom: 0;
}

.column-panel li a {
    color: #344054;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-panel time {
    color: #98a2b3;
    font-size: 13px;
    text-align: right;
}

.home-services {
    background: #fff;
    border: 1px solid #e9edf2;
    padding: 24px;
    margin-bottom: 0;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.feature-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e9edf2;
    box-shadow: 0 8px 22px rgba(20, 34, 56, .04);
}

.feature-card__image {
    width: 110px;
    overflow: hidden;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card__body span {
    display: inline-block;
    color: #c8102e;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card__body h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.4;
}

.feature-card__body p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.service-item {
    min-height: 98px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #344054;
    transition: transform .2s ease, border-color .2s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    border-color: #c8102e;
    color: #c8102e;
}

.service-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.service-item span {
    font-weight: 700;
    font-size: 15px;
}

.work-band {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    background: #c9102e;
    color: #fff;
    padding: 24px;
    margin-bottom: 0;
}

.work-band__intro h2 {
    margin: 6px 0 12px;
    font-size: 26px;
}

.work-band__intro p {
    margin: 0;
    color: rgba(255,255,255,.76);
    line-height: 1.8;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.work-grid div {
    padding: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

.work-grid strong,
.work-grid span {
    display: block;
}

.work-grid strong {
    font-size: 18px;
    margin-bottom: 8px;
}

.work-grid span {
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}

.home-focus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.focus-item {
    min-height: 102px;
    padding: 20px;
    color: #243042;
    background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
}

.focus-item--red {
    color: #fff;
    background: linear-gradient(135deg, #b91022 0%, #c8102e 100%);
    border-color: #c8102e;
}

.focus-item strong {
    display: block;
    font-size: 22px;
}

.focus-item span {
    display: block;
    margin-top: 8px;
    color: inherit;
    opacity: .78;
}

.platform-section {
    background: #fff;
    border: 1px solid #e9edf2;
    padding: 24px;
    margin-bottom: 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.platform-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #edf0f4;
}

.platform-grid a:hover {
    color: #c8102e;
    border-color: #f2c7cf;
}

.platform-grid img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.platform-grid span {
    font-weight: 700;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.journal-item {
    color: #344054;
}

.journal-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #eef1f5;
    background: #f8fafc;
}

.journal-item span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-card p {
    margin: 14px 0 0;
    color: #4b5563;
    line-height: 1.8;
}

.qr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.qr-row img {
    width: 88px;
    height: 88px;
    object-fit: cover;
}

.qr-row span {
    color: #667085;
}

.layui-carousel-ind ul {
    background: transparent !important;
}

.layui-carousel-ind ul li {
    width: 18px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,.65) !important;
}

.layui-carousel-ind ul li.layui-this {
    background: #fff !important;
}

@media screen and (max-width: 1100px) {
    .home-hero,
    .spotlight-band,
    .home-grid,
    .home-grid--bottom,
    .work-band {
        grid-template-columns: 1fr;
    }

    .home-hero__panel {
        min-height: auto;
    }

    .spotlight-media {
        height: 300px;
    }

    .home-stats,
    .home-focus,
    .column-grid,
    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-card__image {
        width: 100%;
    }
}

@media screen and (max-width: 760px) {
    .home-page {
        width: calc(100% - 24px);
        padding-top: 12px;
        row-gap: 14px;
    }

    .home-hero__panel,
    .home-card,
    .home-services,
    .spotlight-news,
    .platform-section,
    .work-band {
        padding: 18px;
    }

    .home-hero__media {
        height: 170px;
    }

    .spotlight-media {
        height: 260px;
    }

    .spotlight-caption {
        padding: 14px 16px;
    }

    .spotlight-caption strong {
        font-size: 16px;
    }

    .spotlight-tabs {
        gap: 10px;
    }

    .spotlight-tab {
        min-width: 118px;
        height: 48px;
        padding: 0 14px;
        font-size: 14px;
    }

    .spotlight-list li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0 12px 22px;
    }

    .spotlight-list li a {
        font-size: 15px;
    }

    .spotlight-list li time {
        text-align: left;
        font-size: 13px;
    }

    .home-hero__panel h1 {
        font-size: 24px;
    }

    .home-stats,
    .home-focus,
    .column-grid,
    .work-grid,
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .modern-news-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .modern-news-list time {
        text-align: left;
    }
}
