/* Add here all your CSS customizations */
.dark_text { color: #000; }

:root {
    --footer-blue: #192233;
    --footer-blue-light: color-mix(in srgb, var(--footer-blue), #ffffff 6%);
    --footer-accent: #7da7ff;
    --brand-primary: #6EA8FF;
    --brand-secondary: #FF7FD2;
    --brand-tertiary: #36C6C6;
    --brand-quaternary: #7A90FF;
    --brand-default: #8C7BFF;
    --hero-accent: #0A84FF;
    --hero-accent-hover: #1A8EFF;
    --hero-white: #FFFFFF;
    --brand-primary-gradient: linear-gradient(120deg, #55B7FF 0%, #6EA8FF 45%, #9F8CFF 100%);
    --brand-secondary-gradient: linear-gradient(120deg, #FF7FD2 0%, #FF9AD9 38%, #B68CFF 100%);
    --brand-tertiary-gradient: linear-gradient(120deg, #36C6C6 0%, #5FB3FF 48%, #9B78FF 100%);
    --brand-quaternary-gradient: linear-gradient(120deg, #7A90FF 0%, #6EA8FF 40%, #9F8CFF 100%);
    --brand-default-gradient: linear-gradient(120deg, #8C7BFF 0%, #B08CFF 45%, #FF86D6 100%);
}

.errorlist { color: red; padding: 20px; list-style:none;}

.social-icons li:hover.social-icons-discord a,
.social-icons li.social-icons-discord:hover a {
    background: #5865F2 !important;
    color: #fff !important;
}

.footer-social-icons li {
    box-shadow: none;
    margin: -1px 4px 6px 0;
}

.footer-social-icons li a {
    background: #2b2f36;
    color: #c9ced6 !important;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 50px;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.entry-summary {
    font-size: 1.4em;
}

.entry-image {
    margin-bottom: 25px;
}

.delay-1 {
    animation-delay: .25s;
}
.delay-2 {
    animation-delay: .5s;
}
.delay-3 {
    animation-delay: .75s;
}
.delay-4 {
    animation-delay: 1s;
}

.entry-body img {
    max-width: 100%;
    width: 100%;
    height: 90%;
}


ul.archives-entries-tree {
    line-height: 20px;
    padding-left: 20px;
    font-weight: bold;
}

ul.entries-similar {
    margin-bottom: 20px;
}

.archives-entries-tree ul {
    line-height: 20px;
    padding-left: 20px;
    font-weight: normal;
    padding-bottom: 20px;
}

ul.archives-entries-tree {
    list-style: none;
}

ul.archives-entries-tree li:before {
    content: "\00BB";
}

ul.archives-entries-tree ul ul li:before {
    content: "";
}

.archives-entries-tree ul ul {
    padding-bottom: 0px;
}

.archives-entries-tree li {
    line-height: 20px;
    list-style: none;
}

/* Preserve Font Awesome 6 weights inside thumb-info social links. */
.thumb-info-social-icons a i.fa-solid {
    font-weight: 900;
}

.thumb-info-social-icons a i.fa-regular,
.thumb-info-social-icons a i.fa-brands {
    font-weight: 400;
}

/* Cosmic Dusk palette overrides for primary/secondary/tertiary helpers */
html .heading-primary,
html .lnk-primary,
html .text-color-primary {
    color: var(--brand-primary) !important;
}

html .heading.heading-primary h1,
html .heading.heading-primary h2,
html .heading.heading-primary h3,
html .heading.heading-primary h4,
html .heading.heading-primary h5,
html .heading.heading-primary h6 {
    border-color: var(--brand-primary);
}

html .heading-secondary,
html .lnk-secondary,
html .text-color-secondary {
    color: var(--brand-secondary) !important;
}

html .heading.heading-secondary h1,
html .heading.heading-secondary h2,
html .heading.heading-secondary h3,
html .heading.heading-secondary h4,
html .heading.heading-secondary h5,
html .heading.heading-secondary h6 {
    border-color: var(--brand-secondary);
}

html .heading-tertiary,
html .lnk-tertiary,
html .text-color-tertiary {
    color: var(--brand-tertiary) !important;
}

html .heading.heading-tertiary h1,
html .heading.heading-tertiary h2,
html .heading.heading-tertiary h3,
html .heading.heading-tertiary h4,
html .heading.heading-tertiary h5,
html .heading.heading-tertiary h6 {
    border-color: var(--brand-tertiary);
}

html .background-color-primary {
    background-color: var(--brand-primary) !important;
}

html .background-color-secondary {
    background-color: var(--brand-secondary) !important;
}

html .background-color-tertiary {
    background-color: var(--brand-tertiary) !important;
}

html .blockquote-primary {
    border-color: var(--brand-primary) !important;
}

html .blockquote-secondary {
    border-color: var(--brand-secondary) !important;
}

html .blockquote-tertiary {
    border-color: var(--brand-tertiary) !important;
}

html ul.nav-pills-primary a {
    color: var(--brand-primary);
}

html ul.nav-pills-primary > li.active > a,
html ul.nav-pills-primary > li.active > a:hover,
html ul.nav-pills-primary > li.active > a:focus {
    background-color: var(--brand-primary);
}

html ul.nav-pills-secondary a {
    color: var(--brand-secondary);
}

html ul.nav-pills-secondary > li.active > a,
html ul.nav-pills-secondary > li.active > a:hover,
html ul.nav-pills-secondary > li.active > a:focus {
    background-color: var(--brand-secondary);
}

html ul.nav-pills-tertiary a {
    color: var(--brand-tertiary);
}

html ul.nav-pills-tertiary > li.active > a,
html ul.nav-pills-tertiary > li.active > a:hover,
html ul.nav-pills-tertiary > li.active > a:focus {
    background-color: var(--brand-tertiary);
}

html .label-primary {
    background-color: var(--brand-primary) !important;
}

html .label-secondary {
    background-color: var(--brand-secondary) !important;
}

html .label-tertiary {
    background-color: var(--brand-tertiary) !important;
}

html .toggle-primary .toggle label {
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    border-right-color: var(--brand-primary);
}

html .toggle-primary .toggle.active > label {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

html .toggle-primary.toggle-simple .toggle > label:after {
    background-color: var(--brand-primary);
}

html .toggle-secondary .toggle label {
    color: var(--brand-secondary);
    border-left-color: var(--brand-secondary);
    border-right-color: var(--brand-secondary);
}

html .toggle-secondary .toggle.active > label {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #ffffff;
}

html .toggle-secondary.toggle-simple .toggle > label:after {
    background-color: var(--brand-secondary);
}

html .toggle-tertiary .toggle label {
    color: var(--brand-tertiary);
    border-left-color: var(--brand-tertiary);
    border-right-color: var(--brand-tertiary);
}

html .toggle-tertiary .toggle.active > label {
    background-color: var(--brand-tertiary);
    border-color: var(--brand-tertiary);
    color: #ffffff;
}

html .toggle-tertiary.toggle-simple .toggle > label:after {
    background-color: var(--brand-tertiary);
}

html .feature-toggle-column {
    max-width: 760px;
}

html .feature-toggle-list.toggle-primary .toggle {
    margin-bottom: 22px;
    border: 1px solid #e5ebf5;
    border-radius: 10px;
    background: #fbfcff;
    overflow: hidden;
}

html .feature-toggle-list.toggle-primary .toggle:not(.active) {
    margin-bottom: 14px;
}

html .feature-toggle-list.toggle-primary .toggle > label {
    background: #f9fbff;
    border-left: 3px solid #e3e9f4;
    color: #1f2732;
    font-weight: 500;
    font-size: 1.01em;
    line-height: 1.35;
    padding: 12px 20px 12px 12px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

html .feature-toggle-list.toggle-primary .toggle > label:hover {
    background: #f1f5ff;
}

html .feature-toggle-list.toggle-primary .toggle:not(.active) > label {
    padding-top: 10px;
    padding-bottom: 10px;
}

html .feature-toggle-list.toggle-primary .toggle.active > label {
    background: #eaf1ff;
    border-left-color: #9fb6df;
    color: #1f2732;
    font-weight: 550;
    padding-top: 14px;
    padding-bottom: 14px;
}

html .feature-toggle-list.toggle-primary .toggle > label:before {
    border: 0;
    color: rgba(108, 122, 148, 0.8);
    content: "\f107";
    font-family: FontAwesome;
    font-size: 14px;
    line-height: 16px;
    width: 16px;
    height: 16px;
    text-align: center;
    right: 12px;
    top: 50%;
    margin-top: -8px;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: color 0.25s ease, transform 0.25s ease;
}

html .feature-toggle-list.toggle-primary .toggle.active > label:before {
    color: rgba(108, 122, 148, 0.85);
    transform: rotate(-180deg);
}

html .feature-toggle-list.toggle-primary .toggle > label i {
    font-size: 0.78em;
    color: #9aa7be;
    opacity: 0.65;
    display: inline-block;
    width: 16px;
    text-align: center;
}

html .feature-toggle-list.toggle-primary .toggle > .toggle-content {
    background: #ffffff;
    padding: 18px 22px 22px;
}

html .feature-toggle-list.toggle-primary .toggle > .toggle-content p {
    line-height: 1.7;
    max-width: 65ch;
    margin: 4px 0 14px;
    color: #2c3440;
    font-weight: 400;
}

html .feature-toggle-list.toggle-primary .toggle > .toggle-content p:last-child {
    margin-bottom: 0;
}

html .cloud-api-feature-link {
    color: inherit;
    cursor: pointer;
    display: block;
    height: 100%;
    text-decoration: none;
}

html .cloud-api-feature-link:hover,
html .cloud-api-feature-link:focus {
    color: inherit;
    text-decoration: none;
}

html .demo-apps-subtitle {
    color: #4a4a4a;
    margin-bottom: 20px;
}

html .demo-apps-italics {
    color: #777777;
    margin-top: 0;
}

html .btn-primary:not(.launch-instance) {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

html .btn-primary:not(.launch-instance):hover,
html .btn-primary:not(.launch-instance):focus {
    background-color: color-mix(in srgb, var(--brand-primary), #000 12%) !important;
    border-color: color-mix(in srgb, var(--brand-primary), #000 12%) !important;
}

html .btn-secondary {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
}

html .btn-secondary:hover,
html .btn-secondary:focus {
    background-color: color-mix(in srgb, var(--brand-secondary), #000 12%) !important;
    border-color: color-mix(in srgb, var(--brand-secondary), #000 12%) !important;
}

html .btn-tertiary {
    background-color: var(--brand-tertiary) !important;
    border-color: var(--brand-tertiary) !important;
}

html .btn-tertiary:hover,
html .btn-tertiary:focus {
    background-color: color-mix(in srgb, var(--brand-tertiary), #000 12%) !important;
    border-color: color-mix(in srgb, var(--brand-tertiary), #000 12%) !important;
}

.download-openshot.btn.btn-primary {
    background: var(--hero-accent) !important;
    border: 1px solid var(--hero-accent) !important;
    color: var(--hero-white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(5, 38, 96, 0.22);
    margin-bottom: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.download-openshot.btn.btn-primary:hover,
.download-openshot.btn.btn-primary:focus {
    background: var(--hero-accent-hover) !important;
    border-color: var(--hero-accent-hover) !important;
    color: var(--hero-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 18px rgba(5, 38, 96, 0.32);
}

html .call-to-action.call-to-action-primary {
    background: linear-gradient(135deg, #0a84ff 0%, #148cff 22%, #1f6fe6 40%, #3f63d6 56%, #6f66e8 74%, #8b69ff 86%, #4a3470 100%);
    border: 1px solid rgba(15, 25, 45, 0.35);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(9, 18, 38, 0.28);
    overflow: hidden;
    position: relative;
    z-index: 0;
}

html .call-to-action.call-to-action-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 240px at 12% 10%, rgba(255, 255, 255, 0.22), transparent 58%),
        radial-gradient(520px 220px at 82% 18%, rgba(255, 255, 255, 0.16), transparent 64%),
        linear-gradient(180deg, rgba(5, 12, 24, 0.08) 0%, rgba(5, 12, 24, 0.18) 100%);
    z-index: 0;
    pointer-events: none;
}

html .call-to-action.cta-shine .cta-shine-sweep {
    position: absolute;
    inset: -20% 0;
    background: linear-gradient(120deg, transparent 18%, rgba(190, 220, 255, 0.6) 46%, transparent 74%);
    opacity: 0.85;
    transform: translateX(-60%);
    animation: heroSheen 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

html .call-to-action.call-to-action-primary h3,
html .call-to-action.call-to-action-primary p {
    color: var(--hero-white);
    text-shadow: 0 2px 10px rgba(8, 14, 28, 0.35);
}

html .call-to-action.call-to-action-primary p {
    color: rgba(255, 255, 255, 0.88);
}

html .call-to-action.call-to-action-primary .call-to-action-content {
    text-align: left;
    position: relative;
    z-index: 2;
}

html .call-to-action.call-to-action-primary .call-to-action-btn {
    z-index: 2;
}

html .call-to-action.call-to-action-primary .call-to-action-btn .btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: var(--hero-white);
    box-shadow: 0 10px 22px rgba(8, 14, 28, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html .call-to-action.call-to-action-primary .call-to-action-btn .btn:hover,
html .call-to-action.call-to-action-primary .call-to-action-btn .btn:focus {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--hero-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(8, 14, 28, 0.32);
}

@media (max-width: 767px) {
    html .call-to-action.call-to-action-primary .call-to-action-content {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .call-to-action.release {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .call-to-action.release .call-to-action-content {
        width: auto;
        flex: 1 1 60%;
    }

    .call-to-action.release .call-to-action-btn {
        position: static;
        width: auto;
        margin: 20px 25px 25px auto;
        text-align: center;
    }
}

.launch-instance.aws,
.launch-instance.azure,
.launch-instance.google {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.launch-instance.aws:hover,
.launch-instance.aws:focus,
.launch-instance.azure:hover,
.launch-instance.azure:focus,
.launch-instance.google:hover,
.launch-instance.google:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 23, 38, 0.18);
}

.launch-instance.demos img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simple-editor-demo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(15, 23, 38, 0.18);
    border-radius: 8px;
}

.launch-instance.demos:hover img,
.launch-instance.demos:focus img {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 23, 38, 0.18);
}

html .featured-box-primary .icon-featured {
    background: var(--brand-primary-gradient);
    color: #ffffff;
}

html .featured-box-secondary .icon-featured {
    background: var(--brand-secondary-gradient);
    color: #ffffff;
}

html .featured-box-tertiary .icon-featured {
    background: var(--brand-tertiary-gradient);
    color: #ffffff;
}

html .featured-box-quaternary .icon-featured {
    background: var(--brand-quaternary-gradient);
    color: #ffffff;
}

html .featured-box-default .icon-featured {
    background: var(--brand-default-gradient);
    color: #ffffff;
}

html .featured-box-green .icon-featured {
    background: var(--brand-tertiary-gradient);
    color: #ffffff;
}

html .featured-box .icon-featured.donate-icon-paypal {
    background: #003087;
    color: #ffffff;
}

html .featured-box .icon-featured.donate-icon-patreon {
    background: #FF424D;
    color: #ffffff;
}

html .featured-box-primary h4 {
    color: #111111;
}

html .featured-box-primary .box-content {
    border-top-color: var(--brand-primary);
}

html .featured-box-secondary h4 {
    color: #111111;
}

html .featured-box-secondary .box-content {
    border-top-color: var(--brand-secondary);
}

html .featured-box-tertiary h4 {
    color: #111111;
}

html .featured-box-tertiary .box-content {
    border-top-color: var(--brand-tertiary);
}

html .featured-box-quaternary h4 {
    color: #111111;
}

html .featured-box-quaternary .box-content {
    border-top-color: var(--brand-quaternary);
}

html .featured-box-default h4 {
    color: #111111;
}

html .featured-box-default .box-content {
    border-top-color: var(--brand-default);
}

html .featured-box-green h4 {
    color: #111111;
}

html .featured-box-green .box-content {
    border-top-color: var(--brand-tertiary);
}

html .featured-box-effect-2.featured-box-primary .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-primary);
}

html .featured-box-effect-2.featured-box-secondary .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-secondary);
}

html .featured-box-effect-2.featured-box-tertiary .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-tertiary);
}

html .featured-box-effect-2.featured-box-quaternary .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-quaternary);
}

html .featured-box-effect-2.featured-box-default .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-default);
}

html .featured-box-effect-2.featured-box-green .icon-featured:after {
    box-shadow: 0 0 0 3px var(--brand-tertiary);
}

html .featured-box-effect-3.featured-box-primary .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-primary);
}

html .featured-box-effect-3.featured-box-secondary .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-secondary);
}

html .featured-box-effect-3.featured-box-tertiary .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-tertiary);
}

html .featured-box-effect-3.featured-box-quaternary .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-quaternary);
}

html .featured-box-effect-3.featured-box-default .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-default);
}

html .featured-box-effect-3.featured-box-green .icon-featured:after {
    box-shadow: 0 0 0 10px var(--brand-tertiary);
}

html .featured-box-effect-3.featured-box-primary:hover .icon-featured {
    background: var(--brand-primary-gradient) !important;
}

html .featured-box-effect-3.featured-box-secondary:hover .icon-featured {
    background: var(--brand-secondary-gradient) !important;
}

html .featured-box-effect-3.featured-box-tertiary:hover .icon-featured {
    background: var(--brand-tertiary-gradient) !important;
}

html .featured-box-effect-3.featured-box-quaternary:hover .icon-featured {
    background: var(--brand-quaternary-gradient) !important;
}

html .featured-box-effect-3.featured-box-default:hover .icon-featured {
    background: var(--brand-default-gradient) !important;
}

html .featured-box-effect-3.featured-box-green:hover .icon-featured {
    background: var(--brand-tertiary-gradient) !important;
}

/* Cosmic Dusk hero + ambient animation */
.hero-cosmic {
    --hero-bg: #192332;
    --hero-panel: #141923;
    --hero-toolbar: #283241;
    --hero-hover: #323C50;
    --hero-accent: #0A84FF;
    --hero-accent-hover: #1A8EFF;
    --hero-text: #91C3FF;
    --hero-white: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    background: linear-gradient(130deg, #0f1726 0%, #202646 30%, #502a7d 58%, #284a7a 78%, #152235 100%);
    background-size: 220% 220%;
    animation: heroGradient 18s ease-in-out infinite;
    color: var(--hero-white);
}

.hero-cosmic::before,
.hero-cosmic::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 20%, rgba(126, 92, 255, 0.45), transparent 58%),
        radial-gradient(circle at 80% 30%, rgba(237, 110, 255, 0.34), transparent 60%),
        radial-gradient(circle at 50% 78%, rgba(0, 140, 255, 0.3), transparent 62%);
    filter: blur(40px);
    opacity: 1;
    animation: heroGlow 22s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-cosmic::after {
    animation-duration: 30s;
    animation-direction: alternate-reverse;
    opacity: 0.85;
}

.hero-cosmic-bokeh {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(145, 195, 255, 0.14), transparent 38%),
        radial-gradient(circle at 60% 80%, rgba(227, 92, 255, 0.16), transparent 42%),
        radial-gradient(circle at 40% 70%, rgba(0, 120, 255, 0.2), transparent 44%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 30%);
    filter: blur(35px);
    background-size: 120% 120%;
    animation: heroBokeh 22s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-cosmic-sparkles {
    position: absolute;
    inset: -10%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 3px),
        radial-gradient(circle, rgba(145, 195, 255, 0.6) 2px, transparent 4px),
        radial-gradient(circle, rgba(227, 92, 255, 0.55) 3px, transparent 6px),
        radial-gradient(circle, rgba(0, 120, 255, 0.45) 2px, transparent 5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 4px, transparent 10px);
    background-size: 160px 180px, 240px 180px, 320px 300px, 420px 340px, 520px 480px;
    background-position: 0% 0%, 28% 64%, 76% 18%, 12% 82%, 60% 30%;
    opacity: 0.24;
    filter: blur(0.4px);
    animation: heroSparkles 29s linear infinite;
    z-index: 1;
}

.hero-cosmic-sparkles::before,
.hero-cosmic-sparkles::after {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 3px),
        radial-gradient(circle, rgba(145, 195, 255, 0.35) 2px, transparent 5px),
        radial-gradient(circle, rgba(227, 92, 255, 0.3) 3px, transparent 7px);
    opacity: 0.16;
    filter: blur(0.6px);
}

.hero-cosmic-sparkles::before {
    background-size: 220px 240px, 320px 260px, 420px 360px;
    background-position: 10% 30%, 60% 70%, 85% 15%;
    animation: heroSparklesDrift 36s linear infinite;
}

.hero-cosmic-sparkles::after {
    background-size: 280px 260px, 360px 320px, 520px 420px;
    background-position: 30% 80%, 70% 30%, 15% 45%;
    animation: heroSparklesDrift 52s linear infinite reverse;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 35%; }
    100% { background-position: 0% 60%; }
}

@keyframes heroGlow {
    0% { transform: translate3d(-3%, -3%, 0) scale(1.02); }
    100% { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

@keyframes heroBokeh {
    0% {
        transform: translate3d(-3%, 3%, 0) scale(1.02);
        background-position: 0% 30%;
    }
    100% {
        transform: translate3d(3%, -3%, 0) scale(1.1);
        background-position: 100% 70%;
    }
}

.hero-cosmic .container {
    position: relative;
    z-index: 2;
}

.hero-cosmic-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cosmic-copy {
    padding-right: 25px;
    animation: heroFadeIn 1.2s ease-out both;
    animation-delay: 0.1s;
}

.hero-eyebrow {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-eyebrow-video {
    margin-top: 26px;
    margin-bottom: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.03em;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding-top: 14px;
}

.hero-eyebrow-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--hero-white);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-title-emphasis {
    font-weight: 700;
}

.hero-title-support {
    font-weight: 600;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    max-width: 42ch;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hero-btn-primary {
    background: var(--hero-accent);
    border: 1px solid var(--hero-accent);
    color: var(--hero-white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(7, 40, 90, 0.28), 0 0 10px rgba(10, 132, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: var(--hero-accent-hover);
    border-color: var(--hero-accent-hover);
    color: var(--hero-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(5, 32, 82, 0.5), 0 0 20px rgba(10, 132, 255, 0.32);
    filter: brightness(1.06);
}

.hero-btn-secondary {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(145, 195, 255, 0.3);
    text-decoration: none;
    font-size: 15px;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    color: var(--hero-white);
    border-bottom-color: var(--hero-white);
}

.home-intro .home-intro-release {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.home-intro .home-intro-release a {
    color: rgba(145, 195, 255, 0.95);
    font-weight: 600;
}

.home-intro .home-intro-release a:hover,
.home-intro .home-intro-release a:focus {
    color: #FFFFFF;
}

@media (min-width: 992px) {
    .home-intro .home-intro-row {
        display: flex;
        align-items: center;
    }

    .home-intro .home-intro-row .get-started {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    .home-intro .get-started {
        margin-top: 6px;
        margin-bottom: 0;
        text-align: left;
    }
}

@media (max-width: 354px) {
    .header-social-icons .social-icons-skype {
        display: none;
    }

    #header .header-logo {
        max-width: calc(100% - 96px);
    }
}

.hero-cosmic-stage {
    padding-left: 26px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    animation: heroFadeIn 1.2s ease-out both;
    animation-delay: 0.35s;
}

.hero-ui-frame {
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transform: translateY(8px);
    width: 100%;
    max-width: 840px;
    max-height: 60vh;
    aspect-ratio: 16 / 9;
    animation: heroFadeIn 1.4s ease-out both;
    cursor: zoom-in;
    z-index: 2;
}

.hero-ui-frame::after {
    content: "";
    position: absolute;
    inset: -20% 0;
    background: linear-gradient(120deg, transparent 20%, rgba(145, 195, 255, 0.2) 45%, transparent 70%);
    opacity: 0.6;
    transform: translateX(-60%);
    animation: heroSheen 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-ui-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.35s ease, transform 0.4s ease;
    transform-origin: center;
}

.hero-ui-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.hero-ui-frame:hover video {
    transform: scale(1.05);
}

.hero-video-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 22, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    cursor: zoom-out;
}

.hero-video-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-video-modal {
    width: min(92vw, 1200px);
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.hero-video-overlay.is-active .hero-video-modal {
    transform: scale(1);
}

.hero-video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .hero-video-modal {
        width: 94vw;
        max-height: 70vh;
        border-radius: 12px;
    }
}

.hero-ui-image.is-switching {
    opacity: 0;
    transform: scale(0.98) rotateY(6deg);
}

@media (max-width: 991px) {
    .hero-cosmic {
        padding: 80px 0;
    }

    .hero-cosmic-copy {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-ui-frame {
        width: 100%;
        transform: translateY(0);
    }

    .hero-cosmic-stage {
        padding-left: 0;
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }

    .hero-eyebrow-video {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-ui-frame {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cosmic::before,
    .hero-cosmic::after,
    .hero-cosmic-bokeh,
    .hero-cosmic-sparkles,
    .hero-cosmic,
    .hero-cosmic-copy,
    .hero-cosmic-stage,
    .hero-ui-frame,
    .hero-ui-frame::after {
        animation: none;
    }
}

/* Cosmic Dusk header/footer accents */
#header .header-body {
    background: linear-gradient(135deg, rgba(32, 38, 70, 0.96), rgba(20, 25, 35, 0.96));
    border-bottom: 1px solid #323C50;
}

#header .header-nav-main nav > ul > li > a {
    color: #C7DCFF;
}

#header .header-nav-main nav > ul > li:hover > a,
#header .header-nav-main nav > ul > li.open > a {
    background: #323C50;
    color: #FFFFFF;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    #header .header-nav-main nav > ul > li > a {
        background-image: linear-gradient(120deg, #7A90FF 0%, #CBA8FF 55%, #FF86D6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        background-size: 140% 100%;
        animation: navGradient 20s ease-in-out infinite;
    }

    #header .header-nav-main nav > ul > li:hover > a,
    #header .header-nav-main nav > ul > li.open > a {
        color: #FFFFFF;
        -webkit-text-fill-color: #FFFFFF;
    }

    #header .header-nav-main nav > ul > li:nth-child(1) > a {
        background-image: linear-gradient(120deg, #6EA8FF 0%, #9F8CFF 55%, #D98CFF 100%);
    }

    #header .header-nav-main nav > ul > li:nth-child(2) > a {
        background-image: linear-gradient(120deg, #7A80FF 0%, #C38CFF 60%, #FF7FD2 100%);
    }

    #header .header-nav-main nav > ul > li:nth-child(3) > a {
        background-image: linear-gradient(120deg, #64B6FF 0%, #9B78FF 55%, #E98CFF 100%);
    }

    #header .header-nav-main nav > ul > li:nth-child(4) > a {
        background-image: linear-gradient(120deg, #7C9CFF 0%, #D68CFF 55%, #FF86C4 100%);
    }

    #header .header-nav-main nav > ul > li:nth-child(5) > a {
        background-image: linear-gradient(120deg, #5FA6FF 0%, #B48CFF 55%, #FF8EDA 100%);
    }

#header .header-nav-main nav > ul > li:nth-child(6) > a {
    background-image: linear-gradient(120deg, #6B94FF 0%, #C58CFF 55%, #FF7FC0 100%);
}
}

#header .header-nav-main nav > ul > li.active > a,
#header .header-nav-main nav > ul > li.active > a:hover,
#header .header-nav-main nav > ul > li.active > a:focus {
    background-color: rgba(255, 255, 255, 0.06);
    background-image: none;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
    background: rgba(42, 50, 63, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(7, 10, 18, 0.45);
    padding: 8px;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:focus {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.055);
}

#header .header-logo img.company-logo {
    max-height: 52px;
    width: auto;
}

@media (max-width: 991px) {
    #header .header-nav-main nav > ul li a .fa-caret-down {
        color: #C7DCFF;
        -webkit-text-fill-color: #C7DCFF;
        opacity: 0.9;
    }

    #header .header-nav-main nav > ul li.open > a .fa-caret-down,
    #header .header-nav-main nav > ul li a:hover .fa-caret-down {
        color: #FFFFFF;
        -webkit-text-fill-color: #FFFFFF;
        opacity: 1;
    }
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > a:after {
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.45);
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > .dropdown-menu {
    background: rgba(58, 68, 83, 0.96);
}

.word-rotator-title .inverted {
    background-image: linear-gradient(120deg, #7A80FF 0%, #C38CFF 60%, #FF7FD2 100%);
    background-color: transparent;
    color: #FFFFFF;
}

.word-rotator-title .word-rotate .word-rotate-items span {
    color: #FFFFFF;
}

#footer {
    background: var(--footer-blue);
    border-top: 0;
    margin-top: 0;
    padding-top: 40px;
}

#footer h4 {
    color: rgba(255, 255, 255, 0.96);
    margin: 0 0 14px;
    text-transform: uppercase;
}

#footer .contact-details h4 a {
    color: rgba(255, 255, 255, 0.96);
}

#footer .contact-details .contact p,
#footer .contact-details .contact a {
    background-image: none;
    color: rgba(255, 255, 255, 0.68);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.68);
}

#footer,
#footer p,
#footer a {
    color: rgba(255, 255, 255, 0.68);
}

#footer a:hover {
    color: #7da7ff;
}

#footer a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

#footer p {
    background-image: none;
    color: rgba(255, 255, 255, 0.6);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
    line-height: 1.58;
}

.footer-heading-spaced {
    margin-top: 14px;
}

#footer .newsletter p,
#footer .twitter p {
    max-width: 280px;
}

.footer-sponsor-logos {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
}

.footer-sponsor-logo {
    padding: 6px 4px;
}

.sponsor-logo-link {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-logo-img {
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sponsor-logo-link:hover .sponsor-logo-img,
.sponsor-logo-link:focus .sponsor-logo-img {
    transform: translateY(-4px);
    filter: drop-shadow(0 16px 24px rgba(12, 22, 38, 0.22));
}

.footer-sponsor-logo img {
    max-width: 150px;
}

.sponsor-cta-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-cta-btn:hover,
.sponsor-cta-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(12, 22, 38, 0.22);
}

.footer-sponsor-cta a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-sponsor-cta a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright {
    background: #090d14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
}

#footer .footer-copyright-text {
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    margin: 0;
}

.footer-copyright .footer-copyright-text a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-copyright .footer-copyright-text a:hover {
    color: #FFFFFF;
}

.libopenshot-pricing .plan {
    background: linear-gradient(135deg, rgba(110, 168, 255, 0.12) 0%, rgba(159, 140, 255, 0.1) 100%);
    border: 1px solid rgba(110, 168, 255, 0.35);
    box-shadow: 0 16px 30px rgba(12, 22, 38, 0.12);
}

.libopenshot-pricing .plan h3 {
    background: var(--brand-primary-gradient);
    color: #ffffff;
    text-shadow: none;
}

.libopenshot-pricing .plan h3 span {
    box-shadow: 0 6px 18px rgba(21, 34, 54, 0.2) inset, 0 2px 0 rgba(21, 34, 54, 0.25) inset;
    color: #1d2127;
}

.footer-copyright .footer-copyright-text i {
    display: none;
}

#footer .contact-details .contact i {
    display: none;
}

#footer .contact-details .contact strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

#footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-links li {
    margin-bottom: 6px;
}

#footer .footer-links a {
    color: rgba(255, 255, 255, 0.68);
}

#footer .footer-links a:hover {
    color: #FFFFFF;
}

.latest-posts-cosmic {
    background: linear-gradient(180deg, color-mix(in srgb, var(--footer-blue-light), #ffffff 3%) 0%, var(--footer-blue-light) 100%);
    border: 0;
    padding: 14px 0 14px;
}

.latest-posts-cosmic .row.mt-xl {
    margin-top: 12px;
}

.latest-posts-cosmic h2 {
    color: #FFFFFF;
    margin-bottom: 24px;
}

.latest-posts-cosmic h2 strong {
    color: #FFFFFF;
}

.latest-posts-cosmic h2 a {
    color: var(--footer-accent);
}

.latest-posts-cosmic h2 a i {
    color: inherit;
    opacity: 0.6;
}

.latest-posts-cosmic h2 a:hover,
.latest-posts-cosmic h2 a:hover i {
    color: #a9c0ff;
}

.latest-posts-cosmic .recent-posts,
.latest-posts-cosmic .post {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.latest-posts-cosmic .recent-posts {
    min-height: 280px;
}

.latest-posts-cosmic .post {
    padding: 0;
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.latest-posts-cosmic .post .date {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
}

.latest-posts-cosmic .post h4 {
    font-weight: 600;
}

.latest-posts-cosmic .post h4 a {
    color: #e0e6f2;
}

.latest-posts-cosmic .post h4 a:hover {
    color: #eef2fa;
}

.latest-posts-cosmic .post p {
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.6;
    margin-bottom: 10px;
    max-height: none;
}

.latest-posts-cosmic .post .btn {
    display: none;
}

.latest-posts-cosmic .post .post-read-more {
    color: var(--footer-accent);
    font-size: 0.9em;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.latest-posts-cosmic .post .post-read-more:hover {
    color: #a9c0ff;
    text-decoration: underline;
}

.latest-posts-cosmic .post .post-read-more::after {
    content: " >";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.latest-posts-cosmic .post .post-read-more:hover::after {
    opacity: 1;
}

.latest-posts-cosmic .col-md-4.text-center .recent-posts {
    border: 0;
    border-radius: 0;
    padding: 0;
}

/* Gradient background for page headers */
.page-header {
    background: linear-gradient(135deg, #0a84ff 0%, #148cff 22%, #1f6fe6 40%, #3f63d6 56%, #6f66e8 74%, #8b69ff 86%, #4a3470 100%);
    background-size: 200% 200%;
    animation: heroGradient 24s ease-in-out infinite;
    animation-delay: -10s;
    border-top: 5px solid #3f63d6;
    border-bottom: 1px solid #283241;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
}

section.page-header h1 {
    border-bottom: 0;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroSheen {
    0% { transform: translateX(-60%); opacity: 0; }
    30% { opacity: 0.6; }
    60% { opacity: 0.2; }
    100% { transform: translateX(60%); opacity: 0; }
}

@keyframes heroSparkles {
    0% { background-position: 0% 0%, 28% 64%, 76% 18%, 12% 82%, 60% 30%; opacity: 0.18; }
    37% { background-position: 22% 18%, 46% 48%, 84% 58%, 40% 70%, 20% 56%; opacity: 0.3; }
    73% { background-position: 48% 36%, 70% 22%, 92% 30%, 64% 38%, 84% 12%; opacity: 0.24; }
    100% { background-position: 70% 52%, 90% 10%, 100% 0%, 82% 14%, 10% 78%; opacity: 0.2; }
}

@keyframes heroSparklesDrift {
    0% { background-position: 10% 30%, 60% 70%, 85% 15%; }
    50% { background-position: 36% 44%, 72% 36%, 60% 26%; }
    100% { background-position: 70% 60%, 90% 20%, 30% 40%; }
}

@keyframes navGradient {
    0% { background-position: 45% 50%; }
    50% { background-position: 55% 50%; }
    100% { background-position: 45% 50%; }
}

html[dir="rtl"] #header .header-nav-main nav > ul > li {
    float: right;
}

html[dir="rtl"] #header .header-nav-main nav > ul > li > a.dropdown-toggle:after {
    float: left;
    margin-left: 0;
    margin-right: 4px;
}

html[dir="rtl"] #header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] #header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
    padding: 8px 8px 8px 20px;
}

html[dir="rtl"] #header .header-social-icons {
    float: left;
    margin: 15px 10px 0 0;
}

html[dir="rtl"] #header .header-logo {
    float: left;
}

html[dir="rtl"] #header .header-logo img {
    margin: 8px 15px 8px 0;
}

html[dir="rtl"] #header.header-narrow .header-logo img {
    margin: 0;
}

/* Mobile header layout (<=991px):
   LTR: [menu][logo] ... [social][lang]
   RTL: [lang][social] ... [logo][menu] */
@media (max-width: 991px) {
    #header .header-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #header .header-column,
    #header .header-column .header-row,
    #header .header-nav {
        display: contents;
    }

    #header .header-btn-collapse-nav {
        order: 1;
        margin: 0 8px 0 0;
        float: none;
    }

    #header .header-logo {
        order: 2;
        margin: 0;
        float: none;
        max-width: calc(100% - 120px);
    }

    #header .header-social-icons {
        order: 3;
        margin-left: auto;
        float: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    #header .header-nav-main {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        clear: both;
    }

    html[dir="rtl"] #header .header-social-icons {
        order: 3;
        margin-left: 0;
        margin-right: auto;
        flex-direction: row;
    }

    html[dir="rtl"] #header .header-logo {
        order: 2;
    }

    html[dir="rtl"] #header .header-btn-collapse-nav {
        order: 1;
        margin: 0 0 0 8px;
    }

    html[dir="rtl"] #header .header-social-icons li.social-icons-skype {
        order: 99;
    }
}

/* Updated mobile dropdown menu - compact, consistent small chevron arrows, proper RTL flip for menu items */
@media (max-width: 991px) {
    #header .header-nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #283241;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 12px 12px;
    }

    #header .header-nav-main.show,
    body.header-nav-main-open #header .header-nav-main,
    #header .header-nav-main:not(.collapsed) {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
    }

    #header .header-nav-main nav > ul {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        margin: 0;
    }

    #header .header-nav-main nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #header .header-nav-main nav > ul > li:last-child {
        border-bottom: none;
    }

    #header .header-nav-main nav > ul > li > a {
        position: relative;
        display: block;
        padding: 12px 52px 12px 16px !important;
        color: #C7DCFF;
        font-size: 1em;
        line-height: 1.4;
        text-align: left;
        transition: background-color 0.2s ease;
    }

    html[dir="rtl"] #header .header-nav-main nav > ul > li > a {
        padding: 12px 16px 12px 52px !important;
        text-align: right;
    }

    #header .header-nav-main nav > ul > li > a:hover,
    #header .header-nav-main nav > ul > li > a:focus {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Consistent chevron toggles for all mobile dropdown levels (up/down rotation). */
    #header .header-nav-main nav > ul li.dropdown > a,
    #header .header-nav-main nav > ul li.dropdown-submenu > a {
        position: relative;
        padding-right: 52px !important;
    }

    html[dir="rtl"] #header .header-nav-main nav > ul li.dropdown > a,
    html[dir="rtl"] #header .header-nav-main nav > ul li.dropdown-submenu > a {
        padding-left: 52px !important;
        padding-right: 16px !important;
    }

    #header .header-nav-main nav > ul li.dropdown > a.dropdown-toggle:after,
    #header .header-nav-main nav > ul li.dropdown-submenu > a:after {
        content: none !important;
    }

    #header .header-nav-main nav > ul li > a .fa-caret-down {
        display: flex !important;
        position: absolute;
        right: 0;
        left: auto;
        top: 0;
        height: 100%;
        width: 52px;
        align-items: center;
        justify-content: center;
        font-size: 0.85em !important;
        opacity: 0.75;
        color: inherit;
        transition: transform 0.2s ease;
    }

    html[dir="rtl"] #header .header-nav-main nav > ul li > a .fa-caret-down {
        right: auto;
        left: 0;
    }

    #header .header-nav-main nav > ul li > a .fa-caret-down::before {
        content: "\f078" !important; /* fa-chevron-down */
    }

    #header .header-nav-main nav > ul li.open > a .fa-caret-down,
    #header .header-nav-main nav > ul li.opened > a .fa-caret-down {
        transform: rotate(180deg);
    }
}
