/**
 * Certification Management Frontend Styles
 * Primary Palette: FJM Corporate Blue / Navy (Dominant Solid Blocks)
 * Secondary Accent: FJM Red (Only for small subtle touches, icons, and badges)
 */

:root {
    /* FJM Corporate Blue & Navy (Dominant) */
    --fjm-blue-main: #0b3b60;
    --fjm-blue-hover: #082a45;
    --fjm-blue-dark: #061e32;
    --fjm-blue-bright: #0284c7;
    --fjm-navy-banner: #09253d;
    --fjm-navy-banner-end: #0e3d64;

    /* FJM Red Accent (Subtle / Small Elements Only) */
    --fjm-red-accent: #c8102e;
    --fjm-red-accent-hover: #a81124;
    --fjm-red-light: #fef2f2;
    --fjm-red-border: #fecaca;

    /* Theme Tokens */
    --cm-primary: var(--fjm-blue-main);
    --cm-primary-hover: var(--fjm-blue-hover);
    --cm-primary-dark: var(--fjm-blue-dark);
    --cm-dark-navy: #0f172a;
    --cm-dark-hero: #091a2b;

    --cm-gray-50: #f8fafc;
    --cm-gray-100: #f1f5f9;
    --cm-gray-200: #e2e8f0;
    --cm-gray-300: #cbd5e1;
    --cm-gray-400: #94a3b8;
    --cm-gray-500: #64748b;
    --cm-gray-600: #475569;
    --cm-gray-700: #334155;
    --cm-gray-800: #1e293b;
    --cm-gray-900: #0f172a;

    --cm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --cm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --cm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --cm-radius-sm: 6px;
    --cm-radius-md: 10px;
    --cm-radius-lg: 16px;
    --cm-radius-full: 9999px;
    --cm-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset / Scoped Base */
.cm-catalog-wrapper,
.cm-archive-wrapper,
.cm-single-wrapper {
    font-family: var(--cm-font-family);
    color: var(--cm-gray-800);
    line-height: 1.6;
    box-sizing: border-box;
}

.cm-catalog-wrapper *,
.cm-archive-wrapper *,
.cm-single-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   1. CATALOG & ARCHIVE STYLES
   ========================================================================== */

.cm-archive-wrapper {
    background: #f8fafc;
    padding: 40px 20px 80px 20px;
    min-height: 70vh;
}

.cm-archive-container {
    max-width: 1240px;
    margin: 0 auto;
}

.cm-archive-header {
    text-align: center;
    margin-bottom: 35px;
}

.cm-archive-breadcrumb {
    font-size: 13.5px;
    color: var(--cm-gray-500);
    margin-bottom: 12px;
}

.cm-archive-breadcrumb a {
    color: var(--fjm-blue-main);
    text-decoration: none;
    font-weight: 500;
}

.cm-archive-breadcrumb a:hover {
    text-decoration: underline;
}

.cm-archive-breadcrumb .cm-sep {
    margin: 0 6px;
    color: var(--cm-gray-400);
}

.cm-archive-breadcrumb .cm-current {
    color: var(--cm-gray-800);
    font-weight: 600;
}

.cm-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--fjm-blue-main);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.cm-archive-lead {
    font-size: 16px;
    color: var(--cm-gray-600);
    max-width: 720px;
    margin: 0 auto;
}

/* Tabs Filter (Solid FJM Blue) */
.cm-tabs-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cm-tab-btn {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--cm-gray-300);
    color: var(--cm-gray-700);
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--cm-radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--cm-shadow-sm);
}

.cm-tab-btn:hover {
    border-color: var(--fjm-blue-main);
    color: var(--fjm-blue-main);
    transform: translateY(-1px);
}

.cm-tab-btn.active {
    background: var(--fjm-blue-main);
    border-color: var(--fjm-blue-main);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 59, 96, 0.35);
}

/* Controls Bar (Search + Dropdown) */
.cm-controls-bar {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.cm-search-wrap {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.cm-search-icon {
    position: absolute;
    left: 14px;
    color: var(--cm-gray-400);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.cm-search-input {
    width: 100%;
    padding: 12px 38px 12px 42px;
    font-size: 14px;
    border: 1px solid var(--cm-gray-300);
    border-radius: var(--cm-radius-md);
    background: #ffffff;
    color: var(--cm-gray-800);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-search-input:focus {
    border-color: var(--fjm-blue-main);
    box-shadow: 0 0 0 3px rgba(11, 59, 96, 0.15);
}

.cm-search-clear {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--cm-gray-400);
    cursor: pointer;
    padding: 0 4px;
    display: none;
}

.cm-category-wrap {
    flex: 1.2;
}

.cm-category-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--cm-gray-300);
    border-radius: var(--cm-radius-md);
    background: #ffffff;
    color: var(--cm-gray-700);
    outline: none;
    cursor: pointer;
}

.cm-category-select:focus {
    border-color: var(--fjm-blue-main);
}

/* Results Count & Loader */
.cm-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--cm-gray-500);
    margin-bottom: 20px;
    padding: 0 4px;
}

.cm-loader {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--fjm-blue-main);
    font-weight: 500;
}

.cm-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--cm-gray-300);
    border-top-color: var(--fjm-blue-main);
    border-radius: 50%;
    animation: cmSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes cmSpin {
    to { transform: rotate(360deg); }
}

/* Grid Layout */
.cm-grid {
    display: grid;
    gap: 24px;
}

.cm-grid-cols-1 { grid-template-columns: 1fr; }
.cm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cm-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cm-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .cm-grid-cols-3, .cm-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cm-controls-bar {
        flex-direction: column;
    }
    .cm-grid-cols-2, .cm-grid-cols-3, .cm-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   2. CARD DESIGN (SOLID FJM BLUE/NAVY DENGAN AKSEN MERAH KECIL)
   ========================================================================== */

.cm-card {
    background: #ffffff;
    border-radius: var(--cm-radius-lg);
    border: 1px solid var(--cm-gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--cm-shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.cm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cm-shadow-xl);
    border-color: #cbd5e1;
}

/* Top bar: Brand Logo & Kompeten Badge */
.cm-card-topbar {
    padding: 16px 18px 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.cm-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-brand-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* Small Red Touch: Red Icon with soft red light background */
.cm-brand-icon {
    width: 28px;
    height: 28px;
    background: var(--fjm-red-light);
    color: var(--fjm-red-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fjm-red-border);
}

.cm-brand-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--cm-gray-800);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cm-badge-kompeten {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 9px;
    border-radius: var(--cm-radius-full);
    font-size: 11px;
    font-weight: 800;
    color: #15803d;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cm-badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: cmPulse 2s infinite;
}

@keyframes cmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Subtitle Script & Schema Title */
.cm-card-schema-box {
    text-align: center;
    padding: 14px 18px 8px 18px;
}

.cm-script-heading {
    font-family: "Brush Script MT", "Caveat", "Segoe Script", cursive, sans-serif;
    font-size: 21px;
    color: #475569;
    display: block;
    line-height: 1.2;
    transform: rotate(-1.5deg);
}

/* Schema Title: Deep Blue with Subtle Red Underline Accent */
.cm-schema-title-pill {
    display: inline-block;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--fjm-blue-main);
    border-bottom: 2px solid var(--fjm-red-accent);
    padding-bottom: 2px;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Program Title Preview on Card */
.cm-card-program-title-top {
    padding: 8px 18px 12px 18px;
    text-align: center;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-card-program-title-top a {
    font-size: 14px;
    font-weight: 600;
    color: var(--cm-gray-700);
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.15s;
}

.cm-card-program-title-top a:hover {
    color: var(--fjm-blue-main);
}

/* Middle Solid Strip Banner: Deep FJM Navy / Blue Block (Soothing & High Contrast) */
.cm-card-strip-banner {
    background: linear-gradient(135deg, var(--fjm-navy-banner) 0%, var(--fjm-navy-banner-end) 100%);
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cm-strip-item {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}

.cm-strip-icon {
    display: flex;
    align-items: center;
    color: #93c5fd;
    opacity: 0.95;
}

.cm-strip-text {
    line-height: 1.2;
    font-size: 11px;
    overflow: hidden;
}

.cm-strip-text small {
    display: block;
    color: #cbd5e1;
    font-size: 9.5px;
    white-space: nowrap;
}

.cm-strip-text strong {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Bottom Content Area */
.cm-card-bottom-content {
    padding: 18px 18px 12px 18px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cm-card-main-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--cm-gray-900);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.cm-card-main-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.cm-card-main-title a:hover {
    color: var(--fjm-blue-main);
}

.cm-card-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: var(--cm-radius-full);
    font-size: 11.5px;
    font-weight: 600;
    margin: 4px auto 0 auto;
}

/* Card Footer Action Button: Solid FJM Corporate Blue Block */
.cm-card-footer {
    padding: 0 18px 18px 18px;
}

.cm-btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fjm-blue-main);
    color: #ffffff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: var(--cm-radius-full);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(11, 59, 96, 0.25);
}

.cm-btn-detail:hover {
    background: var(--fjm-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 59, 96, 0.35);
    color: #ffffff;
}

.cm-btn-detail svg {
    transition: transform 0.2s ease;
}

.cm-btn-detail:hover svg {
    transform: translateX(3px);
}

/* Empty State */
.cm-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: var(--cm-radius-lg);
    border: 1px dashed var(--cm-gray-300);
}

.cm-empty-icon {
    margin-bottom: 15px;
}

.cm-empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--cm-gray-800);
    margin: 0 0 6px 0;
}

.cm-empty-state p {
    font-size: 14px;
    color: var(--cm-gray-500);
    margin: 0;
}

/* ==========================================================================
   3. SINGLE DETAIL PAGE STYLES (SOLID BLUE HEADERS & ACCENTS)
   ========================================================================== */

.cm-single-wrapper {
    background: #f8fafc;
    min-height: 100vh;
}

/* Hero Header Banner (Deep FJM Navy Industrial Overlay) */
.cm-hero-banner {
    background: radial-gradient(circle at 80% 20%, #1e3a5f 0%, #091a2b 100%);
    color: #ffffff;
    padding: 45px 20px 50px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cm-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cm-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cm-hero-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.cm-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.cm-hero-breadcrumb a:hover {
    color: #38bdf8;
}

.cm-hero-sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.4);
}

.cm-hero-current {
    color: #ffffff;
    font-weight: 600;
}

.cm-hero-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--cm-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Small Red Accent Pill for Authority / Main Badge */
.cm-pill-primary {
    background: var(--fjm-red-accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}

.cm-pill-category {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cm-pill-badge {
    background: #15803d;
    color: #ffffff;
}

.cm-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

/* Title Container */
.cm-hero-title-box {
    display: inline-block;
    background: #ffffff;
    border-radius: var(--cm-radius-full);
    padding: 10px 28px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cm-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.cm-hero-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0 0 24px 0;
    max-width: 800px;
}

/* Key Facts Chips Bar */
.cm-hero-facts-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cm-radius-md);
    padding: 12px 18px;
    backdrop-filter: blur(8px);
}

.cm-fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-fact-item:last-child {
    border-right: none;
    padding-right: 0;
}

.cm-fact-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-fact-info {
    line-height: 1.25;
}

.cm-fact-label {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    text-transform: uppercase;
    font-weight: 600;
}

.cm-fact-value {
    display: block;
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 700;
}

/* Single Body 2-Columns Layout */
.cm-single-body {
    padding: 40px 20px 80px 20px;
}

.cm-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .cm-layout-container {
        grid-template-columns: 1fr;
    }
}

/* Left Column: Sections & Content */
.cm-card-section {
    background: #ffffff;
    border: 1px solid var(--cm-gray-200);
    border-radius: var(--cm-radius-lg);
    padding: 30px;
    box-shadow: var(--cm-shadow-sm);
    margin-bottom: 24px;
}

.cm-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.cm-head-icon {
    width: 34px;
    height: 34px;
    background: #e0f2fe;
    color: var(--fjm-blue-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--cm-gray-900);
    margin: 0;
}

.cm-content-typography {
    font-size: 15px;
    color: var(--cm-gray-700);
    line-height: 1.8;
}

.cm-sector-callout {
    margin-top: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--fjm-blue-main);
    padding: 12px 16px;
    border-radius: 0 var(--cm-radius-sm) var(--cm-radius-sm) 0;
    font-size: 13.5px;
    color: var(--cm-gray-800);
}

/* ==========================================================================
   4. ACCORDION STYLES (PERSYARATAN & UNIT KOMPETENSI)
   ========================================================================== */

.cm-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.cm-accordion-item {
    background: #ffffff;
    border: 1px solid var(--cm-gray-200);
    border-radius: var(--cm-radius-md);
    overflow: hidden;
    box-shadow: var(--cm-shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-accordion-item.open {
    border-color: #cbd5e1;
    box-shadow: var(--cm-shadow-md);
}

.cm-accordion-header {
    width: 100%;
    appearance: none;
    border: none;
    background: #f8fafc;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.cm-accordion-item.open .cm-accordion-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.cm-accordion-header:hover {
    background: #f1f5f9;
}

.cm-acc-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Subtle Red Touch for Number Badge */
.cm-acc-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--fjm-red-accent);
    background: var(--fjm-red-light);
    border: 1px solid var(--fjm-red-border);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-acc-label {
    font-size: 15px;
    font-weight: 800;
    color: var(--cm-gray-900);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cm-acc-counter {
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--cm-radius-full);
}

.cm-acc-toggle-icon {
    color: var(--cm-gray-500);
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}

.cm-accordion-item.open .cm-acc-toggle-icon {
    transform: rotate(180deg);
    color: var(--fjm-blue-main);
}

.cm-accordion-content {
    padding: 0;
}

.cm-acc-inner {
    padding: 22px 24px;
}

/* Requirements list styling */
.cm-req-content ol,
.cm-req-content ul {
    margin: 0;
    padding-left: 20px;
}

.cm-req-content li {
    margin-bottom: 10px;
    font-size: 14.5px;
    color: var(--cm-gray-700);
    line-height: 1.65;
}

.cm-req-content li:last-child {
    margin-bottom: 0;
}

/* Frontend Units Table */
.cm-units-table-container {
    overflow-x: auto;
}

.cm-frontend-units-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cm-frontend-units-table th {
    background: #f8fafc;
    color: var(--cm-gray-700);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--cm-gray-200);
    text-align: left;
}

.cm-frontend-units-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--cm-gray-200);
    vertical-align: middle;
}

.cm-frontend-units-table tr:hover td {
    background: #f8fafc;
}

.cm-col-num {
    text-align: center;
    font-weight: 700;
    color: var(--cm-gray-400);
}

.cm-code-badge {
    display: inline-block;
    background: #f0f7ff;
    color: var(--fjm-blue-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

.cm-col-title strong {
    color: var(--cm-gray-800);
    font-weight: 600;
}

/* Alur Proses Steps */
.cm-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cm-step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cm-step-circle {
    width: 34px;
    height: 34px;
    background: var(--fjm-blue-main);
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(11, 59, 96, 0.25);
}

.cm-step-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--cm-gray-900);
    margin: 0 0 4px 0;
}

.cm-step-body p {
    font-size: 13.5px;
    color: var(--cm-gray-600);
    margin: 0;
}

/* ==========================================================================
   5. SIDEBAR BOXES (SOLID FJM CORPORATE BLUE/NAVY HEADERS)
   ========================================================================== */

.cm-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.cm-side-box {
    background: #ffffff;
    border: 1px solid var(--cm-gray-200);
    border-radius: var(--cm-radius-md);
    overflow: hidden;
    box-shadow: var(--cm-shadow-sm);
}

/* Solid FJM Navy/Blue Block Header */
.cm-box-header,
.cm-bg-orange,
.cm-bg-fjm {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--fjm-navy-banner) 0%, var(--fjm-navy-banner-end) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cm-box-icon {
    display: flex;
    align-items: center;
    color: #93c5fd;
}

.cm-box-header h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.cm-box-body {
    padding: 18px;
}

/* Box 1: Schedule */
.cm-schedule-empty {
    text-align: center;
}

.cm-empty-txt {
    font-size: 14px;
    color: var(--cm-gray-600);
    font-weight: 500;
    margin: 0 0 12px 0;
}

.cm-btn-request-schedule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fjm-blue-main);
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    border-radius: var(--cm-radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.cm-btn-request-schedule:hover {
    background: #e0f2fe;
    color: var(--fjm-blue-dark);
}

.cm-schedule-available {
    text-align: center;
}

.cm-badge-ready {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--cm-radius-full);
    margin-bottom: 8px;
}

.cm-schedule-info {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cm-gray-800);
    margin: 0 0 14px 0;
}

.cm-btn-daftar-batch {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: var(--fjm-blue-main);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--cm-radius-sm);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 3px 8px rgba(11, 59, 96, 0.25);
}

.cm-btn-daftar-batch:hover {
    background: var(--fjm-blue-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Box 2: Kontak Admin LSP */
.cm-contact-org {
    font-size: 15px;
    font-weight: 700;
    color: var(--cm-gray-900);
    margin: 0 0 10px 0;
}

.cm-wa-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 14px;
}

.cm-wa-icon {
    display: flex;
    align-items: center;
}

.cm-wa-number {
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
}

.cm-btn-wa-action {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--cm-radius-sm);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.cm-btn-wa-action:hover {
    background: #15803d;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Box 3: Panduan Pendaftaran & Video */
.cm-guide-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Subtle Red Accent: Video Play Circle Icon */
.cm-guide-icon-round {
    width: 40px;
    height: 40px;
    background: var(--fjm-red-light);
    color: var(--fjm-red-accent);
    border: 1px solid var(--fjm-red-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-guide-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cm-gray-900);
    display: block;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cm-btn-video-popup {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fjm-blue-main);
    text-decoration: none;
}

.cm-btn-video-popup:hover {
    color: var(--fjm-blue-bright);
    text-decoration: underline;
}

.cm-btn-download-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid var(--cm-gray-300);
    border-radius: var(--cm-radius-sm);
    color: var(--cm-gray-700);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.cm-btn-download-pdf:hover {
    background: #f1f5f9;
    border-color: var(--cm-gray-400);
    color: var(--cm-gray-900);
}

/* Box 4: Share Widget */
.cm-share-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
}

.cm-share-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--cm-gray-500);
    letter-spacing: 0.5px;
}

.cm-share-buttons {
    display: flex;
    gap: 8px;
}

.cm-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.cm-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.95;
}

.cm-btn-fb { background: #1877f2; }
.cm-btn-x { background: #000000; }
.cm-btn-wa { background: #25d366; }
.cm-btn-tg { background: #229ed9; }
.cm-btn-copy { background: #64748b; }

/* Video Lightbox Modal */
.cm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cm-modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #000000;
    border-radius: var(--cm-radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cm-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s;
}

.cm-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.cm-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.cm-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Toast Copy Notification */
.cm-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--cm-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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