/* =========================================================
   PriceToWorth CMS pages - LTR editorial layout
   Scope: resources/views/page/cms.blade.php
   ========================================================= */

.cms-page {
    direction: ltr;
    text-align: left;
    background:
        radial-gradient(circle at top left, rgba(23, 92, 211, 0.08), transparent 28%),
        linear-gradient(180deg, #eef7ff 0%, #f8fbff 42%, #ffffff 100%);
    color: #101828;
}

.cms-page * {
    direction: ltr;
}

.cms-page-hero {
    padding: 54px 0 28px;
}

.cms-page-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.cms-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(5, 40, 59, 0.09);
    color: #0f5f75;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cms-page-hero__title {
    margin: 0;
    color: #05283b;
    font-size: clamp(2rem, 3.2vw, 3.15rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.cms-page-hero__subtitle {
    max-width: 720px;
    margin: 16px auto 0;
    color: #475467;
    font-size: clamp(1.02rem, 1.25vw, 1.18rem);
    line-height: 1.75;
}

.cms-page-body {
    padding: 12px 0 68px;
}

.cms-article-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(208, 213, 221, 0.85);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
}

.cms-article-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #05283b 0%, #1570ef 48%, #12b76a 100%);
}

.cms-article-card__media {
    margin: 0;
    border-bottom: 1px solid #eef2f6;
}

.cms-article-card__media img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.cms-article-content {
    padding: clamp(26px, 4vw, 54px);
    color: #1d2939;
    font-size: 1rem;
    line-height: 1.88;
    text-align: left;
}

.cms-article-content > *:first-child {
    margin-top: 0 !important;
}

.cms-article-content > *:last-child {
    margin-bottom: 0 !important;
}

.cms-article-content h1,
.cms-article-content h2,
.cms-article-content h3,
.cms-article-content h4,
.cms-article-content h5,
.cms-article-content h6 {
    color: #05283b;
    text-align: left !important;
    font-weight: 820;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.cms-article-content h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.55rem);
    margin: 0 0 24px;
}

.cms-article-content h2 {
    font-size: clamp(1.45rem, 1.9vw, 2rem);
    margin: 38px 0 14px;
}

.cms-article-content h3 {
    font-size: clamp(1.24rem, 1.55vw, 1.55rem);
    margin: 30px 0 12px;
}

.cms-article-content h4,
.cms-article-content h5,
.cms-article-content h6 {
    margin: 24px 0 10px;
}

.cms-article-content p {
    margin: 0 0 18px;
    color: #344054;
    text-align: left !important;
}

.cms-article-content a {
    color: #175cd3;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cms-article-content strong,
.cms-article-content b {
    color: #101828;
    font-weight: 800;
}

.cms-article-content ul,
.cms-article-content ol {
    margin: 18px 0 24px;
    padding-left: 1.45rem !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.cms-article-content li {
    margin: 9px 0;
    padding-left: 0.15rem;
    color: #344054;
    line-height: 1.75;
    text-align: left !important;
}

.cms-article-content li::marker {
    color: #1570ef;
    font-weight: 800;
}

.cms-article-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid #1570ef;
    border-right: 0;
    border-radius: 0 16px 16px 0;
    background: #f4f8ff;
    color: #243447;
}

.cms-article-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.cms-article-content th,
.cms-article-content td {
    padding: 13px 14px;
    border: 1px solid #e4e7ec;
    text-align: left;
    vertical-align: top;
}

.cms-article-content th {
    background: #05283b;
    color: #ffffff;
    font-weight: 800;
}

.cms-article-content td {
    background: #ffffff;
    color: #344054;
}

.cms-article-content .note,
.cms-article-content .important,
.cms-article-content .disclaimer {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid #fedf89;
    border-radius: 18px;
    background: #fffbeb;
    color: #7a4b00;
}

.cms-page .social-list,
.cms-page .social-share,
.cms-page .share-this {
    direction: ltr;
    text-align: center;
}

@media (max-width: 767.98px) {
    .cms-page-hero {
        padding: 38px 0 20px;
    }

    .cms-page-hero__title {
        font-size: 1.9rem;
    }

    .cms-page-body {
        padding-bottom: 44px;
    }

    .cms-article-card {
        border-radius: 20px;
    }

    .cms-article-content {
        padding: 24px 18px;
        font-size: 0.96rem;
        line-height: 1.78;
    }

    .cms-article-content h2 {
        margin-top: 30px;
    }

    .cms-article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
