/* ==========================================================================
   ABCom Blog Template Stylesheet (Executive Modern Edition)
   Crafted for high readability, modern aesthetics & responsive harmony
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Reset & Background Cleansing
   -------------------------------------------------------------------------- */
body:has(.abcom-blog):before,
body:has(.single-banner):before,
body.abcom-blog-page:before,
body[class*="abcom-"]:before,
.abcom-blog-page:before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
    content: none !important;
}

body:has(.abcom-blog),
body:has(.single-banner),
body.abcom-blog-page {
    background-color: #f8fafc !important;
    color: #334155;
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-wrapper {
    background: #f8fafc !important;
}

.abcom-blog {
    padding: 0 0 60px;
    background-color: transparent !important;
    position: relative;
    z-index: 2;
}

.abcom-blog .container {
    max-width: 1040px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   2. Featured Hero Banner
   -------------------------------------------------------------------------- */
div.container:has(.single-banner) {
    max-width: 1040px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

.single-banner {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 20px auto 14px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.05) !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.single-banner a {
    display: block !important;
    width: 100% !important;
    line-height: 0 !important;
    background: #ffffff !important;
}

.single-banner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 0 !important;
}

/* --------------------------------------------------------------------------
   3. Breadcrumbs Navigation
   -------------------------------------------------------------------------- */
.abcom-breadcrumbs {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 4px 18px;
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.abcom-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.abcom-breadcrumbs a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.abcom-breadcrumbs span {
    color: #94a3b8;
    user-select: none;
}

.abcom-breadcrumbs span:last-child {
    color: #0f172a;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Article Container Card
   -------------------------------------------------------------------------- */
.abcom-article {
    max-width: 1040px;
    margin: 0 auto;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    position: relative;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   5. Article Header
   -------------------------------------------------------------------------- */
.article-header {
    padding: 36px 40px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff !important;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid #dbeafe;
}

.article-header h1 {
    color: #0f172a;
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.28;
    letter-spacing: -0.02em;
    font-weight: 800;
    max-width: 920px;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.article-meta span,
.article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta strong {
    color: #0f172a;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Two-Column Layout (Sidebar + Main)
   -------------------------------------------------------------------------- */
.article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    background: #ffffff !important;
}

/* --------------------------------------------------------------------------
   7. Sticky Sidebar & Table of Contents
   -------------------------------------------------------------------------- */
.article-sidebar {
    padding: 28px 18px 32px 24px;
    border-right: 1px solid #f1f5f9;
    background: #ffffff !important;
}

.toc-card {
    position: sticky;
    top: 96px !important; /* Clears fixed navigation header with buffer */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc !important;
    padding: 16px 14px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.toc-card::-webkit-scrollbar {
    width: 4px;
}

.toc-card::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.toc-card::-webkit-scrollbar-track {
    background: transparent;
}

.toc-kicker {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toc-card h2 {
    color: #0f172a;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 12px !important;
    border: none !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.toc-card h2:before {
    display: none !important;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.toc-list > li {
    counter-increment: toc;
    position: relative;
    padding: 0 0 0 24px;
    margin-bottom: 3px;
}

.toc-list > li:before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 4px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
}

.toc-list a {
    display: block;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.4;
    text-decoration: none;
    padding: 3px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toc-list a:hover {
    color: #1d4ed8;
    background: #f1f5f9;
}

.toc-list ul {
    list-style: none;
    margin: 3px 0 5px;
    padding: 0 0 0 10px;
    border-left: 1.5px solid #e2e8f0;
}

.toc-list ul li {
    padding: 0 !important;
    margin-bottom: 2px;
}

.toc-list ul li:before {
    display: none !important;
}

.toc-list ul a {
    font-size: 11.5px;
    color: #64748b;
    padding: 2px 4px;
}

.toc-list ul a:hover {
    color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   8. Article Main Content Area
   -------------------------------------------------------------------------- */
.article-main {
    min-width: 0;
    padding: 32px 40px 48px;
    background: #ffffff !important;
}

/* --------------------------------------------------------------------------
   9. Quick Answer Lead Box
   -------------------------------------------------------------------------- */
.article-lead {
    display: flex;
    gap: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%) !important;
    padding: 16px 18px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.04);
}

.lead-bar {
    flex: 0 0 4px;
    border-radius: 4px;
    background: #2563eb;
}

.lead-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1d4ed8;
    font-size: 10px;
    letter-spacing: 0.8px;
    font-weight: 800;
    text-transform: uppercase;
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.article-lead p {
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   10. Key Takeaways Card
   -------------------------------------------------------------------------- */
.key-takeaways {
    margin: 0 0 28px !important;
    padding: 20px 22px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.takeaway-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
}

.takeaway-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    font: 800 15px/1 Arial, sans-serif !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}

.takeaway-kicker {
    margin: 0 !important;
    color: #2563eb !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.takeaway-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    border: none !important;
}

.takeaway-title:before {
    display: none !important;
}

.takeaway-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.takeaway-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    padding: 11px 13px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.takeaway-item:hover {
    transform: translateY(-1px);
    border-color: #93c5fd !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

.takeaway-number {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    margin-top: 1px !important;
}

.takeaway-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.takeaway-copy strong {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.takeaway-copy span {
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

/* --------------------------------------------------------------------------
   11. Article Content Body & Typography
   -------------------------------------------------------------------------- */
.article-content {
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    font-size: 15.5px;
    line-height: 1.75;
}

.article-content > h1:first-child {
    display: none;
}

.article-content h2 {
    color: #0f172a;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 36px 0 14px;
    padding: 0 0 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    scroll-margin-top: 100px;
}

.article-content h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 12px;
    width: 4px;
    border-radius: 4px;
    background: #2563eb;
}

.article-content h3 {
    color: #0f172a;
    font-size: 16.5px;
    line-height: 1.4;
    font-weight: 700;
    margin: 26px 0 10px;
    scroll-margin-top: 100px;
}

.article-content h4 {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.article-content p {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.article-content strong,
.article-content b {
    color: #0f172a;
    font-weight: 700;
}

.article-content a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.article-content a:hover {
    color: #1d4ed8;
}

.article-content hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #f1f5f9;
}

/* Custom Checkmark Lists */
.article-content ul:not(.toc-list):not(.article-steps) {
    list-style: none;
    margin: 10px 0 20px;
    padding: 0;
}

.article-content ul:not(.toc-list):not(.article-steps) > li {
    position: relative;
    padding: 5px 0 5px 28px;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.article-content ul:not(.toc-list):not(.article-steps) > li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    text-align: center;
    line-height: 18px;
    font-size: 10px;
    font-weight: 900;
}

/* Numbered Steps List */
.article-content ol:not(.toc-list) {
    list-style: none;
    counter-reset: steps;
    margin: 10px 0 20px;
    padding: 0;
}

.article-content ol:not(.toc-list) > li {
    counter-increment: steps;
    position: relative;
    padding: 6px 0 6px 34px;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.article-content ol:not(.toc-list) > li:before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    text-align: center;
    line-height: 22px;
    font-size: 11px;
    font-weight: 800;
}

/* Tables in Blog Content */
.article-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 22px 0 26px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
}

.article-content table th,
.article-content table tr:first-child td {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.article-content table td {
    padding: 11px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    color: #475569 !important;
}

.article-content table tr:last-child td {
    border-bottom: 0 !important;
}

.article-content table td:last-child {
    border-right: 0 !important;
}

/* --------------------------------------------------------------------------
   12. FAQ Section Styling
   -------------------------------------------------------------------------- */
.article-content h2[id*="faq"] ~ h3,
.article-content h2[id*="frequently-asked"] ~ h3 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    padding: 14px 18px;
    margin: 14px 0 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content h2[id*="faq"] ~ h3:before,
.article-content h2[id*="frequently-asked"] ~ h3:before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.article-content h2[id*="faq"] ~ h3 + p,
.article-content h2[id*="frequently-asked"] ~ h3 + p {
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 14px 18px;
    margin: 0 0 14px;
    background: #ffffff;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. ABCom Rental Call-to-Action Banner Box
   -------------------------------------------------------------------------- */
.article-content h2[id*="need-a-reliable-laptop"],
.article-content h2[id*="choose-abcom"],
.article-content h2[id*="abcom-laptop-on-rent"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 20px 24px !important;
    border-radius: 14px 14px 0 0 !important;
    margin: 40px 0 0 !important;
    border: none !important;
    font-size: 19px !important;
}

.article-content h2[id*="need-a-reliable-laptop"]:before,
.article-content h2[id*="choose-abcom"]:before,
.article-content h2[id*="abcom-laptop-on-rent"]:before {
    display: none !important;
}

.article-content h2[id*="need-a-reliable-laptop"] + p,
.article-content h2[id*="choose-abcom"] + p,
.article-content h2[id*="abcom-laptop-on-rent"] + p {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding: 22px 24px !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #1e293b !important;
    margin-bottom: 30px !important;
}

.article-content h2[id*="need-a-reliable-laptop"] + p a,
.article-content h2[id*="choose-abcom"] + p a,
.article-content h2[id*="abcom-laptop-on-rent"] + p a {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   14. Bottom Caution / Takeaway Note
   -------------------------------------------------------------------------- */
.article-bottom-note {
    margin-top: 32px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13.5px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-bottom-note:before {
    content: "💡";
    font-size: 16px;
    line-height: 1;
}

.article-bottom-note strong {
    color: #78350f;
}

/* --------------------------------------------------------------------------
   15. Floating WhatsApp Button Refinement
   -------------------------------------------------------------------------- */
.btn-floating.whatsapp {
    z-index: 99 !important;
}

/* --------------------------------------------------------------------------
   16. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        border-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding: 22px 24px;
    }
    
    .toc-card {
        position: relative;
        top: auto !important;
        max-height: none;
    }
    
    .article-main {
        padding: 26px 24px 38px;
    }
    
    .single-banner {
        max-width: 100% !important;
        margin: 14px auto 16px !important;
    }
    
    .single-banner img {
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 767px) {
    .abcom-breadcrumbs {
        padding: 10px 14px 12px;
        font-size: 12px;
    }
    
    .article-header {
        padding: 22px 18px 18px;
    }
    
    .article-header h1 {
        font-size: 21px;
        letter-spacing: -0.02em;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 6px 10px;
    }
    
    .article-sidebar {
        padding: 16px 18px;
    }
    
    .article-main {
        padding: 20px 18px 30px;
    }
    
    .article-content h2 {
        font-size: 18px;
        margin-top: 28px;
    }
    
    .article-content h3 {
        font-size: 15.5px;
    }
    
    .article-content p {
        font-size: 14.5px;
        line-height: 1.68;
    }
    
    .article-lead {
        padding: 13px 15px;
    }
    
    .takeaway-grid {
        grid-template-columns: 1fr !important;
    }
    
    .takeaway-item {
        min-height: 0 !important;
    }
    
    .single-banner img {
        height: auto !important;
        max-height: none !important;
    }
}
