/* ========================================================================
   Swedish Paleo – Startguide
   Stilar för den stegvisa startguiden för nya medlemmar.

   Innehåll:
   0. Global font-override
   1. Stegindikator (Stepper)
   2. Tipskort
   3. Programval (CTA-kort) + Accentfärger
   4. Navigeringsknappar
   5. Resurslänkar
   6. Avslutningsblock + Quick-link tinted accents
   7. Kortgrupp (Grid)
   8. Vägval v2 (Primär CTA + sekundär länk)
   9. Sidbakgrund & Sektionsavstånd
   10. Mobilanpassning
   ======================================================================== */


/* ========================================================================
   0. GLOBAL FONT-OVERRIDE
   ======================================================================== */

.sp-sg-stepper-wrap,
.sp-sg-stepper-wrap *,
.sp-sg-nav,
.sp-sg-nav *,
.sp-sg-tipcard,
.sp-sg-tipcard *,
.sp-sg-programs,
.sp-sg-programs *,
.sp-sg-completion,
.sp-sg-completion *,
.sp-sg-card-grid,
.sp-sg-card-grid * {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.sp-sg-step-label,
.sp-sg-tipcard-title,
.sp-sg-program-title,
.sp-sg-completion-title,
.sp-sg-section-title,
.sp-sg-quick-link-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
}


/* ========================================================================
   1. STEGINDIKATOR (STEPPER)
   Shortcode: [sp_startguide_steg]
   ======================================================================== */

.sp-sg-stepper-wrap {
    border-bottom: 1px solid #eef0ee;
    padding: 0 0 22px;
    margin-bottom: 28px;
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

.sp-sg-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.sp-sg-stepper-mobile {
    display: none;
}

.sp-sg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

body.sp-startguide-page a.sp-sg-step,
body.sp-startguide-page a.sp-sg-step:link,
body.sp-startguide-page a.sp-sg-step:visited,
body.sp-startguide-page a.sp-sg-step:hover,
body.sp-startguide-page a.sp-sg-step:focus,
body.sp-startguide-page a.sp-sg-step:active {
    text-decoration: none !important;
}

body.sp-startguide-page .sp-sg-step .sp-sg-step-label {
    text-decoration: none !important;
}

a.sp-sg-step:hover .sp-sg-step-circle {
    transform: scale(1.1);
}

a.sp-sg-step:hover .sp-sg-step-label {
    color: #3D5F42 !important;
}

.sp-sg-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sp-sg-step-num {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.sp-sg-step-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    text-align: center;
    transition: color 0.2s;
    white-space: nowrap;
}

/* --- State: Upcoming --- */
.sp-sg-step--upcoming .sp-sg-step-circle {
    background: #f0f1f0;
    border: 2px solid #dcdede;
}

.sp-sg-step--upcoming .sp-sg-step-num {
    color: #999 !important;
}

.sp-sg-step--upcoming .sp-sg-step-label {
    color: #aaa !important;
}

/* --- State: Current --- */
.sp-sg-step--current .sp-sg-step-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3D5F42, #4d7a53);
    border: 2px solid #3D5F42;
    box-shadow: 0 0 0 4px rgba(61, 95, 66, 0.15), 0 4px 14px rgba(61, 95, 66, 0.25);
}

.sp-sg-step--current .sp-sg-step-num {
    color: #ffffff !important;
    font-size: 15px !important;
}

.sp-sg-step--current .sp-sg-step-label {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

/* --- State: Done --- */
.sp-sg-step--done .sp-sg-step-circle {
    background: #d4e6d7;
    border: 2px solid #c0d8c4;
}

.sp-sg-step--done .sp-sg-step-circle .sp-sg-icon {
    color: #3D5F42 !important;
}

.sp-sg-step--done .sp-sg-step-circle .sp-sg-icon svg {
    width: 15px;
    height: 15px;
}

.sp-sg-step--done .sp-sg-step-label {
    color: #6b8a6f !important;
}

/* --- Lines between steps --- */
.sp-sg-line {
    flex: 1;
    height: 3px;
    background: #e8ece8;
    border-radius: 2px;
    min-width: 20px;
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background 0.4s ease;
}

.sp-sg-line--done {
    background: #c0d8c4;
}

/* --- Mobile stepper --- */
.sp-sg-stepper-mobile-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sp-sg-stepper-mobile-count {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #3D5F42 !important;
}

.sp-sg-stepper-mobile-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.sp-sg-stepper-mobile-bar {
    width: 100%;
    height: 6px;
    background: #eef0ee;
    border-radius: 3px;
    overflow: hidden;
}

.sp-sg-stepper-mobile-fill {
    height: 100%;
    background: linear-gradient(90deg, #3D5F42, #5a8a61);
    border-radius: 3px;
    transition: width 0.6s ease;
}


/* ========================================================================
   2. TIPSKORT
   Shortcode: [sp_startguide_tipskort]
   ======================================================================== */

.sp-sg-tipcard {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.sp-sg-tipcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #d8d8d8;
}

.sp-sg-tipcard-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f5f0 0%, #e8f0e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D5F42 !important;
    transition: transform 0.3s ease;
}

.sp-sg-tipcard:hover .sp-sg-tipcard-icon {
    transform: scale(1.08);
}

.sp-sg-tipcard-icon .sp-sg-icon,
.sp-sg-tipcard-icon svg {
    width: 20px;
    height: 20px;
    color: #3D5F42 !important;
}

.sp-sg-tipcard-body {
    flex: 1;
    min-width: 0;
}

.sp-sg-tipcard-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.sp-sg-tipcard-text {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.55 !important;
    margin: 0 0 10px !important;
}

a.sp-sg-tipcard-link,
a.sp-sg-tipcard-link:link,
a.sp-sg-tipcard-link:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-tipcard-link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-tipcard-link:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-tipcard-link:visited {
    display: inline-flex;
    align-items: center;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3D5F42 !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border: 1.5px solid #d0dcd2;
    border-radius: 8px;
    background: #f8fbf8;
    transition: all 0.2s ease;
    margin-top: 4px;
}

a.sp-sg-tipcard-link:hover,
body.sp-startguide-page .sp-startguide-content a.sp-sg-tipcard-link:hover {
    color: #2e4a32 !important;
    text-decoration: none !important;
    background: #eef4ef;
    border-color: #3D5F42;
}


/* ========================================================================
   2b. RESURSLÄNKAR
   Shortcode: [sp_startguide_resurslank]
   ======================================================================== */

a.sp-sg-reslink,
a.sp-sg-reslink:link,
a.sp-sg-reslink:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-reslink,
body.sp-startguide-page .sp-startguide-content a.sp-sg-reslink:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-reslink:visited {
    text-decoration: none !important;
}

.sp-sg-reslink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fbf8;
    border: 1.5px solid #d0dcd2;
    border-radius: 10px;
    color: #3D5F42 !important;
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin: 8px 0;
}

.sp-sg-reslink:hover {
    background: #eef4ef;
    border-color: #3D5F42;
    transform: translateX(3px);
}

.sp-sg-reslink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-sg-reslink-icon svg {
    width: 20px;
    height: 20px;
    color: #3D5F42;
}

.sp-sg-reslink--pdf .sp-sg-reslink-icon svg {
    color: #c0392b;
}

.sp-sg-reslink-titel {
    flex: 1;
    min-width: 0;
}

.sp-sg-reslink-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c0392b !important;
    background: #fdf0ef;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sp-sg-reslink-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sp-sg-reslink-arrow svg {
    width: 16px;
    height: 16px;
    color: #3D5F42;
}

.sp-sg-reslink:hover .sp-sg-reslink-arrow {
    transform: translateX(3px);
}


/* ========================================================================
   3. PROGRAMVAL (CTA-KORT)
   Shortcode: [sp_startguide_programval]
   ======================================================================== */

.sp-sg-programs {
    padding: 8px 0;
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

a.sp-sg-program-card,
a.sp-sg-program-card:link,
a.sp-sg-program-card:visited,
a.sp-sg-program-card:hover,
body.sp-startguide-page .sp-startguide-content a.sp-sg-program-card,
body.sp-startguide-page .sp-startguide-content a.sp-sg-program-card:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-program-card:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-program-card:hover {
    text-decoration: none !important;
}

.sp-sg-program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 30px 22px 26px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.sp-sg-program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.sp-sg-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.sp-sg-program-card:hover::before {
    transform: scaleX(1);
}

/* --- Accent: Green (AIP Kickstart) --- */
.sp-sg-program-card--green::before {
    background: linear-gradient(90deg, #3D5F42, #5a8a61);
}

.sp-sg-program-card--green .sp-sg-program-icon {
    background: linear-gradient(135deg, #e2f0e4 0%, #d4e8d6 100%);
    color: #3D5F42 !important;
}

/* --- Accent: Blue (Mjukstart) --- */
.sp-sg-program-card--blue::before {
    background: linear-gradient(90deg, #4a5f8a, #6b82b3);
}

.sp-sg-program-card--blue .sp-sg-program-icon {
    background: linear-gradient(135deg, #e4eaf8 0%, #d6dff2 100%);
    color: #4a5f8a !important;
}

.sp-sg-program-card--blue .sp-sg-program-icon svg {
    color: #4a5f8a !important;
}

/* --- Accent: Purple (IBS) --- */
.sp-sg-program-card--purple::before {
    background: linear-gradient(90deg, #6b5b8a, #8a76ab);
}

.sp-sg-program-card--purple .sp-sg-program-icon {
    background: linear-gradient(135deg, #ece7f4 0%, #e0d8ee 100%);
    color: #6b5b8a !important;
}

.sp-sg-program-card--purple .sp-sg-program-icon svg {
    color: #6b5b8a !important;
}

/* Udda antal programkort (5 sedan Fördjupning tillkom): sista kortet spänner
   över båda kolumnerna i stället för att lämna ett tomt hål bredvid sig. */
.sp-sg-programs .sp-sg-card-grid--2col > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* --- Accent: Teal (Fördjupning) --- */
.sp-sg-program-card--teal::before {
    background: linear-gradient(90deg, #3f7d7a, #5fa3a0);
}

.sp-sg-program-card--teal .sp-sg-program-icon {
    background: linear-gradient(135deg, #e2f1f0 0%, #d3e8e6 100%);
    color: #3f7d7a !important;
}

.sp-sg-program-card--teal .sp-sg-program-icon svg {
    color: #3f7d7a !important;
}

/* --- Accent: Warm (Paleo) --- */
.sp-sg-program-card--warm::before {
    background: linear-gradient(90deg, #8C7B5E, #a99575);
}

.sp-sg-program-card--warm .sp-sg-program-icon {
    background: linear-gradient(135deg, #f0ebe3 0%, #e8e0d5 100%);
    color: #8C7B5E !important;
}

.sp-sg-program-card--warm .sp-sg-program-icon svg {
    color: #8C7B5E !important;
}

.sp-sg-program-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f5f0 0%, #e8f0e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.sp-sg-program-card:hover .sp-sg-program-icon {
    transform: scale(1.1);
}

.sp-sg-program-icon .sp-sg-icon,
.sp-sg-program-icon svg {
    width: 26px;
    height: 26px;
    color: #3D5F42 !important;
}

.sp-sg-program-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 4px 0 0 !important;
    line-height: 1.3 !important;
}

.sp-sg-program-desc {
    font-size: 13px !important;
    color: #888 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.sp-sg-program-btn {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #3D5F42 !important;
    transition: color 0.2s;
}

.sp-sg-program-card:hover .sp-sg-program-btn {
    color: #2e4a32 !important;
}


/* ========================================================================
   4. NAVIGERINGSKNAPPAR
   Shortcode: [sp_startguide_nav]
   ======================================================================== */

.sp-sg-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0 8px;
    border-top: 1px solid #eef0ee;
    margin-top: 32px;
}

a.sp-sg-nav-btn,
a.sp-sg-nav-btn:hover,
.sp-startguide-content a.sp-sg-nav-btn,
.sp-startguide-content a.sp-sg-nav-btn:hover {
    text-decoration: none !important;
}

.sp-sg-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: inherit !important;
    padding: 16px 24px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 0;
}

.sp-sg-nav-btn .sp-sg-icon,
.sp-sg-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sp-sg-nav-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-sg-nav-btn-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    line-height: 1.2 !important;
}

.sp-sg-nav-btn-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-sg-nav-spacer {
    flex: 1;
}

/* --- Previous button (outline) --- */
.sp-sg-nav-btn--prev {
    background: #ffffff;
    border: 1.5px solid #d0dcd2;
    color: #3D5F42 !important;
}

.sp-sg-nav-btn--prev .sp-sg-nav-btn-label {
    color: #7a8a7c !important;
}

.sp-sg-nav-btn--prev .sp-sg-nav-btn-title {
    color: #3D5F42 !important;
}

.sp-sg-nav-btn--prev .sp-sg-icon,
.sp-sg-nav-btn--prev svg {
    color: #3D5F42 !important;
}

.sp-sg-nav-btn--prev:hover {
    background: #f4f9f5;
    border-color: #3D5F42;
    transform: translateX(-3px);
}

.sp-sg-nav-btn--prev:hover .sp-sg-icon {
    transform: translateX(-3px);
}

/* --- Next button (filled) --- */
.sp-sg-nav-btn--next {
    background: linear-gradient(135deg, #3D5F42, #4d7a53);
    border: 1.5px solid transparent;
    margin-left: auto;
    color: #ffffff !important;
}

.sp-sg-nav-btn--next .sp-sg-nav-btn-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

.sp-sg-nav-btn--next .sp-sg-nav-btn-title {
    color: #ffffff !important;
}

.sp-sg-nav-btn--next .sp-sg-icon,
.sp-sg-nav-btn--next svg {
    color: #ffffff !important;
}

.sp-sg-nav-btn--next:hover {
    box-shadow: 0 8px 24px rgba(61, 95, 66, 0.25);
    transform: translateX(3px);
}

.sp-sg-nav-btn--next:hover .sp-sg-icon {
    transform: translateX(3px);
}

/* --- Complete button (last step) --- */
.sp-sg-nav-btn--complete {
    background: linear-gradient(135deg, #3D5F42, #4d7a53);
    border: 1.5px solid transparent;
    margin-left: auto;
    color: #ffffff !important;
}

.sp-sg-nav-btn--complete .sp-sg-nav-btn-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

.sp-sg-nav-btn--complete .sp-sg-nav-btn-title {
    color: #ffffff !important;
}

.sp-sg-nav-btn--complete .sp-sg-icon,
.sp-sg-nav-btn--complete svg {
    color: #ffffff !important;
}

.sp-sg-nav-btn--complete:hover {
    box-shadow: 0 8px 24px rgba(61, 95, 66, 0.25);
    transform: translateY(-2px);
}


/* ========================================================================
   5. AVSLUTNINGSBLOCK
   Shortcode: [sp_startguide_avslut]
   ======================================================================== */

.sp-sg-completion {
    padding: 8px 0;
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

.sp-sg-completion-hero {
    text-align: center;
    padding: 40px 20px 32px;
    background: linear-gradient(135deg, #f4f9f5 0%, #eef5ef 100%);
    border-radius: 20px;
    border: 1px solid #e2ede4;
    margin-bottom: 32px;
}

.sp-sg-completion-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D5F42, #5a8a61);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(61, 95, 66, 0.25);
}

.sp-sg-completion-icon .sp-sg-icon,
.sp-sg-completion-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff !important;
}

.sp-sg-completion-title,
.sp-sg-completion-hero .sp-sg-completion-title,
.sp-startguide-content h2.sp-sg-completion-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
}

.sp-sg-completion-text,
.sp-startguide-content .sp-sg-completion-text,
body.sp-startguide-page .sp-startguide-content p.sp-sg-completion-text {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 520px;
    text-align: center !important;
}

.sp-sg-completion-links {
    margin-bottom: 28px;
}

.sp-sg-completion-links .sp-sg-section-title,
body.sp-startguide-page .sp-startguide-content .sp-sg-completion-links .sp-sg-section-title {
    margin-bottom: 16px !important;
}

a.sp-sg-quick-link,
a.sp-sg-quick-link:link,
a.sp-sg-quick-link:visited,
a.sp-sg-quick-link:hover,
body.sp-startguide-page .sp-startguide-content a.sp-sg-quick-link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-quick-link:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-quick-link:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-quick-link:hover {
    text-decoration: none !important;
}

.sp-sg-quick-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 26px 20px 22px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    gap: 10px;
    overflow: hidden;
}

.sp-sg-quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3D5F42, #5a8a61);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.sp-sg-quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.sp-sg-quick-link:hover::before {
    transform: scaleX(1);
}

.sp-sg-quick-link-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f5f0 0%, #e8f0e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D5F42 !important;
    transition: transform 0.35s ease, background 0.35s ease;
}

.sp-sg-quick-link:hover .sp-sg-quick-link-icon {
    transform: scale(1.1);
}

.sp-sg-quick-link-icon .sp-sg-icon,
.sp-sg-quick-link-icon svg {
    width: 24px;
    height: 24px;
    color: #3D5F42 !important;
}

.sp-sg-quick-link .sp-sg-quick-link-title,
.sp-startguide-content .sp-sg-quick-link .sp-sg-quick-link-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.sp-sg-quick-link .sp-sg-quick-link-desc,
.sp-startguide-content .sp-sg-quick-link .sp-sg-quick-link-desc,
body.sp-startguide-page .sp-startguide-content p.sp-sg-quick-link-desc {
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #999 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* --- Quick-link tinted accents (matchar dashboard) --- */
.sp-sg-quick-link--green {
    background: #f7faf7 !important;
    border-color: #dfe9df !important;
}
.sp-sg-quick-link--green .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #e2f0e4 0%, #d4e8d6 100%);
}
.sp-sg-quick-link--green .sp-sg-quick-link-icon svg { color: #3D5F42 !important; }
.sp-sg-quick-link--green::before { background: linear-gradient(90deg, #3D5F42, #5a8a61); }
.sp-sg-quick-link--green:hover .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #d4e8d6 0%, #c6dfc9 100%);
}

.sp-sg-quick-link--blue {
    background: #f6f8fd !important;
    border-color: #dce2f0 !important;
}
.sp-sg-quick-link--blue .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #e4eaf8 0%, #d6dff2 100%);
}
.sp-sg-quick-link--blue .sp-sg-quick-link-icon svg { color: #4a5f8a !important; }
.sp-sg-quick-link--blue::before { background: linear-gradient(90deg, #4a5f8a, #6b82b3); }
.sp-sg-quick-link--blue:hover .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #d6dff2 0%, #c8d4eb 100%);
}

.sp-sg-quick-link--purple {
    background: #faf7fb !important;
    border-color: #e6dced !important;
}
.sp-sg-quick-link--purple .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #eee5f4 0%, #e2d6ec 100%);
}
.sp-sg-quick-link--purple .sp-sg-quick-link-icon svg { color: #7a5a8e !important; }
.sp-sg-quick-link--purple::before { background: linear-gradient(90deg, #7a5a8e, #9b7db3); }
.sp-sg-quick-link--purple:hover .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #e2d6ec 0%, #d5c6e3 100%);
}

.sp-sg-quick-link--warm {
    background: #faf8f5 !important;
    border-color: #e8e0d5 !important;
}
.sp-sg-quick-link--warm .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #f0ebe3 0%, #e8e0d5 100%);
}
.sp-sg-quick-link--warm .sp-sg-quick-link-icon svg { color: #8C7B5E !important; }
.sp-sg-quick-link--warm::before { background: linear-gradient(90deg, #8C7B5E, #a99575); }
.sp-sg-quick-link--warm:hover .sp-sg-quick-link-icon {
    background: linear-gradient(135deg, #e8e0d5 0%, #ddd4c5 100%);
}


/* ========================================================================
   6. KORTGRUPP (GRID)
   Shortcode: [sp_startguide_kortgrupp]
   ======================================================================== */

.sp-sg-card-grid {
    display: grid;
    gap: 16px;
}

.sp-sg-card-grid--1col {
    grid-template-columns: 1fr;
}

.sp-sg-card-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-sg-card-grid--3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-sg-card-grid--4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ========================================================================
   7. GEMENSAMMA ELEMENT
   ======================================================================== */

.sp-sg-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 18px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
}

.sp-sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    padding: 12px 28px !important;
    border-radius: 30px !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

a.sp-sg-btn--primary,
a.sp-sg-btn--primary:link,
a.sp-sg-btn--primary:visited,
a.sp-sg-btn--primary:hover,
body.sp-startguide-page .sp-startguide-content a.sp-sg-btn--primary,
body.sp-startguide-page .sp-startguide-content a.sp-sg-btn--primary:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-btn--primary:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-btn--primary:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.sp-sg-btn--primary {
    background: linear-gradient(135deg, #3D5F42, #4d7a53) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(61, 95, 66, 0.25);
}

.sp-sg-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(61, 95, 66, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.sp-sg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-sg-icon svg {
    display: block;
}


/* ========================================================================
   8. VÄGVAL (ALTERNATIV-KORT)
   ======================================================================== */

/* Vägval v2 -- lätt, en primär CTA + sekundär textlänk */
.sp-sg-pathchoice-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0 12px;
}

a.sp-sg-path-primary,
a.sp-sg-path-primary:link,
a.sp-sg-path-primary:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-primary,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-primary:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-primary:visited {
    text-decoration: none !important;
    color: #ffffff !important;
}

.sp-sg-path-primary,
.sp-startguide-content .sp-sg-path-primary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 24px;
    background: linear-gradient(135deg, #3D5F42, #4d7a53) !important;
    border-radius: 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 16px rgba(61, 95, 66, 0.2);
    overflow: hidden;
}

.sp-sg-path-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 95, 66, 0.28);
}

.sp-sg-path-primary-badge,
.sp-sg-path-primary .sp-sg-path-primary-badge {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1.4 !important;
}

.sp-sg-path-primary-icon,
.sp-sg-path-primary .sp-sg-path-primary-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-sg-path-primary-icon .sp-sg-icon,
.sp-sg-path-primary-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.sp-sg-path-primary-text,
.sp-sg-path-primary .sp-sg-path-primary-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-transform: none !important;
}

.sp-sg-path-primary-text strong,
.sp-sg-path-primary .sp-sg-path-primary-text strong,
.sp-startguide-content .sp-sg-path-primary-text strong {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.sp-sg-path-primary-text span,
.sp-sg-path-primary .sp-sg-path-primary-text span,
.sp-startguide-content .sp-sg-path-primary-text span {
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

.sp-sg-path-primary-arrow {
    width: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sp-sg-path-primary-arrow .sp-sg-icon,
.sp-sg-path-primary-arrow svg {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.sp-sg-path-primary:hover .sp-sg-path-primary-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.sp-sg-path-divider,
.sp-startguide-content .sp-sg-path-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    text-transform: none !important;
}

.sp-sg-path-divider span,
.sp-startguide-content .sp-sg-path-divider span {
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #999 !important;
    font-style: italic;
    text-transform: none !important;
}

a.sp-sg-path-secondary,
a.sp-sg-path-secondary:link,
a.sp-sg-path-secondary:visited,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-secondary,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-secondary:link,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-secondary:visited {
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3D5F42 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: color 0.2s ease;
}

a.sp-sg-path-secondary:hover,
body.sp-startguide-page .sp-startguide-content a.sp-sg-path-secondary:hover {
    color: #2e4a32 !important;
    text-decoration: none !important;
}


/* ========================================================================
   9. SIDBAKGRUND & SEKTIONSAVSTÅND
   body.sp-startguide-page sätts automatiskt via PHP.
   ======================================================================== */

body.sp-startguide-page .entry-content {
    background: #f7f8f7 !important;
}

body.sp-startguide-page .entry-content > .elementor {
    background: transparent !important;
}

.sp-startguide-section {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    background: transparent;
}

.sp-startguide-section > .elementor-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Dölj gamla designelement som bråkar */
body.sp-startguide-page .sp-startguide-content .elementor-icon-list-icon {
    display: none !important;
}

body.sp-startguide-page .sp-startguide-content .elementor-icon-list-item {
    position: relative;
    padding-left: 28px !important;
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #4D524D !important;
    line-height: 1.563em !important;
}

body.sp-startguide-page .sp-startguide-content .elementor-icon-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(0.782em - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D5F42, #5a8a61);
}

body.sp-startguide-page .sp-startguide-content .elementor-icon-list-text {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

/* Typografi inom innehållsytan */
.sp-startguide-content h2,
.sp-startguide-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.sp-startguide-content h2 {
    font-size: 26px !important;
    margin: 0 !important;
}

.sp-startguide-content h3 {
    font-size: 20px !important;
    margin: 0 !important;
}

.sp-startguide-content p {
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #4D524D !important;
    line-height: 1.563em !important;
    margin: 0 0 16px !important;
}

.sp-startguide-content ul,
.sp-startguide-content ol {
    padding-left: 0 !important;
    margin: 0 0 20px !important;
    list-style: none !important;
}

.sp-startguide-content li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    font-family: 'Proxima Nova Regular', proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #4D524D !important;
    line-height: 1.563em !important;
}

.sp-startguide-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D5F42, #5a8a61);
}

.sp-startguide-content ol {
    counter-reset: sg-list;
}

.sp-startguide-content ol li::before {
    counter-increment: sg-list;
    content: counter(sg-list);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D5F42, #5a8a61);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sp-startguide-content a {
    color: #3D5F42 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.sp-startguide-content a:hover {
    color: #2e4a32 !important;
}

.sp-startguide-content .sp-sg-quiz-cta a[style*="background"] {
    color: #fff !important;
    text-decoration: none !important;
}

.sp-startguide-content .sp-sg-quiz-cta a[style*="background"]:hover {
    color: #fff !important;
    opacity: 0.9;
}

.sp-startguide-content strong,
.sp-startguide-content b {
    color: #3a3e3a !important;
    font-weight: 700 !important;
}


/* ========================================================================
   9. MOBILANPASSNING
   ======================================================================== */

@media only screen and (max-width: 991px) {
    .sp-sg-stepper {
        max-width: 100%;
    }

    .sp-sg-step-circle {
        width: 34px;
        height: 34px;
    }

    .sp-sg-step-num {
        font-size: 13px !important;
    }

    .sp-sg-step-label {
        font-size: 10px !important;
    }

    .sp-sg-line {
        min-width: 12px;
    }

    .sp-sg-card-grid--4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-sg-program-card {
        padding: 24px 18px 22px;
    }
}

@media only screen and (max-width: 767px) {
    .sp-sg-stepper {
        display: none;
    }

    .sp-sg-stepper-mobile {
        display: block;
    }

    .sp-sg-stepper-wrap {
        padding: 18px 20px 16px;
        margin-bottom: 24px;
    }

    .sp-startguide-section > .elementor-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .sp-sg-tipcard {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 16px;
        gap: 14px;
    }

    .sp-sg-tipcard-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .sp-sg-card-grid--2col,
    .sp-sg-card-grid--3col,
    .sp-sg-card-grid--4col {
        grid-template-columns: 1fr;
    }

    .sp-sg-nav {
        flex-direction: column-reverse;
        gap: 12px;
        padding: 24px 0 8px;
        margin-top: 24px;
    }

    .sp-sg-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }

    .sp-sg-nav-btn--next,
    .sp-sg-nav-btn--complete {
        margin-left: 0;
    }

    .sp-sg-nav-btn-title {
        font-size: 14px !important;
    }

    .sp-sg-nav-spacer {
        display: none;
    }

    .sp-sg-pathcard {
        padding: 26px 20px 24px;
    }

    .sp-sg-pathcard-badge {
        position: static;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.2);
    }

    .sp-sg-path-primary,
    .sp-startguide-content .sp-sg-path-primary {
        padding: 18px 16px;
        gap: 14px;
    }

    .sp-sg-path-primary-badge,
    .sp-sg-path-primary .sp-sg-path-primary-badge {
        top: 8px;
        right: 10px;
        font-size: 9px !important;
        padding: 2px 7px;
    }

    .sp-sg-path-primary-icon,
    .sp-sg-path-primary .sp-sg-path-primary-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .sp-sg-path-primary-icon .sp-sg-icon,
    .sp-sg-path-primary-icon svg {
        width: 18px;
        height: 18px;
    }

    .sp-sg-path-primary-text strong,
    .sp-sg-path-primary .sp-sg-path-primary-text strong {
        font-size: 15px !important;
    }

    .sp-sg-path-primary-text span,
    .sp-sg-path-primary .sp-sg-path-primary-text span {
        font-size: 12px !important;
    }

    .sp-sg-completion-hero {
        padding: 32px 18px 28px;
    }

    .sp-sg-completion-title,
    .sp-sg-completion-hero .sp-sg-completion-title,
    .sp-startguide-content h2.sp-sg-completion-title {
        font-size: 24px !important;
        margin: 0 0 16px !important;
    }

    .sp-sg-completion-icon {
        width: 60px;
        height: 60px;
    }

    .sp-sg-completion-icon .sp-sg-icon,
    .sp-sg-completion-icon svg {
        width: 28px;
        height: 28px;
    }

    .sp-sg-program-card {
        padding: 22px 16px 20px;
    }

    .sp-sg-program-title {
        font-size: 15px !important;
    }

    .sp-sg-section-title {
        font-size: 18px !important;
    }

    .sp-startguide-content h2 {
        font-size: 22px !important;
    }

    .sp-startguide-content h3 {
        font-size: 18px !important;
    }

    .sp-startguide-content p,
    .sp-startguide-content li {
        font-size: 16px !important;
    }

    body.sp-startguide-page .sp-startguide-content .elementor-icon-list-item {
        font-size: 15px !important;
    }
}

@media only screen and (max-width: 480px) {
    .sp-sg-stepper-wrap {
        padding: 16px 16px 14px;
    }

    /* Padding styrs via Elementor */

    .sp-sg-nav-btn {
        padding: 14px 16px;
        gap: 10px;
    }

    .sp-sg-tipcard {
        padding: 14px;
    }

    .sp-sg-tipcard-title {
        font-size: 15px !important;
    }

    .sp-sg-tipcard-text {
        font-size: 13px !important;
    }

    .sp-sg-reslink {
        font-size: 14px !important;
        padding: 9px 14px;
        gap: 8px;
    }

    .sp-sg-reslink-icon svg {
        width: 18px;
        height: 18px;
    }
}
