/* ==========================================================================
   Services Page Stylesheet (Services.css)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

.service-content-block {
    scroll-margin-top: 100px;
}

/* Hero Outer Section */
.service-hero-section {
    padding: 1.5rem 0 1rem 0;
    background-color: #ffffff;
    position: relative;
}

/* Inner Hero Container with Image Background (matching site pages like Product-Pages.css) */
.service-hero-container {
    width: 100%;
    aspect-ratio: 1443 / 527;
    background: url('../image/service-image/fmcs-service-page.webp') no-repeat center center / 100% 100%;
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 31, 84, 0.06);
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 2.2rem 3.5rem 1.5rem 3.5rem;
}

.service-hero-content {
    max-width: 520px;
    position: relative;
    z-index: 5;
}

/* Breadcrumb Styling */
.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    margin-bottom: 10px;
}

.service-breadcrumb .home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.service-breadcrumb .home-icon:hover {
    color: #1d4ed8;
}

.service-breadcrumb .bc-sep {
    color: #64748b;
}

.service-breadcrumb .bc-current {
    color: #3b82f6;
}

/* Hero Title */
.service-hero-title {
    font-size: 46px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.service-hero-title .highlight {
    color: #2563eb;
}

/* Hero Description */
.service-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    max-width: 460px;
    margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .service-hero-container {
        aspect-ratio: auto;
        min-height: 340px;
        padding: 2.2rem 2.8rem;
    }
}

@media (max-width: 992px) {
    .service-hero-section {
        padding: 1rem 0 0.5rem 0;
    }

    .service-hero-container {
        aspect-ratio: auto;
        min-height: auto;
        padding: 2.5rem 2rem;
        background-image: none !important;
        background-color: #f6f6fd !important;
        border: 1px solid rgba(0, 46, 132, 0.1);
        box-shadow: 0 10px 30px rgba(0, 46, 132, 0.05);
    }

    .service-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .service-hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.15;
    }

    .service-hero-desc {
        font-size: 1rem;
        line-height: 1.6;
        color: #475569;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .service-hero-section {
        padding: 0.8rem 0 0.5rem 0;
    }

    .service-hero-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        background-image: none !important;
        background-color: #f6f6fd !important;
    }

    .service-hero-title {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }

    .service-hero-desc {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

@media (max-width: 480px) {
    .service-hero-container {
        padding: 1.5rem 1.1rem;
        border-radius: 16px;
    }

    .service-hero-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   SECTION 2: SERVICE DETAILS & TABLE OF CONTENT SIDEBAR (Services.css)
   ========================================================================== */

.service-details-section {
    padding: 1.5rem 0 3rem 0;
    background-color: #ffffff;
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.8rem; /* reduced gap as requested */
    align-items: start;
}

/* Meta Bar */
.service-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
}

.service-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0056b3;
    font-weight: 500;
}

.service-meta-bar .meta-item svg {
    color: #0056b3;
}

/* Article Blocks */
.service-article-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* tight gap between blocks */
}

.service-article-block {
    margin-bottom: 0.5rem;
}

.article-heading {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.heading-line {
    position: relative;
    display: flex;
    align-items: center;
    width: 48px;
    height: 12px;
    margin-bottom: 14px;
}

.heading-line::before {
    content: '';
    width: 32px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 4px;
}

.heading-line::after {
    content: '';
    position: absolute;
    left: 32px;
    width: 12px;
    height: 1px;
    background-color: #0056b3;
}

.heading-line-dot {
    position: absolute;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 50%;
}

.service-article-block p {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 12px;
}

/* -------------------------------------------------------
   Rich content rendered from DB (lists, images, tables)
   ------------------------------------------------------- */

/* Unordered list */
.service-article-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-article-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}

.service-article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0056b3;
    flex-shrink: 0;
}

/* Nested unordered list */
.service-article-content ul ul {
    margin: 6px 0 0 0;
    gap: 4px;
}

.service-article-content ul ul li::before {
    width: 5px;
    height: 5px;
    background-color: transparent;
    border: 1.5px solid #0056b3;
    top: 10px;
}

/* Ordered list */
.service-article-content ol {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: ol-counter;
}

.service-article-content ol li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    counter-increment: ol-counter;
}

.service-article-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

/* Nested ordered list */
.service-article-content ol ol {
    margin: 6px 0 0 0;
    counter-reset: ol-inner-counter;
}

.service-article-content ol ol li {
    counter-increment: ol-inner-counter;
    padding-left: 24px;
}

.service-article-content ol ol li::before {
    content: counter(ol-inner-counter, lower-alpha);
    background-color: #e0f2fe;
    color: #0056b3;
    font-size: 10px;
    width: 18px;
    height: 18px;
    top: 3px;
}

/* Images */
.service-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 12px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* Tables */
.service-article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-article-content table thead tr {
    background-color: #0056b3;
    color: #ffffff;
}

.service-article-content table thead th {
    padding: 10px 14px;
    font-weight: 700;
    text-align: left;
    font-size: 12.5px;
    letter-spacing: 0.03em;
}

.service-article-content table tbody tr {
    background-color: #ffffff;
    transition: background 0.15s ease;
}

.service-article-content table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.service-article-content table tbody tr:hover {
    background-color: #eff6ff;
}

.service-article-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.5;
    vertical-align: top;
}

/* Inline elements */
.service-article-content strong,
.service-article-content b {
    font-weight: 700;
    color: #1e293b;
}

.service-article-content em,
.service-article-content i {
    font-style: italic;
}

.service-article-content a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.service-article-content a:hover {
    color: #003d80;
}

/* Headings inside content */
.service-article-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 6px 0;
}

.service-article-content h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin: 12px 0 4px 0;
}

/* Blockquote / highlight box */
.service-article-content blockquote {
    margin: 14px 0;
    padding: 10px 14px;
    background: #eff6ff;
    border-left: 4px solid #0056b3;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: #1e293b;
    font-style: italic;
}

.text-blue-link {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Content With Badge */
.content-with-badge {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.content-with-badge .text-side {
    flex: 1;
}

.badge-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
    margin-top: 0;
    flex-shrink: 0;
}

.badge-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.05em;
}

.isi-badge-box {
    padding: 2px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isi-badge-img {
    width: 68px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* PDF Download Banner */
.pdf-download-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.55rem 1.25rem;
    margin-top: 1.5rem;
    gap: 1rem;
}

.pdf-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-icon-wrapper {
    flex-shrink: 0;
}

.pdf-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0038a8;
    color: #ffffff;
    padding: 0.4rem 1.1rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdf-download-btn:hover {
    background-color: #00277a;
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.25);
}

.btn-pdf-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.acrobat-pdf-svg {
    display: block;
}

.btn-pdf-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Mobile responsive for PDF Banner */
@media (max-width: 640px) {
    .pdf-download-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Table of Contents Sticky Sidebar */
.service-toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.toc-icon {
    flex-shrink: 0;
}

.toc-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.toc-header-line {
    position: relative;
    display: flex;
    align-items: center;
    width: 48px;
    height: 12px;
    margin-bottom: 1rem;
}

.toc-header-line::before {
    content: '';
    width: 32px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 4px;
}

.toc-header-line::after {
    content: '';
    position: absolute;
    left: 32px;
    width: 12px;
    height: 1px;
    background-color: #0056b3;
}

.toc-header-line-dot {
    position: absolute;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 50%;
}

/* TOC Items */
.toc-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.35;
}

.toc-item:hover {
    border-color: #0056b3;
    color: #0056b3;
    transform: translateX(2px);
}

.toc-item.active {
    background-color: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eff6ff;
    color: #0056b3;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-item.active .toc-num {
    background: #ffffff;
    color: #0066ff;
}

.toc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-mobile-toggle-btn {
    display: none;
    background: #eff6ff;
    border: 1px solid #cbd5e1;
    color: #0056b3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.2s ease;
}

.toc-mobile-toggle-btn i {
    transition: transform 0.25s ease;
}

/* Responsive Styles for Section 2 & Mobile TOC Accordion */
@media (max-width: 992px) {
    .service-details-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .service-toc-sidebar {
        display: contents;
    }

    .toc-card {
        order: 1;
        width: 100%;
        margin-bottom: 1.5rem;
        padding: 0.95rem 1.15rem;
        box-sizing: border-box;
    }

    .sidebar-video-banner-card {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 155px;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }

    .service-article-container {
        order: 3;
        width: 100%;
    }

    .sidebar-faq-card {
        order: 4;
        width: 100%;
        margin-top: 2.5rem;
        box-sizing: border-box;
    }

    .toc-header {
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
        margin-bottom: 0;
    }

    .toc-mobile-toggle-btn {
        display: flex;
    }

    .toc-header-line {
        margin-bottom: 0.5rem;
    }

    /* By default on mobile: HIDE the TOC menu list */
    .toc-menu {
        display: none;
        margin-top: 0.75rem;
    }

    /* When expanded / open on mobile */
    .toc-card.expanded .toc-menu {
        display: flex;
    }

    .toc-card.expanded .toc-mobile-toggle-btn i {
        transform: rotate(180deg);
    }

    .content-with-badge {
        flex-direction: column;
    }

    .badge-side {
        align-items: flex-start;
    }
}

