/* ==========================================================================
   css/guide-single.css - Majida Ameer Textiles Single Guide Article Page
   Refined luxury editorial layout, typography, tables, and product showcase
   ========================================================================== */

/* Reading Progress Bar (Top of Screen) */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sigcolor, #014661) 0%, #B38E5D 100%);
    box-shadow: 0 0 10px rgba(1, 70, 97, 0.4);
    transition: width 0.08s ease-out;
}

/* Master Article Wrapper */
.guide-single-page {
    background: #FFFFFF;
    padding: 24px 0 70px 0;
}

/* Increased max-width container as requested */
.guide-article-container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* Section Header Styles in Guide Page (.section-intro, .section-title, .section-desc) */
.guide-single-page .section-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}

.guide-single-page .section-title {
    color: var(--sigcolor, #014661);
    font-size: 32px;
    font-family: var(--font1);
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: -0.1rem;
    margin: 0;
    line-height: 1.15;
}

.guide-single-page .section-desc {
    font-family: var(--font1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary-color, #718096);
    width: 100%;
    max-width: 640px;
    text-align: left;
    margin: 0;
}

/* ==========================================================================
   ARTICLE HERO HEADER
   ========================================================================== */
.guide-hero-header {
    margin-bottom: 30px;
}

/* Metadata Row */
.guide-meta-stats-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 18px;
}

.guide-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font1);
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    background: #F8FAFC;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
}

.guide-meta-pill svg {
    width: 13px;
    height: 13px;
    color: var(--sigcolor, #014661);
}

.guide-meta-pill.pill-verified {
    color: var(--sigcolor, #014661);
    background: rgba(1, 70, 97, 0.06);
    border-color: rgba(1, 70, 97, 0.18);
    font-weight: 600;
}

/* Main Article Title */
.guide-article-h1 {
    font-family: var(--font1);
    font-size: 36px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 18px 0;
}

/* Editorial Lead Excerpt */
.guide-lead-excerpt {
    font-family: var(--font1);
    font-size: 15px;
    line-height: 1.68;
    color: #1E293B;
    background: rgba(1, 70, 97, 0.03);
    border-left: 4px solid var(--sigcolor, #014661);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.guide-lead-excerpt p {
    margin: 0;
}

/* Social & Utility Share Bar */
.guide-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: #FAFAFA;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    margin-bottom: 26px;
}

.guide-action-bar-label {
    font-family: var(--font1);
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-family: var(--font1);
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.guide-action-btn:hover {
    border-color: var(--sigcolor, #014661);
    color: var(--sigcolor, #014661);
    background: #F8FAFC;
}

.guide-action-btn svg {
    width: 14px;
    height: 14px;
}

.guide-action-btn.btn-wa {
    color: #128C7E;
}

.guide-action-btn.btn-wa:hover {
    border-color: #25D366;
    color: #075E54;
    background: #F0FDF4;
}

/* Featured Hero Cover Image */
.guide-featured-cover-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    background: #F1F5F9;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-featured-cover-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Quick Table of Contents / Quick Jump Bar */
.guide-toc-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 3px solid var(--sigcolor, #014661);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 30px;
}

.guide-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.guide-toc-title {
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sigcolor, #014661);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guide-toc-list li {
    font-family: var(--font1);
    font-size: 13px;
    line-height: 1.45;
}

.guide-toc-list a {
    color: #334155;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.guide-toc-list a:hover {
    color: var(--sigcolor, #014661);
    text-decoration: underline;
}

.guide-toc-list a::before {
    content: "•";
    color: var(--sigcolor, #014661);
    font-weight: bold;
    font-size: 13px;
}

/* ==========================================================================
   ARTICLE BODY CONTENT TYPOGRAPHY & ELEMENTS
   Decreased font size and line height as requested
   ========================================================================== */
.guide-article-body {
    font-family: var(--font1);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-primary-color, #373737);
}

.guide-article-body h2 {
    font-family: var(--font1);
    font-size: 21px;
    font-weight: 700;
    color: var(--sigcolor, #014661);
    margin: 36px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1.5px solid rgba(1, 70, 97, 0.12);
    letter-spacing: -0.015em;
    scroll-margin-top: 100px;
}

.guide-article-body h2:first-child {
    margin-top: 0;
}

.guide-article-body h3 {
    font-family: var(--font1);
    font-size: 17px;
    font-weight: 600;
    color: var(--sigcolor, #014661);
    margin: 26px 0 10px 0;
    scroll-margin-top: 100px;
}

.guide-article-body h4 {
    font-family: var(--font1);
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin: 20px 0 8px 0;
}

.guide-article-body p {
    margin: 0 0 16px 0;
}

.guide-article-body strong {
    font-weight: 600;
    color: #0F172A;
}

.guide-article-body em {
    font-style: italic;
    color: #475569;
}

.guide-article-body a {
    color: var(--sigcolor, #014661);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s ease;
}

.guide-article-body a:hover {
    opacity: 0.8;
}

.guide-article-body ul,
.guide-article-body ol {
    margin: 14px 0 22px 22px;
    padding: 0;
    line-height: 1.7;
}

.guide-article-body li {
    margin-bottom: 8px;
    padding-left: 2px;
}

.guide-article-body li::marker {
    color: var(--sigcolor, #014661);
    font-weight: 600;
}

.guide-article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #F8FAFC;
    border-left: 4px solid var(--sigcolor, #014661);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #334155;
    font-size: 14px;
}

.guide-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.guide-article-body hr {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 32px 0;
}

.guide-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   TABLE FORMATTING (FIXED & REFINED WITH SIGCOLOR)
   ========================================================================== */
.guide-table-wrapper {
    margin: 24px 0 28px 0;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.guide-table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.guide-content-table,
.guide-article-body table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font1);
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
}

.guide-content-table thead th,
.guide-article-body table thead th,
.guide-article-body table th {
    background: var(--sigcolor, #014661);
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 11px 16px;
    border: none;
    white-space: nowrap;
}

.guide-content-table tbody td,
.guide-article-body table tbody td,
.guide-article-body table td {
    padding: 11px 16px;
    border-bottom: 1px solid #EDF2F7;
    color: #334155;
    vertical-align: middle;
}

.guide-content-table tbody tr:last-child td,
.guide-article-body table tbody tr:last-child td {
    border-bottom: none;
}

.guide-content-table tbody tr:nth-child(even),
.guide-article-body table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.guide-content-table tbody tr:hover,
.guide-article-body table tbody tr:hover {
    background-color: rgba(1, 70, 97, 0.04);
}

.guide-content-table tbody td:first-child,
.guide-article-body table tbody td:first-child {
    font-weight: 600;
    color: var(--sigcolor, #014661);
}

.guide-content-table tbody td:nth-child(2),
.guide-article-body table tbody td:nth-child(2) {
    font-weight: 500;
    color: #0F172A;
}

.guide-content-table tbody td:last-child,
.guide-article-body table tbody td:last-child {
    font-family: var(--font1);
    font-weight: 500;
    color: #475569;
}

/* Table Mobile Swipe Hint */
.guide-table-scroll-hint {
    display: none;
    padding: 6px 14px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    font-family: var(--font1);
    font-size: 11px;
    color: #94A3B8;
    text-align: right;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* ==========================================================================
   RECOMMENDED BEDDING PRODUCTS SHOWCASE
   (Styled like product tabs section in index, no tabs)
   ========================================================================== */
.guide-single-page .our-collection-section {
    padding: 44px 0 20px 0;
    border-top: 1px solid #E2E8F0;
    margin-top: 48px;
    background: transparent;
}

.guide-single-page .our-collection-section .products-here {
    margin-top: 12px;
}

/* ==========================================================================
   REFINED MAJIDA AMEER TEXTILES • EDITORIAL TEAM SECTION (COMPACT & SHORT)
   ========================================================================== */
.guide-editorial-team-card {
    margin: 28px 0 20px 0;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 3.5px solid var(--sigcolor, #014661);
    border-radius: 8px;
    padding: 14px 18px;
}

.guide-editorial-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.guide-editorial-eyebrow {
    font-family: var(--font1);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sigcolor, #014661);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.guide-editorial-eyebrow svg {
    width: 13px;
    height: 13px;
}

.guide-editorial-sep {
    color: #CBD5E1;
    font-size: 11px;
}

.guide-editorial-title {
    font-family: var(--font1);
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.guide-editorial-bio {
    font-family: var(--font1);
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 9px 0;
}

.guide-editorial-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-editorial-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #014661;
    color: #FFFFFF;
    border-radius: 5px;
    font-family: var(--font1);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.guide-editorial-wa-btn:hover {
    background: #02364b;
}

.guide-editorial-wa-btn svg {
    width: 14px;
    height: 14px;
}

.guide-editorial-tag {
    font-family: var(--font1);
    font-size: 11.5px;
    color: #64748B;
}

/* ==========================================================================
   MORE GUIDES CATALOG (BOTTOM OF PAGE)
   ========================================================================== */
.guide-more-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
}

/* ==========================================================================
   TOAST NOTIFICATION (COPY LINK POPUP)
   ========================================================================== */
.guide-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .guide-single-page {
        padding: 16px 0 50px 0;
    }

    .guide-article-h1 {
        font-size: 25px;
        line-height: 1.28;
    }

    .guide-lead-excerpt {
        font-size: 14px;
        padding: 14px 16px;
    }

    .guide-article-body {
        font-size: 14px;
        line-height: 1.68;
    }

    .guide-article-body h2 {
        font-size: 19px;
        margin: 28px 0 12px 0;
    }

    .guide-article-body h3 {
        font-size: 16px;
        margin: 22px 0 10px 0;
    }

    .guide-table-scroll-hint {
        display: flex;
    }

    .guide-editorial-team-card {
        padding: 14px 16px;
    }

    .guide-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .guide-action-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   PRINT STYLESHEET (PRINT ARTICLE PROPERLY, STRICTLY SUPPRESS FOOTER & NON-ARTICLE)
   ========================================================================== */
@media print {
    /* Explicitly hide the entire footer, header, navigation, and outside sections */
    footer,
    .footer,
    .footer *,
    .footer-cta,
    .footer-cta *,
    .footer-main,
    .footer-main *,
    .footer-first-section,
    .footer-first-section *,
    .footer-links-grid,
    .footer-links-grid *,
    .footer-copyright-section,
    .footer-copyright-section *,
    header,
    .header,
    .header *,
    .announcement-bar,
    .announcement-bar *,
    .navbar-section,
    .navbar-section *,
    nav,
    .breadcrumbs-bar,
    .breadcrumbs-bar *,
    .guide-action-bar,
    .guide-action-bar *,
    .guide-toc-box,
    .guide-toc-box *,
    .our-collection-section,
    .our-collection-section *,
    .guide-more-section,
    .guide-more-section *,
    .reading-progress-track,
    .guide-toast,
    .mobile-sidebar,
    .mobile-sidebar *,
    .mobile-sidebar-overlay,
    .guide-editorial-actions,
    .guide-editorial-actions *,
    .load-more,
    .product-add-to-cart-button,
    #guideToast {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    body, html {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .guide-single-page {
        padding: 0 !important;
        margin: 0 !important;
        background: #FFFFFF !important;
    }

    .guide-article-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .guide-article-h1 {
        font-size: 20pt !important;
        color: #014661 !important;
        margin-bottom: 8pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-meta-stats-row {
        margin-bottom: 12pt !important;
    }

    .guide-meta-pill {
        border: 1px solid #ccc !important;
        background: #FFFFFF !important;
        color: #333333 !important;
        font-size: 9pt !important;
        padding: 2pt 6pt !important;
    }

    .guide-lead-excerpt {
        border-left: 3pt solid #014661 !important;
        background: #F8FAFC !important;
        padding: 10pt 14pt !important;
        font-size: 10.5pt !important;
        margin-bottom: 14pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-featured-cover-wrap {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        max-height: 350px !important;
        margin-bottom: 16pt !important;
        page-break-inside: avoid;
    }

    .guide-featured-cover-img {
        max-height: 350px !important;
        object-fit: contain !important;
    }

    .guide-article-body {
        font-size: 10.5pt !important;
        line-height: 1.6 !important;
        color: #111111 !important;
    }

    .guide-article-body h2 {
        font-size: 14pt !important;
        color: #014661 !important;
        border-bottom: 1pt solid #ccc !important;
        margin-top: 16pt !important;
        page-break-after: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-article-body h3 {
        font-size: 12pt !important;
        color: #014661 !important;
        page-break-after: avoid;
    }

    .guide-table-wrapper {
        border: 1pt solid #333333 !important;
        box-shadow: none !important;
        margin: 12pt 0 !important;
        page-break-inside: avoid;
    }

    .guide-content-table thead th {
        background: #014661 !important;
        color: #FFFFFF !important;
        font-size: 9pt !important;
        padding: 6pt 10pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-content-table tbody td {
        border-bottom: 0.5pt solid #ddd !important;
        padding: 5pt 10pt !important;
        font-size: 9pt !important;
        color: #000000 !important;
    }

    .guide-table-scroll-hint {
        display: none !important;
    }

    .guide-editorial-team-card {
        border: 1pt solid #ddd !important;
        border-left: 3pt solid #014661 !important;
        background: #FFFFFF !important;
        box-shadow: none !important;
        margin-top: 14pt !important;
        padding: 8pt 12pt !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 1.5cm;
        size: auto;
    }
}
