.fxbs-ma-widget,
.fxbs-ma-widget * {
    box-sizing: border-box;
}

.elementor-widget-fxbs_market_analysis_tabs,
.elementor-widget-fxbs_market_analysis_tabs > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-widget-fxbs_market_analysis_tabs {
    align-self: stretch;
}

.fxbs-ma-widget {
    --fxbs-bg: #00150f;
    --fxbs-accent: #00D094;
    --fxbs-card: #1C2D29;
    --fxbs-card-hover: #20322e;
    --fxbs-cta: #03241b;
    --fxbs-border: rgba(0, 208, 148, .18);
    --fxbs-text: #ffffff;
    --fxbs-muted: #a8bbb5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--fxbs-bg);
    color: var(--fxbs-text);
    font-family: inherit;
}

.fxbs-ma-widget a {
    text-decoration: none;
}

.fxbs-ma-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px 0 10px !important;
}

.fxbs-ma-page-head {
    text-align: center;
    margin: 0 0 30px;
}

.fxbs-ma-page-head h1 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.026em;
}

.fxbs-ma-tabs {
    display: grid !important;
    grid-template-columns: repeat(var(--fxbs-tab-columns, 3), minmax(0, 1fr)) !important;
    gap: 13px 12px !important;
    width: 100%;
    max-width: none;
    margin: 0 0 42px;
    align-items: stretch;
}

.fxbs-ma-tab {
    appearance: none;
    width: 100%;
    min-height: 55px;
    border: 1px solid #68CD98;
    border-radius: 24px;
    background: rgba(104, 205, 152, .11);
    color: #6ACB99;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    padding: 0 22px;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}

.fxbs-ma-tab span {
    display: inline-block;
    transform: translateY(1px);
}

.fxbs-ma-tab:hover,
.fxbs-ma-tab:focus-visible {
    background: rgba(104, 205, 152, .16);
    outline: none;
}

.fxbs-ma-tab.is-active {
    background: #6BCD98;
    color: #00150f;
    border-color: #6BCD98;
}

.fxbs-ma-panel {
    outline: none;
}

.fxbs-ma-panel[hidden] {
    display: none !important;
}

.fxbs-ma-panel.is-active {
    animation: fxbsFadeUp .22s ease both;
}

.fxbs-ma-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
}

.fxbs-ma-card {
    width: 100%;
    min-height: 198px;
    display: flex;
    align-items: center;
    gap: 34px;
    background: var(--fxbs-card);
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.02);
    padding: 26px 32px;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.fxbs-ma-card:hover {
    border-color: rgba(0, 208, 148, .24);
    background: var(--fxbs-card-hover);
}

.fxbs-ma-card.no-thumb {
    align-items: flex-start;
    min-height: 198px;
    padding: 28px 32px 24px;
}

.fxbs-ma-card.has-thumb {
    min-height: 218px;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

.fxbs-ma-card-body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fxbs-ma-card-title {
    margin: 0 0 34px;
    padding: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.012em;
}

.fxbs-ma-card.has-thumb .fxbs-ma-card-title {
    max-width: 650px;
    margin-bottom: 28px;
}

.fxbs-ma-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.fxbs-ma-card-title a:hover {
    color: var(--fxbs-accent);
}

.fxbs-ma-card p {
    display: block;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 700px;
    clear: both;
}

.fxbs-ma-card.no-thumb p {
    max-width: none;
}

.fxbs-ma-thumb {
    display: block;
    flex: 0 0 360px;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}

.fxbs-ma-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.fxbs-ma-card:hover .fxbs-ma-thumb img {
    transform: scale(1.035);
}

.fxbs-ma-read-more-wrap {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-top: 28px !important;
    text-align: left !important;
}

.fxbs-ma-card.has-thumb .fxbs-ma-read-more-wrap {
    margin-top: 28px !important;
}

.fxbs-ma-read-more,
.fxbs-ma-read-more.txb-btn,
.fxbs-ma-widget .txb-btn {
    display: inline-block !important;
    background: #00D094 !important;
    color: #000 !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    float: none !important;
    position: static !important;
}

.fxbs-ma-read-more:hover,
.fxbs-ma-read-more.txb-btn:hover,
.fxbs-ma-widget .txb-btn:hover {
    color: #000 !important;
    transform: translateY(-1px);
    filter: brightness(1.04);
}


.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-list {
    grid-template-columns: repeat(var(--fxbs-grid-columns, 3), minmax(0, 1fr));
    gap: 24px;
}

.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card,
.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card.has-thumb,
.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card.no-thumb {
    min-height: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
}

.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-thumb {
    width: 100%;
    max-width: 100%;
    flex: none;
    aspect-ratio: 16 / 10;
}

.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card-title,
.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card.has-thumb .fxbs-ma-card-title {
    max-width: none;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.28;
}

.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
}

.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-read-more-wrap,
.fxbs-ma-widget.fxbs-ma-layout-grid .fxbs-ma-card.has-thumb .fxbs-ma-read-more-wrap {
    margin-top: 18px !important;
}

.fxbs-ma-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 34px 0 0;
}

.fxbs-ma-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0, 208, 148, .22);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.fxbs-ma-pagination a.page-numbers:hover {
    border-color: var(--fxbs-accent);
    background: rgba(0, 208, 148, .14);
    color: #ffffff;
    transform: translateY(-1px);
}

.fxbs-ma-pagination .page-numbers.current {
    border-color: var(--fxbs-accent);
    background: var(--fxbs-accent);
    color: #00150f;
}

.fxbs-ma-empty {
    padding: 25px;
    border: 1px dashed rgba(0, 208, 148, .28);
    border-radius: 8px;
    color: var(--fxbs-muted);
    background: rgba(255,255,255,.035);
    text-align: center;
}

.fxbs-ma-cta {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 130px;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin: 75px 0 0;
    padding: 48px 34px;
    min-height: 156px;
    background: var(--fxbs-cta);
    border: 1px solid rgba(0, 208, 148, .20);
    border-radius: 15px;
}

.fxbs-ma-cta-icon {
    width: 125px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(81, 141, 127, .45);
    border-radius: 8px;
}

.fxbs-ma-cta-icon svg {
    width: 46px;
    height: 46px;
    fill: var(--fxbs-accent);
    transform: rotate(-10deg);
}

.fxbs-ma-cta-copy {
    text-align: left;
}

.fxbs-ma-cta-copy h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.fxbs-ma-cta-copy p {
    margin: 0;
    color: var(--fxbs-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.fxbs-ma-cta-action {
    display: flex;
    justify-content: flex-end;
}

.fxbs-ma-cta-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 40px;
    border: 1px solid var(--fxbs-accent);
    border-radius: 8px;
    color: #ffffff;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.fxbs-ma-cta-action a:hover {
    background: var(--fxbs-accent);
    color: #00150f;
    transform: translateY(-2px);
}

/* Pixel-match mode: the widget follows the parent Elementor container exactly and does not add side width. */
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-widget,
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-shell,
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-tabs,
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-panels,
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-list,
.elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-cta {
    width: 100% !important;
    max-width: none !important;
}

@keyframes fxbsFadeUp {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .fxbs-ma-widget.fxbs-ma-layout-grid {
        --fxbs-grid-columns: 2;
    }

    .fxbs-ma-tabs {
        grid-template-columns: 1fr !important;
    }

    .fxbs-ma-card,
    .fxbs-ma-card.has-thumb,
    .fxbs-ma-card.no-thumb {
        min-height: auto;
        gap: 24px;
    }

    .fxbs-ma-thumb {
        flex-basis: 300px;
        max-width: 300px;
    }

    .fxbs-ma-cta {
        grid-template-columns: 110px 1fr;
    }

    .fxbs-ma-cta-action {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .fxbs-ma-widget.fxbs-ma-layout-grid {
        --fxbs-grid-columns: 1;
    }

    .fxbs-ma-shell {
        padding: 26px 0 10px !important;
    }

    .fxbs-ma-page-head {
        margin-bottom: 22px;
    }

    .fxbs-ma-page-head h1 {
        font-size: 30px;
    }

    .fxbs-ma-tabs {
        gap: 10px;
        margin-bottom: 24px;
    }

    .fxbs-ma-tab {
        min-height: 50px;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .fxbs-ma-list {
        gap: 18px;
    }

    .fxbs-ma-card,
    .fxbs-ma-card.has-thumb,
    .fxbs-ma-card.no-thumb {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 17px;
    }

    .fxbs-ma-card.has-thumb .fxbs-ma-card-body {
        order: 2;
    }

    .fxbs-ma-thumb {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .fxbs-ma-card-title,
    .fxbs-ma-card.has-thumb .fxbs-ma-card-title {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .fxbs-ma-card p {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
    }

    .fxbs-ma-read-more-wrap,
    .fxbs-ma-card.has-thumb .fxbs-ma-read-more-wrap {
        margin-top: 18px !important;
    }

    .fxbs-ma-cta {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 44px;
        padding: 24px 20px;
        text-align: center;
    }

    .fxbs-ma-cta-icon {
        margin: 0 auto;
    }

    .fxbs-ma-cta-copy {
        text-align: center;
    }

    .fxbs-ma-cta-action {
        grid-column: auto;
        justify-content: center;
    }
}

/* Single post mode: clicking Learn More opens this view when the widget is used in a Single Post Elementor template. */
.fxbs-ma-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.fxbs-ma-card[data-card-url] {
    cursor: pointer;
}

.fxbs-ma-single {
    width: 100%;
    text-align: left;
    padding: 0 0 10px;
}

.fxbs-ma-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    margin: 0 0 18px;
    border-radius: 4px;
    background: var(--fxbs-accent);
    color: #00150f !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: filter .22s ease, transform .22s ease;
}

.fxbs-ma-back:hover {
    color: #00150f !important;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.fxbs-ma-single-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.028em;
}

.fxbs-ma-single-date {
    margin: 0 0 26px;
    color: var(--fxbs-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.fxbs-ma-single-thumb {
    width: min(520px, 100%);
    margin: 0 0 30px;
    border-radius: 0;
    overflow: hidden;
}

.fxbs-ma-single-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.fxbs-ma-single-content {
    width: 100%;
    max-width: 1180px;
    color: #d8e6e2;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.78;
}

.fxbs-ma-single-content p {
    margin: 0 0 18px;
    color: #d8e6e2;
    font-size: 15px;
    line-height: 1.78;
}

.fxbs-ma-single-content h1,
.fxbs-ma-single-content h2,
.fxbs-ma-single-content h3,
.fxbs-ma-single-content h4,
.fxbs-ma-single-content h5,
.fxbs-ma-single-content h6 {
    margin: 24px 0 10px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.fxbs-ma-single-content h2 {
    font-size: clamp(30px, 3.2vw, 38px);
}

.fxbs-ma-single-content h3 {
    font-size: clamp(24px, 2.6vw, 30px);
}

.fxbs-ma-single-content a {
    color: var(--fxbs-accent);
    text-decoration: none;
}

.fxbs-ma-single-content ul,
.fxbs-ma-single-content ol {
    margin: 0 0 18px 20px;
    padding: 0;
}

.fxbs-ma-single-content li {
    margin-bottom: 7px;
}

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

    .fxbs-ma-single-content,
    .fxbs-ma-single-content p {
        font-size: 14px;
        line-height: 1.72;
    }
}

/* Auto single page template: used when Learn More opens a real post permalink. */
.fxbs-ma-auto-single-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #00150f;
}

.fxbs-ma-auto-single-page .fxbs-ma-widget {
    width: 100% !important;
    max-width: 100% !important;
}

.fxbs-ma-auto-single-page .fxbs-ma-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px 40px 10px !important;
}

@media (max-width: 767px) {
    .fxbs-ma-auto-single-page .fxbs-ma-shell {
        padding: 24px 18px 10px !important;
    }
}

/* Inline detail mode: Learn More opens content inside the same Daily Market Analysis page. */
.fxbs-ma-inline-view[hidden],
.fxbs-ma-panels[hidden] {
    display: none !important;
}

.fxbs-ma-widget.is-inline-loading .fxbs-ma-inline-view {
    min-height: 220px;
}

.fxbs-ma-inline-loading {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fxbs-card);
    border-radius: 10px;
    color: var(--fxbs-muted);
    font-size: 15px;
    font-weight: 500;
}

.fxbs-ma-card[data-inline-post-id] {
    cursor: pointer;
}

.fxbs-ma-inline-link {
    cursor: pointer;
}

/* Mobile justified compact tabs: text-based masonry-like rows without breaking tab text. */
@media (max-width: 767px) {
    .elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        gap: 8px 7px !important;
        margin-bottom: 24px !important;
    }

    .elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-tab {
        width: auto !important;
        min-width: max-content !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: 42px !important;
        padding: 0 11px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        letter-spacing: -0.02em !important;
    }
}

@media (max-width: 380px) {
    .elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-tabs {
        gap: 7px 6px !important;
    }

    .elementor-widget-fxbs_market_analysis_tabs .fxbs-ma-tab {
        min-height: 40px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
    }
}
