.theme-cna {
    --theme-light-bg: #f0fdf4;
    --theme-light-border: #99f6e4;
    --theme-badge-bg: #ccfbf1;
    --theme-badge-text: #0f766e;
    --theme-gradient: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
}

.theme-aide {
    --theme-light-bg: #ecfdf5;
    --theme-light-border: #a7f3d0;
    --theme-badge-bg: #d1fae5;
    --theme-badge-text: #047857;
    --theme-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1;
}
.sm-container {
    max-width: 48rem;
    margin: 0 auto;
}
.srv-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background-color: var(--white);
}
.srv-bg-muted {
    background-color: var(--bg-muted);
}
.mb-md {
    margin-bottom: 1.5rem;
}
.mb-lg {
    margin-bottom: 2.5rem;
}
.justify-center {
    justify-content: center;
}
.text-center {
    text-align: center;
}

.btn-theme-gradient {
    background: var(--theme-gradient);
    color: var(--white);
}
.btn-theme-gradient:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-xl);
}
.btn-white {
    background-color: var(--white);
    color: var(--text-primary);
}
.btn-white:hover {
    background-color: #f8fafc;
}
.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}
.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.srv-hero {
    padding: clamp(4rem, 8vw, 5rem) 0;
    position: relative;
    overflow: hidden;
    background-color: var(--theme-light-bg);
}
.srv-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 100%
    );
    z-index: 0;
}
.relative-z {
    position: relative;
    z-index: 10;
}
.srv-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
.srv-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.125rem 0.625rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    background-color: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.srv-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}
.srv-title span {
    color: var(--theme-badge-text);
}
.srv-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.srv-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.srv-meta-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.srv-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}
.srv-icon {
    width: 1rem;
    height: 1rem;
    color: var(--theme-badge-text);
}
.srv-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.srv-icon-right {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}
.srv-hero-visual {
    display: flex;
    justify-content: center;
}
.srv-visual-card {
    width: 16rem;
    height: 16rem;
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 1.5rem;
    background: var(--theme-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    color: var(--white);
    text-align: center;
}
.srv-visual-text {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}
.srv-visual-sub {
    font-size: var(--fs-sm);
    opacity: 0.8;
}
.srv-stars {
    margin-top: 1rem;
    display: flex;
    gap: 0.25rem;
}
.srv-star {
    width: 1.25rem;
    height: 1.25rem;
    color: #fde047;
}

.srv-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--bg-muted);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.srv-format-layout {
    display: grid;
    gap: 2.5rem;
    align-items: flex-start;
}
.srv-stat-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}
.srv-stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-muted);
    transition: box-shadow var(--transition-fast);
}
.srv-stat-box:hover {
    box-shadow: var(--shadow-sm);
}
.srv-stat-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.srv-stat-icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
}
.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.stat-val {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}
.srv-subheading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    margin-bottom: 0.75rem;
}
.srv-pill-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.srv-pill {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--theme-gradient);
}
.srv-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.srv-sidebar-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    margin-bottom: 1.25rem;
}
.srv-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.q-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.q-stat-row.no-border {
    border-bottom: none;
    padding-bottom: 0;
}
.q-lbl {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.q-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.q-val {
    font-weight: 700;
    font-size: var(--fs-sm);
}
.q-val-highlight {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--theme-badge-text);
}
.q-val-accent {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: #d97706;
}

.srv-topics-grid {
    display: grid;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}
.srv-topic-card {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-light-border);
    background-color: var(--theme-light-bg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: box-shadow var(--transition-fast);
}
.srv-topic-card:hover {
    box-shadow: var(--shadow-md);
}
.topic-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--theme-badge-text);
    flex-shrink: 0;
}
.topic-name {
    font-weight: 500;
    font-size: var(--fs-sm);
}

.srv-learn-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
.srv-learn-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.learn-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.learn-num {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--theme-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.learn-text {
    color: var(--text-muted);
    padding-top: 0.25rem;
}
.srv-deep-dives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.deep-dive-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: box-shadow var(--transition-fast);
}
.deep-dive-card:hover {
    box-shadow: var(--shadow-md);
}
.dive-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    padding: 0.125rem 0.625rem;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}
.dive-title {
    font-weight: 600;
    font-size: var(--fs-sm);
    margin-bottom: 0.25rem;
}
.dive-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.srv-cta-strip {
    padding: clamp(3rem, 6vw, 4rem) 0;
    background: var(--theme-gradient);
}
.cta-sparkle {
    width: 2rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1rem auto;
}
.cta-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.srv-related-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}
.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid var(--theme-light-border);
    background-color: var(--theme-light-bg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.rc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.rc-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--theme-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.rc-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.rc-badge {
    background-color: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    padding: 0.125rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.rc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--theme-badge-text);
    margin-bottom: 0.25rem;
}
.rc-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.rc-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.srv-floating-widget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    max-width: 20rem;
    width: calc(100% - 2rem);
}
.srv-gradient-bg {
    background: var(--theme-gradient);
}
.widget-action-text {
    color: var(--theme-badge-text);
}
.w-full {
    width: 100%;
}

@media (min-width: 576px) {
    .srv-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .srv-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .srv-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .srv-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .srv-format-layout {
        grid-template-columns: 1fr 300px;
    }
    .srv-learn-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .srv-topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .srv-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.theme-hospice {
    --theme-light-bg: #faf5ff;
    --theme-light-border: #e9d5ff;
    --theme-badge-bg: #f3e8ff;
    --theme-badge-text: #7e22ce;
    --theme-gradient: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
}

.theme-cen {
    --theme-light-bg: #fef2f2;
    --theme-light-border: #fecaca;
    --theme-badge-bg: #fee2e2;
    --theme-badge-text: #b91c1c;
    --theme-gradient: linear-gradient(135deg, #ef4444 0%, #e11d48 100%);
}
.theme-fnp {
    --theme-light-bg: #fff7ed;
    --theme-light-border: #fed7aa;
    --theme-badge-bg: #ffedd5;
    --theme-badge-text: #c2410c;
    --theme-gradient: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
}
.theme-ptce {
    --theme-light-bg: #f0fdf4;
    --theme-light-border: #bbf7d0;
    --theme-badge-bg: #dcfce7;
    --theme-badge-text: #15803d;
    --theme-gradient: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
}
.theme-ccma {
    --theme-light-bg: #eff6ff;
    --theme-light-border: #bfdbfe;
    --theme-badge-bg: #dbeafe;
    --theme-badge-text: #1d4ed8;
    --theme-gradient: linear-gradient(135deg, #60a5fa 0%, #6366f1 100%);
}
.theme-phlebotomy {
    --theme-light-bg: #fff1f2;
    --theme-light-border: #fecdd3;
    --theme-badge-bg: #ffe4e6;
    --theme-badge-text: #be123c;
    --theme-gradient: linear-gradient(135deg, #fb7185 0%, #ec4899 100%);
}
.theme-dental {
    --theme-light-bg: #f0f9ff;
    --theme-light-border: #bae6fd;
    --theme-badge-bg: #e0f2fe;
    --theme-badge-text: #0369a1;
    --theme-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
}
.theme-slp {
    --theme-light-bg: #fdf2f8;
    --theme-light-border: #fbcfe8;
    --theme-badge-bg: #fce7f3;
    --theme-badge-text: #be185d;
    --theme-gradient: linear-gradient(135deg, #f472b6 0%, #f43f5e 100%);
}
.theme-counsellor {
    --theme-light-bg: #eef2ff;
    --theme-light-border: #c7d2fe;
    --theme-badge-bg: #e0e7ff;
    --theme-badge-text: #4338ca;
    --theme-gradient: linear-gradient(135deg, #818cf8 0%, #a855f7 100%);
}
.theme-aama {
    --theme-light-bg: #f5f3ff;
    --theme-light-border: #ddd6fe;
    --theme-badge-bg: #ede9fe;
    --theme-badge-text: #6d28d9;
    --theme-gradient: linear-gradient(135deg, #a78bfa 0%, #9333ea 100%);
}

.srv-exam-library {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.library-section {
    background-color: var(--white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.library-header {
    background-color: var(--bg-muted, #f8fafc);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.library-group-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.library-group-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-badge-text);
    background-color: var(--theme-badge-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.library-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.library-card:hover {
    border-color: var(--theme-light-border);
    background-color: var(--theme-light-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.lc-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lc-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.lc-meta {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.lc-action {
    color: var(--theme-badge-text);
    opacity: 0.5;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-action svg {
    width: 1.2rem;
    height: 1.2rem;
}
