/* =============================================
   Sticky Scroll Navigation Widget – Styles
   ============================================= */

/* Wrapper — flex row layout */
.ssw-wrapper {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ----- Sidebar ----- */
.ssw-sidebar {
    width: 28%;
    flex-shrink: 0;
    position: relative;
}

.ssw-sidebar-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Smooth translateY when approaching the bottom */
.ssw-sidebar.is-transitioning .ssw-sidebar-inner {
    transition: none; /* transform is set every frame via rAF, no CSS transition needed */
}

/* ----- Nav Items ----- */
.ssw-nav-item {
    display: block;
    position: relative;
    padding: 12px 16px 12px 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #6B7280;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease;
    border: none;
    background: none;
}

/* Left indicator bar */
.ssw-nav-item::before {
    content: none !important;
}

/* Active state */
.ssw-nav-item.ssw-active {
    color: #111827;
    font-weight: 600;
}

.ssw-top-box-body ol li{
	margin-bottom: 20px;
}

.ssw-top-box-body strong{
	font-family: 'Gotham Rounded';
}

/* Hover */
.ssw-nav-item:hover {
    color: #374151;
    text-decoration: none;
}

/* ----- Content Area ----- */
.ssw-content {
    width: 72%;
    flex-shrink: 1;
    min-width: 0;
}

/* Section blocks */
.ssw-section-block + .ssw-section-block {
    margin-top: 48px;
}

/* Divider variant */
.ssw-section-block.ssw-has-divider + .ssw-section-block.ssw-has-divider {
    padding-top: 48px;
    border-top: 1px solid #E5E7EB;
}

/* Content heading */
.ssw-section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 16px 0;
}

/* Content body */
.ssw-section-body {
    font-size: 16px;
    line-height: 1.7;
    color: #4B5563;
}

.ssw-section-body p {
    margin: 0 0 12px 0;
}

.ssw-section-body p:last-child {
    margin-bottom: 0;
}

.ssw-section-body ul,
.ssw-section-body ol {
    padding-left: 1.5em;
    margin: 8px 0 12px;
}

.ssw-section-body li {
    margin-bottom: 6px;
}

.ssw-section-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.ssw-section-body table th,
.ssw-section-body table td {
    border: 1px solid #E5E7EB;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}

.ssw-section-body table th {
    background: #F3F4F6;
    font-weight: 600;
    color: #111827;
}

/* ----- Top Summary Box ----- */
.ssw-top-box {
    background-color: #EFF6FF;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 40px;
}

.ssw-top-box-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1E3A5F;
    margin: 0 0 12px 0;
}

.ssw-top-box-body {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.ssw-top-box-body p {
    margin: 0 0 10px 0;
}

.ssw-top-box-body p:last-child {
    margin-bottom: 0;
}

.ssw-top-box-body h1,
.ssw-top-box-body h2,
.ssw-top-box-body h3,
.ssw-top-box-body h4,
.ssw-top-box-body h5,
.ssw-top-box-body h6 {
    color: #1E3A5F;
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.ssw-top-box-body h1:first-child,
.ssw-top-box-body h2:first-child,
.ssw-top-box-body h3:first-child,
.ssw-top-box-body h4:first-child,
.ssw-top-box-body h5:first-child,
.ssw-top-box-body h6:first-child {
    margin-top: 0;
}

.ssw-top-box-body ul,
.ssw-top-box-body ol {
    padding-left: 1.5em;
    margin: 8px 0 10px;
}

.ssw-top-box-body li {
    margin-bottom: 4px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .ssw-sidebar {
        width: 32% !important;
    }
    .ssw-content {
        width: 68% !important;
    }
}

@media (max-width: 767px) {
    .ssw-wrapper {
        flex-direction: column;
    }

    .ssw-sidebar.ssw-hide-mobile {
        display: none;
    }

    .ssw-sidebar {
        width: 100% !important;
        position: relative !important;
        margin-bottom: 24px;
    }

    .ssw-sidebar-inner {
        position: static !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        transform: none !important;
    }

    .ssw-nav-item {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 6px;
        background: #F3F4F6;
    }

    .ssw-nav-item::before {
        display: none;
    }

    .ssw-nav-item.ssw-active {
        background: #6366F1;
        color: #fff;
    }

    .ssw-content {
        width: 100% !important;
    }

    .ssw-section-title {
        font-size: 20px;
    }

    .ssw-section-block + .ssw-section-block {
        margin-top: 32px;
    }

    .ssw-section-block.ssw-has-divider + .ssw-section-block.ssw-has-divider {
        padding-top: 32px;
    }
}
