/* =========================
   CMS UNIVERSAL CONTENT CSS
   Safe for dynamic pages
   ========================= */

.cms-content,
.cms-content * {
    font-family: "Source Sans Pro", sans-serif;
    box-sizing: border-box;
}

/* Headings */
.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    position: relative;
    margin: 20px 0 15px;
    padding-left: 16px;
    line-height: 1.25;
    font-weight: 600;
}

/* Vertical accent bar */
.cms-content h1::before,
.cms-content h2::before,
.cms-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ab1c12;
    border-radius: 2px;
}

/* Font sizes */
.cms-content h1 { display: block;
    width: 100%;
    font-size: 32px;
    color: #ab1c12;
    font-weight: 600; }
.cms-content h2 { font-size: 30px; }
.cms-content h3 { font-size: 26px; }
.cms-content h4 { font-size: 22px; }
.cms-content h5 { font-size: 18px; }
.cms-content h6 { font-size: 16px; }

/* Paragraph */
.cms-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

/* Lists */
.cms-content ul,
.cms-content ol {
    margin: 10px 0 15px 25px;
}

.cms-content li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* Links */
.cms-content a {
    color: #e92d20;
    text-decoration: none;
}

.cms-content a:hover {
    color: #312f45;
    text-decoration: underline;
}

/* Images */
.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 12px auto;
    display: block;
}

/* Tables */
.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.cms-content th,
.cms-content td {
    border: 1px solid #ddd;
    padding: 8px;
}

.cms-content th {
    background: #e92d20;
    color: #fff;
}

.cms-content tr:nth-child(even) {
    background: #f9f9f9;
}

/* Blockquotes */
.cms-content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    border-left: 4px solid #e92d20;
    background: #f7f7f7;
    font-style: italic;
}

/* Horizontal rule */
.cms-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

/* Small text */
.cms-content small {
    font-size: 85%;
    color: #777;
}

/* Highlight */
.cms-content mark {
    background: #ffe58f;
}

/* Mobile optimization */
@media(max-width:768px) {
    .cms-content h1 { font-size: 28px; }
    .cms-content h2 { font-size: 24px; }
    .cms-content h3 { font-size: 22px; }

    .cms-content p,
    .cms-content li {
        font-size: 16px;
    }
}
