/* =========================================================
   Collection Content
   ========================================================= */

.collection-body {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0px 24px 50px;
    box-sizing: border-box;
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

/* =========================================================
   Excerpt
   ========================================================= */

.collection-excerpt {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
}

/* =========================================================
   Rich Text Container
   ========================================================= */

.collection-body .rich-text {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =========================================================
   Headings
   ========================================================= */

.collection-body .rich-text h1,
.collection-body .rich-text h2,
.collection-body .rich-text h3,
.collection-body .rich-text h4,
.collection-body .rich-text h5,
.collection-body .rich-text h6 {
    color: #222;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1em;
    margin-bottom: 0.7em;
}

/* H1 */
.collection-body .rich-text h1 {
    font-size: 2.2rem;
}

/* H2 */
.collection-body .rich-text h2 {
    font-size: 1.8rem;
}

/* H3 */
.collection-body .rich-text h3 {
    font-size: 1.5rem;
}

/* H4 */
.collection-body .rich-text h4 {
    font-size: 1.3rem;
}

/* H5 */
.collection-body .rich-text h5 {
    font-size: 1.1rem;
}

/* H6 */
.collection-body .rich-text h6 {
    font-size: 1rem;
}

/* =========================================================
   Paragraph
   ========================================================= */

.collection-body .rich-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.2rem;
    color: #444;
}

/* =========================================================
   Links
   ========================================================= */

.collection-body .rich-text a {
    color: #d35400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    overflow-wrap: break-word;
}

.collection-body .rich-text a:hover {
    color: #a63f00;
}

.collection-body .rich-text a:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* =========================================================
   Strong / Bold
   ========================================================= */

.collection-body .rich-text strong,
.collection-body .rich-text b {
    font-weight: 700;
    color: #222;
}

/* =========================================================
   Italic
   ========================================================= */

.collection-body .rich-text em,
.collection-body .rich-text i {
    font-style: italic;
}

/* =========================================================
   Lists
   ========================================================= */

.collection-body .rich-text ul,
.collection-body .rich-text ol {
    margin: 0 0 1.4rem;
    padding-left: 2rem;
}

.collection-body .rich-text ul {
    list-style-type: disc;
}

.collection-body .rich-text ol {
    list-style-type: decimal;
}

.collection-body .rich-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.collection-body .rich-text li > ul,
.collection-body .rich-text li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* =========================================================
   Blockquote
   ========================================================= */

.collection-body .rich-text blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #efba32;
    background: #faf7ed;
    color: #555;
    font-style: italic;
}

.collection-body .rich-text blockquote p {
    margin-bottom: 0;
}

/* =========================================================
   Horizontal Rule
   ========================================================= */

.collection-body hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 35px 0;
}

/* =========================================================
   Images
   ========================================================= */

.collection-body .rich-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
}

/* =========================================================
   Image with Caption
   ========================================================= */

.collection-body .rich-text figure {
    max-width: 100%;
    margin: 1.5rem 0;
}

.collection-body .rich-text figure img {
    margin: 0 auto;
}

.collection-body .rich-text figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* =========================================================
   Tables
   ========================================================= */

.collection-body .rich-text table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.collection-body .rich-text th,
.collection-body .rich-text td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

.collection-body .rich-text th {
    background: #f5f5f5;
    font-weight: 700;
}

/* =========================================================
   Code
   ========================================================= */

.collection-body .rich-text code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f3f3f3;
    font-family: monospace;
    font-size: 0.9em;
}

.collection-body .rich-text pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 15px;
    margin: 1.5rem 0;
    border-radius: 6px;
    background: #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

.collection-body .rich-text pre code {
    padding: 0;
    background: transparent;
}

/* =========================================================
   Superscript / Subscript
   ========================================================= */

.collection-body .rich-text sup,
.collection-body .rich-text sub {
    font-size: 0.75em;
}

/* =========================================================
   Small Text
   ========================================================= */

.collection-body .rich-text small {
    font-size: 0.85rem;
    color: #666;
}

/* =========================================================
   Video / iframe / Embedded Content
   ========================================================= */

.collection-body .rich-text iframe,
.collection-body .rich-text video {
    display: block;
    max-width: 100%;
    margin: 1.5rem auto;
}

.collection-body .rich-text iframe {
    width: 100%;
    min-height: 400px;
    border: 0;
}

/* =========================================================
   Mobile - Tablet
   ========================================================= */

@media (max-width: 768px) {

    .collection-body {
        max-width: 100%;
        padding: 0px 18px 40px;
    }

    .collection-excerpt {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .collection-body .rich-text h1 {
        font-size: 1.9rem;
    }

    .collection-body .rich-text h2 {
        font-size: 1.6rem;
    }

    .collection-body .rich-text h3 {
        font-size: 1.35rem;
    }

    .collection-body .rich-text h4 {
        font-size: 1.2rem;
    }

    .collection-body .rich-text h5 {
        font-size: 1.05rem;
    }

    .collection-body .rich-text h6 {
        font-size: 1rem;
    }

    .collection-body .rich-text p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .collection-body .rich-text ul,
    .collection-body .rich-text ol {
        padding-left: 1.5rem;
    }

    .collection-body .rich-text blockquote {
        padding: 0.8rem 1rem;
    }

    .collection-body .rich-text iframe {
        min-height: 300px;
    }
}

/* =========================================================
   Mobile - Small Devices
   ========================================================= */

@media (max-width: 480px) {

    .collection-body {
        padding: 15px 14px 35px;
    }

    .collection-excerpt {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .collection-body .rich-text h1 {
        font-size: 1.65rem;
        margin-top: 1.4em;
    }

    .collection-body .rich-text h2 {
        font-size: 1.4rem;
        margin-top: 1.4em;
    }

    .collection-body .rich-text h3 {
        font-size: 1.2rem;
    }

    .collection-body .rich-text h4 {
        font-size: 1.1rem;
    }

    .collection-body .rich-text h5,
    .collection-body .rich-text h6 {
        font-size: 1rem;
    }

    .collection-body .rich-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .collection-body .rich-text ul,
    .collection-body .rich-text ol {
        padding-left: 1.3rem;
    }

    .collection-body .rich-text li {
        line-height: 1.6;
    }

    .collection-body .rich-text blockquote {
        margin-left: 0;
        margin-right: 0;
        padding: 0.7rem 0.9rem;
    }

    .collection-body .rich-text iframe {
        min-height: 220px;
    }
}