/* ==============================================
   Custom Container Styles - 1170px max width
   Space for ads on sides
   ============================================== */

.container {
    width: 100%;
    max-width: 1170px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Responsive container widths */
@media (max-width: 575.98px) {
    .container {
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px !important;
    }
}

/* Full-width container variants (for special sections) */
.container-expand,
.container-full,
.container.container-expand,
.container.container-full {
    max-width: 100% !important;
}

.container-full,
.container.container-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==============================================
   Newsletter Modal Z-Index Fix
   ============================================== */
#uc-newsletter-modal,
#uc-newsletter-modal.uc-modal,
.uc-modal#uc-newsletter-modal {
    z-index: 999999 !important;
}

#uc-newsletter-modal .uc-modal-dialog {
    z-index: 1000000 !important;
}

/* Modal overlay */
.uc-modal-overlay {
    z-index: 999998 !important;
}

/* ==============================================
   Global Header Styles
   ============================================== */
body.body--locked {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: #ffffff;
    color: #111827;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.dark .site-header {
    background: #111827;
    color: #f5f7ff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.site-header__ticker {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dark .site-header__ticker {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header__bar {
    padding: 12px 16px;
}

.site-header__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    max-width: 1162px;
    width: 100%;
    margin: 0 auto;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-header__logo img {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
}

.site-header__logo-text {
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 1rem;
}

.site-header__nav {
    display: none;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.site-header__nav-list {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.site-header__nav-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.site-header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after {
    transform: scaleX(1);
}

.site-header__nav-item.has-dropdown > .site-header__nav-link {
    padding-right: 18px;
}

.site-header__nav-item.has-dropdown > .site-header__nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

.site-header__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 24px 32px;
    display: none;
    z-index: 12000;
    gap: 24px;
}

.dark .site-header__dropdown {
    background: #1f2937;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.site-header__dropdown-column {
    margin: 0;
    padding-left: 20px;
    display: block;
}

.site-header__dropdown-column li {
    list-style: disc;
    margin-left: 0;
}

.site-header__dropdown-column li + li {
    margin-top: 12px;
}

.site-header__dropdown-column a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.site-header__nav-item.has-dropdown:hover .site-header__dropdown,
.site-header__nav-item.has-dropdown:focus-within .site-header__dropdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.site-header__dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: calc(50% - 12px);
    border-width: 0 12px 12px 12px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.dark .site-header__dropdown::before {
    border-color: transparent transparent #1f2937 transparent;
}

.site-header__toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    z-index: 10040;
}

.dark .site-header__toggle {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header__toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .site-header__bar {
        padding: 16px 24px;
    }

    .site-header__bar-inner {
        min-height: 72px;
    }

    .site-header__nav {
        display: flex;
    }

    .site-header__toggle {
        display: none;
    }
}

@media (max-width: 1023px) {
    .site-header__dropdown {
        display: none !important;
    }
}
