:root {
    --front-primary: #1fa2a6;
    --front-secondary: #f4b41a;
    --front-deep: #1f2a44;
    --front-muted: #62758f;
    --front-light: #f5fbff;
    --front-card: #ffffff;
    --front-shadow: 0 24px 50px rgba(31, 42, 68, 0.12);
    --front-radius: 24px;
    --front-font-heading: 'Unbounded', 'Manrope', sans-serif;
    --front-font-body: 'Manrope', 'Unbounded', sans-serif;
}

.frontend-body {
    font-family: var(--front-font-body);
    color: var(--front-deep);
    background: #f2f7fb;
    min-height: 100vh;
    overflow-x: hidden;
}

body.front-menu-open {
    overflow: hidden;
    touch-action: none;
}

html.front-menu-open,
body.front-menu-open {
    height: 100%;
    overflow: hidden;
}

body.front-menu-open {
    position: fixed;
    width: 100%;
}

body.front-menu-open .front-nav-panel {
    touch-action: pan-y;
}

body.front-menu-open .front-header {
    opacity: 1;
    pointer-events: auto;
}

[data-bs-theme='dark'] .frontend-body {
    color: #e6eef5;
    background: #0f1720;
}

.frontend-main {
    position: relative;
}

.front-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: visible;
}

.has-scrolled .front-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 30px rgba(31, 42, 68, 0.12);
}

[data-bs-theme='dark'] .has-scrolled .front-header {
    background: rgba(12, 18, 26, 0.85);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

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

.front-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.front-brand-logo {
    width: 130px;
    height: 40px;
    object-fit: contain;
}

.front-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.front-brand-title {
    font-family: var(--front-font-heading);
    font-weight: 600;
}

.front-brand-subtitle {
    font-size: 0.8rem;
    color: var(--front-muted);
}

.front-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.front-menu-toggle {
    display: none;
}

.front-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.front-nav-panel {
    display: block;
    color: var(--front-deep);
}

[data-bs-theme='dark'] .front-nav-panel {
    color: #e6eef5;
}

.front-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.live-streaming-float {
    position: fixed;
    left: 16px;
    bottom: 88px;
    z-index: 1040;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 60px;
    height: 60px;
    padding: 0.5rem;
    border-radius: 14px;
    background: #ff0033;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: liveStreamingBounce 1.8s ease-in-out infinite;
}

.live-streaming-float i {
    font-size: 1.35rem;
}

.live-streaming-float:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(255, 0, 51, 0.38);
}

.live-streaming-float::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 22px;
    border: 3px solid rgba(255, 0, 51, 0.75);
    opacity: 0;
    animation: liveStreamingPulse 0.95s ease-out infinite;
}

.live-streaming-float::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 26px;
    border: 3px solid rgba(255, 0, 51, 0.45);
    opacity: 0;
    animation: liveStreamingPulse 0.95s ease-out infinite;
    animation-delay: 0.3s;
}

@keyframes liveStreamingBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes liveStreamingPulse {
    0% {
        opacity: 1;
        transform: scale(0.82);
    }

    65% {
        opacity: 0;
        transform: scale(1.3);
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@media (max-width: 576px) {

    .astral-accessibility-widget,
    #astral-accessibility,
    astral-accessibility,
    [data-astral-accessibility],
    [data-astral-widget] {
        bottom: 16px !important;
        left: 86px !important;
        right: auto !important;
    }

    .live-streaming-float {
        left: 90px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 0.65rem;
    }
}

.front-nav-link {
    position: relative;
    text-decoration: none;
    color: var(--front-deep);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding-bottom: 0.35rem;
}

.front-nav-icon {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

[data-bs-theme='dark'] .front-nav-link {
    color: #e6eef5;
}

.front-nav-link:hover {
    color: var(--front-primary);
}

.front-nav-link.active,
.front-nav-list>li.active>.front-nav-link {
    color: var(--front-primary);
    font-weight: 600;
}

.front-nav-list>li.active>.front-nav-link::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: #1fa2a6;
}

.front-nav .dropdown-item.active {
    color: #1fa2a6;
    background: rgba(31, 162, 166, 0.12);
}

.front-nav .dropdown-menu {
    border: 0;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.15);
}

.front-nav .dropdown-menu.dropdown-mega {
    padding: 1rem 1.25rem;
    min-width: 520px;
}

.front-nav .dropdown-mega-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
}

.front-nav .dropdown-mega-grid {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.front-nav .dropdown-mega-col .dropdown-header {
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--front-deep);
}

.front-nav .dropdown-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.front-nav .dropdown-menu .dropdown {
    position: relative;
}

.front-nav .dropdown-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.front-nav .dropdown-menu .dropdown-toggle::after {
    margin-left: auto;
}

.front-nav .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
}

.front-nav .dropdown-item:hover {
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
}

[data-bs-theme='dark'] .front-nav .dropdown-menu {
    background: rgba(18, 26, 36, 0.98);
    color: #e6eef5;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

[data-bs-theme='dark'] .front-nav .dropdown-mega-col .dropdown-header {
    color: #e6eef5;
}

[data-bs-theme='dark'] .front-nav .dropdown-item {
    color: #e6eef5;
}

[data-bs-theme='dark'] .front-nav .dropdown-item:hover {
    background: rgba(31, 162, 166, 0.2);
    color: #a7f3d0;
}

@media (min-width: 992px) {
    .front-menu-toggle {
        display: none !important;
    }

    .front-nav .dropdown-menu .dropdown-menu {
        top: -0.25rem;
        left: 100%;
        margin-left: 0.35rem;
    }

    .front-nav .dropdown-menu .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .front-hero-grid--split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 991.98px) {
    .front-nav .dropdown-menu.dropdown-mega {
        min-width: 100%;
    }

    .front-nav .dropdown-mega-grid {
        grid-template-columns: 1fr;
    }

    .front-nav .dropdown-menu .dropdown-menu .dropdown-item {
        padding-left: 2rem;
    }
}

.front-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(31, 162, 166, 0.2);
    background: #fff;
    color: var(--front-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[data-bs-theme='dark'] .front-icon-btn {
    background: rgba(18, 26, 36, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    color: #a7f3d0;
}

.front-icon-btn:hover {
    background: var(--front-primary);
    color: #fff;
}

.front-icon-btn.dropdown-toggle::after {
    display: none;
}

.front-hero {
    position: relative;
    padding: calc(var(--front-header-height, 72px) + 2.5rem) 0 3rem;
    background: radial-gradient(circle at top left, rgba(31, 162, 166, 0.18), transparent 55%),
        linear-gradient(135deg, #eef7ff 0%, #fff7e6 50%, #eefcf6 100%);
    overflow: hidden;
}

.front-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -140px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 180, 26, 0.25), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.front-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.front-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.front-hero-title {
    font-family: var(--front-font-heading);
    font-size: clamp(2rem, 2.5vw, 3.1rem);
    color: var(--front-deep);
    line-height: 1.2;
    margin: 0.85rem 0 0.65rem;
}

.front-hero-lead {
    color: var(--front-muted);
    font-size: 1.05rem;
    max-width: 540px;
}

.front-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.front-hero-search {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(31, 162, 166, 0.2);
    box-shadow: 0 16px 35px rgba(31, 42, 68, 0.08);
}

.front-hero-search--action {
    gap: 0.85rem;
}

.front-hero-search--action input {
    padding-right: 0;
}

.front-hero-search-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.front-hero-search-btn {
    border: none;
    background: var(--front-primary);
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 24px rgba(15, 41, 64, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.front-hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 41, 64, 0.16);
}

.front-hero-search-reset {
    border: 1px solid rgba(31, 162, 166, 0.35);
    color: var(--front-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    background: rgba(31, 162, 166, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.front-hero-search-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 41, 64, 0.1);
}

[data-bs-theme='dark'] .front-hero-search-reset {
    border-color: rgba(127, 227, 230, 0.35);
    color: #7fe3e6;
    background: rgba(127, 227, 230, 0.12);
}

.front-hero-search input {
    border: 0;
    outline: none;
    width: 100%;
    font-weight: 600;
    color: var(--front-deep);
    background: transparent;
}

.front-hero-search input::placeholder {
    color: rgba(98, 117, 143, 0.8);
}

.front-hero-search i {
    color: var(--front-primary);
}

[data-bs-theme='dark'] .front-hero {
    background: radial-gradient(circle at top left, rgba(31, 162, 166, 0.2), transparent 55%),
        linear-gradient(135deg, #0b1520 0%, #111c26 55%, #0f1d1a 100%);
}

[data-bs-theme='dark'] .front-hero-kicker {
    background: rgba(31, 162, 166, 0.2);
    color: #a7f3f3;
}

[data-bs-theme='dark'] .front-hero-title {
    color: #e6eef5;
}

[data-bs-theme='dark'] .front-hero-lead {
    color: #9fb1c7;
}

[data-bs-theme='dark'] .front-hero-search {
    background: rgba(15, 23, 32, 0.9);
    border-color: rgba(31, 162, 166, 0.4);
}

[data-bs-theme='dark'] .front-hero-search input {
    color: #e6eef5;
}

[data-bs-theme='dark'] .front-hero-search input::placeholder {
    color: rgba(159, 177, 199, 0.8);
}

@media (max-width: 767.98px) {
    .front-hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        text-align: center;
    }

    .front-hero-search-actions {
        width: 100%;
        justify-content: space-between;
    }

    .front-hero-search-btn,
    .front-hero-search-reset {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-logo {
        width: 90px;
        max-width: 120px;
        /* max-height: 100px; */
    }
}

.front-footer {
    background: #fff;
    color: #000;
    padding: 3rem 0 2rem;
}

[data-bs-theme='dark'] .front-footer {
    background: #0b1219;
    color: #e2e8f0;
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    width: 130px;
    max-width: 150px;
    /* max-height: 100px; */
}

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

[data-bs-theme='dark'] .footer-logo--light {
    display: none;
}

[data-bs-theme='dark'] .footer-logo--dark {
    display: inline-block;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-list i {
    margin-right: 0.5rem;
    color: var(--front-secondary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
}

[data-bs-theme='dark'] .footer-social-link {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.footer-note {
    color: rgba(219, 229, 241, 0.8);
    margin: 0;
}

.front-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1rem;
    color: rgb(51, 51, 51, 0.7);
}

[data-bs-theme='dark'] .front-footer-bottom {
    border-top-color: rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.6);
}

@media (max-width: 992px) {
    .front-nav-list {
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    .front-header-inner {
        position: relative;
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .front-menu-toggle {
        display: inline-flex;
    }

    .front-header-actions {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    .front-brand {
        order: 1;
        justify-content: center;
    }

    .front-nav {
        order: 3;
        width: 100%;
        position: relative;
    }

    .front-nav-panel {
        position: fixed;
        top: calc(var(--front-header-height, 72px) + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: none;
        padding: 1rem 1.25rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(12px);
        z-index: 10;
        height: calc(100dvh - var(--front-header-height, 72px) - 2rem - env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .front-nav-panel.is-open {
        display: block;
    }

    .front-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .front-nav-list>li {
        width: 100%;
    }

    .front-nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .front-nav-link.dropdown-toggle::after {
        margin-left: auto;
    }

    .front-nav .dropdown-menu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
        display: none;
    }

    .front-nav .dropdown.is-open>.dropdown-menu {
        display: block;
    }

    .front-nav .dropdown-menu .dropdown-item {
        padding-left: 1.25rem;
    }

    .footer-brand {
        justify-content: center;
    }

    [data-bs-theme='dark'] .front-nav-panel {
        background: rgba(15, 23, 32, 1);
        border: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 767px) {
    .front-hero-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-nav-panel {
        transition: none;
    }
}
