/* Blog content styling - ported from the Testdino theme's blog-single.css, adapted for this
   site's .blog-details wrapper class. Covers base typography, images, tables, lists, and all
   editorial shortcode blocks (quote/tip/notice/FAQ/etc.), plus matching mobile overrides. */

/* ---------------------------------------------------------------------- */
/* Base typography                                                        */
/* ---------------------------------------------------------------------- */
.blog-details a[data-lightbox="blog-gallery"] img {
    cursor: zoom-in;
}
.blog-details p a {
    color: #000000;
    font-weight: 500;
    border-bottom: 1.3px solid #d2d2d2;
}
.blog-details p a:hover {
    color: #000000;
    border-bottom: 1.3px solid #000000;
}
.blog-details .blog-notice-block p a,
.blog-details .blog-tips-banner p a {
    color: inherit;
    font-weight: 500;
    border-bottom: 1.3px solid currentColor;
}
.blog-details .blog-notice-block p a:hover,
.blog-details .blog-tips-banner p a:hover {
    color: inherit;
    font-weight: 500;
    border-bottom: 1.3px solid currentColor;
}
.blog-details p {
    margin-bottom: 0;
    margin-top: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: 0;
    color: #34373C;
}
.blog-details p.author-bio { margin-top: 0; }
.blog-details p.author-details { color: #171717; }

.blog-details h2 {
    margin-top: 40px;
    margin-bottom: 0px;
    font-size: 32px;
    font-weight: 500;
    line-height: normal;
    color: #0B0C0E;
}
.blog-details h3 {
    margin-top: 32px;
    margin-bottom: 0px;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #0B0C0E;
}
.blog-details h4 {
    margin-top: 24px;
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    color: #0B0C0E;
}
.blog-details h5 {
    margin-top: 20px;
    margin-bottom: 0px;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    color: #0B0C0E;
}

/* Lists */
.blog-details ul { list-style: disc; }
.blog-details ol { list-style: decimal; }
.blog-details ul li a, .blog-details ol li a, .blog-details table a {
    color: #000000;
    border-bottom: 1.3px solid #d2d2d2;
    word-wrap: break-word;
}
.blog-details table { word-wrap: break-word; }
.blog-details ul li a:hover, .blog-details ol li a:hover, .blog-details table a:hover {
    color: #000000;
    border-bottom: 1.3px solid #000000;
}
.blog-details ul,
.blog-details ol {
    margin-top: 16px;
    margin-bottom: 0;
    margin-left: 26px;
    padding-left: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
    color: #34373C;
}
.blog-details table ul, .blog-details table ol { margin-top: 0; }
.blog-details ul li, .blog-details ol li { margin-bottom: 16px; }
.blog-details ul li:last-child, .blog-details ol li:last-child { margin-bottom: 0; }
.blog-details ul li:first-child, .blog-details ol li:first-child { margin-top: 0; }
.blog-details ul li::marker, .blog-details ol li::marker {
    color: #34373C;
    font-weight: 400;
}

/* Images (general) - framed card look: padded border + soft background */
.blog-details img {
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 28px;
    padding: .5rem;
    border-width: 1px;
    border-style: solid;
    border-color: #e8e8e8;
    background: #f0eee6;
}
.blog-details img.quote-icon,
.blog-details img.author-section-image,
.blog-details img.cta-dino-image,
.blog-details img.blog-tip-icon,
.blog-details img.blog-notice-icon,
.blog-details .blog-testimonial-avatar,
.blog-details .blog-tip-header img,
.blog-details th img,
.blog-details td img,
.blog-details .slider-thumb img,
.youtube-play-btn img,
.blog-details .code-copy-btn img { margin-top: 0px; padding: 0; border-width: 0; background: transparent; }
.blog-details div { max-width: 100%; }
.blog-details figure { margin: 28px 0 0 0; }
.blog-details figure img { margin-top: 0; }
.blog-details figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 24px;
    color: #646464;
    font-weight: 400;
}
.wp-video-shortcode, video { border-radius: 12px; overflow: hidden; }
.wp-video { margin-top: 28px; }

/* Mobile-only RankMath TOC block: wpautop() injects a stray <br> after each
   link (they're separated by single newlines in stored content), which adds
   extra spacing on top of the nav's own flex gap. Hide them. */
.rank-math-toc-wrap.mobile-only-toc nav br { display: none; }

/* Each post embeds its own inline <style> for this TOC block (padding: 16px),
   which renders in <body> after our <head>-loaded stylesheet - so it wins the
   cascade on an equal-specificity tie. !important guarantees this override
   actually takes effect. */
.rank-math-toc-wrap.mobile-only-toc .toc-mobile-scroll { padding: 10px !important; }
.rank-math-toc-wrap.mobile-only-toc nav a { padding: 2px 0 2px 0px !important; }

/* Blog hero/featured image (single.php blog-header-section-image) - capped on desktop */
@media (min-width: 1024px) {
    .blog-header-section-image img {
        max-width: 600px;
        width: 100%;
    }
}

/* Quote / testimonial */
.blog-details .blog-quote-block p.blog-quote-block-text,
.blog-details .blog-quote-block span {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0px;
    margin-top: 0;
    color: #0B0C0E;
    margin-bottom: 16px;
    display: block;
}
.blog-details .blog-quote-block .blog-quote-block-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0px;
    display: block;
}
.blog-details .blog-quote-block,
.blog-details .blog-testimonial-block { position: relative; overflow: hidden; }

.blog-details .blog-testimonial-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #0B0C0E;
    margin-top: 0;
    margin-bottom: 24px;
}
.blog-details .blog-testimonial-block span { display: block; margin-bottom: 24px; }
.blog-details .blog-testimonial-footer { display: flex; align-items: center; gap: 12px; }
.blog-details .blog-testimonial-avatar {
    width: 64px; height: 64px; border-radius: 999px; object-fit: cover; margin-top: 0;
}
.blog-details .blog-testimonial-meta { display: flex; flex-direction: column; }
.blog-details .blog-testimonial-name { font-weight: 600; font-size: 16px; line-height: 26px; letter-spacing: 0px; }
.blog-details .blog-testimonial-designation { font-weight: 400; font-size: 16px; line-height: 26px; letter-spacing: 0px; }

/* Tip block */
.blog-details .blog-tip-block {
    background: #F0F6FF; border: 1px solid #C8DEFD; border-radius: 12px; padding: 20px; margin-top: 48px;
}
.blog-details .blog-tip-header { display: flex; align-items: center; gap: 16px; }
.blog-details .blog-tip-icon { width: 24px; height: 24px; object-fit: contain; margin-top: 0; }
.blog-details .blog-tip-title { font-weight: 600; font-size: 24px; line-height: 32px; color: #032759; }
.blog-details .blog-tip-content { margin-top: 0px; color: #032759; }
.blog-details .blog-tip-content p { margin-top: 16px; margin-bottom: 0px; font-weight: 400; font-size: 16px; line-height: 26px; color: #032759; }
.blog-details .blog-tip-content p:first-child { margin-top: 0; }
.blog-details .blog-tip-content ul, .blog-details .blog-tip-content ol { margin-top: 16px; margin-bottom: 0px; padding-left: 20px; color: #032759; }
.blog-details .blog-tip-content li { margin-bottom: 12px; font-size: 16px; line-height: 26px; }
.blog-details .blog-tip-content li:last-child { margin-bottom: 0; }
.blog-details .blog-tip-content li::marker { color: #032759; }

/* Code panels */
.blog-details .blog-code-panel { margin-top: 28px; }
.blog-details .blog-code-panel p { color: inherit; margin-top: 0; }
.blog-details .blog-code-content { tab-size: 2; white-space: pre-wrap; word-break: break-word; }
.blog-details .code-copy-btn.copied, .blog-details .code-copy-btn-light.copied { background: #1f8f5f; border-color: #1f8f5f; }

/* Notice block */
.blog-details .blog-notice-block { display: flex; gap: 8px; padding: 20px; border-radius: 12px; align-items: flex-start; margin-top: 16px; }
.blog-details .blog-notice-icon { width: 20px; height: 20px; margin-top: 0px; flex-shrink: 0; }
.blog-details .blog-notice-content { font-size: 16px; line-height: 26px; }
.blog-details .blog-notice-content p { color: inherit; margin-top: 0; }
.blog-details .blog-notice-content p:first-child { margin-top: 0; }

/* Info banner */
.blog-details .blog-info-banner { border-radius: 12px; padding: 20px; margin-top: 16px; }
.blog-details .blog-info-header { display: flex; align-items: center; gap: 8px; margin-bottom: 0px; }
.blog-details .blog-info-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0; }
.blog-details .blog-info-title { font-weight: 600; font-size: 16px; line-height: 24px; }
.blog-details .blog-info-description { font-size: 16px; line-height: 26px; }
.blog-details .blog-info-description p { margin: 10px 0 0 0; line-height: 26px; }
.blog-details .blog-info-description p:first-child { margin-top: 0; }
.blog-details .blog-info-description ul, .blog-details .blog-info-description ol { padding-left: 26px; margin: 16px 0 0 0; }
.blog-details .blog-info-banner, .blog-details .blog-info-banner * { color: inherit; }

/* Tips banner */
.blog-details .blog-tips-banner { display: block; gap: 12px; padding: 20px; border-radius: 12px; margin-top: 24px; }
.blog-details .blog-tips-header { display: flex; align-items: center; gap: 12px; }
.blog-details .blog-tips-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0; }
.blog-details .blog-tips-title { font-weight: 600; font-size: 24px; line-height: 32px; margin-bottom: 0; }
.blog-details .blog-tips-content { margin-top: 16px; font-size: 16px; line-height: 26px; }
.blog-details .blog-tips-content p { margin: 16px 0 0 0; }
.blog-details .blog-tips-content p:first-child { margin-top: 0; }
.blog-details .blog-tips-content ul, .blog-details .blog-tips-content ol { padding-left: 26px; margin: 16px 0 0 0; }
.blog-details .blog-tips-content li { margin-bottom: 16px; }
.blog-details .blog-tips-banner, .blog-details .blog-tips-banner a, .blog-details .blog-tips-banner * { color: inherit; border-color: inherit; }

/* CTA section / regular CTA */
.blog-details .blog-cta-section { border-radius: 20px; overflow: visible; background-size: cover; background-position: center; margin-top: 48px; }
.blog-details .blog-cta-inner { display: flex; flex-direction: column; gap: 32px; padding: 32px; }
@media (min-width: 768px) { .blog-details .blog-cta-inner { flex-direction: row; align-items: center; padding: 40px; } }
.blog-details .blog-cta-title { font-weight: 600; font-size: 24px; line-height: 32px; color: #0B0C0E; }
.blog-details .blog-cta-description, .blog-details .blog-cta-description p { margin-top: 16px; font-weight: 400; font-size: 16px; line-height: 28px; color: #34373C; }
.blog-details .blog-cta-button {
    border-radius: 6px; background-color: #171717; color: #FAFAFA; border: 1px solid transparent;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease; font-weight: 500; font-size: 16px; line-height: 100%;
    text-align: center; padding: 10px 16px; margin-top: 24px; text-decoration: none;
}
.blog-details .blog-cta-button:hover { background-color: transparent; border-color: #171717; color: #171717; }

.blog-details .cta-banner-1 { border: 1px solid #E5E5E5; border-radius: 12px; margin-top: 32px; overflow: hidden; }
.blog-details .cta-content { padding: 24px; border-radius: 12px; }
@media (min-width: 768px) { .blog-details .cta-content { padding: 32px; min-height: 196px; } }
.blog-details .cta-title { color: #fff; font-weight: 700; }
.blog-details .cta-description { color: #fff; }
.blog-details .cta-button { text-decoration: none; }
.blog-details img.cta-dino-image { width: 228px; height: auto; top: -14px; right: 20px; }

/* Table */
.blog-details table {
    width: 100%; border-collapse: separate; border-spacing: 0; background: #ffffff;
    margin-top: 32px !important; border-radius: 12px; overflow: hidden; table-layout: fixed;
}
.blog-details table thead tr { background: #EEEEEE; }
.blog-details th img { margin-top: 0px; display: inline; width: 25px; border-radius: 0; }
.blog-details td img { margin-top: 0px; display: inline; width: auto; border-radius: 0; }
.blog-details th { padding: 16px; font-weight: 600; font-size: 16px; line-height: 100%; text-align: left; color: #0B0C0E; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; }
.blog-details thead th { border-top: 1px solid #cccccc; line-height: 20px; }
.blog-details table th:first-child, .blog-details table td:first-child { border-left: 1px solid #cccccc; }
.blog-details table td { padding: 16px; font-weight: 400; font-size: 16px; line-height: 24px; color: #34373C; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; }
.blog-details thead tr:first-child th:first-child { border-top-left-radius: 12px; }
.blog-details thead tr:first-child th:last-child { border-top-right-radius: 12px; }
.blog-details tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.blog-details tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

/* FAQ item shortcode */
.faq-question-answer { border-bottom: 1px solid #E6E6E6; }
.faq-question-answer:last-child { border-bottom: none; }
.faq-question-answer:first-of-type { margin-top: 16px; }
.faq-question-answer a { color: #000000; font-weight: 500; border-bottom: 1.3px solid #d2d2d2; }
.faq-question-answer a:hover { color: #000000; border-bottom: 1.3px solid #000000; }

/* Image slider */
.blog-details .slider-wrapper { margin-bottom: 0px; }
.blog-details .slider-main-container { margin-bottom: 24px; }
.blog-details .slider-main-container .slider-main-image { margin-top: 0px; }
.blog-details .slider-thumbnails-container { gap: 8px; display: flex; align-items: center; margin-top: 12px; }
.blog-details .slider-thumbnails-wrapper { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.blog-details .slider-thumb img { width: 163px; height: 83px; object-fit: cover; margin-top: 0; border-radius: 3px; }
.blog-details button.slider-nav-button { background: rgba(0,0,0,0.08); border-radius: 4px; box-shadow: none; width: 28px; height: 28px; padding: 6px; flex-shrink: 0; }
.blog-details .slider-thumb:focus, .blog-details .slider-thumb.active { outline: 2px solid #171717; border-radius: 4px; }

/* YouTube embed */
.youtube-video-wrapper { position: relative; cursor: pointer; }
.youtube-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 10; }
.youtube-play-btn img { width: 64px; height: 64px; }
.youtube-player { position: absolute; inset: 0; z-index: 20; }
.youtube-video-thumb { margin-top: 0; }

/* ---------------------------------------------------------------------- */
/* Mobile overrides (matches Testdino's @media max-width: 768px block)    */
/* ---------------------------------------------------------------------- */
@media (max-width: 825px) {
    .author-section-image { margin: 0 auto; }
}
@media (max-width: 768px) {
    pre { white-space: pre-wrap; word-break: break-word; }
    .wp-video { margin-top: 24px; }
    .faq-question-answer:first-of-type { margin-top: 0; }
    .blog-details img.quote-icon { width: 24px; height: 24px; }
    .blog-details img.cta-dino-image { right: -12px; bottom: 0; top: auto; }

    .blog-details .blog-cta-title { font-size: 20px; }
    .blog-details .blog-cta-inner { padding: 24px; gap: 16px; }
    .blog-details .blog-cta-description, .blog-details .blog-cta-description p { margin-top: 8px; font-size: 14px; line-height: 26px; }
    .blog-details .blog-cta-button { margin-top: 24px; }
    .blog-details .blog-cta-section { margin-top: 32px; }

    .blog-details .blog-tips-banner, .blog-details .blog-info-banner { padding: 16px; margin-top: 16px; }
    .blog-details .blog-tips-title { font-size: 18px; line-height: 24px; }
    .blog-details .blog-tips-content p, .blog-details .blog-info-description p, .blog-details .blog-info-description a,
    .blog-details .blog-tips-content li, .blog-details .blog-info-description li { font-size: 14px; line-height: 26px; }
    .blog-details .blog-tips-content ul, .blog-details .blog-tips-content ol,
    .blog-details .blog-info-description ul, .blog-details .blog-info-description ol { padding-left: 0; }
    .blog-details .blog-tips-content li { margin-bottom: 8px; }
    .blog-info-icon { margin-top: 0 !important; }

    .blog-details .blog-notice-block { padding: 16px; margin-top: 12px; }
    .blog-details .blog-notice-content, .blog-details .blog-notice-content p { font-size: 16px; line-height: 30px; }

    .blog-details .blog-code-panel { margin-top: 24px; }
    .blog-details .code-copy-btn img { margin-top: 0px; }

    .blog-details img.author-section-image { margin-top: 0px; display: inline; margin-bottom: 24px; }
    .blog-details p.author-bio { font-weight: 400; font-size: 14px; line-height: 100%; letter-spacing: 0px; margin-top: 0; }
    .blog-details p.author-details { color: #171717; font-weight: 400; font-size: 16px; line-height: 26px; letter-spacing: 0px; }

    .blog-details img { margin-top: 24px; }

    .blog-details .blog-tip-block { margin-top: 24px; padding: 16px; }
    .blog-details .blog-tip-title { font-size: 20px; }
    .blog-details .blog-tip-content p { font-size: 14px; line-height: 24px; }

    .blog-details .blog-quote-block span, .blog-details .blog-testimonial-block span { font-size: 18px; line-height: 28px; }

    .blog-details p { margin-top: 16px; font-size: 16px; line-height: 26px; word-wrap: break-word; }

    .blog-details h2 { margin-top: 32px; margin-bottom: 0px; font-size: 22px; line-height: 26px; font-weight: 600; }
    .blog-details h3 { margin-top: 24px; margin-bottom: 0px; font-size: 20px; line-height: 26px; font-weight: 600; }
    .blog-details h4 { margin-top: 20px; margin-bottom: 0px; font-size: 18px; line-height: 26px; font-weight: 600; }
    .blog-details h5 { margin-top: 20px; font-size: 16px; line-height: normal; }

    .blog-details ul li, .blog-details ol li { margin-bottom: 8px; margin-left: 20px; font-size: 16px; }
    .blog-details ul, .blog-details ol { margin-top: 16px; font-size: 15px; line-height: 24px; margin-left: 8px; }

    .blog-details table { display: block; width: 100%; overflow-x: auto; table-layout: fixed; }
    .blog-details th, .blog-details td { width: 50%; min-width: 50%; }

    .blog-details .slider-main-container { padding: 0px; margin-bottom: 8px; }
    .blog-details .slider-thumb img { object-fit: contain; height: auto; margin-top: 0px; }
    .blog-details .slider-main-container .slider-main-image { margin-bottom: 0px; width: 100%; margin-top: 0px; }
}
