/* =============================================
   FOREX LANDING — MODERN LIGHT THEME
   ============================================= */

.main-content {
    background: #f4f6fa;
}

.breadcrumb li,
.breadcrumb li a {
    color: #64748b;
}

.breadcrumb .active {
    font-weight: 600;
    color: #1e293b !important;
}

.forex-landing .section-article-content h3 {
    color: #1e293b !important;
}

.forex-landing .section-article-content li {
    color: #334155 !important;
}

.forex-landing .section-article-content li a {
    color: #0baa68 !important;
}

.forex-landing .section-article-content p {
    color: #334155;
}

.forex-landing {
    padding-bottom: 40px;
    overflow-x: hidden;
    max-width: 100%;
}

.forex-page-title {
    font-size: 22px;
    font-weight: 900;
    margin: 18px 0 14px;
    color: #1e293b;
}

/* Hero layout */
.forex-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    align-items: start;
}

/* Card base */
.forex-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
    overflow: hidden;
    max-width: 100%;
}

.forex-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    padding: 0;
}

.forex-section {
    margin-top: 18px;
}

/* ─── Price header row ─── */
.forex-price-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.forex-price-main {
    flex: 1;
    min-width: 0;
}

.forex-pair {
    font-weight: 700;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.forex-pair strong {
    color: #1e293b;
    font-size: 20px;
}

.forex-price {
    font-weight: 900;
    font-size: 36px;
    color: #0f172a;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.forex-price-unit {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

.forex-price-badge-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 6px;
}

.forex-last-update {
    color: #94a3b8;
    font-size: 12px;
    text-align: end;
    margin-inline-start: auto;
    align-self: center;
}

/* Delta badge */
.forex-delta {
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 15px;
    display: inline-block;
    white-space: nowrap;
}

.forex-delta.up {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.forex-delta.down {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* KPI bar */
.forex-kpis {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.forex-kpi {
    flex: 1;
    min-width: 110px;
    background: #f8fafc;
    padding: 12px 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.forex-kpi-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.forex-kpi-num {
    font-weight: 800;
    color: #1e293b;
    font-size: 17px;
}

.forex-blur {
    filter: blur(4px);
    display: inline-block;
    color: #94a3b8;
    user-select: none;
}

/* Chart */
.forex-chart-wrap {
    min-height: 540px;
    max-width: 100%;
    overflow: hidden;
}

/* T.B.C placeholder */
.forex-tbc-notice {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.forex-tbc-notice p {
    margin: 0;
}

/* ─── Sidebar ─── */
.forex-sidebar {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* TOC */
.forex-toc nav {
    display: flex;
    flex-direction: column;
}

.forex-toc nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-size: 16px;
    font-weight: 500;
}

.forex-toc nav a:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* ─── Brokers card ─── */
.forex-brokers-card {
    margin-top: 0;
}

.forex-brokers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── Modern Brokers Card (Sidebar) ─── */
.forex-cc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.forex-cc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.forex-cc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px;
}

.forex-cc-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.forex-cc-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.forex-cc-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #64748b;
    flex-shrink: 0;
}

.forex-cc-name-block {
    flex: 1;
    min-width: 0;
}

.forex-cc-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forex-cc-badge-trusted {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #d1fae5;
}

.forex-cc-badge-untrusted {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5cfcc;
    color: #F44336;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #6e6e6e;
}

.forex-cc-badge-trusted svg,
.forex-cc-badge-untrusted svg {
    width: 10px;
    height: 10px;
}

.forex-cc-badge-rating-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.forex-cc-rating-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.forex-cc-rating-inline svg {
    width: 12px;
    height: 12px;
}

.forex-cc-rating-max {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.forex-cc-rating-val {
    font-size: 14px;
    font-weight: 700;
}

.forex-cc-actions {
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.forex-cc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    text-align: center;
    flex: 1;
}

.forex-cc-btn-primary {
    background: #0baa68;
    color: #fff;
}

.forex-cc-btn-primary:hover {
    background: #047857;
    color: #fff;
}

.forex-cc-btn-primary svg {
    width: 14px;
    height: 14px;
}

.forex-cc-btn-outline {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.forex-cc-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Text helpers */
.text-muted-forex {
    color: #94a3b8;
}

/* Subscribe card */
#subscribe {
    margin-top: 0;
}

/* ─── Economic Calendar ─── */
.forex-eco-cal {
    max-height: 520px;
    overflow-y: auto;
}

.forex-eco-date {
    background: #f1f5f9;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.3px;
}

.forex-eco-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.forex-eco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    direction: rtl;
}

.forex-eco-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    padding: 8px 10px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
}

.forex-eco-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: right;
    font-size: 15px;
}

.forex-eco-table tr:hover td {
    background: #f8fafc;
}

.forex-eco-star {
    color: #f59e0b;
    font-size: 12px;
}

/* ─── Two-column layout ─── */
.forex-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.forex-two-col .forex-section {
    margin-top: 0;
}

/* ─── Subscribe form ─── */
.forex-subscribe-form p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.forex-subscribe-form .form-group {
    display: flex;
    gap: 8px;
}

.forex-subscribe-form .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    flex: 1;
}

.forex-subscribe-form .form-control::placeholder {
    color: #94a3b8;
}

.forex-subscribe-form .form-control:focus {
    border-color: #0baa68;
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 170, 104, 0.15);
}

.forex-subscribe-form .btn-secondary {
    background: #0baa68;
    border-color: #0baa68;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

.forex-subscribe-form label[for="subscribe"] {
    display: none;
}

/* ─── Bootstrap accordion override ─── */
.forex-card .accordion-item {
    background: transparent;
    border-color: #e2e8f0;
}

.forex-card .accordion-button {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 500;
    font-size: 1.25rem;
    direction: rtl;
    text-align: right;
    border-radius: 8px !important;
}

.forex-card .accordion-button:not(.collapsed) {
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: none;
}

.forex-card .accordion-button::after {
    /* default Bootstrap chevron for light theme */
}

.forex-card .accordion-body {
    background: #ffffff;
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    border-top: 1px solid #e2e8f0;
}

/* ─── Performance Table ─── */
.forex-perf-table-wrap {
    overflow-x: auto;
}

.forex-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px !important;
    direction: rtl;
}

.forex-perf-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    padding: 10px 14px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
}

.forex-perf-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: right;
    font-weight: 600;
    font-size: 15px;
}

.forex-perf-table tr:hover td {
    background: #f8fafc;
}

.forex-perf-val {
    font-weight: 700;
    font-size: 14px;
}

.forex-perf-val.up {
    color: #059669;
}

.forex-perf-val.down {
    color: #dc2626;
}

/* ─── Technical Summary ─── */
.forex-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

@media (max-width: 640px) {
    .forex-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

.forex-tech-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.forex-tech-item-wide {
    grid-column: 1 / -1;
}

.forex-tech-label {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.forex-tech-value {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.forex-tech-signal {
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

.forex-tech-signal.buy {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.forex-tech-signal.sell {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.forex-tech-signal.neutral {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.forex-tech-macd-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.forex-tech-macd-row strong {
    color: #1e293b;
}

/* ─── Asset Comparison Table ─── */
.forex-compare-table-wrap {
    overflow-x: auto;
}

.forex-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    direction: rtl;
}

.forex-compare-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    padding: 10px 14px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
}

.forex-compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: right;
    font-size: 15px;
}

.forex-compare-table tr:hover td {
    background: #f8fafc;
}

.forex-compare-active td {
    background: #ecfdf5;
}

.forex-compare-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forex-compare-link:hover {
    color: #0baa68;
}

.forex-compare-symbol {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.forex-compare-price {
    font-weight: 800;
    color: #1e293b;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .forex-hero {
        grid-template-columns: 1fr;
    }

    .forex-two-col {
        grid-template-columns: 1fr;
    }

    .forex-sidebar {
        position: static;
    }

    .forex-chart-wrap {
        min-height: 400px;
    }

    .forex-main {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .forex-page-title {
        font-size: 18px;
        word-break: break-word;
    }

    .forex-price-row {
        flex-direction: column;
        gap: 10px;
    }

    .forex-price {
        font-size: 26px;
        flex-wrap: wrap;
    }

    .forex-price-badge-col {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 0;
    }

    .forex-pair strong {
        font-size: 16px;
    }

    .forex-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .forex-kpi {
        min-width: 0;
        padding: 10px 8px;
    }

    .forex-kpi-num {
        font-size: 15px;
    }

    .forex-card {
        padding: 14px;
    }

    .forex-chart-wrap {
        min-height: 440px;
    }

    .forex-card h2 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .forex-card .accordion-button {
        font-size: 17px;
    }

    .forex-card .accordion-body {
        font-size: 17px;
    }
}
