:root {
    --color-text: #7c7e81;
    --color-heading: #0c1214;
    --color-accent: #5d82ac;
    --page-bg: #f6f7f8;
    --surface: #ffffff;
    --border: #d9dde2;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Jost", sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #f8f9fa 0%, #eef1f4 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: "Playfair Display", serif;
    color: var(--color-heading);
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
}

.placeholder-card {
    border: 1px dashed var(--border);
    background-color: color-mix(in srgb, var(--surface) 90%, var(--color-accent) 10%);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.section-label::before {
    content: "";
    width: 34px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(93, 130, 172, 0.22) 0%, rgba(93, 130, 172, 0.92) 100%);
}

.section-label::after {
    content: "";
    width: 34px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(93, 130, 172, 0.92) 0%, rgba(93, 130, 172, 0.22) 100%);
}

.section-label--light {
    color: #d7e2ef;
}

.section-label--light::before {
    background: linear-gradient(90deg, rgba(215, 226, 239, 0.26) 0%, rgba(215, 226, 239, 0.92) 100%);
}

.section-label--light::after {
    background: linear-gradient(90deg, rgba(215, 226, 239, 0.92) 0%, rgba(215, 226, 239, 0.26) 100%);
}

.preloader-bg,
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.preloader-bg {
    background: linear-gradient(180deg, #f8f9fa 0%, #edf1f4 100%);
}

#preloader {
    z-index: 9999;
    display: grid;
    place-items: center;
}

#preloader-status {
    display: grid;
    place-items: center;
}

.preloader-position.loader {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
}

.preloader-position.loader span {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(12, 18, 20, 0.16);
    border-top-color: var(--color-accent);
    border-radius: 999px;
    animation: preloader-spin 0.9s linear infinite;
}

.progress-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 60;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(93, 130, 172, 0.45);
    box-shadow: 0 0 4px rgba(12, 18, 20, 0.1);
    backdrop-filter: blur(4px);
}

.progress-wrap .progress-wrap-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    color: #0c1214;
    pointer-events: none;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap .progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-wrap path {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 4;
    box-sizing: border-box;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

.nav-link {
    color: var(--color-heading);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-accent);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-link[aria-current="page"] {
    color: var(--color-accent);
}

.footer-cta {
    background-attachment: fixed;
}

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.35rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    transition: color 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
}

.link-cta::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
    transform: scaleX(0.55);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.link-cta:hover,
.link-cta:focus-visible {
    color: #3f658f;
}

.link-cta:hover::after,
.link-cta:focus-visible::after {
    transform: scaleX(1);
    opacity: 0.9;
}

.link-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.link-cta:hover svg,
.link-cta:focus-visible svg {
    transform: translateX(4px);
}

.link-cta:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 6px;
    border-radius: 2px;
}

.link-cta[aria-current="page"] {
    color: #3f658f;
}

.link-cta[aria-current="page"]::after {
    transform: scaleX(1);
    opacity: 0.9;
}

.link-cta--icon-only {
    padding-bottom: 0;
}

.link-cta--icon-only::after {
    content: none;
}

.link-cta--prev:hover svg,
.link-cta--prev:focus-visible svg {
    transform: translateX(-4px);
}

.link-cta--light {
    color: #ffffff;
}

.link-cta--light:hover,
.link-cta--light:focus-visible {
    color: #d7e2ef;
}

.link-cta--light:focus-visible {
    outline-color: #d7e2ef;
}

.hero-carousel .owl-item .hero-seq > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.hero-carousel .owl-item.active .hero-seq > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel .owl-item.active .hero-seq > *:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-carousel .owl-item.active .hero-seq > *:nth-child(2) {
    transition-delay: 0.26s;
}

.hero-carousel .owl-item.active .hero-seq > *:nth-child(3) {
    transition-delay: 0.42s;
}

.hero-carousel .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
}

.hero-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.4) !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel .owl-dots .owl-dot.active span,
.hero-carousel .owl-dots .owl-dot:hover span {
    background: var(--color-accent) !important;
    transform: scale(1.15);
}

.hero-carousel .owl-nav {
    margin-top: 0;
}

.hero-carousel .owl-nav button.owl-prev,
.hero-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(12, 18, 20, 0.35) !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.hero-carousel .owl-nav button.owl-prev {
    left: 14px;
}

.hero-carousel .owl-nav button.owl-next {
    right: 14px;
}

.hero-carousel .owl-nav button.owl-prev:hover,
.hero-carousel .owl-nav button.owl-next:hover {
    background: rgba(93, 130, 172, 0.85) !important;
}

.blog-carousel .owl-dots {
    margin-top: 1.25rem;
}

.blog-carousel .owl-dots .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 5px;
    background: rgba(93, 130, 172, 0.3) !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.blog-carousel .owl-dots .owl-dot.active span,
.blog-carousel .owl-dots .owl-dot:hover span {
    background: var(--color-accent) !important;
    transform: scale(1.15);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta {
        background-attachment: scroll;
    }

    .hero-carousel .owl-item .hero-seq > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1023px) {
    .footer-cta {
        background-attachment: scroll;
    }

    .hero-carousel .owl-nav button.owl-prev,
    .hero-carousel .owl-nav button.owl-next {
        display: none;
    }
}



/* Added for PageCrafter richtext fields (article-with-sidebar, media-text,
   richtext-block): the backend's StrictHtmlSanitizer strips <i> icon tags and
   all element attributes from stored HTML, so list markers are recreated here
   in CSS instead of via inline lucide icons. */
.prose-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.prose-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.prose-content p {
    margin-top: 1rem;
}

.prose-content ul,
.prose-content ol {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding-left: 0;
    list-style: none;
}

.prose-content ul li,
.prose-content ol li {
    position: relative;
    padding-left: 1.75rem;
}

.prose-content ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.prose-content ul li p,
.prose-content ol li p {
    margin-top: 0;
}

.prose-content ol {
    counter-reset: prose-ol;
}

.prose-content ol li::before {
    counter-increment: prose-ol;
    content: counter(prose-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 600;
}