/*
Theme Name: StrivX Pro
Theme URI: https://strivx.de
Author: StrivX
Description: Professional WordPress Theme with Page Builder
Version: 4.0.0
Text Domain: strivx-pro
*/

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --sx-lime: #B8E600;
    --sx-lime-dark: #9BC700;
    --sx-dark: #2C3E50;
    --sx-primary: #5B7C99;
    --sx-grey: #8A9BAE;
    --sx-anthracite: #4A5D6E;
    --sx-light: #E8E9EB;
    --sx-bg: #F5F6F8;
    --sx-white: #FFFFFF;

    --sx-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --sx-header-height: 80px;
    --sx-radius: 8px;
    --sx-radius-lg: 16px;
    --sx-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --sx-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --sx-transition: 0.2s ease;

    --sx-space-xs: 8px;
    --sx-space-sm: 16px;
    --sx-space-md: 24px;
    --sx-space-lg: 48px;
    --sx-space-xl: 80px;
    --sx-space-xxl: 120px;

    --sx-width-narrow: 720px;
    --sx-width-medium: 960px;
    --sx-width-wide: 1200px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sx-font); font-size: 16px; line-height: 1.7; color: var(--sx-anthracite); background: var(--sx-white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--sx-dark); line-height: 1.2; }

/* CONTAINER */
.sx-container { width: 100%; max-width: var(--sx-width-wide); margin: 0 auto; padding: 0 var(--sx-space-md); }
.sx-container--narrow { max-width: var(--sx-width-narrow); }
.sx-container--medium { max-width: var(--sx-width-medium); }
.sx-container--full { max-width: 100%; padding: 0 var(--sx-space-md); }

/* SECTION SYSTEM */
.sx-section { position: relative; }
.sx-pt--none { padding-top: 0; }
.sx-pt--small { padding-top: var(--sx-space-lg); }
.sx-pt--normal { padding-top: var(--sx-space-xl); }
.sx-pt--large { padding-top: var(--sx-space-xxl); }
.sx-pb--none { padding-bottom: 0; }
.sx-pb--small { padding-bottom: var(--sx-space-lg); }
.sx-pb--normal { padding-bottom: var(--sx-space-xl); }
.sx-pb--large { padding-bottom: var(--sx-space-xxl); }

.sx-bg--white { background: var(--sx-white); }
.sx-bg--light { background: var(--sx-bg); }
.sx-bg--dark { background: var(--sx-dark); }
.sx-bg--primary { background: var(--sx-primary); }
.sx-bg--lime { background: var(--sx-lime); }
.sx-bg--transparent { background: transparent; }

.sx-bg--dark, .sx-bg--primary { color: var(--sx-white); }
.sx-bg--dark .sx-section-header__title, .sx-bg--dark .sx-hero__title, .sx-bg--dark .sx-cta__title,
.sx-bg--primary .sx-section-header__title, .sx-bg--primary .sx-stat__number,
.sx-bg--dark .sx-process__title, .sx-bg--dark .sx-feature__title { color: var(--sx-white); }
.sx-bg--dark .sx-section-header__subtitle, .sx-bg--dark .sx-hero__subtitle, .sx-bg--dark .sx-stat__label,
.sx-bg--primary .sx-section-header__subtitle { color: var(--sx-grey); }
.sx-bg--lime { color: var(--sx-dark); }

/* GRID */
.sx-grid { display: grid; gap: var(--sx-space-md); }
.sx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sx-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .sx-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .sx-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sx-grid--2, .sx-grid--3, .sx-grid--4 { grid-template-columns: 1fr; } }

/* TYPOGRAPHY */
.sx-highlight { color: var(--sx-lime); }
.sx-label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sx-lime); margin-bottom: var(--sx-space-sm); }

/* BUTTONS */
.sx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-family: var(--sx-font); font-size: 15px; font-weight: 600; border-radius: var(--sx-radius); cursor: pointer; transition: all var(--sx-transition); text-decoration: none; border: none; }
.sx-btn--primary { background: var(--sx-lime); color: var(--sx-dark); }
.sx-btn--primary:hover { background: var(--sx-lime-dark); transform: translateY(-2px); }
.sx-btn--secondary { background: transparent; color: var(--sx-white); border: 2px solid rgba(255,255,255,0.3); }
.sx-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.sx-btn svg { width: 18px; height: 18px; transition: transform var(--sx-transition); }
.sx-btn:hover svg { transform: translateX(4px); }

/* HEADER */
.sx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--sx-header-height); background: rgba(44,62,80,0.95); backdrop-filter: blur(10px); transition: all var(--sx-transition); }
.sx-header.is-scrolled { height: 70px; box-shadow: var(--sx-shadow); }
.sx-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--sx-width-wide); margin: 0 auto; padding: 0 var(--sx-space-md); }
.sx-logo { font-size: 24px; font-weight: 700; color: var(--sx-white); }
.sx-logo span { color: var(--sx-lime); }
.sx-nav { display: flex; align-items: center; gap: var(--sx-space-md); }
.sx-nav a { color: var(--sx-white); font-weight: 500; transition: color var(--sx-transition); }
.sx-nav a:hover { color: var(--sx-lime); }
.sx-nav .sx-btn { padding: 10px 20px; }
.sx-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: none; cursor: pointer; }
.sx-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--sx-white); transition: var(--sx-transition); }
@media (max-width: 768px) {
    .sx-menu-toggle { display: flex; }
    .sx-nav { position: fixed; top: var(--sx-header-height); left: 0; right: 0; background: var(--sx-dark); flex-direction: column; padding: var(--sx-space-md); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all var(--sx-transition); }
    .sx-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
}

/* SECTION HEADER */
.sx-section-header { text-align: center; max-width: 700px; margin: 0 auto var(--sx-space-lg); }
.sx-section-header__title { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--sx-space-sm); }
.sx-section-header__subtitle { font-size: 17px; color: var(--sx-anthracite); }

/* HERO */
.sx-section--hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--sx-header-height); }
.sx-section--hero > .sx-container { position: relative; z-index: 2; }
.sx-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.2; }
.sx-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(184,230,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(184,230,0,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.sx-hero__content { max-width: 800px; }
.sx-hero__label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--sx-lime); margin-bottom: var(--sx-space-md); }
.sx-hero__label-dot { width: 8px; height: 8px; background: var(--sx-lime); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.sx-hero__title { font-size: clamp(36px, 6vw, 64px); color: var(--sx-white); margin-bottom: var(--sx-space-md); }
.sx-hero__subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--sx-grey); max-width: 600px; margin-bottom: var(--sx-space-lg); }
.sx-hero__buttons { display: flex; gap: var(--sx-space-sm); flex-wrap: wrap; }

/* TEXT */
.sx-text__title { font-size: clamp(26px, 4vw, 36px); margin-bottom: var(--sx-space-md); }
.sx-text__content { font-size: 17px; line-height: 1.8; }
.sx-text__content > * { margin-bottom: 1.5em; }
.sx-text__content > *:last-child { margin-bottom: 0; }
.sx-text__content h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 2em; }
.sx-text__content h3 { font-size: clamp(20px, 2.5vw, 26px); margin-top: 1.5em; }
.sx-text__content a { color: var(--sx-primary); text-decoration: underline; }
.sx-text__content ul, .sx-text__content ol { padding-left: 1.5em; }
.sx-text__content blockquote { border-left: 4px solid var(--sx-lime); padding-left: var(--sx-space-md); font-style: italic; color: var(--sx-dark); }

/* TEXT + IMAGE */
.sx-text-image { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sx-space-xl); align-items: center; }
.sx-text-image--image-right .sx-text-image__media { order: 2; }
.sx-text-image__media img { border-radius: var(--sx-radius-lg); width: 100%; }
.sx-text-image__title { font-size: clamp(26px, 4vw, 38px); margin-bottom: var(--sx-space-md); }
.sx-text-image__text { font-size: 17px; line-height: 1.8; color: var(--sx-anthracite); margin-bottom: var(--sx-space-md); }
@media (max-width: 768px) { .sx-text-image { grid-template-columns: 1fr; gap: var(--sx-space-lg); } .sx-text-image--image-right .sx-text-image__media { order: 0; } }

/* FEATURES */
.sx-feature { background: var(--sx-white); padding: var(--sx-space-lg); border-radius: var(--sx-radius-lg); box-shadow: var(--sx-shadow); transition: transform var(--sx-transition), box-shadow var(--sx-transition); }
.sx-feature:hover { transform: translateY(-4px); box-shadow: var(--sx-shadow-lg); }
.sx-feature__icon { font-size: 40px; margin-bottom: var(--sx-space-sm); }
.sx-feature__title { font-size: 20px; margin-bottom: var(--sx-space-xs); }
.sx-feature__text { color: var(--sx-anthracite); font-size: 15px; }

/* STATS */
.sx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sx-space-md); text-align: center; }
.sx-stat__number { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--sx-lime); line-height: 1; margin-bottom: var(--sx-space-xs); }
.sx-stat__label { font-size: 14px; color: var(--sx-grey); }
@media (max-width: 768px) { .sx-stats { grid-template-columns: repeat(2, 1fr); } }

/* PROCESS */
.sx-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sx-space-md); }
.sx-process__step { text-align: center; }
.sx-process__number { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sx-space-sm); background: var(--sx-lime); color: var(--sx-dark); font-size: 24px; font-weight: 700; border-radius: 50%; }
.sx-process__title { font-size: 18px; margin-bottom: var(--sx-space-xs); }
.sx-process__text { font-size: 14px; color: var(--sx-grey); }
@media (max-width: 768px) { .sx-process { grid-template-columns: 1fr; gap: var(--sx-space-lg); } .sx-process__step { display: flex; text-align: left; gap: var(--sx-space-md); } .sx-process__number { flex-shrink: 0; margin: 0; } }

/* TESTIMONIAL */
.sx-testimonial { text-align: center; max-width: 800px; margin: 0 auto; }
.sx-testimonial__quote { font-size: clamp(20px, 3vw, 28px); font-style: italic; line-height: 1.6; margin-bottom: var(--sx-space-lg); }
.sx-testimonial__author { display: flex; align-items: center; justify-content: center; gap: var(--sx-space-sm); }
.sx-testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sx-testimonial__avatar--initials { display: flex; align-items: center; justify-content: center; background: var(--sx-lime); color: var(--sx-dark); font-weight: 700; }
.sx-testimonial__name { font-weight: 600; }
.sx-testimonial__role { font-size: 14px; color: var(--sx-grey); }

/* TEAM */
.sx-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sx-space-md); }
.sx-team__member { text-align: center; }
.sx-team__photo { width: 160px; height: 160px; margin: 0 auto var(--sx-space-sm); border-radius: 50%; overflow: hidden; }
.sx-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.sx-team__name { font-size: 18px; margin-bottom: 4px; }
.sx-team__role { font-size: 14px; color: var(--sx-grey); margin-bottom: var(--sx-space-sm); }
.sx-team__social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--sx-bg); color: var(--sx-primary); border-radius: 50%; transition: all var(--sx-transition); }
.sx-team__social:hover { background: var(--sx-lime); color: var(--sx-dark); }
@media (max-width: 1024px) { .sx-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sx-team { grid-template-columns: 1fr; } }

/* GALLERY */
.sx-gallery__item { display: block; border-radius: var(--sx-radius); overflow: hidden; aspect-ratio: 4/3; }
.sx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.sx-gallery__item:hover img { transform: scale(1.05); }

/* VIDEO */
.sx-video { position: relative; padding-bottom: 56.25%; border-radius: var(--sx-radius-lg); overflow: hidden; }
.sx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* FAQ */
.sx-faq { max-width: 800px; margin: 0 auto; }
.sx-faq__item { background: var(--sx-white); border-radius: var(--sx-radius); margin-bottom: var(--sx-space-sm); box-shadow: var(--sx-shadow); }
.sx-faq__question { padding: var(--sx-space-md); font-weight: 600; color: var(--sx-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sx-faq__question::-webkit-details-marker { display: none; }
.sx-faq__question::after { content: '+'; font-size: 24px; color: var(--sx-lime-dark); transition: transform var(--sx-transition); }
.sx-faq__item[open] .sx-faq__question::after { transform: rotate(45deg); }
.sx-faq__answer { padding: 0 var(--sx-space-md) var(--sx-space-md); color: var(--sx-anthracite); line-height: 1.7; }

/* CTA */
.sx-cta { text-align: center; max-width: 700px; margin: 0 auto; }
.sx-cta__title { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--sx-space-sm); }
.sx-cta__text { font-size: 17px; margin-bottom: var(--sx-space-lg); }

/* LOGOS */
.sx-logos__title { text-align: center; font-size: 14px; color: var(--sx-grey); text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--sx-space-lg); }
.sx-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sx-space-lg); }
.sx-logos__item { max-width: 140px; opacity: 0.6; filter: grayscale(100%); transition: all var(--sx-transition); }
.sx-logos__item:hover { opacity: 1; filter: none; }

/* CONTACT */
.sx-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sx-space-xl); }
.sx-contact__title { font-size: clamp(28px, 4vw, 36px); margin-bottom: var(--sx-space-sm); }
.sx-contact__text { margin-bottom: var(--sx-space-lg); }
.sx-contact__details { display: flex; flex-direction: column; gap: var(--sx-space-sm); }
.sx-contact__item { display: flex; align-items: center; gap: var(--sx-space-sm); }
.sx-contact__item svg { color: var(--sx-lime-dark); }
.sx-contact__item a { color: var(--sx-dark); transition: color var(--sx-transition); }
.sx-contact__item a:hover { color: var(--sx-lime-dark); }
.sx-contact__form { background: var(--sx-bg); padding: var(--sx-space-lg); border-radius: var(--sx-radius-lg); }
.sx-contact__cta { text-align: center; }
.sx-contact__cta p { margin-bottom: var(--sx-space-md); }
@media (max-width: 768px) { .sx-contact { grid-template-columns: 1fr; gap: var(--sx-space-lg); } }

/* SPACER & DIVIDER */
.sx-divider--line { border-top: 1px solid var(--sx-light); }
.sx-divider--dots { text-align: center; }
.sx-divider--dots::before { content: '•••'; letter-spacing: 8px; color: var(--sx-lime); }
.sx-divider--gradient { height: 4px; background: linear-gradient(90deg, transparent, var(--sx-lime), transparent); }

/* FOOTER */
.sx-footer { background: var(--sx-dark); padding: var(--sx-space-xl) 0 var(--sx-space-lg); }
.sx-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sx-space-lg); margin-bottom: var(--sx-space-lg); }
.sx-footer__brand .sx-logo { margin-bottom: var(--sx-space-sm); }
.sx-footer__desc { color: var(--sx-grey); font-size: 15px; max-width: 300px; }
.sx-footer__title { font-size: 14px; font-weight: 600; color: var(--sx-white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--sx-space-sm); }
.sx-footer__links { list-style: none; }
.sx-footer__links li { margin-bottom: 8px; }
.sx-footer__links a { color: var(--sx-grey); font-size: 15px; transition: color var(--sx-transition); }
.sx-footer__links a:hover { color: var(--sx-lime); }
.sx-footer__bottom { padding-top: var(--sx-space-md); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.sx-footer__copyright { color: var(--sx-grey); font-size: 14px; }
.sx-footer__social { display: flex; gap: var(--sx-space-sm); }
.sx-footer__social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: var(--sx-grey); border-radius: 50%; transition: all var(--sx-transition); }
.sx-footer__social a:hover { background: var(--sx-lime); color: var(--sx-dark); }
@media (max-width: 1024px) { .sx-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sx-footer__grid { grid-template-columns: 1fr; } .sx-footer__bottom { flex-direction: column; gap: var(--sx-space-sm); text-align: center; } }

/* ============================================
   TEXT COLOR CLASSES
   ============================================ */

/* TITLE COLORS */
.sx-title--dark h1, .sx-title--dark h2, .sx-title--dark h3, .sx-title--dark h4,
.sx-title--dark .sx-hero__title, .sx-title--dark .sx-cta__title,
.sx-title--dark .sx-section-header__title, .sx-title--dark .sx-feature__title,
.sx-title--dark .sx-process__title, .sx-title--dark .sx-page-header__title,
.sx-title--dark .sx-text__title, .sx-title--dark .sx-text-image__title { 
    color: var(--sx-dark); 
}

.sx-title--anthracite h1, .sx-title--anthracite h2, .sx-title--anthracite h3, .sx-title--anthracite h4,
.sx-title--anthracite .sx-hero__title, .sx-title--anthracite .sx-cta__title,
.sx-title--anthracite .sx-section-header__title, .sx-title--anthracite .sx-feature__title,
.sx-title--anthracite .sx-process__title, .sx-title--anthracite .sx-page-header__title,
.sx-title--anthracite .sx-text__title, .sx-title--anthracite .sx-text-image__title { 
    color: var(--sx-anthracite); 
}

.sx-title--grey h1, .sx-title--grey h2, .sx-title--grey h3, .sx-title--grey h4,
.sx-title--grey .sx-hero__title, .sx-title--grey .sx-cta__title,
.sx-title--grey .sx-section-header__title, .sx-title--grey .sx-feature__title,
.sx-title--grey .sx-process__title, .sx-title--grey .sx-page-header__title,
.sx-title--grey .sx-text__title, .sx-title--grey .sx-text-image__title { 
    color: var(--sx-grey); 
}

.sx-title--primary h1, .sx-title--primary h2, .sx-title--primary h3, .sx-title--primary h4,
.sx-title--primary .sx-hero__title, .sx-title--primary .sx-cta__title,
.sx-title--primary .sx-section-header__title, .sx-title--primary .sx-feature__title,
.sx-title--primary .sx-process__title, .sx-title--primary .sx-page-header__title,
.sx-title--primary .sx-text__title, .sx-title--primary .sx-text-image__title { 
    color: var(--sx-primary); 
}

.sx-title--light h1, .sx-title--light h2, .sx-title--light h3, .sx-title--light h4,
.sx-title--light .sx-hero__title, .sx-title--light .sx-cta__title,
.sx-title--light .sx-section-header__title, .sx-title--light .sx-feature__title,
.sx-title--light .sx-process__title, .sx-title--light .sx-page-header__title,
.sx-title--light .sx-text__title, .sx-title--light .sx-text-image__title { 
    color: var(--sx-light); 
}

.sx-title--white h1, .sx-title--white h2, .sx-title--white h3, .sx-title--white h4,
.sx-title--white .sx-hero__title, .sx-title--white .sx-cta__title,
.sx-title--white .sx-section-header__title, .sx-title--white .sx-feature__title,
.sx-title--white .sx-process__title, .sx-title--white .sx-page-header__title,
.sx-title--white .sx-text__title, .sx-title--white .sx-text-image__title { 
    color: var(--sx-white); 
}

.sx-title--lime h1, .sx-title--lime h2, .sx-title--lime h3, .sx-title--lime h4,
.sx-title--lime .sx-hero__title, .sx-title--lime .sx-cta__title,
.sx-title--lime .sx-section-header__title, .sx-title--lime .sx-feature__title,
.sx-title--lime .sx-process__title, .sx-title--lime .sx-page-header__title,
.sx-title--lime .sx-text__title, .sx-title--lime .sx-text-image__title { 
    color: var(--sx-lime); 
}

.sx-title--custom h1, .sx-title--custom h2, .sx-title--custom h3, .sx-title--custom h4,
.sx-title--custom .sx-hero__title, .sx-title--custom .sx-cta__title,
.sx-title--custom .sx-section-header__title, .sx-title--custom .sx-feature__title,
.sx-title--custom .sx-process__title, .sx-title--custom .sx-page-header__title,
.sx-title--custom .sx-text__title, .sx-title--custom .sx-text-image__title { 
    color: var(--sx-custom-title, #8A9BAE); 
}

/* TEXT COLORS */
.sx-text--dark,
.sx-text--dark p, .sx-text--dark li, .sx-text--dark span,
.sx-text--dark .sx-hero__subtitle, .sx-text--dark .sx-cta__text,
.sx-text--dark .sx-section-header__subtitle, .sx-text--dark .sx-feature__text,
.sx-text--dark .sx-process__text, .sx-text--dark .sx-page-header__subtitle,
.sx-text--dark .sx-text__content, .sx-text--dark .sx-text-image__text { 
    color: var(--sx-dark); 
}

.sx-text--anthracite,
.sx-text--anthracite p, .sx-text--anthracite li, .sx-text--anthracite span,
.sx-text--anthracite .sx-hero__subtitle, .sx-text--anthracite .sx-cta__text,
.sx-text--anthracite .sx-section-header__subtitle, .sx-text--anthracite .sx-feature__text,
.sx-text--anthracite .sx-process__text, .sx-text--anthracite .sx-page-header__subtitle,
.sx-text--anthracite .sx-text__content, .sx-text--anthracite .sx-text-image__text { 
    color: var(--sx-anthracite); 
}

.sx-text--grey,
.sx-text--grey p, .sx-text--grey li, .sx-text--grey span,
.sx-text--grey .sx-hero__subtitle, .sx-text--grey .sx-cta__text,
.sx-text--grey .sx-section-header__subtitle, .sx-text--grey .sx-feature__text,
.sx-text--grey .sx-process__text, .sx-text--grey .sx-page-header__subtitle,
.sx-text--grey .sx-text__content, .sx-text--grey .sx-text-image__text { 
    color: var(--sx-grey); 
}

.sx-text--primary,
.sx-text--primary p, .sx-text--primary li, .sx-text--primary span,
.sx-text--primary .sx-hero__subtitle, .sx-text--primary .sx-cta__text,
.sx-text--primary .sx-section-header__subtitle, .sx-text--primary .sx-feature__text,
.sx-text--primary .sx-process__text, .sx-text--primary .sx-page-header__subtitle,
.sx-text--primary .sx-text__content, .sx-text--primary .sx-text-image__text { 
    color: var(--sx-primary); 
}

.sx-text--light,
.sx-text--light p, .sx-text--light li, .sx-text--light span,
.sx-text--light .sx-hero__subtitle, .sx-text--light .sx-cta__text,
.sx-text--light .sx-section-header__subtitle, .sx-text--light .sx-feature__text,
.sx-text--light .sx-process__text, .sx-text--light .sx-page-header__subtitle,
.sx-text--light .sx-text__content, .sx-text--light .sx-text-image__text { 
    color: var(--sx-light); 
}

.sx-text--white,
.sx-text--white p, .sx-text--white li, .sx-text--white span,
.sx-text--white .sx-hero__subtitle, .sx-text--white .sx-cta__text,
.sx-text--white .sx-section-header__subtitle, .sx-text--white .sx-feature__text,
.sx-text--white .sx-process__text, .sx-text--white .sx-page-header__subtitle,
.sx-text--white .sx-text__content, .sx-text--white .sx-text-image__text { 
    color: rgba(255,255,255,0.9); 
}
.sx-text--white .sx-btn--secondary { border-color: rgba(255,255,255,0.4); color: var(--sx-white); }

.sx-text--lime,
.sx-text--lime p, .sx-text--lime li, .sx-text--lime span,
.sx-text--lime .sx-hero__subtitle, .sx-text--lime .sx-cta__text,
.sx-text--lime .sx-section-header__subtitle, .sx-text--lime .sx-feature__text,
.sx-text--lime .sx-process__text, .sx-text--lime .sx-page-header__subtitle,
.sx-text--lime .sx-text__content, .sx-text--lime .sx-text-image__text { 
    color: var(--sx-lime); 
}

.sx-text--custom,
.sx-text--custom p, .sx-text--custom li, .sx-text--custom span,
.sx-text--custom .sx-hero__subtitle, .sx-text--custom .sx-cta__text,
.sx-text--custom .sx-section-header__subtitle, .sx-text--custom .sx-feature__text,
.sx-text--custom .sx-process__text, .sx-text--custom .sx-page-header__subtitle,
.sx-text--custom .sx-text__content, .sx-text--custom .sx-text-image__text { 
    color: var(--sx-custom-text, #8A9BAE); 
}

/* ============================================
   PAGE HEADER (Compact)
   ============================================ */

.sx-section--page_header { min-height: auto; padding-top: calc(var(--sx-header-height) + var(--sx-space-lg)); }
.sx-page-header { text-align: center; max-width: 800px; margin: 0 auto; }
.sx-page-header__label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sx-lime); margin-bottom: var(--sx-space-sm); }
.sx-page-header__title { font-size: clamp(32px, 5vw, 48px); margin-bottom: var(--sx-space-sm); }
.sx-page-header__subtitle { font-size: clamp(16px, 2vw, 18px); color: var(--sx-grey); max-width: 600px; margin: 0 auto; }
.sx-page-header__breadcrumb { margin-top: var(--sx-space-md); font-size: 14px; color: var(--sx-grey); }
.sx-page-header__breadcrumb a { color: var(--sx-lime); text-decoration: none; transition: opacity var(--sx-transition); }
.sx-page-header__breadcrumb a:hover { opacity: 0.8; }
.sx-breadcrumb-sep { margin: 0 8px; opacity: 0.5; }

/* Dark background page header */
.sx-bg--dark .sx-page-header__title { color: var(--sx-white); }
.sx-bg--dark .sx-page-header__subtitle { color: var(--sx-grey); }

/* ============================================
   HEADER BACK BUTTON
   ============================================ */

.sx-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--sx-white);
    margin-right: var(--sx-space-sm);
    transition: all var(--sx-transition);
}

.sx-header__back:hover {
    background: var(--sx-lime);
    color: var(--sx-dark);
}

.sx-header__back svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .sx-header__back {
        width: 36px;
        height: 36px;
    }
    .sx-header__back svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   ULTRA-ENDURANCE EXTENSIONS v4.0
   ============================================ */

/* SCROLL REVEAL ANIMATIONS */
.sx-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.sx-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   FULLWIDTH IMAGE (Cinematic)
   ============================================ */
.sx-section--fullwidth_image { padding: 0 !important; }
.sx-section--fullwidth_image > .sx-container { max-width: 100%; padding: 0; }

.sx-fullwidth-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.sx-fullwidth-image.sx-parallax { background-attachment: fixed; }
@media (max-width: 768px) { .sx-fullwidth-image.sx-parallax { background-attachment: scroll; } }

.sx-fullwidth-image__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.sx-fullwidth-image__content {
    position: relative; z-index: 2;
    padding: var(--sx-space-xl) var(--sx-space-lg);
    max-width: 900px;
}
.sx-fullwidth--center { text-align: center; }
.sx-fullwidth--center .sx-fullwidth-image__content { margin: 0 auto; }
.sx-fullwidth--left .sx-fullwidth-image__content { margin-right: auto; }
.sx-fullwidth--right .sx-fullwidth-image__content { margin-left: auto; text-align: right; }
.sx-fullwidth--bottom-left { align-items: flex-end; }
.sx-fullwidth--bottom-left .sx-fullwidth-image__content { margin-right: auto; padding-bottom: var(--sx-space-xl); }

.sx-fullwidth-image__title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 800;
    color: var(--sx-white);
    line-height: 1.1;
    margin-bottom: var(--sx-space-sm);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.sx-fullwidth-image__subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.sx-fullwidth-image__caption {
    position: absolute; bottom: var(--sx-space-sm); right: var(--sx-space-md);
    font-size: 12px; color: rgba(255,255,255,0.5); z-index: 2;
}

/* ============================================
   VIDEO HERO
   ============================================ */
.sx-section--video_hero { padding: 0 !important; }
.sx-section--video_hero > .sx-container { max-width: 100%; padding: 0; }

.sx-video-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.sx-video-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}
.sx-video-hero__poster {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 1;
}
.sx-video-hero__video-wrap {
    position: absolute; inset: 0; z-index: 1;
    overflow: hidden;
}
.sx-video-hero__video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.sx-video-hero__yt {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
}
.sx-video-hero__content {
    position: relative; z-index: 3;
    max-width: 800px;
    padding: calc(var(--sx-header-height) + var(--sx-space-xl)) var(--sx-space-lg) var(--sx-space-xl);
}

/* ============================================
   COUNTDOWN
   ============================================ */
.sx-countdown {
    position: relative;
    text-align: center;
    padding: var(--sx-space-xl) 0;
}
.sx-countdown__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.sx-countdown__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.85) 0%, rgba(44,62,80,0.7) 100%);
}
.sx-countdown__inner {
    position: relative; z-index: 2;
}
.sx-countdown__title {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--sx-white);
    margin-bottom: var(--sx-space-sm);
}
.sx-countdown__location {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--sx-lime); font-size: 16px;
    margin-bottom: var(--sx-space-lg);
}
.sx-countdown__timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sx-space-sm);
    flex-wrap: wrap;
}
.sx-countdown__unit { text-align: center; }
.sx-countdown__number {
    display: block;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: var(--sx-white);
    line-height: 1;
    min-width: 100px;
    font-variant-numeric: tabular-nums;
}
.sx-countdown__label {
    display: block;
    font-size: 13px;
    color: var(--sx-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}
.sx-countdown__sep {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 300;
    color: var(--sx-lime);
    margin-top: -20px;
}
.sx-countdown__expired {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: var(--sx-lime);
}
@media (max-width: 640px) {
    .sx-countdown__timer { gap: var(--sx-space-xs); }
    .sx-countdown__number { min-width: 60px; }
    .sx-countdown__sep { display: none; }
}

/* ============================================
   TIMELINE
   ============================================ */
.sx-timeline {
    position: relative;
    padding: var(--sx-space-md) 0;
}
.sx-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--sx-lime), var(--sx-primary));
    transform: translateX(-50%);
}
.sx-timeline__item {
    position: relative;
    width: 50%;
    padding: 0 var(--sx-space-lg) var(--sx-space-xl);
}
.sx-timeline__item--left { padding-right: var(--sx-space-xl); text-align: right; }
.sx-timeline__item--right { margin-left: 50%; padding-left: var(--sx-space-xl); }

.sx-timeline__dot {
    position: absolute;
    top: 8px;
    width: 16px; height: 16px;
    background: var(--sx-lime);
    border: 3px solid var(--sx-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--sx-lime);
    z-index: 2;
}
.sx-timeline__item--left .sx-timeline__dot { right: -8px; }
.sx-timeline__item--right .sx-timeline__dot { left: -8px; }

.sx-timeline__content {
    background: var(--sx-white);
    border-radius: var(--sx-radius-lg);
    padding: var(--sx-space-md);
    box-shadow: var(--sx-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sx-timeline__content:hover {
    transform: translateY(-4px);
    box-shadow: var(--sx-shadow-lg);
}
.sx-timeline__year {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sx-lime);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--sx-space-xs);
}
.sx-timeline__image {
    border-radius: var(--sx-radius);
    overflow: hidden;
    margin-bottom: var(--sx-space-sm);
}
.sx-timeline__image img {
    width: 100%; height: 200px;
    object-fit: cover;
}
.sx-timeline__title {
    font-size: 20px;
    margin-bottom: var(--sx-space-xs);
}
.sx-timeline__text {
    font-size: 15px;
    color: var(--sx-anthracite);
    margin-bottom: var(--sx-space-xs);
}
.sx-timeline__stats {
    font-size: 13px;
    font-weight: 600;
    color: var(--sx-primary);
    padding-top: var(--sx-space-xs);
    border-top: 1px solid var(--sx-light);
}

@media (max-width: 768px) {
    .sx-timeline::before { left: 20px; }
    .sx-timeline__item,
    .sx-timeline__item--left,
    .sx-timeline__item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    .sx-timeline__item--left .sx-timeline__dot,
    .sx-timeline__item--right .sx-timeline__dot { left: 12px; right: auto; }
}

/* dark bg timeline */
.sx-bg--dark .sx-timeline::before { background: linear-gradient(180deg, var(--sx-lime), var(--sx-grey)); }
.sx-bg--dark .sx-timeline__content { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.sx-bg--dark .sx-timeline__title { color: var(--sx-white); }
.sx-bg--dark .sx-timeline__text { color: var(--sx-grey); }
.sx-bg--dark .sx-timeline__stats { color: var(--sx-lime); border-color: rgba(255,255,255,0.1); }

/* ============================================
   IMAGE SLIDER
   ============================================ */
.sx-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--sx-radius-lg);
}
.sx-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sx-slider__slide {
    flex: 0 0 100%;
    position: relative;
}
.sx-slider--16-9 .sx-slider__slide { aspect-ratio: 16/9; }
.sx-slider--21-9 .sx-slider__slide { aspect-ratio: 21/9; }
.sx-slider--4-3 .sx-slider__slide { aspect-ratio: 4/3; }
.sx-slider--3-2 .sx-slider__slide { aspect-ratio: 3/2; }

.sx-slider__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.sx-slider__caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: var(--sx-space-lg) var(--sx-space-md) var(--sx-space-sm);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--sx-white); font-size: 14px;
}
.sx-slider__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: none; border-radius: 50%;
    cursor: pointer;
    color: var(--sx-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease; z-index: 5;
}
.sx-slider__btn:hover { background: var(--sx-lime); transform: translateY(-50%) scale(1.1); }
.sx-slider__btn--prev { left: var(--sx-space-sm); }
.sx-slider__btn--next { right: var(--sx-space-sm); }
.sx-slider__dots {
    display: flex; justify-content: center;
    gap: 8px; padding: var(--sx-space-sm) 0;
    position: absolute; bottom: var(--sx-space-sm); left: 50%;
    transform: translateX(-50%); z-index: 5;
}
.sx-slider__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none; cursor: pointer;
    transition: all 0.2s ease;
}
.sx-slider__dot.active { background: var(--sx-lime); transform: scale(1.3); }

@media (max-width: 640px) {
    .sx-slider__btn { width: 36px; height: 36px; }
    .sx-slider__btn svg { width: 18px; height: 18px; }
}

/* ============================================
   EMBED
   ============================================ */
.sx-embed {
    border-radius: var(--sx-radius-lg);
    overflow: hidden;
    box-shadow: var(--sx-shadow);
}
.sx-embed iframe { display: block; width: 100%; border: none; }
.sx-embed__description {
    text-align: center;
    font-size: 15px;
    color: var(--sx-grey);
    margin-top: var(--sx-space-md);
}

/* ============================================
   QUOTE BANNER
   ============================================ */
.sx-section--quote_banner { padding: 0 !important; }
.sx-section--quote_banner > .sx-container { max-width: 100%; padding: 0; }

.sx-quote-banner {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 50vh;
    background-size: cover; background-position: center;
    text-align: center;
    padding: var(--sx-space-xxl) var(--sx-space-lg);
}
.sx-quote-banner.sx-parallax { background-attachment: fixed; }
@media (max-width: 768px) { .sx-quote-banner.sx-parallax { background-attachment: scroll; } }

.sx-quote-banner__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.85), rgba(44,62,80,0.7));
}
.sx-quote-banner__inner {
    position: relative; z-index: 2;
    max-width: 900px;
}
.sx-quote-banner__mark { margin-bottom: var(--sx-space-md); color: var(--sx-lime); }
.sx-quote-banner__quote {
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 600;
    color: var(--sx-white);
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}
.sx-quote-banner--dramatic .sx-quote-banner__quote {
    font-size: clamp(26px, 5vw, 52px);
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.sx-quote-banner--minimal .sx-quote-banner__quote {
    font-weight: 300;
    font-style: normal;
}
.sx-quote-banner__author {
    display: block;
    margin-top: var(--sx-space-lg);
    font-size: 16px;
    color: var(--sx-lime);
    font-style: normal;
    font-weight: 500;
}

/* no-image variant */
.sx-quote-banner:not([style*="background-image"]) { background: var(--sx-dark); }
.sx-quote-banner:not([style*="background-image"]) .sx-quote-banner__overlay { display: none; }

/* ============================================
   BEFORE / AFTER SLIDER
   ============================================ */
.sx-before-after {
    max-width: 900px;
    margin: 0 auto;
}
.sx-before-after__wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--sx-radius-lg);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}
.sx-before-after__before {
    display: block;
    width: 100%; height: auto;
}
.sx-before-after__after-wrap {
    position: absolute; inset: 0;
    width: 50%; /* initial position */
    overflow: hidden;
}
.sx-before-after__after {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    /* needs to be at least as wide as parent's parent */
}
.sx-before-after__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%; /* same as after-wrap width */
    width: 4px;
    transform: translateX(-50%);
    z-index: 5;
}
.sx-before-after__handle-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%; width: 3px;
    background: var(--sx-white);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.sx-before-after__handle-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: var(--sx-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--sx-dark);
}
.sx-before-after__label {
    position: absolute; top: var(--sx-space-sm);
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    color: var(--sx-white);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 4;
}
.sx-before-after__label--before { left: var(--sx-space-sm); }
.sx-before-after__label--after { right: var(--sx-space-sm); }
.sx-before-after__text {
    text-align: center;
    margin-top: var(--sx-space-md);
    color: var(--sx-anthracite);
    font-size: 15px;
}

/* ============================================
   RACE CARD
   ============================================ */
.sx-race-card {
    background: var(--sx-white);
    border-radius: var(--sx-radius-lg);
    overflow: hidden;
    box-shadow: var(--sx-shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}
.sx-race-card__image {
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
}
.sx-race-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.sx-race-card__date {
    position: absolute; bottom: var(--sx-space-sm); left: var(--sx-space-sm);
    padding: 8px 16px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: var(--sx-white);
    font-size: 14px; font-weight: 600;
    border-radius: var(--sx-radius);
}
.sx-race-card__body { padding: var(--sx-space-lg); }
.sx-race-card__title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: var(--sx-space-sm);
}
.sx-race-card__text {
    color: var(--sx-anthracite);
    font-size: 16px;
    margin-bottom: var(--sx-space-md);
    line-height: 1.7;
}
.sx-race-card__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--sx-space-sm);
    padding: var(--sx-space-md) 0;
    border-top: 1px solid var(--sx-light);
    border-bottom: 1px solid var(--sx-light);
    margin-bottom: var(--sx-space-md);
}
.sx-race-card__stat { text-align: center; }
.sx-race-card__stat-icon {
    display: flex; justify-content: center;
    color: var(--sx-lime-dark);
    margin-bottom: 4px;
}
.sx-race-card__stat-value {
    display: block;
    font-size: 20px; font-weight: 700;
    color: var(--sx-dark);
}
.sx-race-card__stat-label {
    display: block;
    font-size: 12px;
    color: var(--sx-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* dark bg race card */
.sx-bg--dark .sx-race-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.sx-bg--dark .sx-race-card__title { color: var(--sx-white); }
.sx-bg--dark .sx-race-card__text { color: var(--sx-grey); }
.sx-bg--dark .sx-race-card__stats { border-color: rgba(255,255,255,0.1); }
.sx-bg--dark .sx-race-card__stat-value { color: var(--sx-white); }

/* ============================================
   VIDEO GALLERY
   ============================================ */
.sx-video-gallery__item { border-radius: var(--sx-radius-lg); overflow: hidden; }
.sx-video-gallery__player {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--sx-dark);
    cursor: pointer;
    overflow: hidden;
}
.sx-video-gallery__thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.sx-video-gallery__player:hover .sx-video-gallery__thumb {
    transform: scale(1.05);
    opacity: 0.8;
}
.sx-video-gallery__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--sx-white);
    cursor: pointer;
    transition: all 0.3s ease;
}
.sx-video-gallery__play:hover {
    background: var(--sx-lime);
    color: var(--sx-dark);
    border-color: var(--sx-lime);
    transform: translate(-50%, -50%) scale(1.1);
}
.sx-video-gallery__player iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: none;
}
.sx-video-gallery__title {
    padding: var(--sx-space-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-dark);
}

/* ============================================
   GALLERY ENHANCEMENTS
   ============================================ */
.sx-gallery__item { position: relative; }
.sx-gallery__caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: var(--sx-space-lg) var(--sx-space-sm) var(--sx-space-xs);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--sx-white);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sx-gallery__item:hover .sx-gallery__caption { opacity: 1; }

/* ============================================
   LIGHTBOX
   ============================================ */
.sx-lightbox {
    position: fixed; inset: 0;
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sx-lightbox.is-open { opacity: 1; visibility: visible; }
.sx-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--sx-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.sx-lightbox__caption {
    position: absolute;
    bottom: var(--sx-space-lg);
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
}
.sx-lightbox__close {
    position: absolute;
    top: var(--sx-space-md); right: var(--sx-space-md);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: var(--sx-white);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sx-lightbox__close:hover { background: rgba(255,255,255,0.2); }
.sx-lightbox__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: var(--sx-white);
    cursor: pointer;
    transition: all 0.2s ease;
}
.sx-lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.sx-lightbox__nav--prev { left: var(--sx-space-md); }
.sx-lightbox__nav--next { right: var(--sx-space-md); }
.sx-lightbox__counter {
    position: absolute;
    top: var(--sx-space-md); left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ============================================
   ENHANCED VIDEO (Poster/Play Overlay)
   ============================================ */
.sx-video--with-poster {
    cursor: pointer;
}
.sx-video__poster-wrap {
    position: absolute; inset: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
.sx-video__poster-wrap.is-hidden { opacity: 0; pointer-events: none; }
.sx-video__poster-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.sx-video__play-btn {
    position: relative; z-index: 2;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--sx-white);
    transition: all 0.3s ease;
}
.sx-video--with-poster:hover .sx-video__play-btn {
    background: var(--sx-lime);
    color: var(--sx-dark);
    border-color: var(--sx-lime);
    transform: scale(1.1);
}
