/* ============================================================================
   CMS PAGES — page.blade.php (About Us, Privacy Policy, Terms & Conditions,
   Return and Refund Policy, …) in the homepage "calm card" theme.

   The page name is the section title (reusing the global .title-center .title:
   Poppins steel-blue + amber divider + faint data-ghost watermark), and the
   admin rich text sits in a white card. Only PRESENTATION is styled here —
   the content is rendered exactly as entered. Loaded only on CMS pages via
   @section('css') (after style.css), and every rule is scoped to .cms-*.
============================================================================ */

.cms-section { background: #f6f7f9; }
.site-section.cms-section { padding-top: 38px !important; padding-bottom: 56px !important; }

.cms-head { margin-bottom: 30px; }

/* centre the one-word ghost on the title's midpoint (the base rule pins it
   left/right:0, so on a shrink-to-fit title it would spill to one side) */
.cms-section .title-center .title::before {
    left: 50%;
    right: auto;
    width: max-content;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* ---- content card ---- */
.cms-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px 52px;
    background: #fff;
    border: 1px solid #f0f1f3;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(22, 24, 29, 0.06), 0 2px 8px rgba(22, 24, 29, 0.04);
}

/* ---- typography for the admin rich text ---- */
.cms-body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    overflow-wrap: break-word;
}

.cms-body > :first-child { margin-top: 0 !important; }
.cms-body > :last-child { margin-bottom: 0 !important; }

.cms-body p { margin: 0 0 12px; }

.cms-body h1,
.cms-body h2 {
    margin: 34px 0 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #16181d;
}

/* section headings carry the amber accent bar used across the redesigned panels */
.cms-body h3 {
    position: relative;
    margin: 30px 0 10px;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #2c3e50;
}

.cms-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #e89a0e, #f4b743);
}

.cms-body h4,
.cms-body h5,
.cms-body h6 {
    margin: 22px 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
}

/* a link wrapped around a heading keeps the heading's look */
.cms-body h1 a,
.cms-body h2 a,
.cms-body h3 a,
.cms-body h4 a { color: inherit; text-decoration: none; }

.cms-body strong,
.cms-body b { font-weight: 600; color: #16181d; }

.cms-body a {
    color: #9a6408;                     /* amber text that passes contrast on white */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.cms-body a:hover { color: #e89a0e; }

.cms-body a:focus-visible {
    outline: 2px solid #e89a0e !important;   /* beats the global *:focus{outline:none!important} */
    outline-offset: 2px;
    border-radius: 2px;
}

.cms-body ul,
.cms-body ol { margin: 0 0 14px; }

.cms-body ul { padding-left: 0; list-style: none; }

.cms-body ul li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 20px;
}

.cms-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e89a0e;
}

.cms-body ol { padding-left: 22px; list-style: decimal; }
.cms-body ol li { margin: 0 0 8px; padding-left: 4px; }
.cms-body ol li::marker { color: #9a6408; font-weight: 700; }

.cms-body blockquote {
    margin: 18px 0;
    padding: 8px 0 8px 16px;
    border-left: 3px solid #e89a0e;
    color: #2c3e50;
    font-style: italic;
}

.cms-body hr { margin: 28px 0; border: 0; border-top: 1px solid #eef0f2; opacity: 1; }

/* editor images / embeds never distort or overflow (inline sizes included) */
.cms-body img { max-width: 100% !important; height: auto !important; border-radius: 14px; }
.cms-body figure { max-width: 100% !important; margin: 18px 0; }
.cms-body iframe,
.cms-body video { max-width: 100%; }

.cms-body table {
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 18px;
    border-collapse: collapse;
    font-size: 14px;
}

.cms-body th,
.cms-body td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f1f3;
    text-align: left;
    vertical-align: top;
}

.cms-body th { font-weight: 600; color: #2c3e50; }

/* ---- responsive ---- */
@media (max-width: 991px) {
    .site-section.cms-section { padding-top: 30px !important; padding-bottom: 44px !important; }
    .cms-card { padding: 36px 36px; }
}

@media (max-width: 575px) {
    .site-section.cms-section { padding-top: 24px !important; padding-bottom: 32px !important; }
    .cms-head { margin-bottom: 22px; }
    .cms-card { padding: 26px 20px; border-radius: 16px; }
    .cms-body { font-size: 14.5px; line-height: 1.75; }
    .cms-body h1,
    .cms-body h2 { margin-top: 28px; font-size: 20px; }
    .cms-body h3 { margin-top: 24px; font-size: 16.5px; }
}
