:root {
    --dsi-bg: #ffffff;
    --dsi-bg-soft: #f6f9fc;
    --dsi-surface: #ffffff;
    --dsi-surface-alt: #eef4ff;
    --dsi-primary: #3B71B9;
    --dsi-primary-hover: #2D60A3;
    --dsi-primary-soft: rgba(59, 113, 185, 0.08);
    --dsi-primary-soft-strong: rgba(59, 113, 185, 0.12);
    --dsi-primary-soft-subtle: rgba(59, 113, 185, 0.04);
    --dsi-primary-border-soft: rgba(59, 113, 185, 0.18);
    --dsi-primary-border: rgba(59, 113, 185, 0.28);
    --dsi-primary-glow: rgba(59, 113, 185, 0.06);
    --dsi-primary-glow-strong: rgba(59, 113, 185, 0.10);
    --dsi-primary-glow-max: rgba(59, 113, 185, 0.18);
    --dsi-heading: #061b31;
    --dsi-text: #4f647b;
    --dsi-text-strong: #273951;
    --dsi-border: #e5edf5;
    --dsi-border-strong: #d6e2f0;
    --dsi-shadow: rgba(50, 50, 93, 0.12) 0px 18px 36px -18px,
                  rgba(0, 0, 0, 0.08) 0px 12px 24px -18px;
    --dsi-shadow-lg: rgba(50, 50, 93, 0.18) 0px 30px 45px -30px,
                     rgba(0, 0, 0, 0.10) 0px 18px 36px -18px;
    --dsi-radius-sm: 0.4rem;
    --dsi-radius: 0.65rem;
    --dsi-radius-lg: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--dsi-text);
    background:
        radial-gradient(circle at top left, var(--dsi-primary-glow), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.display-4,
.display-5,
.navbar-brand,
.btn {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-feature-settings: "ss01";
}

h1, h2, h3, h4, h5, h6,
.display-4,
.display-5,
.fw-bold,
.text-dark {
    color: var(--dsi-heading) !important;
}

.display-4,
.display-5 {
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lead {
    color: var(--dsi-text);
    font-weight: 400;
    line-height: 1.6;
}

p,
.text-muted,
.text-secondary,
li {
    color: var(--dsi-text) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.82) !important;
}

main {
    min-height: calc(100vh - 240px);
}

.container {
    max-width: 1140px;
}

.navbar {
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 237, 245, 0.9);
}

.navbar-brand {
    border: 0;
    padding: 0.15rem 0;
    background: transparent !important;
    box-shadow: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
    background: transparent !important;
}

.brand-logo {
    max-height: 44px;
    width: auto;
    display: block;
}


.nav-link {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--dsi-text-strong) !important;
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--dsi-primary) !important;
    background-color: var(--dsi-primary-soft);
}

.portal-link {
    border: 1px solid var(--dsi-primary-border-soft);
    background: var(--dsi-primary-soft-subtle);
}

.portal-link:hover,
.portal-link:focus {
    background: var(--dsi-primary-soft-strong);
}

.hero-section {
    background:
        linear-gradient(135deg, var(--dsi-primary-glow) 0%, rgba(249, 251, 255, 0.95) 40%, rgba(238, 244, 255, 0.95) 100%);
    border-bottom: 1px solid var(--dsi-border);
}

.hero-kicker {
    letter-spacing: 0.12em;
}

.hero-visual-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,249,252,0.96) 100%);
    border: 1px solid var(--dsi-border);
    border-radius: 1.25rem;
    box-shadow: var(--dsi-shadow-lg);
}

.hero-screenshot {
    width: 100%;
}

section,
header,
.card,
footer,
.rounded,
.rounded-3,
.rounded-4 {
    border-radius: var(--dsi-radius-lg) !important;
}

.card,
.bg-light,
.bg-white,
.list-group-item,
.border,
.shadow,
.shadow-sm {
    border-color: var(--dsi-border) !important;
}

.card,
.shadow-sm,
.bg-white.border,
.bg-light.rounded,
.bg-white.rounded,
.rounded.shadow,
.rounded.shadow-sm {
    box-shadow: var(--dsi-shadow) !important;
}

.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: var(--dsi-radius-lg) !important;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dsi-shadow-lg) !important;
    border-color: rgba(59, 113, 185, 0.22) !important;
}

.feature-card img {
    object-fit: cover;
}

.bg-light {
    background-color: var(--dsi-bg-soft) !important;
}

.bg-light-blue {
    background: linear-gradient(135deg, var(--dsi-primary-glow-strong) 0%, var(--dsi-primary-glow-max) 100%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px var(--dsi-primary-soft);
}

.text-primary,
.btn-link,
a {
    color: var(--dsi-primary) !important;
}

a:hover {
    color: var(--dsi-primary-hover) !important;
}

.btn-primary,
.bg-primary {
    background: linear-gradient(135deg, var(--dsi-primary) 0%, #4A76B2 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--dsi-primary-hover) 0%, #3B71B9 100%) !important;
    color: #ffffff !important;
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-light,
.btn-outline-secondary {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--dsi-primary) !important;
    border-color: var(--dsi-primary-border) !important;
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--dsi-primary-soft) !important;
    color: var(--dsi-primary-hover) !important;
}

.portal-nav .btn.active,
.portal-nav .btn.active:hover,
.portal-nav .btn.active:focus {
    background: linear-gradient(135deg, var(--dsi-primary) 0%, #4A76B2 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.portal-nav .btn.active * {
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: var(--dsi-text-strong) !important;
    border-color: var(--dsi-border-strong) !important;
    background: rgba(255,255,255,0.92);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--dsi-bg-soft) !important;
    color: var(--dsi-heading) !important;
}

.btn-light {
    background: #ffffff !important;
    color: var(--dsi-primary) !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
}

.badge {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.list-group-item {
    background: transparent;
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
}

img.img-fluid.rounded,
img.img-fluid.rounded.shadow,
img.img-fluid.rounded.shadow-sm {
    border: 1px solid rgba(229, 237, 245, 0.9);
    background: #ffffff;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 25%);
    pointer-events: none;
}

.blog-post-content {
    font-size: 1.08rem;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.65rem;
}

.blog-post-content p {
    margin-bottom: 1.15rem;
}

.blog-post-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.35rem;
}

.blog-post-content li {
    margin-bottom: 0.55rem;
}

footer {
    font-size: 0.95rem;
    background: linear-gradient(180deg, #0d2138 0%, #061b31 100%) !important;
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

footer h5,
footer .text-white,
footer a.text-white,
footer i {
    color: #ffffff !important;
}

footer .text-secondary,
footer .small,
footer p,
footer a.text-decoration-none {
    color: rgba(255, 255, 255, 0.72) !important;
}

footer hr {
    opacity: 0.18;
}

.brightness-0.invert {
    filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

@media (max-width: 991.98px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--dsi-border);
        border-radius: var(--dsi-radius);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--dsi-shadow);
    }
}

@media (max-width: 767.98px) {
    body {
        background: #f8fbff;
    }

    .display-4 {
        font-size: 2.15rem;
    }

    .display-5 {
        font-size: 1.95rem;
    }

    .btn,
    .btn-primary,
    .btn-outline-primary,
    .btn-light,
    .btn-outline-secondary {
        width: 100%;
    }
}

.schedule-embed-shell {
    position: relative;
    padding: 1.25rem;
    border: 1px solid var(--dsi-border);
    border-radius: var(--dsi-radius-lg);
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.schedule-embed-shell .schedule-fullscreen-toggle {
    width: auto;
}

.schedule-embed-shell .schedule-embed-ratio {
    --bs-aspect-ratio: min(70%, 860px);
}

.schedule-embed-frame {
    background: #ffffff;
}

.schedule-embed-shell.schedule-shell-expanded {
    background: #08172d;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--dsi-shadow-lg);
}

.schedule-embed-shell.schedule-shell-expanded .text-primary,
.schedule-embed-shell.schedule-shell-expanded h2 {
    color: #ffffff !important;
}

.schedule-embed-shell.schedule-shell-expanded p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.schedule-embed-shell.schedule-shell-expanded .schedule-embed-ratio {
    --bs-aspect-ratio: calc(100vh - 12rem);
}

.schedule-embed-shell.schedule-shell-expanded .schedule-embed-frame {
    border-color: rgba(255, 255, 255, 0.18) !important;
    border-radius: 1rem !important;
}

.schedule-embed-shell:fullscreen {
    padding: 1.5rem;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    overflow: auto;
}

.schedule-embed-shell:fullscreen .schedule-embed-ratio {
    --bs-aspect-ratio: calc(100vh - 10rem);
}

.schedule-embed-shell:fullscreen .schedule-fullscreen-toggle {
    width: auto;
}

@media (max-width: 767.98px) {
    .schedule-embed-shell {
        padding: 1rem;
    }

    .schedule-embed-shell .schedule-fullscreen-toggle {
        width: 100%;
    }

    .schedule-embed-shell .schedule-embed-ratio,
    .schedule-embed-shell.schedule-shell-expanded .schedule-embed-ratio,
    .schedule-embed-shell:fullscreen .schedule-embed-ratio {
        --bs-aspect-ratio: 140%;
    }
}

.blog-feedback-banner-link > div {
    background: linear-gradient(135deg, #0b4f8a 0%, #3B71B9 55%, #4A76B2 100%);
}

.blog-feedback-banner-link:hover > div,
.blog-feedback-banner-link:focus > div {
    transform: translateY(-2px);
    box-shadow: var(--dsi-shadow-lg);
}

.blog-feedback-banner-link > div,
.blog-feedback-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-feedback-cta {
    width: auto;
    white-space: nowrap;
}

.form-control,
.form-select,
textarea.form-control {
    border-color: var(--dsi-border-strong);
    border-radius: var(--dsi-radius);
    padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(59, 113, 185, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(59, 113, 185, 0.15);
}

.blog-delete-button {
    width: 100%;
}
