/* Content pages — news hub + article/case detail, Reemoon VI #00856f */

.content-page {
    --cp-brand: #00856f;
    --cp-brand-dark: #004d41;
    --cp-brand-deep: #006b59;
    --cp-brand-light: #00a88a;
    --cp-brand-bright: #6ee7c7;
    --cp-brand-muted: #eef6f3;
    --cp-brand-glow: rgba(0, 133, 111, 0.16);
    --cp-text: #1a1a1a;
    --cp-text-muted: #3d524c;
    --cp-text-soft: #5a756e;
    --cp-max: min(1680px, 100%);
    --cp-gutter: clamp(20px, 4vw, 80px);
    --cp-prose-max: 760px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--cp-text);
    background: #fff;
}

.content-page a.content-btn--light:hover,
.content-page a.content-btn--light:focus,
.content-page a.content-btn--light:visited {
    color: var(--cp-brand);
}

.content-container {
    width: 100%;
    max-width: var(--cp-max);
    margin: 0 auto;
    padding-left: var(--cp-gutter);
    padding-right: var(--cp-gutter);
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.content-hero {
    position: relative;
    min-height: clamp(380px, 48vh, 520px);
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(48px, 5vw, 72px);
    overflow: hidden;
}

.content-hero--compact {
    min-height: clamp(280px, 38vh, 420px);
    padding-bottom: clamp(36px, 4vw, 56px);
}

.content-hero__bg {
    position: absolute;
    inset: 0;
}

.content-hero__bg--solid {
    background: linear-gradient(145deg, #004d41 0%, #006b59 50%, #00856f 100%);
}

.content-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.03);
}

.content-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 12% 35%, rgba(0, 168, 138, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 65% at 88% 15%, rgba(110, 231, 199, 0.1), transparent 50%),
        linear-gradient(155deg, rgba(0, 35, 30, 0.92) 0%, rgba(0, 77, 65, 0.88) 42%, rgba(0, 133, 111, 0.82) 100%);
}

.content-hero__overlay--compact {
    background:
        radial-gradient(ellipse 60% 70% at 20% 40%, rgba(0, 168, 138, 0.22), transparent 55%),
        linear-gradient(155deg, rgba(0, 35, 30, 0.94) 0%, rgba(0, 77, 65, 0.9) 55%, rgba(0, 133, 111, 0.85) 100%);
}

.content-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.content-hero__inner--compact {
    max-width: min(960px, 100%);
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

.content-breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-breadcrumb a:hover {
    color: var(--cp-brand-bright);
}

.content-hero__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cp-brand-bright);
}

.content-hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}

.content-hero__tagline {
    margin: 0;
    max-width: 680px;
    font-size: clamp(1rem, 1.25vw, 1.1875rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

/* ── Tabs / nav ───────────────────────────────────────────────────── */

.content-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: clamp(16px, 2vw, 24px) 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 133, 111, 0.08);
    transition: box-shadow 0.25s ease;
}

.content-nav-wrap.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 77, 65, 0.08);
}

.content-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.content-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    color: var(--cp-text-muted);
    text-decoration: none;
    background: var(--cp-brand-muted);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.content-tabs__item:hover {
    color: var(--cp-brand-dark);
    border-color: rgba(0, 133, 111, 0.2);
}

.content-tabs__item.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--cp-brand) 0%, var(--cp-brand-dark) 100%);
    box-shadow: 0 8px 24px var(--cp-brand-glow);
}

.content-tabs__icon {
    display: flex;
    width: 18px;
    height: 18px;
}

.content-tabs__icon .citrus-icon {
    width: 18px;
    height: 18px;
}

.content-toolbar__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--cp-text-soft);
}

/* ── List section ─────────────────────────────────────────────────── */

.content-section {
    padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(ellipse 85% 55% at 10% 0%, rgba(0, 168, 138, 0.06), transparent 50%),
        linear-gradient(180deg, #fafdfc 0%, #fff 100%);
}

.content-list__heading {
    margin: 0 0 clamp(24px, 3vw, 36px);
    padding-bottom: 0.75rem;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--cp-brand-dark);
    border-bottom: 2px solid rgba(0, 133, 111, 0.18);
}

.content-grid {
    display: grid;
    gap: clamp(24px, 2.5vw, 32px);
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Cards ────────────────────────────────────────────────────────── */

.content-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 50, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 133, 111, 0.22);
    box-shadow: 0 16px 48px rgba(0, 77, 65, 0.1);
}

.content-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cp-brand-muted);
    text-decoration: none;
}

.content-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .content-card__media img {
    transform: scale(1.06);
}

.content-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cp-brand-muted), #dceee8);
}

.content-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--cp-brand), var(--cp-brand-dark));
    border-radius: 999px;
}

.content-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.5vw, 28px);
}

.content-card__date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-brand);
    margin-bottom: 8px;
}

.content-card__title {
    margin: 0 0 10px;
    font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
    font-weight: 700;
    line-height: 1.4;
}

.content-card__title a {
    color: var(--cp-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-card__title a:hover {
    color: var(--cp-brand);
}

.content-card__excerpt {
    margin: 0 0 16px;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--cp-text-soft);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.content-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cp-brand);
    text-decoration: none;
    margin-top: auto;
}

.content-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.content-card__link:hover svg {
    transform: translateX(2px);
}

.content-empty {
    padding: clamp(64px, 8vw, 96px) 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(0, 133, 111, 0.25);
    border-radius: 20px;
    color: var(--cp-text-soft);
}

/* ── Detail layout ────────────────────────────────────────────────── */

.content-detail__title {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.content-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin: clamp(16px, 2vw, 24px) 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

.content-detail__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.content-detail__meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.content-detail__layout {
    display: grid;
    gap: clamp(32px, 4vw, 48px);
    padding: clamp(40px, 5vw, 64px) var(--cp-gutter) clamp(64px, 8vw, 96px);
    align-items: start;
}

@media (min-width: 1100px) {
    .content-detail__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.content-detail__main {
    min-width: 0;
}

.content-prose {
    max-width: var(--cp-prose-max);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--cp-text-muted);
}

.content-prose > :first-child {
    margin-top: 0;
}

.content-prose .reemoon-player {
    max-width: 100%;
    margin: 0 0 2em;
}

.content-prose p {
    margin: 0 0 1.25em;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
    margin: 2em 0 0.75em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cp-brand-dark);
    letter-spacing: -0.01em;
}

.content-prose h2 { font-size: 1.5rem; }
.content-prose h3 { font-size: 1.25rem; }

.content-prose img,
.content-prose video,
.content-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.content-prose a {
    color: var(--cp-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-prose a:hover {
    color: var(--cp-brand-dark);
}

.content-prose blockquote {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    border-left: 4px solid var(--cp-brand);
    background: var(--cp-brand-muted);
    border-radius: 0 12px 12px 0;
    color: var(--cp-text-muted);
    font-style: italic;
}

.content-prose ul,
.content-prose ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}

.content-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
}

.content-prose th,
.content-prose td {
    padding: 10px 14px;
    border: 1px solid rgba(0, 133, 111, 0.15);
}

.content-prose th {
    background: var(--cp-brand-muted);
    font-weight: 600;
    color: var(--cp-brand-dark);
}

/* Prev / next */
.content-detail__nav {
    display: grid;
    gap: 16px;
    margin-top: clamp(40px, 5vw, 56px);
    padding-top: clamp(32px, 4vw, 40px);
    border-top: 1px solid rgba(0, 133, 111, 0.12);
}

@media (min-width: 768px) {
    .content-detail__nav {
        grid-template-columns: 1fr 1fr;
    }
}

.content-detail__nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 2.5vw, 28px);
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.12);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-detail__nav-item:hover {
    border-color: rgba(0, 133, 111, 0.28);
    box-shadow: 0 8px 28px rgba(0, 77, 65, 0.08);
    transform: translateY(-2px);
}

.content-detail__nav-item--next {
    text-align: right;
}

.content-detail__nav-item--empty {
    display: none;
}

@media (min-width: 768px) {
    .content-detail__nav-item--empty {
        display: block;
        visibility: hidden;
    }
}

.content-detail__nav-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-brand);
}

.content-detail__nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--cp-text);
}

.content-detail__nav-item:hover .content-detail__nav-title {
    color: var(--cp-brand-dark);
}

/* Sidebar */
.content-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-sidebar__block {
    padding: clamp(24px, 3vw, 28px);
    background: #fff;
    border: 1px solid rgba(0, 133, 111, 0.1);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 50, 42, 0.04);
}

.content-sidebar__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cp-brand-dark);
    border-bottom: 2px solid var(--cp-brand-muted);
}

.content-sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-sidebar__list li {
    border-bottom: 1px solid rgba(0, 133, 111, 0.08);
}

.content-sidebar__list li:last-child {
    border-bottom: none;
}

.content-sidebar__list a {
    display: block;
    padding: 12px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--cp-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-sidebar__list a:hover {
    color: var(--cp-brand);
}

.content-sidebar__more {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cp-brand);
    text-decoration: none;
}

.content-sidebar__more:hover {
    color: var(--cp-brand-dark);
}

.content-sidebar__wechat {
    text-align: center;
}

.content-sidebar__wechat img {
    width: min(160px, 70%);
    margin: 0 auto 16px;
    border-radius: 12px;
}

.content-sidebar__wechat p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--cp-text-soft);
}

/* Pagination + CTA */
.content-pagination-wrap {
    padding-bottom: clamp(48px, 6vw, 72px);
}

.content-pagination-wrap .site-pagination {
    display: flex;
    justify-content: center;
}

.content-cta {
    position: relative;
    padding: clamp(36px, 4.5vw, 52px) 0;
    overflow: hidden;
}

.content-cta__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0, 168, 138, 0.2), transparent 55%),
        linear-gradient(135deg, #004d41 0%, #006b59 50%, #00856f 100%);
}

.content-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.content-cta__title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.content-cta__lead {
    margin: 0;
    max-width: 560px;
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.content-cta .content-btn--light {
    padding: 12px 24px;
    font-size: 0.875rem;
}

.content-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-btn svg {
    width: 18px;
    height: 18px;
}

.content-btn--light {
    color: var(--cp-brand-dark);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.content-btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

body:has(.content-page) .main-footer.alternet-5 {
    margin-top: 0;
}
