/* ============================================
   FRESH SINGLE POST
   Based on Stitch Design 5ab6f0b9
   ============================================ */

:root {
    --sp-primary: #004A99;
    --sp-accent: #E30613;
    --sp-surface: #F8F9FA;
    --sp-radius: 12px;
    --sp-shadow: 0 4px 20px -2px rgba(0, 74, 153, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
    --sp-shadow-hover: 0 8px 30px -4px rgba(0, 74, 153, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

/* ── Page Base ── */
.fresh-single-post {
    background: var(--sp-surface);
}

/* ── Breadcrumb ── */
.fresh-sp-breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.fresh-sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fresh-sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.fresh-sp-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.fresh-sp-breadcrumb a:hover {
    color: var(--sp-primary);
}

.fresh-sp-breadcrumb .current {
    color: #6b7280;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Main Grid ── */
.fresh-sp-main {
    padding: 48px 0;
}

.fresh-sp-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
}

/* ── Content Column ── */
.fresh-sp-content {
    min-width: 0;
}

/* ── Header Section ── */
.fresh-sp-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.fresh-sp-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sp-primary);
    border-left: 3px solid var(--sp-primary);
    padding-left: 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.fresh-sp-title {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: var(--sp-primary) !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
}

.fresh-sp-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fresh-sp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.fresh-sp-meta-item .material-symbols-outlined {
    font-size: 16px;
}

/* ── Featured Image ── */
.fresh-sp-featured-image {
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    margin-bottom: 32px;
}

.fresh-sp-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Article Content ── */
.fresh-sp-article.content-area {
    margin-bottom: 32px;
}

.fresh-sp-article.content-area p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5em;
}

.fresh-sp-article.content-area h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--sp-primary) !important;
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
    line-height: 1.3 !important;
}

.fresh-sp-article.content-area h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--sp-primary) !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.6em !important;
    line-height: 1.35 !important;
}

.fresh-sp-article.content-area h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.5em !important;
}

.fresh-sp-article.content-area ul,
.fresh-sp-article.content-area ol {
    padding-left: 24px;
    margin-bottom: 1.5em;
    color: #4b5563;
}

.fresh-sp-article.content-area li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.fresh-sp-article.content-area blockquote {
    font-style: italic;
    font-weight: 500;
    color: #374151;
    background: #f8f9fa;
    padding: 24px;
    border-radius: var(--sp-radius);
    border-left: 4px solid var(--sp-primary);
    margin: 2em 0;
}

.fresh-sp-article.content-area img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.fresh-sp-article.content-area a {
    color: var(--sp-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fresh-sp-article.content-area a:hover {
    color: #003575;
}

/* ══════════════════════════════════════
   PRODUCT RECOMMENDATION CARDS (Inline)
   ══════════════════════════════════════ */

.fresh-sp-products-inline {
    margin: 32px 0;
    position: relative;
}

.fresh-sp-products-slider {
    display: flex;
    gap: 16px;
    overflow: hidden;
    align-items: stretch;
}

.fresh-sp-product-card {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
}

.fresh-sp-product-card-inner {
    flex: 1;
}

/* 2 columns when 2+ products */
.fresh-sp-products-inline[data-count="2"] .fresh-sp-product-card,
.fresh-sp-products-inline[data-count="3"] .fresh-sp-product-card,
.fresh-sp-products-inline[data-count="4"] .fresh-sp-product-card,
.fresh-sp-products-inline[data-count="5"] .fresh-sp-product-card {
    flex: 0 0 calc(50% - 8px);
}

/* 1 product = full width */
.fresh-sp-products-inline[data-count="1"] .fresh-sp-product-card {
    flex: 0 0 100%;
}

.fresh-sp-product-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #EFF6FF;
    border-radius: var(--sp-radius);
    border: 1px solid #DBEAFE;
    transition: box-shadow 0.3s;
}

.fresh-sp-product-card-inner:hover {
    box-shadow: var(--sp-shadow);
}

.fresh-sp-product-thumb {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--sp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

.fresh-sp-product-thumb img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 0 !important;
}

.fresh-sp-product-info h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--sp-primary) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
}

.fresh-sp-product-info p {
    display: none !important;
}

.fresh-sp-product-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--sp-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.fresh-sp-product-btn:hover {
    background: #003575;
    color: #fff !important;
}

/* Slider nav arrows */
.fresh-sp-slider-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.fresh-sp-slider-prev,
.fresh-sp-slider-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.fresh-sp-slider-prev:hover,
.fresh-sp-slider-next:hover {
    background: var(--sp-primary);
    color: #fff;
    border-color: var(--sp-primary);
}

.fresh-sp-slider-prev .material-symbols-outlined,
.fresh-sp-slider-next .material-symbols-outlined {
    font-size: 18px;
}

/* ── Share Section ── */
.fresh-sp-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid #f1f5f9;
}

.fresh-sp-share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.fresh-sp-share-icons {
    display: flex;
    gap: 8px;
}

.fresh-sp-share-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.fresh-sp-share-icons a:hover {
    background: var(--sp-primary);
    color: #fff;
    border-color: var(--sp-primary);
}

.fresh-sp-share-icons a .material-symbols-outlined {
    font-size: 16px;
}

/* ── Author Box ── */
.fresh-sp-author {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #fff;
    padding: 32px;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.fresh-sp-author-avatar {
    flex-shrink: 0;
}

.fresh-sp-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.fresh-sp-author-info h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--sp-primary) !important;
    margin: 0 0 4px 0 !important;
}

.fresh-sp-author-info p {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    font-style: italic;
    margin: 0 !important;
}

/* ── Post Navigation ── */
.fresh-sp-postnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 40px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 32px;
}

.fresh-sp-postnav-item a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.fresh-sp-postnav-next a {
    text-align: right;
    align-items: flex-end;
}

.fresh-sp-postnav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.fresh-sp-postnav-label .material-symbols-outlined {
    font-size: 14px;
}

.fresh-sp-postnav-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.fresh-sp-postnav-item a:hover .fresh-sp-postnav-label,
.fresh-sp-postnav-item a:hover .fresh-sp-postnav-title {
    color: var(--sp-primary);
}

/* ── Comments Section ── */
.fresh-sp-comments {
    margin-top: 32px;
}

.fresh-sp-comments h3,
.fresh-sp-comments .comments-title,
.fresh-sp-comments #reply-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--sp-primary) !important;
    margin-bottom: 24px !important;
}

.fresh-sp-comments .comment-form {
    background: #fff;
    padding: 32px;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.fresh-sp-comments .comment-notes {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

.fresh-sp-comments label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    display: block;
    margin-bottom: 6px;
}

.fresh-sp-comments input[type="text"],
.fresh-sp-comments input[type="email"],
.fresh-sp-comments input[type="url"],
.fresh-sp-comments textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--sp-surface);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.fresh-sp-comments input:focus,
.fresh-sp-comments textarea:focus {
    border-color: var(--sp-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.1);
}

.fresh-sp-comments .form-submit input[type="submit"] {
    background: var(--sp-primary) !important;
    color: #fff !important;
    padding: 12px 32px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.fresh-sp-comments .form-submit input[type="submit"]:hover {
    background: #003575 !important;
}

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */

.fresh-sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Widget base */
.fresh-sp-widget {
    background: #fff;
    padding: 24px;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.fresh-sp-widget-title {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sp-primary) !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── TOC Widget (FOX TOC override) ── */

/* Reset the main container */
.fresh-sp-toc-widget .ft-toc-placeholder,
.fresh-sp-toc-widget .ft-toc-main {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
}

/* Hide the FOX TOC header bar (dark bar with title + icons) */
.fresh-sp-toc-widget .ft-toc-tit {
    display: none !important;
}

/* Hide close button */
.fresh-sp-toc-widget .ft-toc-close {
    display: none !important;
}

/* Scroll area */
.fresh-sp-toc-widget .ft-toc-scrol {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset the ordered list */
.fresh-sp-toc-widget #ft-toc-list,
.fresh-sp-toc-widget .ft-toc-scrol ol,
.fresh-sp-toc-widget .ft-toc-scrol ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    counter-reset: toc-top;
    background: none !important;
}

/* Level 1 items */
.fresh-sp-toc-widget li.ft-toc-level-1 {
    counter-increment: toc-top;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    border: none !important;
    background: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-1>a {
    display: flex !important;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: color 0.2s;
    line-height: 1.5 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-1>a span {
    display: contents;
}

.fresh-sp-toc-widget li.ft-toc-level-1>a::before {
    content: counter(toc-top) "." !important;
    color: var(--sp-primary);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 20px;
}

.fresh-sp-toc-widget li.ft-toc-level-1>a:hover {
    color: var(--sp-primary) !important;
}

/* Level 2 items (sub-items) */
.fresh-sp-toc-widget li.ft-toc-level-2 {
    padding: 0 0 0 28px !important;
    margin: 0 0 10px 0 !important;
    border: none !important;
    background: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-2>a {
    display: flex !important;
    gap: 6px;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.2s;
    line-height: 1.5 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-2>a span {
    display: contents;
}

.fresh-sp-toc-widget li.ft-toc-level-2>a::before {
    content: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-2>a:hover {
    color: var(--sp-primary) !important;
}

/* Level 3 items */
.fresh-sp-toc-widget li.ft-toc-level-3 {
    padding: 0 0 0 48px !important;
    margin: 0 0 8px 0 !important;
    background: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-3>a {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    padding: 0 !important;
    background: none !important;
}

.fresh-sp-toc-widget li.ft-toc-level-3>a:hover {
    color: var(--sp-primary) !important;
}

/* Active TOC item state */
.fresh-sp-toc-widget li>a.active,
.fresh-sp-toc-widget li.active>a {
    color: var(--sp-primary) !important;
    font-weight: 700 !important;
}

/* Remove any default bullet/number styling the plugin adds */
.fresh-sp-toc-widget li::before {
    content: none !important;
    display: none !important;
}

/* Divider between level-1 groups */
.fresh-sp-toc-widget li.ft-toc-level-1+li.ft-toc-level-1 {
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

/* ── Sidebar Products ── */
.fresh-sp-sidebar-product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fresh-sp-sidebar-product {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.fresh-sp-sidebar-product:hover {
    opacity: 0.85;
}

.fresh-sp-sidebar-product-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sp-surface);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.fresh-sp-sidebar-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fresh-sp-sidebar-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fresh-sp-sidebar-product-info h4 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    text-transform: uppercase;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.fresh-sp-sidebar-product:hover .fresh-sp-sidebar-product-info h4 {
    color: var(--sp-primary) !important;
}

.fresh-sp-sidebar-product-price {
    font-size: 10px;
    font-weight: 700;
    color: var(--sp-accent);
}

/* ── Newsletter CTA ── */
.fresh-sp-newsletter {
    background: var(--sp-accent) !important;
    color: #fff !important;
    padding: 32px 24px !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.fresh-sp-newsletter::after {
    content: '';
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 128px;
    height: 128px;
    opacity: 0.1;
    border-radius: 50%;
    background: #fff;
}

.fresh-sp-newsletter-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 8px 0 !important;
}

.fresh-sp-newsletter-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.fresh-sp-newsletter-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.fresh-sp-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fresh-sp-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.fresh-sp-newsletter-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: var(--sp-accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    text-align: center;
}

.fresh-sp-newsletter-btn:hover {
    background: var(--sp-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Mobile TOC: hidden on desktop */
.fresh-sp-toc-mobile {
    display: none;
}

@media (max-width: 991px) {
    .fresh-sp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fresh-sp-sidebar {
        position: static;
    }

    /* Show mobile TOC under title */
    .fresh-sp-toc-mobile {
        display: block;
        margin: 0 0 24px 0;
    }

    /* Hide sidebar TOC on mobile (it's already shown inline) */
    .fresh-sp-sidebar>.fresh-sp-toc-widget {
        display: none;
    }
}

@media (max-width: 768px) {
    .fresh-sp-title {
        font-size: 24px !important;
    }

    .fresh-sp-meta {
        gap: 12px;
    }

    .fresh-sp-author {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .fresh-sp-postnav {
        grid-template-columns: 1fr;
    }

    .fresh-sp-postnav-next a {
        text-align: left;
        align-items: flex-start;
    }

    .fresh-sp-products-inline[data-count="2"] .fresh-sp-product-card,
    .fresh-sp-products-inline[data-count="3"] .fresh-sp-product-card,
    .fresh-sp-products-inline[data-count="4"] .fresh-sp-product-card,
    .fresh-sp-products-inline[data-count="5"] .fresh-sp-product-card {
        flex: 0 0 100%;
    }

    .fresh-sp-product-card-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .fresh-sp-comments .comment-form {
        padding: 20px;
    }

    .fresh-sp-container {
        padding: 0 16px;
    }

    .fresh-sp-main {
        padding: 24px 0;
    }
}