/**
 * CMS Structured Components — Frontend Styles
 *
 * Provides all styling for component-based content produced by the
 * TinyMCE structured component editor.
 *
 * Components covered:
 *   - Section (standard, highlight, alt, two-column)
 *   - CTA link button (primary / secondary / danger / success  ×  sm / md / lg)
 *   - Callout / Note / Warning blocks
 *   - Bootstrap Accordion (accordioncontainer button)
 *   - FAQ Container (faqcontainer button)
 *   - Card Container (cardcontainer button)
 *   - Multi-Column Layout (twocolumnlayout button)
 *   - Article Template (articletemplate button)
 *   - Styled Section (template-inserted HTML)
 */

/* ============================================================
   SECTIONS  (cms-section prefix — design system classes)
   ============================================================ */

.cms-section {
    width: 100%;
    padding: 3rem 0;
}

.cms-section__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Standard — clean white */
.cms-section--standard {
    background-color: #ffffff;
}

/* Highlight — soft accent background */
.cms-section--highlight {
    background-color: #f0f4f8;
}

/* Two-column — fixed 50/50 layout */
.cms-section--two-col .cms-section__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.cms-section--two-col .cms-col {
    flex: 1 1 calc(50% - 1rem);
    min-width: 0;
}

/* Stack columns on small screens */
@media (max-width: 768px) {
    .cms-section--two-col .cms-col {
        flex: 1 1 100%;
    }
}

/* Headings inside sections */
.cms-section h2,
.cms-section h3,
.cms-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}


/* ============================================================
   CTA BUTTONS  (cms-cta prefix — design system classes)
   ============================================================ */

.cms-cta {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

/* Primary — filled */
.cms-cta--primary {
    background-color: #0056b3;
    color: #ffffff;
    border: 2px solid #0056b3;
}

.cms-cta--primary:hover,
.cms-cta--primary:focus {
    background-color: #004494;
    border-color: #004494;
    color: #ffffff;
    text-decoration: none;
}

/* Secondary — outline */
.cms-cta--secondary {
    background-color: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
}

.cms-cta--secondary:hover,
.cms-cta--secondary:focus {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

/* Sizes */
.cms-cta--sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.875rem;
}

.cms-cta--md {
    padding: 0.55rem 1.4rem;
    font-size: 1rem;
}

.cms-cta--lg {
    padding: 0.8rem 2rem;
    font-size: 1.125rem;
}


/* ============================================================
   CONTENT BLOCKS  (cms-callout prefix — design system classes)
   ============================================================ */

.cms-callout,
.cms-note,
.cms-warning {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    border-left-width: 4px;
    border-left-style: solid;
}

.cms-callout p:last-child,
.cms-note p:last-child,
.cms-warning p:last-child {
    margin-bottom: 0;
}

/* Callout — blue informational */
.cms-callout {
    background-color: #e8f0fe;
    border-left-color: #0056b3;
    color: #003d80;
}

/* Note — green supplementary */
.cms-note {
    background-color: #e9f7ef;
    border-left-color: #28a745;
    color: #1a5c2f;
}

/* Warning — amber critical */
.cms-warning {
    background-color: #fff8e1;
    border-left-color: #ffc107;
    color: #7a5800;
}


/* ============================================================
   ACCORDION  (cms-accordion prefix — design system classes)
   ============================================================ */

.cms-accordion {
    width: 100%;
    margin: 1.5rem 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.cms-accordion__item {
    border-bottom: 1px solid #dee2e6;
}

.cms-accordion__item:last-child {
    border-bottom: none;
}

.cms-accordion__trigger {
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #212529;
    transition: background-color 0.15s ease;
}

.cms-accordion__trigger:hover {
    background-color: #e9ecef;
}

.cms-accordion__trigger:focus {
    outline: 2px solid #0056b3;
    outline-offset: -2px;
}

/* Expand/collapse indicator */
.cms-accordion__trigger::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.cms-accordion__trigger.active {
    background-color: #e9ecef;
    color: #0056b3;
}

.cms-accordion__trigger.active::after {
    content: '\2212'; /* minus sign */
    color: #0056b3;
}

/* Panel body */
.cms-accordion__content {
    display: none;
    padding: 0 1.25rem 1rem;
    background-color: #ffffff;
}

.cms-accordion__content.open {
    display: block;
}

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


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 576px) {
    .cms-section {
        padding: 2rem 0;
    }

    .cms-section__inner {
        padding: 0 0.75rem;
    }

    .cms-cta--lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================================
   BOOTSTRAP ACCORDION  (accordioncontainer button)
   Styles the .accordion HTML generated by the Accordion button.
   Required in content_css because Bootstrap is not loaded in
   the TinyMCE editor iframe. Matches business-plan-crafter reference.
   ============================================================ */

.accordion { margin: 20px 0; }
.accordion-item { background-color: #fff; border: 1px solid rgba(0, 0, 0, 0.125); border-radius: 0.375rem; margin-bottom: -1px; }
.accordion-item:first-of-type { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.accordion-item:last-of-type { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.accordion-header { margin-bottom: 0; }
.accordion-button { position: relative; display: flex; align-items: center; width: 100%; padding: 1rem 1.25rem; font-size: 1rem; color: #212529; text-align: left; background-color: #fff; border: 0; border-radius: 0; overflow-anchor: none; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease; cursor: pointer; }
.accordion-button:not(.collapsed) { color: #0c63e4; background-color: #e7f1ff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125); }
.accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); transform: rotate(-180deg); }
.accordion-button::after { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-left: auto; content: ""; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 1.25rem; transition: transform 0.2s ease-in-out; }
.accordion-button:hover { z-index: 2; }
.accordion-button:focus { z-index: 3; border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }
.accordion-collapse { height: 0; overflow: hidden; transition: height 0.35s ease; }
.accordion-collapse.show { height: auto; }
.accordion-body { padding: 1rem 1.25rem; }
.accordion-body p { margin: 0 0 15px 0; line-height: 1.6; color: #555; }
.accordion-body p:last-child { margin-bottom: 0; }
.accordion-body h1, .accordion-body h2, .accordion-body h3, .accordion-body h4, .accordion-body h5, .accordion-body h6 { margin-top: 20px; margin-bottom: 10px; color: #333; font-weight: 600; }
.accordion-body h1:first-child, .accordion-body h2:first-child, .accordion-body h3:first-child, .accordion-body h4:first-child, .accordion-body h5:first-child, .accordion-body h6:first-child { margin-top: 0; }
.accordion-body ul, .accordion-body ol { margin: 15px 0; padding-left: 30px; }
.accordion-body li { margin: 5px 0; line-height: 1.6; }
.accordion-body img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 5px; }
.accordion-body a { color: #007bff; text-decoration: none; }
.accordion-body a:hover { text-decoration: underline; }


/* ============================================================
   CARD  (cms-card prefix — design system classes)
   ============================================================ */

.cms-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.cms-card__header {
    background-color: #f8f9fa;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 1rem;
}

.cms-card__body {
    padding: 1.25rem;
    background-color: #ffffff;
}

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


/* ============================================================
   ARTICLE  (cms-article prefix — design system classes)
   ============================================================ */

.cms-article {
    max-width: 780px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.75;
    color: #212529;
}

.cms-article h2,
.cms-article h3,
.cms-article h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.cms-article p {
    margin-bottom: 1.25rem;
}


/* ============================================================
   MULTI-COLUMN  (cms-multi-column prefix — design system classes)
   ============================================================ */

.cms-multi-column {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.cms-multi-column .cms-col {
    flex: 1 1 calc(50% - 1rem);
    min-width: 0;
}

@media (max-width: 768px) {
    .cms-multi-column .cms-col {
        flex: 1 1 100%;
    }
}


/* ============================================================
   CTA BUTTON  (mybutton — component button output)
   ============================================================ */

.cta-btn { display: inline-block; padding: 10px 22px; text-decoration: none; border-radius: 5px; font-weight: 600; text-align: center; cursor: pointer; transition: opacity 0.2s, box-shadow 0.2s; line-height: 1.5; border: 2px solid transparent; }
.cta-btn--primary { background-color: #007bff; color: #ffffff; border-color: #007bff; }
.cta-btn--primary:hover { background-color: #0056b3; border-color: #0056b3; color: #ffffff; }
.cta-btn--secondary { background-color: transparent; color: #007bff; border-color: #007bff; }
.cta-btn--secondary:hover { background-color: #007bff; color: #ffffff; }
.cta-btn--danger { background-color: #dc3545; color: #ffffff; border-color: #dc3545; }
.cta-btn--danger:hover { background-color: #b02a37; border-color: #b02a37; color: #ffffff; }
.cta-btn--success { background-color: #28a745; color: #ffffff; border-color: #28a745; }
.cta-btn--success:hover { background-color: #1e7e34; border-color: #1e7e34; color: #ffffff; }
.cta-btn--sm { padding: 6px 14px; font-size: 13px; }
.cta-btn--md { padding: 10px 22px; font-size: 15px; }
.cta-btn--lg { padding: 14px 30px; font-size: 17px; }


/* ============================================================
   CARD CONTAINER  (cardcontainer button)
   ============================================================ */

.card-container-wrapper { display: grid; gap: 20px; margin: 20px 0; width: 100%; }
.card-container-wrapper[data-cards-per-row="1"] { grid-template-columns: repeat(1, 1fr); }
.card-container-wrapper[data-cards-per-row="2"] { grid-template-columns: repeat(2, 1fr); }
.card-container-wrapper[data-cards-per-row="3"] { grid-template-columns: repeat(3, 1fr); }
.card-container-wrapper[data-cards-per-row="4"] { grid-template-columns: repeat(4, 1fr); }
.card-container-wrapper[data-cards-per-row="6"] { grid-template-columns: repeat(6, 1fr); }
.card-item { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
.card-content { padding: 20px; }
.card-content h1, .card-content h2, .card-content h3, .card-content h4, .card-content h5, .card-content h6 { margin-top: 0; margin-bottom: 15px; color: #333; font-weight: 600; }
.card-content p { margin: 0 0 15px 0; line-height: 1.6; color: #555; }
.card-content p:last-child { margin-bottom: 0; }
.card-content ul, .card-content ol { margin: 15px 0; padding-left: 25px; }
.card-content li { margin: 5px 0; line-height: 1.6; }
.card-content img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 5px; }
.card-content a { color: #007bff; text-decoration: none; }
.card-content a:hover { text-decoration: underline; }

@media (max-width: 1200px) {
    .card-container-wrapper[data-cards-per-row="6"] { grid-template-columns: repeat(3, 1fr); }
    .card-container-wrapper[data-cards-per-row="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .card-container-wrapper[data-cards-per-row="4"],
    .card-container-wrapper[data-cards-per-row="6"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .card-container-wrapper { grid-template-columns: 1fr !important; }
}


/* ============================================================
   MULTI-COLUMN LAYOUT  (twocolumnlayout button)
   ============================================================ */

.multi-column-layout { display: grid; gap: 30px; margin: 20px 0; width: 100%; }
.multi-column-layout[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.multi-column-layout[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.multi-column-layout[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.multi-column-layout[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.multi-column-layout[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }
.column-item .content-block { margin: 15px 0; padding: 15px; background-color: #fff; border-left: 3px solid #fff; border-radius: 3px; }
.column-item .content-block p { margin: 0 0 10px 0; }
.column-item .content-block p:last-child { margin-bottom: 0; }

.column-item { padding: 20px; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 5px; }
.column-item h1, .column-item h2, .column-item h3, .column-item h4, .column-item h5, .column-item h6 { margin-top: 0; margin-bottom: 15px; color: #333; font-weight: 600; }
.column-item h1 { font-size: 24px; }
.column-item h2 { font-size: 20px; }
.column-item h3 { font-size: 18px; }
.column-item h4 { font-size: 16px; }
.column-item h5 { font-size: 14px; }
.column-item h6 { font-size: 12px; }
.column-item p { margin: 0 0 15px 0; line-height: 1.6; color: #555; }
.column-item p:last-child { margin-bottom: 0; }
.column-item ul, .column-item ol { margin: 15px 0; padding-left: 30px; }
.column-item li { margin: 5px 0; line-height: 1.6; }
.column-item img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 5px; }
.column-item a { color: #007bff; text-decoration: none; }
.column-item a:hover { text-decoration: underline; }

@media (max-width: 1200px) {
    .multi-column-layout[data-columns="6"] { grid-template-columns: repeat(3, 1fr); }
    .multi-column-layout[data-columns="5"] { grid-template-columns: repeat(3, 1fr); }
    .multi-column-layout[data-columns="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .multi-column-layout[data-columns="6"],
    .multi-column-layout[data-columns="5"],
    .multi-column-layout[data-columns="4"],
    .multi-column-layout[data-columns="3"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .multi-column-layout { grid-template-columns: 1fr !important; }
}


/* ============================================================
   FAQ CONTAINER  (faqcontainer button)
   ============================================================ */

.faq-accordion-one-col, .accordion-one-col { margin: 20px 0; }
.faq-column, .accord-column { width: 100%; }
.faq-item, .accord-item { border: 1px solid #e0e0e0; margin-bottom: 15px; border-radius: 5px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.faq-question, .accord-heading { padding: 15px 20px; background-color: #f5f5f5; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s; }
.faq-question:hover, .accord-heading:hover { background-color: #e8e8e8; }
.faq-question h4, .accord-heading h4 { margin: 0; font-size: 16px; font-weight: 600; color: #333; flex: 1; cursor: text; outline: none; }
.faq-actions, .accord-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.faq-toggle, .accord-toggle { font-size: 20px; font-weight: bold; color: #666; transition: transform 0.3s ease; min-width: 24px; text-align: center; line-height: 1; cursor: pointer; user-select: none; display: inline-block; }
.faq-toggle:hover, .accord-toggle:hover { color: #007bff; }
.faq-item.active .faq-toggle, .accord-item.active .accord-toggle { transform: rotate(90deg); color: #007bff; }
.faq-remove, .accord-remove { font-size: 28px; font-weight: bold; color: #dc3545; cursor: pointer; user-select: none; line-height: 1; transition: color 0.3s, transform 0.3s; min-width: 24px; text-align: center; }
.faq-remove:hover, .accord-remove:hover { color: #c82333; transform: scale(1.2); }
.faq-answer, .accord-inner-text { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; background-color: #fff; }
.faq-item.active .faq-answer, .accord-item.active .accord-inner-text { padding: 15px 20px; max-height: 1000px; }
.faq-answer p, .accord-inner-text p { margin: 0; color: #555; line-height: 1.6; cursor: text; outline: none; }


/* ============================================================
   CONTENT SECTION  (sectionmanager button)
   ============================================================ */

.content-section { display: block; width: 100%; box-sizing: border-box; padding: 48px 0; margin: 0; }
.content-section--standard { background-color: #ffffff; }
.content-section--highlight { background-color: #f4f6f9; border-top: 1px solid #e5e8ed; border-bottom: 1px solid #e5e8ed; }
.content-section--alt { background-color: #eef2ff; border-top: 1px solid #d0d9f5; border-bottom: 1px solid #d0d9f5; }
.content-section .section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.content-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.content-section .container-fluid { width: 100%; padding: 0 24px; box-sizing: border-box; }
.content-section h1, .content-section h2, .content-section h3,
.content-section h4, .content-section h5, .content-section h6 { margin-top: 0; margin-bottom: 16px; color: #1a1a2e; font-weight: 700; }
.content-section h2 { font-size: 28px; }
.content-section h3 { font-size: 22px; }
.content-section p { margin: 0 0 16px 0; line-height: 1.7; color: #444; }
.content-section p:last-child { margin-bottom: 0; }
.content-section ul, .content-section ol { margin: 16px 0; padding-left: 28px; }
.content-section li { margin: 8px 0; line-height: 1.7; color: #444; }
.content-section img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.content-section a { color: #007bff; text-decoration: none; }
.content-section a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .content-section { padding: 32px 0; }
    .content-section .section-inner,
    .content-section .container,
    .content-section .container-fluid { padding: 0 16px; }
    .content-section h2 { font-size: 22px; }
    .content-section h3 { font-size: 18px; }
}


/* ============================================================
   ARTICLE TEMPLATE  (articletemplate button)
   ============================================================ */

.article-template { display: block; width: 100%; box-sizing: border-box; margin: 20px 0; }
.article-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.article-wrapper { display: flex; gap: 30px; align-items: flex-start; box-sizing: border-box; }
.article-wrapper .article-main-content { flex: 1; min-width: 0; }
.article-wrapper .article-sidebar { flex: 0 0 300px; min-width: 0; }
.article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #e0e0e0; }
.article-title { margin: 0 0 15px 0; font-size: 36px; font-weight: 700; color: #333; line-height: 1.2; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #666; }
.article-meta .article-author { font-weight: 600; color: #007bff; }
.article-meta .article-date { color: #999; }
.article-meta span:not(:last-child)::after { content: '\2022'; margin-left: 20px; color: #ccc; }
.article-section { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.article-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.article-section h1, .article-section h2, .article-section h3,
.article-section h4, .article-section h5, .article-section h6 { margin-top: 0; margin-bottom: 20px; color: #333; font-weight: 600; line-height: 1.3; }
.article-section h2 { font-size: 28px; }
.article-section h3 { font-size: 24px; }
.article-section h4 { font-size: 20px; }
.article-section p { margin: 0 0 20px 0; line-height: 1.8; color: #555; font-size: 16px; }
.article-section p:last-child { margin-bottom: 0; }
.article-section ul, .article-section ol { margin: 20px 0; padding-left: 30px; line-height: 1.8; }
.article-section li { margin: 10px 0; color: #555; }
.article-section img { max-width: 100%; height: auto; margin: 25px 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.article-section blockquote { margin: 25px 0; padding: 20px 25px; border-left: 4px solid #007bff; background-color: #f8f9fa; font-style: italic; color: #555; }
.article-section a { color: #007bff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.article-section a:hover { border-bottom-color: #007bff; }
.article-sidebar { background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; }
.sidebar-widget { margin-bottom: 25px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget h3 { margin: 0 0 15px 0; font-size: 18px; font-weight: 600; color: #333; }
.sidebar-widget p { margin: 0 0 15px 0; line-height: 1.6; color: #666; font-size: 14px; }
.sidebar-widget p:last-child { margin-bottom: 0; }
.sidebar-widget ul { margin: 15px 0; padding-left: 20px; }
.sidebar-widget li { margin: 8px 0; color: #666; font-size: 14px; }
.sidebar-widget a { color: #007bff; text-decoration: none; }
.sidebar-widget a:hover { text-decoration: underline; }
.article-footer { margin-top: 40px; padding-top: 30px; border-top: 2px solid #e0e0e0; }
.article-tags { margin: 0 0 15px 0; font-size: 14px; color: #666; }
.article-tags span { display: inline-block; margin-right: 8px; padding: 4px 12px; background-color: #f0f0f0; border-radius: 15px; color: #555; font-size: 12px; }

@media (max-width: 992px) {
    .article-wrapper { flex-direction: column; }
    .article-wrapper .article-sidebar { flex: 1; width: 100%; margin-top: 30px; }
    .article-title { font-size: 28px; }
    .article-section h2 { font-size: 24px; }
    .article-section h3 { font-size: 20px; }
}
@media (max-width: 768px) {
    .article-container { padding: 0 15px; }
    .article-title { font-size: 24px; }
    .article-section { margin-bottom: 30px; padding-bottom: 20px; }
    .article-section h2 { font-size: 20px; }
    .article-section h3 { font-size: 18px; }
    .article-section p { font-size: 15px; }
    .article-meta { flex-direction: column; gap: 10px; }
    .article-meta span:not(:last-child)::after { display: none; }
    .article-footer { margin-top: 30px; padding-top: 20px; }
}


/* ============================================================
   CALLOUT / NOTE / WARNING BLOCKS  (calloutblock button)
   ============================================================ */

.callout-block, .note-block, .warning-block { margin: 20px 0; border-radius: 8px; border-left: 4px solid; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); overflow: hidden; }
.callout-block { background-color: #e7f3ff; border-left-color: #2196F3; }
.note-block { background-color: #fff9e6; border-left-color: #ff9800; }
.warning-block { background-color: #ffebee; border-left-color: #f44336; }

.callout-header { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.callout-block .callout-header { background-color: rgba(33, 150, 243, 0.1); }
.note-block .callout-header { background-color: rgba(255, 152, 0, 0.1); }
.warning-block .callout-header { background-color: rgba(244, 67, 54, 0.1); }

.callout-icon { font-size: 24px; margin-right: 12px; line-height: 1; display: inline-block; width: 24px; height: 24px; text-align: center; background-color: transparent; border-radius: 0; }
.callout-icon.callout-icon-info::before { content: "ℹ"; font-size: 20px; font-weight: bold; color: #1976D2; font-style: normal; }
.callout-icon.callout-icon-note::before { content: "N"; font-size: 18px; font-weight: bold; color: #F57C00; }
.callout-icon.callout-icon-warning::before { content: "!"; font-size: 20px; font-weight: bold; color: #C62828; }

.callout-title { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.callout-block .callout-title { color: #1976D2; }
.note-block .callout-title { color: #F57C00; }
.warning-block .callout-title { color: #C62828; }

.callout-content { padding: 20px; }
.callout-content p { margin: 0 0 15px 0; line-height: 1.7; color: #555; font-size: 15px; }
.callout-content p:last-child { margin-bottom: 0; }
.callout-content h1, .callout-content h2, .callout-content h3,
.callout-content h4, .callout-content h5, .callout-content h6 { margin-top: 0; margin-bottom: 15px; color: #333; font-weight: 600; }
.callout-content ul, .callout-content ol { margin: 15px 0; padding-left: 25px; }
.callout-content li { margin: 8px 0; line-height: 1.7; color: #555; }
.callout-content img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 5px; }
.callout-content a { color: #007bff; text-decoration: none; font-weight: 500; }
.callout-content a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .callout-header { padding: 12px 15px; }
    .callout-icon { font-size: 20px; margin-right: 10px; }
    .callout-title { font-size: 16px; }
    .callout-content { padding: 15px; }
    .callout-content p { font-size: 14px; }
}


/* ============================================================
   STYLED SECTION  (template-inserted HTML)
   ============================================================ */

.styled-section {
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 20px 0;
}

.styled-section h3 {
    margin-top: 0;
}

.section-content {
    margin-top: 1rem;
}
