/* ============================================================
   Corporate Honor — frontend.css
   ============================================================ */

/* ── Base Wrapper ── */
.ch-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 70px;
}

.ch-wrap *,
.ch-wrap *::before,
.ch-wrap *::after {
    box-sizing: border-box;
}

/* ── Section Title ── */
.ch-title {
    padding-top: 18px;
    position: relative;
    line-height: 1.4;
    margin: 0 0 40px;
    text-align: left;
    font-size: 38px;
    font-weight: 700;
}

/* ── Year Navigation Row ── */
.ch-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 24px;
    width: 85%;
}

.ch-nav-btn {
    width: 64px;
    height: 64px;
    border-radius: 100%;
    border: 1px solid #d2d2d2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #fff;
    text-decoration: none;
    position: relative;
}

.ch-nav-btn:hover {
    border-color: #999;
}

/* Disabled state (at boundary or single year) */
.ch-nav-btn.ch-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.ch-nav-btn img {
    max-width: 35px;
    max-height: 16px;
    display: block;
}

/* Left button: arrow right-aligned */
.ch-prev-btn {
    justify-content: flex-end;
}

/* Right button: arrow left-aligned */
.ch-next-btn {
    justify-content: flex-start;
}



/* ── Year Timeline Bar ── */
.ch-year-bar {
    height: 46px;
    position: relative;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-year-bar::before {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    border-bottom: 1px dashed #bec3cc;
    z-index: 0;
}

.ch-year-label {
    z-index: 1;
    line-height: 46px;
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px;
    background-color: #fff;
    color: #adadad;
    transition: all 0.3s ease;
}

.ch-year-cur {
    position: relative;
}

.ch-year-cur .ch-year-text {
    font-size: 44px !important;
    color: #337aff !important;
    font-weight: 700;
}

.ch-year-prev {
    position: absolute;
    left: 0;
    top: 0;
}

.ch-year-next {
    position: absolute;
    right: 0;
    top: 0;
}

/* ── Note Text ── */
.ch-note {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ch-note p {
    font-size: 13px;
    color: #9c9c9c;
    text-align: center;
    margin: 0;
}

/* ── Honor List Scrollable Container ── */
.ch-list-wrap {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(51, 122, 255, 0.12) transparent;
}

.ch-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.ch-list-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.ch-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(51, 122, 255, 0.2);
    border-radius: 3px;
}

.ch-list-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 122, 255, 0.4);
}

/* ── Honor List ── */
.ch-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 30px 0 8px;
    max-width: 850px;
    margin: 0 auto;
    list-style: none;
}

.ch-list li {
    position: relative;
    margin-bottom: 0;
    transition: background 0.3s ease, color 0.3s ease;
    width: 100%;
    overflow: visible;
    padding: 10px 0;
}

/* Parallelogram hover background via pseudo-element */
.ch-list li::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    transform: skew(-10deg, 0);
    transition: all 0.3s ease;
    z-index: 0;
}

/* Award Icon (hidden by default, shown on hover) */
.ch-list li .ch-award-icon {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 1;
}

.ch-list li .ch-award-icon img {
    width: 28px;
    height: 36px;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Honor text */
.ch-list li p {
    position: relative;
    z-index: 1;
    width: 80%;
    text-align: center;
    font-size: 15px;
    font-style: normal;
    color: #595959;
    margin: 0 auto;
    line-height: 1.8;
    padding: 10px 10px;
}

/* Hover state — parallelogram background appears */
.ch-list li:hover::before {
    background-color: #337aff;
    box-shadow: 0 4px 0 #e5e5e5;
}

.ch-list li:hover {
    padding: 20px 0 10px 0;
}

.ch-list li:hover .ch-award-icon,
.ch-list li:hover .ch-award-icon img {
    opacity: 1;
}

.ch-list li:hover p {
    color: #fff;
}

/* Linked items */
.ch-list li.ch-has-link {
    cursor: pointer;
}

.ch-list li.ch-has-link p {
    color: #337aff;
    text-decoration: underline;
}

.ch-list li.ch-has-link:hover p {
    color: #fff;
}

/* ── Loading State ── */
.ch-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.ch-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e8f0;
    border-top-color: #337aff;
    border-radius: 50%;
    animation: chSpin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes chSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Fade-in Animation ── */
@keyframes chFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ch-item-enter {
    animation: chFadeInUp 0.4s ease-out both;
}


/* ============================================================
   Responsive
   ============================================================ */

/* ── ≤ 1280px ── */
@media screen and (max-width: 1280px) {
    .ch-title {
        font-size: 28px !important;
    }
}

/* ── ≤ 1024px ── */
@media screen and (max-width: 1024px) {
    .ch-title {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }
}

/* ── ≤ 768px  Tablet / Mobile ── */
@media screen and (max-width: 768px) {
    .ch-wrap {
        padding: 40px 20px;
    }

    .ch-title {
        padding-top: 0;
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    .ch-year-nav {
        gap: 8px;
    }

    .ch-year-cur .ch-year-text {
        font-size: 32px !important;
    }

    .ch-year-prev,
    .ch-year-next {
        display: none;
    }



    .ch-note {
        justify-content: flex-start;
    }

    .ch-note p {
        text-align: left;
    }

    .ch-list li {
        margin-bottom: 16px;
    }

    .ch-list li:hover {
        padding: 0;
    }

    .ch-list li:hover::before {
        background-color: transparent !important;
        box-shadow: none;
    }

    .ch-list li:hover .ch-award-icon,
    .ch-list li:hover .ch-award-icon img {
        opacity: 0;
    }

    .ch-list li:hover p {
        color: #595959 !important;
    }

    .ch-list li p {
        font-size: 14px;
        width: 90%;
        line-height: 1.7;
    }

    .ch-list-wrap {
        max-height: none;
        overflow-y: visible;
    }
}

/* ── ≤ 480px  Phone ── */
@media screen and (max-width: 480px) {
    .ch-title {
        font-size: 18px !important;
    }

    .ch-year-cur .ch-year-text {
        font-size: 28px !important;
    }

    .ch-list li p {
        font-size: 13px;
        width: 95%;
    }
}

/* ── ≤ 375px  Small Phone ── */
@media screen and (max-width: 375px) {
    .ch-title {
        font-size: 16px !important;
    }
}