
/* =========================================================
   Office Store
   ARTICLE CSS SYSTEM
   Shared styles for single articles and article archives
   ========================================================= */


/* =========================================================
   01. SINGLE ARTICLE — BASE TYPOGRAPHY
   ========================================================= */

.single-post .entry-content {
    font-size: 16px;
    line-height: 2.05;
    color: #0f172a;
    direction: rtl;
}

.single-post .entry-content,
.single-post .entry-content * {
    box-sizing: border-box;
}

.single-post .entry-content p {
    margin: 0 0 14px 0;
}

.single-post .entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.single-post .entry-content p[style*="text-align: justify"] {
    text-align: justify !important;
}


/* =========================================================
   02. HEADINGS
   ========================================================= */

.single-post .entry-content h1 {
    line-height: 1.7;
    margin: 10px 0 14px 0;
}

.single-post .entry-content h2 {
    margin: 30px 0 12px 0;
    padding: 10px 14px;
    background: #f7f9fc;
    border-right: 4px solid #2563eb;
    border-radius: 12px;
    line-height: 1.7;
}

.single-post .entry-content h3 {
    margin: 22px 0 10px 0;
    font-size: 18px;
    line-height: 1.8;
}

.single-post .entry-content h4 {
    margin: 18px 0 8px 0;
    line-height: 1.8;
}


/* =========================================================
   03. IMAGES AND FIGURES
   ========================================================= */

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.single-post .entry-content img.aligncenter,
.single-post .entry-content img.alignnone,
.single-post .entry-content p[style*="text-align: center"] img {
    display: block;
    margin: 14px auto 18px auto;
}

.single-post .entry-content .ol-figure {
    margin: 14px auto 18px auto;
    text-align: center;
}

.single-post .entry-content .ol-figure img {
    display: block;
    margin: 0 auto;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.single-post .entry-content .ol-figure figcaption {
    margin-top: 8px;
    font-size: 14px;
    opacity: .85;
}


/* =========================================================
   04. LISTS AND STEP LISTS
   ========================================================= */

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 10px 0 18px 0;
    padding: 0 22px 0 0;
}

.single-post .entry-content li {
    margin: 0 0 10px 0;
}

.single-post .entry-content .ol-steps {
    margin: 10px 0 18px 0;
    padding: 0 22px 0 0;
}

.single-post .entry-content .ol-steps > li {
    margin: 0 0 14px 0;
}


/* =========================================================
   05. REUSABLE INFORMATION BOXES
   ========================================================= */

.single-post .entry-content .ol-note,
.single-post .entry-content .ol-tip,
.single-post .entry-content .ol-callout,
.single-post .entry-content .ol-answer,
.single-post .entry-content .ol-pick,
.single-post .entry-content .ol-hero {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.single-post .entry-content .ol-note,
.single-post .entry-content .ol-callout--quick {
    background: #f8fafc;
}

.single-post .entry-content .ol-tip {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.single-post .entry-content .ol-callout--note {
    background: #fff7ed;
    border-color: #fdba74;
}

.single-post .entry-content .ol-callout-warning {
    border-right: 4px solid #ef4444;
}

.single-post .entry-content .ol-callout-info {
    border-right: 4px solid #10b981;
}

.single-post .entry-content .ol-callout p,
.single-post .entry-content .ol-answer p {
    margin-bottom: 0;
}


/* =========================================================
   06. TABLES
   ========================================================= */

.single-post .entry-content .ol-table-wrap {
    overflow: auto;
    margin: 12px 0 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.single-post .entry-content .ol-table-wrap table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.single-post .entry-content .ol-table-wrap th,
.single-post .entry-content .ol-table-wrap td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: right;
}

.single-post .entry-content .ol-table-wrap thead th {
    background: #0b4fa3;
    color: #fff;
}

.single-post .entry-content .ol-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   07. CODE AND LTR CONTENT
   ========================================================= */

.single-post .entry-content pre,
.single-post .entry-content .wp-block-syntaxhighlighter-code {
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    overflow: auto;
    padding: 14px 16px;
    margin: 14px 0 18px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.8;
}

.single-post .entry-content p[dir="ltr"],
.single-post .entry-content .ol-path {
    direction: ltr;
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
}

.single-post .entry-content p[dir="ltr"] {
    padding: 10px 12px;
    margin: 14px 0 18px 0;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f9fafb;
}

.single-post .entry-content :where(code) {
    direction: ltr;
    text-align: left;
}

.single-post .entry-content p code,
.single-post .entry-content li code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #f3f4f6;
}


/* =========================================================
   08. FAQ — DETAILS / SUMMARY
   ========================================================= */

.single-post .entry-content details {
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.single-post .entry-content details > summary {
    position: relative;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    list-style: none;
}

.single-post .entry-content details > summary::-webkit-details-marker {
    display: none;
}

.single-post .entry-content details > summary::after {
    content: "+";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 900;
}

.single-post .entry-content details[open] > summary::after {
    content: "−";
}

.single-post .entry-content .ol-faq__a,
.single-post .entry-content .ol-faq-a,
.single-post .entry-content .ol-faq-body {
    padding: 10px 14px 14px;
    border-top: 1px solid #eef2f7;
}

.single-post .entry-content .ol-faq__a p:last-child,
.single-post .entry-content .ol-faq-body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   09. CTA AND BUTTONS
   ========================================================= */

.single-post .entry-content .ol-cta {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}

.single-post .entry-content .ol-cta__title {
    margin-bottom: 10px;
    font-weight: 900;
}

.single-post .entry-content .ol-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 6px;
}

.single-post .entry-content .ol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
    line-height: 1.5;
}

.single-post .entry-content .ol-btn-primary,
.single-post .entry-content .ol-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff !important;
}

.single-post .entry-content .ol-btn-ghost,
.single-post .entry-content .ol-btn--ghost {
    background: #fff;
    color: #0f172a !important;
}


/* =========================================================
   10. MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .single-post .entry-content {
        font-size: 15px;
        line-height: 2;
    }

    .single-post .entry-content h2 {
        padding: 10px 12px;
    }

    .single-post .entry-content .ol-cta-row {
        flex-direction: column;
    }

    .single-post .entry-content .ol-btn {
        max-width: 100%;
    }
}
