﻿/* ==========================================================================
   analysislist.css â€” styles for the analysislist page (analysislist.html)
   Split out of style.css. Loaded AFTER style.css, so these rules win on this page.
   Shared blocks are copies here; the originals stay in style.css for other pages.
   ========================================================================== */

/* ========== News ========== */
.news-section {
    padding: clamp(64px, 5.89vw, 113px) 0 clamp(54px, 5vw, 96px);
    background: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.news-item:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transform: translateX(4px);
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9d5cfe;
    flex-shrink: 0;
}

.news-text {
    flex: 1;
    font-size: 15px;
    color: var(--ink-900);
    font-weight: bold;
}

.news-arrow {
    color: var(--ink-300);
    display: flex;
    transition: color .15s;
}

.news-item:hover .news-arrow {
    color: var(--brand-purple);
}

/* ========== Financial Analysis Page ========== */
.financial-analysis-template {
    background: #f3f6f8;
}

.financial-analysis-hero {
    padding: 76px 0 42px;
    text-align: center;
    background: #fff;
}

.financial-analysis-hero h1 {
    margin: 0 0 14px;
    color: #222733;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: 0;
}

.financial-analysis-hero p {
    margin: 0;
    color: #20242d;
    font-size: 17px;
    font-weight: 800;
}

.financial-analysis-list {
    padding: 0 0;
    background: #f3f6f8;
}

.financial-analysis-list .container {
    max-width: 1180px;
}

.financial-analysis-list .news-list {
    gap: 14px;
}

.financial-analysis-list .news-item {
    min-height: 58px;
    padding: 18px 40px;
    border-color: rgba(229, 231, 235, .92);
    border-radius: 8px;
    box-shadow: 0 7px 13px rgba(14, 17, 24, .12);
}

.financial-analysis-list .news-dot {
    width: 13px;
    height: 13px;
}

.financial-analysis-list .news-text {
    font-size: 18px;
    line-height: 1.35;
}

.analysis-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 72px;
}

.analysis-pagination .page-link {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-300);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
    transition: color .15s, background .15s;
    padding: clamp(12px, 1.15vw, 22px) clamp(10px, 0.94vw, 18px);
}

.analysis-pagination .page-link.is-active {
    color: var(--ink-900);
    background: rgba(17, 24, 39, .04);
}

.analysis-pagination .page-link:not(.page-disabled):hover {
    color: var(--brand-purple);
    background: transparent;
}

.analysis-pagination .page-disabled {
    opacity: .36;
    cursor: default;
}

/* ========== Responsive ========== */
@media (max-width: 860px) {
    .news-section {
        padding: 48px 0;
    }

    .news-item {
        padding: 14px 16px;
        gap: 10px;
    }

    .news-text {
        font-size: 14px;
    }

    .financial-analysis-hero {
        padding: 48px 0 28px;
    }

    .financial-analysis-hero h1 {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .financial-analysis-hero p {
        font-size: 15px;
        line-height: 1.5;
    }

    .financial-analysis-list {
        padding: 0 0 56px;
    }

    .financial-analysis-list .news-list {
        gap: 10px;
    }

    .financial-analysis-list .news-item {
        padding: 14px 18px;
        min-height: 56px;
        gap: 12px;
        transform: none !important;
    }

    .financial-analysis-list .news-text {
        font-size: 15px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .financial-analysis-list .news-dot {
        width: 10px;
        height: 10px;
        align-self: flex-start;
        margin-top: 7px;
    }

    .news-item .news-arrow {
        flex-shrink: 0;
        align-self: center;
    }

    .analysis-pagination {
        margin-top: 40px;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .analysis-pagination .page-link {
        min-width: 44px;
        height: 44px;
        font-size: 15px;
        padding: 0 6px;
    }
}

@media (max-width: 560px) {
    .news-section {
        padding: 36px 0;
    }

    .news-item {
        padding: 12px 14px;
    }

    .news-text {
        font-size: 13px;
        line-height: 1.45;
    }

    .news-arrow svg {
        width: 14px;
        height: 14px;
    }

    .financial-analysis-hero {
        padding: 36px 0 22px;
    }

    .financial-analysis-hero h1 {
        font-size: 24px;
        letter-spacing: -0.2px;
    }

    .financial-analysis-hero p {
        font-size: 13px;
    }

    .financial-analysis-list {
        padding: 0 0 44px;
    }

    .financial-analysis-list .news-list {
        gap: 8px;
    }

    .financial-analysis-list .news-item {
        padding: 12px 14px;
        min-height: 52px;
        gap: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(14, 17, 24, .08);
    }

    .financial-analysis-list .news-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .financial-analysis-list .news-dot {
        width: 8px;
        height: 8px;
        margin-top: 6px;
    }

    .financial-analysis-list .news-arrow svg {
        width: 14px;
        height: 14px;
    }

    .analysis-pagination {
        margin-top: 32px;
        gap: 4px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px;
        scrollbar-width: none;
    }

    .analysis-pagination::-webkit-scrollbar {
        display: none;
    }

    .analysis-pagination .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

/* ============================================================
 * Final mobile overrides: keep this block at the end of the file.
 * ============================================================ */
@media (max-width: 860px) {

    .calendar-template .calendar-hero,
    .faq-page-section,
    .financial-analysis-hero {
        padding-top: 40px;
    }

    .analysis-pagination,
    .faq-pagination,
    .academy-pagination {
        justify-content: center !important;
        overflow: visible;
        flex-wrap: wrap;
        padding: 0;
    }
}

/* ========== Home News List aligns with Home FAQ on desktop ========== */
@media (min-width:1081px) {
    body .news-section .news-list {
        width: min(52.448vw, 1007px);
        max-width: calc(100% - 40px);
        margin: clamp(42px, 3.073vw, 59px) auto 0;
        gap: 14px;
    }

    body .news-section .news-item {
        height: clamp(72px, 5.156vw, 99px);
        padding: 0 clamp(32px, 2.5vw, 48px) 0 clamp(24px, 1.823vw, 35px);
        gap: clamp(14px, .99vw, 19px);
        overflow: hidden;
        background: #fff;
        border: 0;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(140, 175, 210, .2);
        color: #686e7f;
        font-family: MiSans-Semibold, MiSans, var(--font-sans);
        font-size: clamp(16px, 1.042vw, 20px);
        font-weight: 600;
        line-height: 1;
        transition: box-shadow .15s ease;
    }

    body .news-section .news-item+.news-item {
        margin-top: -2px;
    }

    body .news-section .news-item:hover {
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(140, 175, 210, .2);
        transform: none;
    }

    body .news-section .news-dot {
        flex: 0 0 clamp(14px, .938vw, 18px);
        width: clamp(14px, .938vw, 18px);
        height: clamp(14px, .938vw, 18px);
        background: #5379ff;
    }

    body .news-section .news-text {
        color: #686e7f;
        font-family: MiSans-Semibold, MiSans, var(--font-sans);
        font-size: clamp(16px, 1.042vw, 20px);
        font-weight: 600;
        line-height: 1;
    }

    body .news-section .news-arrow {
        flex: 0 0 16px;
        width: 16px;
        height: 28px;
        color: #5379ff;
        align-items: center;
        justify-content: center;
    }

    body .news-section .news-arrow svg {
        width: 16px;
        height: 28px;
        stroke-width: 2;
    }

    body .news-section .news-item:hover .news-arrow {
        color: #5379ff;
    }
}

/* ============================================================
 * Mobile final pass: navigation, CTA, content lists and detail pages
 * ============================================================ */
@media (max-width: 860px) {

    .calendar-template .calendar-hero,
    .faq-page-section,
    .financial-analysis-hero {
        padding-top: 40px;
    }

    .analysis-pagination,
    .faq-pagination,
    .academy-pagination {
        justify-content: center !important;
        overflow: visible;
        flex-wrap: wrap;
        padding: 0;
    }
}

/* ========== Final analysis sync with academy rows ========== */
body .financial-analysis-template,
body .financial-analysis-list {
    background: #f3f6f8;
}
body .financial-analysis-list {
    min-height: 0;
}
body .financial-analysis-list .news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body .financial-analysis-list .analysis-empty {
    padding: 42px 20px;
    color: #8a93a3;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(140, 175, 210, .2);
    font-size: 16px;
    line-height: 1.6;
}
body .financial-analysis-list .news-item {
    display: flex;
    min-height: 0;
    height: clamp(72px, 5.156vw, 99px);
    align-items: center;
    gap: clamp(14px, .99vw, 19px);
    padding: 0 clamp(32px, 2.5vw, 48px) 0 clamp(24px, 1.823vw, 35px);
    overflow: hidden;
    color: #686e7f;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(140, 175, 210, .2);
    font-family: MiSans-Semibold, MiSans, var(--font-sans);
    font-size: clamp(16px, 1.042vw, 20px);
    font-weight: 600;
    line-height: 1;
    transform: none;
    transition: box-shadow .15s ease;
}
body .financial-analysis-list .news-item + .news-item {
    margin-top: -2px;
}
body .financial-analysis-list .news-dot {
    flex: 0 0 clamp(14px, .938vw, 18px);
    width: clamp(14px, .938vw, 18px);
    height: clamp(14px, .938vw, 18px);
    background: #5379ff;
}
body .financial-analysis-list .news-item:hover {
    color: #686e7f;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(140, 175, 210, .2);
    transform: none;
}
body .financial-analysis-list .news-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #686e7f;
    font-family: MiSans-Semibold, MiSans, var(--font-sans);
    font-size: clamp(16px, 1.042vw, 20px);
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .financial-analysis-list .news-arrow {
    flex: 0 0 16px;
    width: 16px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #5379ff;
    line-height: 1;
}
body .financial-analysis-list .news-arrow svg {
    width: 16px;
    height: 28px;
    stroke-width: 2;
}
body .financial-analysis-list .news-item:hover .news-arrow {
    color: #5379ff;
}
@media (max-width: 860px) {
    body .financial-analysis-list .news-list {
        gap: 10px;
    }

    body .financial-analysis-list .analysis-empty {
        padding: 24px 14px;
        font-size: 14px;
    }

    body .financial-analysis-list .news-item {
        height: auto;
        min-height: 56px;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(14, 17, 24, .08);
    }

    body .financial-analysis-list .news-item + .news-item {
        margin-top: 0;
    }

    body .financial-analysis-list .news-dot {
        flex-basis: 10px;
        width: 10px;
        height: 10px;
    }

    body .financial-analysis-list .news-text {
        display: -webkit-box;
        font-size: 15px;
        line-height: 1.4;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    body .financial-analysis-list .news-arrow {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }

    body .financial-analysis-list .news-arrow svg {
        width: 14px;
        height: 14px;
    }
}
@media (max-width: 560px) {
    body .financial-analysis-list .news-item {
        min-height: 52px;
        gap: 10px;
        padding: 12px 14px;
    }

    body .financial-analysis-list .news-dot {
        flex-basis: 8px;
        width: 8px;
        height: 8px;
    }

    body .financial-analysis-list .news-text {
        font-size: 14px;
    }
}

.analysis-pagination .page-link:first-child,
.analysis-pagination .page-link:last-child {
    font-size: 0;
}
.analysis-pagination .page-link:first-child::before,
.analysis-pagination .page-link:last-child::before {
    content: "";
    display: block;
    width: clamp(5px, 0.47vw, 9px);
    height: clamp(9px, 0.83vw, 16px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.analysis-pagination .page-link:first-child::before {
    background-image: url("../img/common/pagination-arrow-left.webp");
}
.analysis-pagination .page-link:last-child::before {
    background-image: url("../img/common/pagination-arrow-right.webp");
}
