/* CMS pages — About, FAQ, Privacy, Terms */

.cms-page {
    overflow-x: hidden;
}

.cms-hero {
    position: relative;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
    background:
        radial-gradient(ellipse 90% 80% at 10% 20%, rgba(212, 32, 39, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 80%, rgba(42, 92, 170, 0.2) 0%, transparent 50%),
        linear-gradient(155deg, #1a1819 0%, #2a2426 35%, #1f1516 100%);
    overflow: hidden;
}

.cms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 85%);
    pointer-events: none;
}

.cms-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -12%;
    bottom: -55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 32, 39, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

.cms-hero .container {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.cms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(212, 32, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.cms-hero h1 {
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.85rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.cms-hero h1 span {
    background: linear-gradient(90deg, #fff 0%, #f5d0d2 45%, #fff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cms-hero-lead {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
}

.cms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.cms-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cms-body {
    background: linear-gradient(180deg, #eef0f5 0%, #f7f8fb 22%, #ffffff 68%);
    padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.cms-shell {
    position: relative;
    z-index: 2;
    margin-top: clamp(-2.5rem, -5vw, -3.25rem);
}

.cms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
    align-items: start;
}

.cms-main-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.cms-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cms-highlight {
    background: linear-gradient(145deg, #fafbfc 0%, #f3f5f9 100%);
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    padding: 1.15rem 1.1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.07);
}

.cms-highlight-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 32, 39, 0.1);
    color: var(--primary-red, #d42027);
    font-size: 1.15rem;
}

.cms-highlight strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.cms-highlight span {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
}

.cms-page-body {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
}

.cms-page-body > p:first-child {
    font-size: 1.02rem;
    color: #374151;
}

.cms-page-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212, 32, 39, 0.12);
    scroll-margin-top: 100px;
}

.cms-page-body h2:first-child {
    margin-top: 0;
}

.cms-page-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 1.35rem 0 0.4rem;
}

.cms-page-body p {
    margin-bottom: 1rem;
}

.cms-page-body ul,
.cms-page-body ol {
    margin-bottom: 1rem;
    padding-left: 1.35rem;
}

.cms-page-body li {
    margin-bottom: 0.4rem;
}

.cms-page-body li::marker {
    color: var(--primary-red, #d42027);
}

.cms-page-body a {
    color: var(--primary-red, #d42027);
    font-weight: 500;
    text-decoration: none;
}

.cms-page-body a:hover {
    text-decoration: underline;
}

.cms-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.cms-page-body em {
    color: #6b7280;
    font-size: 0.9rem;
}

.cms-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.cms-page-body th,
.cms-page-body td {
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.85rem;
}

.cms-page-body th {
    background: #f9fafb;
    font-weight: 600;
    color: #1a1a2e;
}

.cms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.cms-side-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 28px rgba(26, 26, 46, 0.06);
    padding: 1.15rem 1.2rem;
}

.cms-side-card h6 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}

.cms-side-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cms-side-links li {
    margin-bottom: 0.35rem;
}

.cms-side-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cms-side-links a i {
    font-size: 0.75rem;
    color: var(--primary-red, #d42027);
    opacity: 0.85;
}

.cms-side-links a:hover,
.cms-side-links a.is-active {
    background: rgba(212, 32, 39, 0.08);
    color: var(--primary-red, #d42027);
}

.cms-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.cms-toc li {
    margin-bottom: 0.25rem;
}

.cms-toc a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.65rem;
    line-height: 1.35;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.cms-toc a:hover,
.cms-toc a.is-active {
    color: var(--primary-red, #d42027);
    border-left-color: var(--primary-red, #d42027);
}

.cms-cta-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    border: none;
}

.cms-cta-card h6 {
    color: rgba(255, 255, 255, 0.55);
}

.cms-cta-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.cms-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--primary-red, #d42027);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cms-cta-btn:hover {
    background: #b91c22;
    transform: translateY(-1px);
    color: #fff !important;
}

.cms-faq-intro {
    font-size: 1.02rem;
    color: #374151;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(145deg, #fafbfc 0%, #f3f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-red, #d42027);
}

.cms-faq-intro p:last-child {
    margin-bottom: 0;
}

/* FAQ accordion */
.cms-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cms-faq-item {
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    background: #fafbfc;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cms-faq-item.is-open {
    border-color: rgba(212, 32, 39, 0.25);
    box-shadow: 0 4px 16px rgba(212, 32, 39, 0.06);
    background: #fff;
}

.cms-faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    line-height: 1.45;
}

.cms-faq-q i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--primary-red, #d42027);
    transition: transform 0.25s ease;
}

.cms-faq-item.is-open .cms-faq-q i {
    transform: rotate(180deg);
}

.cms-faq-a {
    display: none;
    padding: 0 1.15rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4b5563;
}

.cms-faq-item.is-open .cms-faq-a {
    display: block;
}

.cms-faq-a p:last-child {
    margin-bottom: 0;
}

.cms-faq-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-red, #d42027);
    margin: 1.75rem 0 0.85rem;
    padding-top: 0.5rem;
}

.cms-faq-section-title:first-child {
    margin-top: 0;
}

@media (max-width: 991px) {
    .cms-layout {
        grid-template-columns: 1fr;
    }

    .cms-sidebar {
        position: static;
        order: -1;
    }

    .cms-highlights {
        grid-template-columns: 1fr;
    }
}

/* Help Center hub */
.help-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: var(--primary-red, #d42027);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.help-hero-cta:hover {
    background: #b91c22;
    transform: translateY(-1px);
    color: #fff !important;
}

.cms-main-col {
    min-width: 0;
}

.help-intro-card {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.35rem;
}

.help-intro-body p:last-child {
    margin-bottom: 0;
}

.help-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
}

.help-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.help-role-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 28px rgba(26, 26, 46, 0.06);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.help-role-head {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.help-role-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 32, 39, 0.1);
    color: var(--primary-red, #d42027);
    font-size: 1.1rem;
}

.help-role-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.35rem;
}

.help-role-card > .help-role-head p,
.help-role-head p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

.help-role-links {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    border-top: 1px solid #f0f2f5;
    padding-top: 0.75rem;
}

.help-role-links li {
    margin-bottom: 0.25rem;
}

.help-role-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.help-role-links a:hover {
    background: rgba(212, 32, 39, 0.08);
    color: var(--primary-red, #d42027);
}

.help-role-links a > i:first-child {
    width: 16px;
    color: var(--primary-red, #d42027);
    font-size: 0.75rem;
}

.help-link-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.4;
}

.help-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.help-topic-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.help-topic-chip:hover {
    border-color: rgba(212, 32, 39, 0.35);
    box-shadow: 0 6px 20px rgba(212, 32, 39, 0.08);
    transform: translateY(-1px);
    color: var(--primary-red, #d42027);
}

.help-topic-chip i {
    color: var(--primary-red, #d42027);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.help-guides-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.help-guide-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.05);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.09);
}

.help-guide-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    color: #fff;
    font-size: 1.1rem;
}

.help-guide-card strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.help-guide-card span {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
}

.help-guide-arrow {
    margin-left: auto;
    color: var(--primary-red, #d42027);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.help-faq-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 16px;
    color: #fff;
}

.help-faq-banner h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #fff;
}

.help-faq-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 420px;
}

.help-side-tip {
    background: #fffbeb;
    border-color: #fde68a !important;
}

.help-side-tip h6 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.help-side-tip p {
    color: #78350f;
}

@media (max-width: 991px) {
    .help-role-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .help-topics-grid {
        grid-template-columns: 1fr;
    }

    .help-faq-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cms-main-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .cms-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
