/* ============================================================
   SINGLE POST — Redesigned (authencio-inspired)
   ============================================================ */


/* ----------------------------------------------------------
   0. Inter font
   ---------------------------------------------------------- */

.single body,
.single h1, .single h2, .single h3, .single h4,
.single p, .single li, .single td, .single a,
.single .gd-section, .single .single-content {
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ----------------------------------------------------------
   1. Header — white background, left-aligned
   ---------------------------------------------------------- */

.single .gd-section.header-gray {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f2f5;
}

.single .gd-section.header-gray h1,
.single .gd-section.header-gray p {
    text-align: left !important;
}

.single .header-internal .single-post {
    margin-top: 24px !important;
}


/* ----------------------------------------------------------
   2. Top nav row: breadcrumbs + back link
   ---------------------------------------------------------- */

.single .header-internal .single-post .post-top-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

/* Breadcrumbs */
.single .header-internal .single-post .breadcrumbs {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.single .header-internal .single-post .breadcrumbs a {
    color: #364153 !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.single .header-internal .single-post .breadcrumbs a:hover {
    color: #2563eb !important;
}

.single .header-internal .single-post .breadcrumbs .bc-sep {
    color: #9ca3af;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-right: 6px;
    margin-left: 0;
}

.single .header-internal .single-post .breadcrumbs .bc-current {
    color: #9ca3af;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Back to Blog link */
.single .header-internal .single-post .back-to-blog {
    display: inline-flex;
    align-items: center;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #2563eb !important;
    text-decoration: none;
    gap: 4px;
}

.single .header-internal .single-post .back-to-blog:hover {
    text-decoration: underline;
}


/* ----------------------------------------------------------
   3. Header flex row — image LEFT (~46%), content RIGHT
   ---------------------------------------------------------- */

.single .header-internal .single-post .single-header {
    gap: 52px !important;
    align-items: flex-start !important;
}

/* Featured image */
.single .header-internal .single-post .post-thumbnail.right {
    flex: 0 0 46% !important;
    max-width: 46% !important;
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
}

.single .header-internal .single-post .post-thumbnail.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Content column */
.single .header-internal .single-post .left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
}


/* ----------------------------------------------------------
   4. Category pill
      authencio: light blue bg, blue text, rounded, ~13px
   ---------------------------------------------------------- */

.single .header-internal .single-post .post-category-pill {
    display: inline-flex;
    margin-bottom: 16px;
}

.single .header-internal .single-post .post-category-pill a {
    display: inline-block;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2563eb !important;
    background-color: #eff6ff !important;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none;
    line-height: 1.5;
}

.single .header-internal .single-post .post-category-pill a:hover {
    background-color: #dbeafe !important;
}


/* ----------------------------------------------------------
   5. H1
      authencio: ~36px, bold, #111827
   ---------------------------------------------------------- */

.single .header-internal .single-post h1.title {
    font-size: 32px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    filter: none !important;
    text-shadow: none !important;
}

/* Equal 16px gap between all header content blocks */
.single .header-internal .single-post .post-excerpt {
    margin-bottom: 24px !important;
}

.single .header-internal .single-post .post-author-row {
    margin-bottom: 24px !important;
}

.single .header-internal .single-post .post-tags {
    margin-bottom: 16px !important;
}


/* ----------------------------------------------------------
   6. Excerpt
      authencio: ~16px, gray-600 #4b5563, leading-relaxed
   ---------------------------------------------------------- */

.single .header-internal .single-post .post-excerpt {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #4b5563 !important;
    font-weight: 400 !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    margin-bottom: 0;
}

.single .header-internal .single-post .post-excerpt p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #364153 !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
}


/* ----------------------------------------------------------
   7. Author row
      avatar 32px circle + name + date icon + date + time icon + read time
   ---------------------------------------------------------- */

.single .header-internal .single-post .post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.single .header-internal .single-post .post-author-row img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.single .header-internal .single-post .author-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Vertical divider */
.single .header-internal .single-post .author-meta-sep {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: #d1d5db;
    flex-shrink: 0;
    margin-left: 5px;
    margin-right: 5px;
}

/* Date + read time — same style as author name */
.single .header-internal .single-post .post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-family: 'Inter', sans-serif !important;
}

.single .header-internal .single-post .post-meta-item i {
    font-size: 14px;
    color: #6b7280;
    line-height: 1;
}


/* ----------------------------------------------------------
   8. Tags
      authencio: small gray-border pills, #hashtag prefix, ~12-13px
   ---------------------------------------------------------- */

.single .header-internal .single-post .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.single .header-internal .single-post .post-tag {
    display: inline-block;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none !important;
    line-height: 1.5;
    transition: border-color 0.15s, color 0.15s;
}

.single .header-internal .single-post .post-tag:hover {
    border-color: #2563eb;
    color: #2563eb !important;
}


/* ----------------------------------------------------------
   9. Share buttons (below tags)
   ---------------------------------------------------------- */

/* Social share icons row */
.single .header-internal .single-post .share-buttons {
    margin-top: 4px;
}

.single .header-internal .single-post .post-share-icons {
    padding: 0;
    justify-content: flex-start !important;
}

.single .header-internal .single-post .post-share-icons a {
    margin-right: 14px;
    color: #9ca3af;
    width: auto;
    height: auto;
}

.single .header-internal .single-post .post-share-icons a:hover {
    color: #2563eb;
}

.single .header-internal .single-post .post-share-icons a i::before {
    font-size: 17px !important;
}

/* AI share buttons — styled card */
.single .header-internal .single-post .ayudawp-share-buttons {
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #f8faff !important;
    border: 1px solid #e0e9ff !important;
    border-radius: 10px !important;
    display: block !important;
}

.single .header-internal .single-post .ayudawp-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 10px !important;
    display: block;
    font-family: 'Inter', sans-serif !important;
}

.single .header-internal .single-post .ayudawp-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px !important;
}

.single .header-internal .single-post .ayudawp-share-buttons.minimal .ayudawp-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.single .header-internal .single-post .ayudawp-share-buttons.minimal .ayudawp-share-btn:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.single .header-internal .single-post .ayudawp-icon {
    width: 15px !important;
    height: 15px !important;
}


/* ----------------------------------------------------------
   10. Content body — sidebar LEFT, article RIGHT
   ---------------------------------------------------------- */

.single-content {
    padding-top: 52px !important;
    padding-bottom: 100px !important;
}

.single-content .single-body {
    align-items: flex-start;
    gap: 48px;
}

/* Sidebar wrapper — no background, just stacks blocks */
.single-content .sidebar {
    order: -1;
    flex: 0 0 256px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 18px;
    background: transparent !important;
    top: 90px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each widget = separate card */
.single-content .sidebar .bs-widget,
.single-content .sidebar .widget_block {
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* TOC widget (whichever block has .lwptoc) — white bg, border */
.single-content .sidebar .bs-widget:has(.lwptoc),
.single-content .sidebar .widget_block:has(.lwptoc) {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    padding-bottom: 4px !important;
}

/* TOC toggle button */
.single-content .sidebar .toc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.single-content .sidebar .toc-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.single-content .sidebar .toc-collapsed .toc-toggle-label {
    color: #676767 !important;
}

/* Arrow via gd-site icon — rotated 90deg to point down */
.single-content .sidebar .toc-toggle-arrow {
    font-size: 11px;
    color: #6b7280;
    display: inline-block;
    transform: rotate(-180deg);
    transition: transform 0.2s ease;
    line-height: 1;
}

/* When collapsed — point up (rotate -90deg) */
.single-content .sidebar .toc-toggle-btn.toc-collapsed .toc-toggle-arrow {
    transform: rotate(0deg);
}

/* lwptoc inner content */
.single-content .sidebar .lwptoc_i {
    padding: 12px 16px 14px !important;
    background: #ffffff !important;
}

.single-content .sidebar .lwptoc_header {
    display: none !important;
}

.single-content .sidebar .lwptoc {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.single-content .sidebar .lwptoc_item a {
    font-size: 13px !important;
    color: #4b5563 !important;
    line-height: 1.45;
    font-family: 'Inter', sans-serif !important;
}

.single-content .sidebar .lwptoc_item a:hover {
    color: #2563eb !important;
}

.single-content #block-8 .lwptoc_item a {
    color: #4b5563 !important;
}

.single-content .sidebar .lwptoc_item {
    margin-top: 10px !important;
}

.single-content .sidebar .lwptoc_itemWrap .lwptoc_itemWrap .lwptoc_item a {
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* REMOVE SEPARATOR FROM SIDEBAR */

.single-content .sidebar #block-11 {
    display: none;
}

/* CTA banner block — gray bg, same border */
.single-content .sidebar .cta-widget {
    background: #f7f8fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 18px !important;
}

.single-content .sidebar .cta-widget .cta-widget-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.single-content .sidebar .cta-widget .cta-widget-desc {
    color: #4b5563 !important;
    font-size: 15px !important;
    margin-top: 12px !important;
}

.single-content .sidebar .cta-widget .cta-widget-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    margin-top: 14px !important;
    height: 34px !important;
    line-height: 34px !important;
}

.single-content .post-body {
    flex: 1;
    min-width: 0;
}


/* ----------------------------------------------------------
   11. Article typography
   ---------------------------------------------------------- */

.single-content .post-body p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #364153 !important;
    font-weight: 400 !important;
    margin-top: 18px !important;
}

.single-content .post-body h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 48px !important;
    margin-bottom: 10px !important;
}

.single-content .post-body h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 36px !important;
    margin-bottom: 8px !important;
}

.single-content .post-body h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-top: 28px !important;
    margin-bottom: 6px !important;
}

.single-content .post-body ul,
.single-content .post-body ol {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    padding-left: 22px !important;
}

.single-content .post-body li {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #364153 !important;
    font-weight: 400 !important;
    margin-top: 8px !important;
}

.single-content .post-body td,
.single-content .post-body th {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #364153 !important;
    border-color: #e3e3e3 !important;
}

.single-content .post-body th {
    font-weight: 600 !important;
    color: #111827 !important;
}

.single-content .post-body img {
    border-radius: 10px;
    border-color: #e5e7eb;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.single-content .post-body a,
.single-content .post-body .gd-link {
    color: #2563eb !important;
    font-weight: 500;
}

.single-content .post-body a:hover {
    text-decoration: underline;
}

.single-content .post-body table {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}


/* ----------------------------------------------------------
   12. Mobile
   ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .single-content .sidebar {
        display: none !important;
    }
}

@media (max-width: 820px) {
    .single .header-internal .single-post .single-header {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .single .header-internal .single-post .post-thumbnail.right {
        flex: none !important;
        max-width: 100% !important;
        width: 100%;
    }

    .single .header-internal .single-post h1.title {
        font-size: 26px !important;
    }

    .single-content .post-body p,
    .single-content .post-body li {
        font-size: 15px !important;
    }

    .single-content .post-body h2 {
        font-size: 21px !important;
    }

    .single-content .post-body h3 {
        font-size: 18px !important;
    }
}


/* ----------------------------------------------------------
   Recent Articles
   ---------------------------------------------------------- */

.single-recent-posts {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #f0f2f5;
}

.single-recent-posts .gd-block {
    padding-top: 56px;
    padding-bottom: 72px;
}

.single-recent-posts .recent-posts-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 28px !important;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.single-recent-posts .recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.single-recent-posts .recent-post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    background: #fff;
}

.single-recent-posts .recent-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.single-recent-posts .recent-post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.single-recent-posts .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.single-recent-posts .recent-post-card:hover .recent-post-thumb img {
    transform: scale(1.03);
}

.single-recent-posts .recent-post-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.single-recent-posts .recent-post-cat {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif !important;
}

.single-recent-posts .recent-post-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.single-recent-posts .recent-post-card:hover .recent-post-name {
    color: #2563eb !important;
}

.single-recent-posts .recent-post-date {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: auto;
}

@media (max-width: 820px) {
    .single-recent-posts .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ----------------------------------------------------------
   Mobile fixes
   ---------------------------------------------------------- */

@media (max-width: 820px) {
    /* Breadcrumbs: left align on mobile */
    .single .header-internal .single-post .post-top-nav,
    .single .header-internal .single-post .breadcrumbs {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

/* CTA block: title always centered */
.cta-block h2 {
    text-align: center !important;
}
