﻿/* Mobile adjustments for header/footer */
@media (max-width: 767.98px) {
    .news-ticker .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news-ticker .ticker-items {
        gap: 12px;
        font-size: 11px;
    }

    .news-ticker .ticker-time {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .news-brand-bar .container {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        grid-template-areas: "left . right" "logo logo logo" "date date date";
        align-items: center;
        row-gap: 4px;
        padding: 6px 0;
    }

    .news-header-actions {
        width: 44px;
        justify-content: flex-start;
        grid-area: left;
    }

    .news-header-actions-right {
        width: 44px;
        justify-content: flex-end;
        grid-area: right;
    }

    .news-logo {
        display: flex !important;
        justify-content: center;
        width: 100%;
        grid-area: logo;
        grid-column: 1 / 4;
        grid-row: 2;
    }

    .news-header-wrap .news-date {
        text-align: center;
        width: 100%;
        display: block;
        grid-area: date;
        margin-top: 2px;
        grid-column: 1 / 4;
        grid-row: 3;
    }

    .news-logo .news-logo-img {
        margin: 0 auto;
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .news-header-wrap .news-logo {
        display: flex !important;
        width: 100%;
    }

    .news-header-wrap .news-logo-img {
        width: 100%;
        height: auto;
    }

    .news-header-wrap .news-logo-img {
        height: auto;
    }

    .news-header-wrap .news-date {
        font-size: 11px;
        letter-spacing: 0.04em;
        text-transform: none;
        position: absolute;
        width: auto;
        /* display: block !important; */
        left: 40%;
        top: 100%;
    }

    .news-nav .container {
        gap: 12px;
        padding: 10px 0 12px 15px;
        display: flex;
        overflow-x: auto;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }

    .news-header-wrap .news-nav .container {
        padding-left: 15px !important;
    }

    .news-nav .container::-webkit-scrollbar {
        display: none;
    }

    .news-nav .nav-item,
    .news-nav a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .news-sidebar-panel {
        width: 260px;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom-logo img {
        margin: 0 auto;
        display: block;
    }

    .footer-bottom-copy {
        text-align: center !important;
        font-size: 0.8rem;
    }

    .footer-bottom-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .news-header-actions .icon-btn {
        width: 32px;
        height: 32px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .news-header-wrap .news-logo-img {
        height: 26px;
        width: auto;
    }

    .news-nav .container {
        font-size: 10pt;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 991.98px) {
    .today-grid {
        grid-template-columns: 1fr;
    }

    .today-center {
        order: 1;
    }

    .today-right {
        order: 2;
    }

    .today-left {
        order: 3;
    }

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

@media (max-width: 575.98px) {
    .ad-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .news-ticker .ticker-items,
    .news-ticker .lang-switch {
        display: none;
    }

    .news-ticker .ticker-time {
        width: 100%;
        justify-content: flex-end;
    }

    .news-ticker .mobile-ticker-summaries {
        display: flex !important;
    }

    .mobile-ticker-summaries {
        width: 100%;
        display: flex !important;
        justify-content: space-between;
        gap: 10px;
        margin: 5px 0;
    }

    .mobile-dropdown {
        position: relative;
        flex: 1 1 0;
        display: block !important;
    }

    .mobile-dropdown-toggle {
        width: 100%;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: transparent;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 8px;
        font-size: 11px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .mobile-dropdown-label {
        color: #c7c7c7;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .mobile-dropdown-value {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-weight: 600;
        color: #f3f2ef;
        white-space: nowrap;
    }

    .mobile-dropdown-panel {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 220px;
        max-width: calc(100vw - 24px);
        background: #1c1d1f;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
        display: none;
        z-index: 10001;
    }

    .mobile-dropdown.is-open .mobile-dropdown-panel {
        display: block !important;
    }

    .mobile-lang-dropdown {
        text-align: right;
        flex: 0 0 auto;
    }

        .mobile-lang-dropdown .mobile-dropdown-toggle {
            justify-content: flex-end;
            gap: 6px;
        }

    .mobile-fx-dropdown {
        flex: 1 1 auto;
    }

        .mobile-fx-dropdown .mobile-dropdown-toggle {
            width: auto;
        }

    .mobile-lang-dropdown .mobile-dropdown-label {
        display: none;
    }

    .mobile-lang-dropdown .mobile-dropdown-panel {
        right: 0;
        left: auto;
    }

    .mobile-lang-dropdown .mobile-dropdown-panel {
        overflow: hidden;
    }

    .mobile-dropdown-value img {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-lang-list {
        display: grid;
        gap: 6px;
    }

    .mobile-lang-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        color: #f3f2ef;
        border: 1px solid transparent;
    }

        .mobile-lang-item img {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            object-fit: cover;
            flex: 0 0 auto;
        }

        .mobile-lang-item:hover,
        .mobile-lang-item:focus {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .mobile-lang-item span {
            font-size: 12px;
            letter-spacing: 0.02em;
        }

    .mobile-ticker-items {
        display: grid;
        gap: 6px;
        font-size: 12px;
        color: #f3f2ef;
    }

        .mobile-ticker-items strong {
            color: #9ee08a;
        }

    .mobile-ticker-flags {
        display: flex;
        gap: 6px;
    }
}
