/* Loaded only on /blog/best-online-cpe-course-providers */

/* Color tokens used by the comparison table (this file only loads on this blog) */
:root{
    --navy: #0A1746;
    --navy-deep: #060F33;
    --blue-accent: #3556E8;
    --row-alt: #EEF2FF;
    --row-white: #FFFFFF;
    --border-color: #DDE3F5;
    --text-dark: #0A1746;
    --text-muted: #4B5570;
    --green: #1FA55C;
    --red: #E23B3B;
    --sticky-shadow: rgba(10, 23, 70, 0.18);
}

.scroll-note{
    max-width:1400px;
    margin:0 auto 16px;
    font-size:13px;
    font-weight:600;
    color:var(--text-muted);
    display:flex;
    align-items:center;
    gap:6px;
}
.scroll-note svg{ width:16px; height:16px; flex-shrink:0; }

.table-shell{
    max-width:1400px;
    margin:0 auto;
    background:var(--row-white);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 12px 32px rgba(10,23,70,0.10);
    border:1px solid var(--border-color);
    position:relative;
}

/* Scroll container: horizontal scroll lives here. Force scroll always visible
   (not "auto") so the bar shows up even on OSes that hide idle scrollbars. */
.scroll-area{
    overflow-x:scroll;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:auto;
    scrollbar-color:var(--blue-accent) #EEF2FF;
}
.scroll-area::-webkit-scrollbar{ height:14px; }
.scroll-area::-webkit-scrollbar-track{ background:#EEF2FF; }
.scroll-area::-webkit-scrollbar-thumb{
    background:var(--blue-accent);
    border-radius:8px;
    border:3px solid #EEF2FF;
}
.scroll-area::-webkit-scrollbar-thumb:hover{ background:#2643C4; }

.cpe-compare-table{
    border-collapse:separate;
    border-spacing:0;
    width:max-content;
    min-width:100%;
    table-layout:fixed;
}

/* Column widths */
.cpe-compare-table col.label-col{ width:230px; }
.cpe-compare-table col.data-col{ width:150px; }

.cpe-compare-table th,
.cpe-compare-table td{
    padding:14px 16px;
    text-align:center;
    font-size:14px;
    border-bottom:1px solid var(--border-color);
    white-space:normal;
    word-wrap:break-word;
}

/* First column (labels) - sticky */
.cpe-compare-table th.label-cell,
.cpe-compare-table td.label-cell{
    position:sticky;
    left:0;
    z-index:3;
    text-align:left;
    font-weight:700;
    color:var(--navy);
    box-shadow: 3px 0 8px var(--sticky-shadow);
}

/* Header row styling.
   The extra .Detail_Right.New_Blog_Details selector is needed to beat
   blog-details-new.css, which sets !important background/border on every
   blog table head with a more specific selector. */
.cpe-compare-table thead tr th,
.Detail_Right.New_Blog_Details table.cpe-compare-table thead tr th{
    background:var(--navy) !important;
    color:#fff !important;
    font-size:16px !important;
    font-style:normal !important;
    font-weight:800 !important;
    line-height:normal !important;
    text-align:center !important;
    vertical-align:middle !important;
    padding:18px 16px !important;
    border:0 !important;
    border-radius:0 !important;
    white-space:normal !important;
    word-wrap:break-word !important;
}

/* Floating copy of the table head, shown by the script while scrolling through the table */
.cpe-float-head{
    position:fixed;
    top:0;
    left:0;
    z-index:1020; /* below the bootstrap .fixed-top navbar (1030) */
    overflow:hidden;
    display:none;
    background:var(--navy);
    box-shadow:0 6px 12px -4px rgba(10,23,70,0.35);
}
.cpe-float-head.is-visible{ display:block; }
.cpe-float-head .cpe-compare-table{
    margin:0 !important;
    min-width:0 !important;
}
.cpe-compare-table thead tr th.label-cell,
.Detail_Right.New_Blog_Details table.cpe-compare-table thead tr th.label-cell{
    position:sticky !important;
    left:0 !important;
    z-index:5 !important;
    background:var(--navy) !important;
    text-align:left !important;
    font-size:20px !important;
    font-weight:700 !important;
    box-shadow:3px 0 8px var(--sticky-shadow) !important;
}

/* Section divider rows (Learning Avenues / Support) */
.cpe-compare-table tr.section-row td{
    background:var(--navy);
    color:#fff !important;
    font-weight:800;
    font-size:15px;
    text-align:left;
    padding:12px 16px;
    border-bottom:none;
}
.cpe-compare-table tr.section-row td.label-cell{
    background:var(--navy);
    z-index:4;
}

/* Alternating row backgrounds */
.cpe-compare-table tbody tr.row-white td{ background:var(--row-white); }
.cpe-compare-table tbody tr.row-alt td{ background:var(--row-alt); }

.cpe-compare-table tbody tr.row-white td.label-cell{ background:var(--row-white); }
.cpe-compare-table tbody tr.row-alt td.label-cell{ background:var(--row-alt); }

.cpe-compare-table .cell-text{
    color:var(--text-dark);
    font-weight:500;
}

.cpe-compare-table .icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
}
.cpe-compare-table .icon.yes{ color:var(--green); }
.cpe-compare-table .icon.no{ color:var(--red); }

.cpe-compare-table .asterisk{
    font-weight:800;
    color:var(--navy);
    margin-left:2px;
}

.cpe-compare-table tfoot td{
    background:var(--navy-deep);
    color:#E6EAF7;
    text-align:center;
    font-size:13px;
    padding:16px;
    letter-spacing:0.2px;
}
.cpe-compare-table tfoot td.label-cell{
    background:var(--navy-deep);
}

/* Fade hints indicating more content to scroll, on either edge */
.scroll-hint{
    position:absolute;
    top:0;
    bottom:14px; /* stop above the scrollbar track */
    width:36px;
    pointer-events:none;
    z-index:6;
    transition:opacity 0.2s ease;
}
.scroll-hint.right{
    right:0;
    background:linear-gradient(to right, transparent, rgba(10,23,70,0.14));
}
.scroll-hint.left{
    left:230px; /* sits right after the sticky label column */
    background:linear-gradient(to left, transparent, rgba(10,23,70,0.14));
    opacity:0; /* hidden until user scrolls right */
}

/* Round nav arrow buttons floating over the table edges */
.scroll-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:7;
    width:36px;
    height:36px;
    border-radius:50%;
    border:none;
    background:var(--navy);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(10,23,70,0.35);
    transition:opacity 0.2s ease, background 0.15s ease;
}
.scroll-arrow:hover{ background:var(--blue-accent); }
.scroll-arrow svg{ width:16px; height:16px; }
.scroll-arrow.right{ right:10px; }
.scroll-arrow.left{ left:246px; opacity:0; pointer-events:none; }

@media (max-width:640px){
    .scroll-arrow.left{ left:180px; }
    .scroll-hint.left{ left:170px; }
}

@media (max-width:640px){
    .page-title{ font-size:20px; padding:0 4px; }
    .cpe-compare-table col.label-col{ width:170px; }
    .cpe-compare-table col.data-col{ width:130px; }
    .cpe-compare-table th,
    .cpe-compare-table td{ font-size:12.5px; padding:10px 10px; }
    .cpe-compare-table thead tr th,
    .Detail_Right.New_Blog_Details table.cpe-compare-table thead tr th{ font-size:13px !important; }
    .cpe-compare-table thead tr th.label-cell,
    .Detail_Right.New_Blog_Details table.cpe-compare-table thead tr th.label-cell{ font-size:16px !important; }
}
