/*
Theme Name: Canvas
Text Domain: canvas
Version: 1.0.0
Description: Custom WordPress theme for the Canvas site.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Author: TheDigiAlex
Author URI: https://thedigialex.com
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--color-secondary);
    color: var(--color-site-bg);
}

body {
    margin: 0;
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    font-size: var(--size-p, 1rem);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-site-bg, #fff);
    line-height: 1.56;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading, var(--font-body, system-ui, -apple-system, sans-serif));
}

h1 {
    font-size: var(--size-h1, 2.5rem);
}

h2 {
    font-size: var(--size-h2, 2rem);
}

h3 {
    font-size: var(--size-h3, 1.5rem);
}

h4 {
    font-size: var(--size-h4, 1.25rem);
}

a {
    color: var(--color-text);
    font-size: var(--size-a, 1rem);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 6px;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.growing-underline {
    position: relative;
    padding: 8px 0;
    text-decoration: none;
}

.growing-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.growing-underline:hover::after,
.growing-underline.is-active::after {
    transform: scaleX(1);
}

.growing-underline--thin::after {
    height: 2px;
}

.growing-underline--fast::after {
    transition: transform 0.15s ease;
}

.growing-underline--slow::after {
    transition: transform 0.4s ease;
}

.growing-underline--primary::after {
    background: var(--color-primary);
}

.growing-underline--secondary::after {
    background: var(--color-secondary);
}

.header-desktop-one {
    display: flex;
    flex-direction: column;
    background: var(--color-site-bg, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: auto;
    padding: 0;
}

.header-one-row-two {
    display: flex;
    align-items: center;
    background: var(--color-site-bg, #ffffff);
    justify-content: space-between;
}

.site-header-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.header-row-two,
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-row-two {
    background: var(--color-container-bg);
    height: 48px;
}

.header-row-one {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    gap: 1.5rem;
    background-color: var(--color-primary);
}

.header-row-one a {
    text-decoration: none;
    color: var(--color-site-bg);
    font-size: var(--size-breadcrumb);
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.site-nav-menu,
.site-nav-menu-secondary,
.site-nav-menu-mega {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.mobile-secondary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-nav-menu-secondary a {
    color: var(--color-site-bg);
}

.site-nav-menu li {
    position: relative;
}

.site-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    background: var(--color-site-bg, #fff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--color-accent);
    border-radius: 0 0 6px 6px;
    z-index: 1000;
}

.site-nav-menu li:hover>.sub-menu {
    display: block;
}

.site-nav-menu .sub-menu li {
    list-style: none;
}

.site-nav-menu .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-menu .sub-menu a.growing-underline::after {
    display: none;
}

.site-nav-menu .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-primary);
}

.admin-bar .header-desktop-one,
.admin-bar .bar-sticky {
    top: 32px;
}

.mobile-header {
    display: none;
}

.hb-hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    background: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.hb-hamburger:hover {
    opacity: 0.88;
}

.hb-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-site-bg);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

body.mobile-menu-open .hb-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .hb-hamburger span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .hb-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hb-mobile-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--color-primary);
    color: var(--color-text, #333);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.hb-mobile-menu-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.hb-mobile-search {
    display: flex;
    background-color: var(--color-border);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hb-mobile-nav {
    background: var(--color-site-bg);
    flex: 1;
}

.hb-mobile-direct-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.accordion-label {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
}

.mobile-footer {
    background: var(--color-primary);
    text-align: center;
    padding: 1rem;
}

.mobile-footer a {
    color: var(--color-site-bg);
    text-decoration: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.site-main {
    min-height: 100vh;
    background: var(--color-site-bg);
}

.components-wrap {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin: 8rem 0;
}

.header-padding-sides {
    padding: 0 1.5rem;
}

.header-padding {
    padding: 0.75rem 1.5rem;
}

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: background 0.15s;
    margin-left: auto;
}

.header-search-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.site-alert-bar {
    background: var(--color-accent, #e74c3c);
    color: var(--color-site-bg, #fff);
    text-align: center;
    font-size: var(--size-p);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.header-search-row {
    max-height: 0;
    overflow: hidden;
    background: var(--color-secondary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.header-search-row.is-open {
    max-height: 100px;
    padding: 5rem 0;
    box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, 0.25);
}

.header-search-row .cs-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.bar-sticky {
    position: sticky;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 36px;
    clip-path: inset(0 0 -60px 0);
}

.l2-top-secondary-nav {
    flex-grow: 1;
    height: 36px;
    display: flex;
    background: var(--color-primary);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: flex-end;
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.bar-sticky.l2-scrolled .l2-top-secondary-nav {
    transform: translateY(-100%);
}

.sticky-btns {
    flex-shrink: 0;
    display: flex;
    height: 60px;
}

.l2-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.4rem;
    font-size: var(--size-breadcrumb);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    width: 200px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.l2-top-btn:hover {
    text-decoration: none;
}

.l2-top-btn--primary {
    background: var(--color-secondary);
    color: var(--color-site-bg);
    border-radius: 0 0 0 8px;
}

.l2-top-btn--primary:hover,
.l2-top-btn--secondary:hover {
    background: var(--color-site-bg);
    color: var(--color-text);
}

.l2-top-btn--primary:hover {
    border-left-color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.l2-top-btn--secondary {
    background: var(--color-accent);
    color: var(--color-text);
}

.l2-top-btn--secondary:hover {
    border-right-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.l2-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.l2-nav {
    display: flex;
    margin-left: auto;
}

.l2-nav-trigger,
.l2-nav-link {
    display: flex;
    align-items: center;
    color: var(--color-text);
}

.l2-nav-trigger {
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.l2-nav-link {
    text-decoration: none;
}

.site-nav-menu-mega>li.mega-is-open>.growing-underline::after {
    transform: scaleX(1);
}

.l2-chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.site-nav-menu-mega>li.mega-is-open .l2-chevron {
    transform: rotate(180deg);
}

.l2-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-site-bg, #fff);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 8px 12px -8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 200;
}

.l2-mega-panel.is-open {
    max-height: 457px;
    opacity: 1;
    pointer-events: auto;
}

.l2-mega-inner {
    display: flex;
    flex-direction: row;
    height: 457px;
    position: relative;
    overflow: hidden;
}

.l2-mega-parent {
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.l2-mega-parent>* {
    position: relative;
    z-index: 1;
}

.l2-mega-parent h2 {
    color: var(--color-primary);
}

.l2-mega-right {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    overflow: hidden;
}

.l2-mega-panel.has-1-card .l2-mega-right {
    grid-template-columns: 1fr 25%;
}

.l2-mega-panel.has-2-cards .l2-mega-right {
    grid-template-columns: 1fr 25% 25%;
}

.l2-mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    align-self: center;
    row-gap: 2rem;
    column-gap: 0;
    font-weight: 500;
}

.l2-mega-panel.has-cards .l2-mega-links {
    grid-template-columns: repeat(2, 1fr);
}

.l2-mega-links .growing-underline {
    width: max-content;
}

.l2-mega-card {
    background: var(--color-primary, #1a2e4a);
    color: var(--color-site-bg, #fff);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.l2-mega-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 1;
}

.l2-mega-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.l2-mega-card-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    flex: 1;
    justify-content: center;
}

.l2-mega-card .page-hero-badge {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.l2-mega-card .page-hero-badge--pill {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.l2-mega-card .page-hero-badge::before {
    background: var(--color-accent);
}

.page-content {
    margin-bottom: 3rem;
}

.site-footer-top {
    background: var(--color-primary);
    color: var(--color-site-bg);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.site-footer-privacy {
    font-size: 0.875rem;
    padding: 0 .25rem;
}

.site-footer-bg-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: right center;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.site-footer-inner {
    position: relative;
    z-index: 1;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo--mobile {
    display: none;
}

.site-footer-brand .custom-logo-link img,
.site-footer-brand .custom-logo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
}

.site-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote {
    width: 30%;
    margin: auto;
    line-height: 1.7;
    text-align: center;
    align-items: center;
}

.quote .page-hero-badge {
    margin-bottom: 1.5rem;
    justify-content: center;
}

.site-footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-site-bg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    padding: .25rem 0;
    transition: opacity 0.15s;
}

.site-footer-address {
    color: var(--color-site-bg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

.site-footer-contact-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.site-footer-bottom {
    background: var(--color-border);
    color: var(--color-text);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    width: 75%;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.site-footer-text {
    margin: 0;
}

.site-footer-inner--with-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: start;
    justify-items: start;
    align-items: start;
    gap: 2rem 8rem;
}

.site-footer-col-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    color: var(--color-site-bg);
}

.site-footer-quicklinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-quicklinks-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    text-transform: none;
    text-decoration: none;
    color: var(--color-site-bg);
    white-space: nowrap;
    padding-bottom: 4px;
}

.site-footer-quicklinks-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-accent);
    transform: scaleY(0.33);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.site-footer-quicklinks-list a:hover::after {
    transform: scaleY(1);
}

.site-footer {
    margin: 0;
    font-size: var(--size-breadcrumb);
    color: var(--color-text);
    text-decoration: none;
}

.site-footer-social {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.cs-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    color: color-mix(in srgb, var(--color-border) 65%, transparent);
    transition: opacity 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}

.cs-social-icon:hover {
    color: var(--color-site-bg);
}

/* Circle style */
.cs-social-icon--circle {
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.75;
}

.cs-social-icon--circle:hover {
    opacity: 1;
}

/* Footer circle — white context */
.site-footer-social .cs-social-icon--circle {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-border);
}

.site-footer-social .cs-social-icon--circle:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

.not-found-home {
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
}

.not-found-home:hover {
    text-decoration: underline;
}

.forum-layout {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    justify-content: space-evenly;
    width: 65%;
    margin: 8rem auto;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 25%;
}

.forum-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 75%;
}

.forum-post-card {
    display: flex;
    gap: 0;
    background: var(--color-container-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 32px;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.forum-post-card:hover {
    border-color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.forum-post-card.forum-post-full {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.forum-post-body {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.forum-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.forum-post-time {
    color: var(--color-text);
}

.forum-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}

.forum-post-title a {
    text-decoration: none;
    color: var(--color-text);
}

.forum-post-title a:hover {
    color: var(--color-primary, #0073aa);
}

.forum-post-excerpt {
    font-size: 0.875rem;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-post-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-comment-link,
.forum-read-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.12s, color 0.12s;
}

.forum-comment-link:hover,
.forum-read-link:hover {
    background: color-mix(in srgb, var(--color-border) 30%, var(--color-container-bg));
    color: var(--color-text);
}

.forum-comment-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.search-card-type {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary, #2563eb);
    background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, transparent);
    padding: 2px 7px;
    border-radius: 4px;
}

.empty-state {
    background: var(--color-container-bg);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text);
}

.empty-state .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto 0.75rem;
    color: var(--color-text);
}

.empty-state p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.search-pagination {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--size-a);
    appearance: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: var(--color-border, #2563eb);
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

.center {
    text-align: center;
    align-items: center;
}

.flex-row,
.flex-row-testimonial {
    display: flex;
    flex-direction: row;
    gap: var(--section-gap);
}


.top-padding {
    padding: 4rem 0;
}

.all-padding {
    padding: 4rem;
}

.cs-cta__inner {
    display: flex;
    align-items: center;
}

.cs-cta--light {
    background: var(--color-border);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.cs-cta--light .cs-cta__inner {
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cs-cta--light .cs-cta__body {
    align-items: center;
}

.cs-cta--dark {
    background: var(--color-primary);
    color: var(--color-site-bg);
    position: relative;
    overflow: hidden;
}

.cs-cta--dark .cs-cta__body {
    width: 75%;
}


.cs-cta--dark::before {
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.12), transparent) !important;
}

.cs-cta--dark .cs-cta__inner {
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.cs-full-width,
.cs-half-width,
.cs-component-header-narrow {
    margin: auto;
}

.cs-full-width {
    width: 65%;
}

.cs-half-width {
    width: 38%;
}

.cs-component-header-narrow {
    width: 60%;
}

.cs-video-wrap {
    width: 100%;
    max-width: 100%;
}

.cs-video-wrap iframe,
.cs-video-wrap embed,
.cs-video-wrap object {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.cs-text-block-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    clear: both;
}

/* Alert component */
.cs-alert {
    background: var(--color-container-bg);
    border-left: 4px solid var(--color-primary, #0073aa);
    border-radius: 0 6px 6px 0;
    padding: 1.25rem 1.5rem;
    max-width: 72ch;
}

.cs-alert-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-primary, #0073aa);
    margin: 0 0 .5rem;
}

.cs-alert-body {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--color-text, #333);
}

.cs-component-content {
    overflow-wrap: break-word;
}

.cs-component-content h2,
.cs-component-content h3,
.cs-component-content h4 {
    color: var(--color-primary);
}

.cs-component-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.cs-component-content .alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    max-width: 45%;
}

.cs-component-content .alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
    max-width: 45%;
}

.cs-component-content .aligncenter {
    display: block;
    margin: 0.75rem auto;
}

.cs-component-content .alignnone {
    display: block;
    margin: 0.5rem 0;
}

.component-fifty-fifty {
    position: relative;
    overflow: hidden;
}

.component-fifty-fifty.ff--light {
    background: var(--color-site-bg);
    color: var(--color-text);
}

.component-fifty-fifty.ff--dark {
    background: var(--color-primary);
    color: var(--color-site-bg);
}

.component-fifty-fifty.ff--dark.dots-ltr::before,
.component-fifty-fifty.ff--dark.dots-rtl::before {
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-site-bg) 12%, transparent), transparent);
    z-index: 0;
}

.component-fifty-fifty .ff-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.component-fifty-fifty.ff--flip .ff-inner {
    flex-direction: row-reverse;
}

.component-fifty-fifty .ff-image-col {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.component-fifty-fifty.ff--landscape .ff-image-col {
    display: flex;
    align-items: center;
}

.component-fifty-fifty.ff--landscape .ff-image-col img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.component-fifty-fifty.ff--extended .ff-image-col {
    padding: 0;
}

.component-fifty-fifty.ff--extended .ff-image-col img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.ff-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip) {
    background: linear-gradient(to right, var(--color-border) 35%, var(--color-site-bg) 35%);
}

.component-fifty-fifty.ff--light.ff--portrait.ff--flip {
    background: linear-gradient(to left, var(--color-border) 35%, var(--color-site-bg) 35%);
}

.component-fifty-fifty.ff--portrait .ff-profile-frame {
    position: relative;
    z-index: 1;
    width: 340px;
    max-width: 80%;
    margin: 0;
    padding: 1rem;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame img {
    width: 340px;
    max-width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::before,
.component-fifty-fifty.ff--portrait .ff-profile-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::before {
    top: -10px;
    left: -10px;
    border-top: 10px solid var(--color-primary);
    border-left: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::after {
    bottom: -10px;
    right: -10px;
    border-bottom: 10px solid var(--color-primary);
    border-right: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--dark.ff--portrait .ff-profile-frame::before,
.component-fifty-fifty.ff--dark.ff--portrait .ff-profile-frame::after {
    border-color: rgba(255, 255, 255, 0.5);
}

.component-fifty-fifty.ff--portrait.ff--flip .ff-profile-frame::before {
    left: auto;
    right: -10px;
    border-left: none;
    border-right: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--portrait.ff--flip .ff-profile-frame::after {
    right: auto;
    left: -10px;
    border-right: none;
    border-left: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--dark.ff--portrait.ff--flip .ff-profile-frame::before,
.component-fifty-fifty.ff--dark.ff--portrait.ff--flip .ff-profile-frame::after {
    border-color: rgba(255, 255, 255, 0.5);
}

.component-fifty-fifty .ff-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0rem;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.component-fifty-fifty .ff-text-col .primary-button,
.component-fifty-fifty .ff-text-col .secondary-button {
    align-self: flex-start;
    width: auto;
}

.component-page-intro::after {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--pi-bg);
    background-size: contain;
    filter: blur(6px);
}

.component-page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary) 90%, transparent);
    z-index: 1;
}

.pi-inner {
    position: relative;
    z-index: 3;
}

.pi-link {
    margin-top: 1.5rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
}

.pi-link i {
    font-size: 2rem;
    color: var(--color-accent);
    transition: transform 0.2s ease;
}

.pi-link:hover i {
    transform: translateY(4px);
}

.component-post-list {
    padding: var(--section-pad, 5rem 0);
}

.pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pl-view-all {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    white-space: nowrap;
    padding-bottom: 4px;
}

.pl-view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-accent);
    transform: scaleY(0.33);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.pl-view-all:hover::after {
    transform: scaleY(1);
}

.pl-view-all--primary {
    color: var(--color-primary);
}

.pl-view-all--primary::after {
    background: var(--color-accent);
}

.pl-view-all--site-bg {
    color: var(--color-site-bg);
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pl-card {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--color-secondary);
    height: 210px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    line-height: 1;
}

.pl-card-date {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-site-bg);
    font-size: var(--size-breadcrumb);
    font-weight: 600;
    padding: .5rem .75rem;
    margin-bottom: 0.85rem;
}

.pl-card-btn {
    text-decoration: none;
}

.btn-hover-ghost .pl-card:hover .pl-card-btn {
    opacity: 1;
    background: transparent;
    color: var(--color-accent);
}

.pl-empty {
    opacity: 0.6;
    font-style: italic;
}

.post-card,
.card-grid-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover,
.card-grid-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

a.card-grid-item--linked {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-grid-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.custom-logo {
    width: 80px;
    width: auto;
}

.header-desktop-one .custom-logo {
    height: 70px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-container-bg);
    color: var(--color-text);
    border-top: 2px solid var(--color-secondary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner--hidden {
    transform: translateY(100%);
}

.cookie-banner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cookie-banner-logo a {
    display: block;
    line-height: 0;
}

.cookie-banner-logo img,
.cookie-banner-logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-title {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
}

.cookie-banner-body {
    margin: 0;
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--color-text) 70%, transparent);
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.component-gallery .cs-component-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(var(--card-cols, 3), 1fr);
    gap: var(--section-gap);
    margin-top: 2.5rem;
}

.card-grid-item {
    display: flex;
    flex-direction: column;
}

.card-grid-image {
    height: 260px;
    background: var(--color-primary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.card-grid-image img {
    height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.card-grid-item--bio .card-grid-image img {
    height: 300px;
}

.card-grid-item--text {
    position: relative;
}

.card-grid-item--text::before {
    content: '';
    display: block;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(to right,
            var(--color-primary) 0 33.4%,
            var(--color-secondary) 0 66.7%,
            var(--color-tertiary) 0 100%);
}

.card-grid-body {
    padding: 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-grid-text {
    flex: 1;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
    gap: var(--section-gap);
}

.gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--color-container-bg);
    outline-offset: 3px;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-secondary);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    box-sizing: border-box;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-zoom {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .gallery-item-zoom {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.gallery-item figcaption {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
    margin: 0;
}

.cs-gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.cs-gallery-lightbox.is-open {
    display: flex;
}

.cslb-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3.5rem 5rem 1rem;
    box-sizing: border-box;
    min-height: 0;
}

.cslb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.cslb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
    padding: 0;
}

.cslb-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.cslb-prev,
.cslb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.cslb-prev {
    left: 1rem;
}

.cslb-next {
    right: 1rem;
}

.cslb-prev:hover,
.cslb-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.cslb-prev:disabled,
.cslb-next:disabled {
    opacity: 0.25;
    cursor: default;
}

.cslb-footer {
    width: 100%;
    padding: 0.75rem 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 1rem;
}

.cslb-caption {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.5;
}

.cslb-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
}

.component-full {
    width: 100%;
    position: relative;
    background-color: var(--color-primary);
    overflow: hidden;
    color: var(--color-site-bg);
}

.component-page-intro {
    padding-bottom: 3rem;
    padding-top: 6rem;
    min-height: 500px;
}

.component-full.dots-ltr::before,
.component-full.dots-ttb::before {
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-site-bg) 8%, transparent), transparent);
}

.testimonial-text {
    font-size: var(--size-a);
    margin: 0;
}

.testimonial-image {
    flex-shrink: 0;
    width: 268px;
    height: 328px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-body {
    flex: 1;
    gap: 1.5rem;
    padding: 4rem;
    width: 100%;
}

.testimonial-quote-mark {
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}

.testimonial-content-wrap {
    flex: 1;
}

.testimonial-content {
    color: var(--color-site-bg);
    margin: 0 0 1rem 0;
}

.testimonial-body .page-hero-badge {
    color: var(--color-site-bg);
}

.center .card-grid-body .page-hero-badge {
    justify-content: start;
}

.center .page-hero-badge {
    justify-content: center;
}

.component-accordion .page-hero-badge {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.acc-controls {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.acc-expand-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: var(--size-p);
    font-weight: 700;
    color: var(--color-primary);
}

.acc-expand-all i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-expand-all.is-expanded i {
    transform: rotate(405deg);
}

.accordion {
    border-top: 2px solid var(--color-border);
}

.accordion-item {
    border-bottom: 2px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.hb-mobile-menu-panel .accordion-trigger {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.hb-mobile-menu-panel .accordion-content {
    padding: 0.25rem 1.75rem;
}

.hb-mobile-menu-panel .accordion-content a {
    display: block;
    padding: 0.4rem 0;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.15s;
    font-size: var(--size-p);
    font-weight: bold;
}

.accordion-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.accordion-icon:hover,
.accordion-trigger:hover .accordion-icon {
    opacity: 1;
}

.accordion-icon i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon i {
    transform: rotate(405deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    color: var(--color-text);
}

.accordion-content {
    font-size: var(--size-a);
    padding: 1rem 4rem 2rem 4rem;
    text-align: left;
}

.accordion-content * {
    margin: 0;
}

.accordion-panel.is-open {
    max-height: 100%;
    text-decoration: none;
}

.accordion-content a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.accordion-content a:hover {
    text-decoration: underline;
}

.component-table {
    padding: var(--section-padding) 0;
}

.component-table .table-title {
    margin-bottom: 1rem;
}

.component-table .cs-component-content {
    margin-bottom: 1.5rem;
    color: var(--color-body);
}

.component-table .cs-component-content:last-child {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.cs-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    text-align: left;
}

.cs-table thead {
    background: var(--color-primary);
    color: var(--color-site-bg);
}

.cs-table th {
    padding: 1.5rem 2rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.cs-table td {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    vertical-align: top;
}

.cs-table tbody tr:nth-child(even) {
    background: var(--color-border, #f9fafb);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    border: none;
    padding: 1rem 1.75rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.primary-button i,
.secondary-button i {
    font-size: 16px;
}

.primary-button:hover,
.secondary-button:hover {
    opacity: 0.88;
}

.primary-button {
    --btn-color: var(--color-secondary);
    background: var(--btn-color);
    color: var(--color-site-bg);
}

.secondary-button {
    --btn-color: var(--color-accent);
    background: var(--btn-color);
    color: var(--color-text);
}

.btn-hover-ghost .primary-button,
.btn-hover-ghost .secondary-button,
.primary-button.btn-ghost,
.secondary-button.btn-ghost {
    border: 2px solid var(--btn-color);
    transition: background 0.2s, color 0.2s;
}

.btn-hover-ghost .primary-button:hover,
.btn-hover-ghost .secondary-button:hover,
.primary-button.btn-ghost:hover,
.secondary-button.btn-ghost:hover {
    background: transparent;
    color: var(--btn-color);
    opacity: 1;
}

.btn-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    color: var(--color-site-bg);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.btn-square:hover,
.card-grid-item:hover .btn-square {
    opacity: 0.88;
}

.btn-hover-ghost .btn-square {
    transition: background 0.2s, color 0.2s;
}

.btn-hover-ghost .btn-square:hover,
.btn-hover-ghost .card-grid-item:hover .btn-square {
    opacity: 1;
    background: transparent;
    color: var(--color-accent);
}

.field-input {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-site-bg);
    line-height: 1.5;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    height: auto;
    box-shadow: none;
    box-sizing: border-box;
}

.field-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.field-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 8%, transparent);
}

.field-textarea {
    resize: vertical;
}

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

.auth-error,
.cs-form-error {
    background: color-mix(in srgb, var(--color-error) 8%, var(--color-container-bg));
    border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
    border-left: 3px solid var(--color-error);
    border-radius: 8px;
    color: var(--color-error);
    line-height: 1.5;
}

.auth-success,
.cs-form-success {
    background: color-mix(in srgb, var(--color-success) 8%, var(--color-container-bg));
    border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
    border-left: 3px solid var(--color-success);
    border-radius: 8px;
    color: var(--color-success);
    line-height: 1.5;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.cs-recaptcha-notice {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    margin-top: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.cs-recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.15s;
}

.cs-recaptcha-notice a:hover {
    color: var(--color-primary);
}

.cs-search-wrap {
    display: flex;
    flex: 1;
    max-width: 55%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-site-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cs-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background: transparent;
    font-family: inherit;
    min-width: 0;
}

.cs-search-input::placeholder {
    color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

.cs-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
    border-radius: 10px;
}

.cs-search-btn:hover {
    opacity: 0.88;
}

.card {
    background: var(--color-container-bg);
    border: 1px solid var(--color-container-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 2rem;
}

.post-hero,
.page-hero {
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 10px 20px -6px rgba(0, 0, 0, 0.12);
    min-height: 400px;
}

.post-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle,
            color-mix(in srgb, var(--color-primary) 20%, transparent) 1px,
            transparent 1px);
    background-size: 22px 22px;
    background-position: center top;
    filter: blur(.8px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.page-breadcrumb-bar {
    background: var(--color-tertiary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    width: 100%;
    padding: 0.6rem 1.5rem;
}

.page-breadcrumb-bar-inner {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.2rem;
    font-size: var(--size-breadcrumb, 0.875rem);
    font-weight: 500;
    color: color-mix(in srgb, var(--color-text) 65%, transparent);
    line-height: 1.4;
}

.page-breadcrumb-bar-inner a {
    color: var(--color-text);
    font-size: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.page-breadcrumb-bar-inner a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-breadcrumb-bar-inner .bc-home:hover {
    text-decoration: underline;
}

.page-breadcrumb-bar-inner .bc-sep {
    opacity: 0.45;
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.page-breadcrumb-bar-inner .bc-home {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.page-breadcrumb-bar-inner .bc-home i {
    font-size: 0.875rem;
    margin-right: 0.35em;
}

.page-hero-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.profile-dark-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.dm-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-dark-toggle input:checked~.dm-switch {
    background: var(--color-text);
}

.profile-dark-toggle input:checked~.dm-switch::after {
    transform: translateX(20px);
}

html.dark-mode .auth-title,
html.dark-mode .cs-verify-heading {
    color: #f3f4f6;
}

html.dark-mode .auth-subtitle,
html.dark-mode .profile-hint,
html.dark-mode .profile-optional,
html.dark-mode .auth-switch {
    color: #9ca3af;
}

html.dark-mode .auth-field label,
html.dark-mode .profile-section-label,
html.dark-mode .profile-dark-toggle,
html.dark-mode .profile-checkbox-label,
html.dark-mode .auth-site-name {
    color: #d1d5db;
}

html.dark-mode .field-input {
    background: #1a1a1a;
    border-color: #333;
    color: #e5e7eb;
}

html.dark-mode .field-input:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

html.dark-mode .profile-divider {
    border-top-color: #2a2a2a;
}

html.dark-mode .auth-toggle-pw {
    color: #6b7280;
}

html.dark-mode .auth-toggle-pw:hover {
    color: #d1d5db;
}

html.dark-mode .auth-error {
    background: #1f0a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

html.dark-mode .auth-success {
    background: #052e16;
    border-color: #14532d;
    color: #86efac;
}

html.dark-mode .profile-avatar {
    border-color: #333;
    background: #1a1a1a;
}

html.dark-mode .auth-submit {
    background: #374151;
}

html.dark-mode .auth-submit:hover:not(:disabled) {
    background: #4b5563;
}

html.dark-mode .auth-switch a {
    color: #d1d5db;
}

html.dark-mode .dm-switch {
    background: #374151;
}

html.dark-mode .profile-dark-toggle input:checked~.dm-switch {
    background: #6b7280;
}

html.dark-mode .card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.dots-ltr::before,
.dots-rtl::before,
.dots-ttb::before {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-size: unset;
    background-position: unset;
    filter: none;
}

.dots-ltr::before {
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-primary) 5%, transparent), transparent);
    mask-image: url('assets/image/dots-1.png');
    mask-size: auto 10px;
    mask-repeat: repeat-y;
}

.dots-rtl::before {
    top: 0;
    right: 0;
    width: 38%;
    height: 100%;
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-primary) 5%, transparent), transparent);
    mask-image: url('assets/image/dots-1.png');
    mask-size: auto 10px;
    mask-repeat: repeat-y;
    transform: scaleX(-1);
}

.dots-ttb::before {
    top: 50%;
    left: 50%;
    width: 800px;
    height: 100vw;
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-primary) 5%, transparent), transparent);
    mask-image: url('assets/image/dots-1.png');
    mask-size: auto 10px;
    mask-repeat: repeat-y;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(90deg);
}

hr {
    background-color: initial;
    border: 0;
    border-bottom: 2px solid var(--color-accent);
    margin: 4rem auto;
    width: 100%;
}

.card-grid-item--icon {
    text-align: center;
}

.card-grid-item--icon .card-grid-body {
    align-items: center;
}

.card-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 2rem auto 0;
    flex-shrink: 0;
}

@media (max-width: 1200px) {

    .post-hero,
    .page-hero {
        min-height: 460px;
    }

    .testimonial-body {
        padding: 0;
    }

    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-bar .header-desktop-one,
    .admin-bar .bar-sticky {
        top: 46px;
    }

    .footer-logo--desktop {
        display: none;
    }

    .footer-logo--mobile {
        display: block;
    }

    .cs-search-wrap {
        max-width: 100%;
        width: 100%;
    }

    .site-header-buttons {
        flex-direction: column;
    }

    .site-header-buttons .primary-button,
    .site-header-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .header-desktop-one,
    .bar-sticky,
    .l2-main-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .header-padding-sides {
        padding: 0 .75rem;
    }

    .header-padding {
        padding: .75rem;
    }

    .cookie-banner-actions,
    .forum-sidebar,
    .forum-feed {
        width: 100%;
    }

    .cookie-banner-actions .primary-button,
    .cookie-banner-actions .secondary-button {
        flex: 1;
        justify-content: center;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .component-fifty-fifty .flex-row {
        flex-direction: column !important;
        min-height: unset;
        gap: 0;
    }

    .component-fifty-fifty .ff-image-col {
        flex: none;
        width: 100%;
        order: -1;
    }

    .component-fifty-fifty .ff-text-col {
        order: 1;
        padding: 2.5rem 1.5rem;
    }

    .component-fifty-fifty.ff--landscape .ff-image-col img {
        height: 260px;
        border-radius: 0;
    }

    .component-fifty-fifty.ff--extended .ff-image-col img {
        min-height: 280px;
        height: 280px;
    }

    .component-fifty-fifty .ff-image-col {
        padding: 2.5rem 1.5rem;
        min-height: 280px;
    }

    .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip),
    .component-fifty-fifty.ff--light.ff--portrait.ff--flip {
        background: linear-gradient(to bottom, var(--color-border) 50%, var(--color-site-bg) 50%);
    }

    .component-fifty-fifty.ff--dark.dots-ltr::before,
    .component-fifty-fifty.ff--dark.dots-rtl::before,
    .component-fifty-fifty.ff--light.ff--portrait.dots-ltr::before,
    .component-fifty-fifty.ff--light.ff--portrait.dots-rtl::before {
        top: 25%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 800px;
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    .quote,
    .cs-half-width,
    .cs-component-header-narrow {
        width: 60%;
    }

    .cs-full-width {
        width: 90%;
    }

    .forum-layout,
    .site-footer-inner {
        width: 90%;
        flex-direction: column;
        gap: 1rem;
    }

    .site-footer-inner--with-quicklinks {
        grid-template-columns: 1fr;
    }

    .site-footer-brand {
        width: 100%;
        border-bottom: 2px solid var(--color-border);
        padding-bottom: 2rem;
    }
}

@media (max-width: 620px) {
    .site-footer-top {
        padding: 1.5rem 0;
    }

    .components-wrap,
    .forum-layout {
        gap: 4rem;
        margin: 4rem auto;
    }

    .page-breadcrumb-bar-inner {
        width: 100%;
    }

    .component-page-intro {
        padding-bottom: 1.5rem;
        padding-top: 3rem;
        min-height: 200px;
    }

    .cs-component-title,
    .cs-component-content {
        text-align: left;
    }

    .center .page-hero-badge,
    .card-grid-section>.page-hero-badge {
        justify-content: flex-start;
    }

    .quote,
    .cs-half-width,
    .cs-component-header-narrow {
        width: 90%;
    }

    .flex-row-testimonial {
        flex-direction: column;
    }

    .testimonial-image {
        width: 100%;
        height: 260px;
    }

    .component-full.dots-ltr::before {
        top: 50%;
        left: 50%;
        width: 800px;
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .cs-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .cs-cta__body {
        align-items: center;
    }

    .cs-cta--dark .cs-cta__body {
        width: 100%;
    }

    .cs-cta--dark.dots-rtl::before {
        top: 50%;
        left: 50%;
        right: auto;
        width: 800px;
        height: 100vw;
        transform-origin: center center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .cs-component-content .alignleft,
    .cs-component-content .alignright {
        float: none;
        max-width: 100%;
        margin: 0 0 1rem;
    }

    .pl-header {
        flex-direction: column;
        gap: .75rem;
        align-items: start;
    }

    .pl-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cslb-img-wrap {
        padding: 3.5rem 1rem 0.5rem;
    }

    .cslb-footer {
        padding: 0.75rem 1rem;
    }

    .cslb-prev {
        left: 0.375rem;
    }

    .cslb-next {
        right: 0.375rem;
    }

    .post-hero,
    .page-hero {
        min-height: 360px;
    }
}