/* ========================================
   Forex Page Styles
   ======================================== */

/* ========================================
   Forex Hero Section
   ======================================== */
.forex-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f8f8f4 0%, #f5f5f0 50%, #f0f0ea 100%);
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.forex-hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.forex-hero-left {
    flex: 1;
    max-width: 600px;
}

.forex-hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.forex-hero-desc {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
}

.forex-hero-desc strong {
    color: #000;
}

.forex-hero-subdesc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Why Choose UM Box */
.why-um-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.why-um-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.why-um-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.why-um-badge {
    background: #C6FF00;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
}

.why-um-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.why-um-list {
    list-style: none;
    margin-bottom: 25px;
}

.why-um-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.why-um-list li i {
    color: #C6FF00;
    background: #1a1a1a;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-um-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
}

/* Currency Icons */
.forex-hero-right {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.currency-icons {
    position: relative;
    width: 320px;
    height: 320px;
}

.currency-icon {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.currency-icon.yen {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    color: #333;
    border: 4px solid #d0d0d0;
}

.currency-icon.dollar {
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #C6FF00 0%, #a8e600 100%);
    color: #1a1a1a;
    border: 4px solid #b8f000;
}

/* ========================================
   Forex Chart Section
   ======================================== */
.forex-chart-section {
    padding: 60px 0;
    background: #fff;
}

.chart-widget-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.market-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.market-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.market-tab:hover {
    background: #e8e8e8;
}

.market-tab.active {
    background: #1a1a1a;
    color: #fff;
}

.tradingview-chart-wrapper {
    display: flex;
    min-height: 500px;
}

.tradingview-widget-container {
    flex: 1;
}

.currency-pairs-sidebar {
    width: 280px;
    background: #fafafa;
    border-left: 1px solid #eee;
    padding: 15px;
    overflow-y: auto;
}

.pair-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pair-item:hover {
    background: #f0f0f0;
}

.pair-flags {
    display: flex;
    margin-right: 12px;
}

.pair-flags img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pair-flags img:last-child {
    margin-left: -8px;
}

.pair-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pair-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.pair-price {
    font-size: 12px;
    color: #666;
}

.pair-change {
    font-size: 13px;
    font-weight: 600;
}

.pair-change.positive {
    color: #22c55e;
}

.pair-change.negative {
    color: #ef4444;
}

/* ========================================
   Market Categories Section
   ======================================== */
.forex-markets-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: #666;
}

.market-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.market-card {
    position: relative;
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.market-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.market-card-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.market-card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.market-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #C6FF00;
}

.market-card-title.highlight-green {
    color: #C6FF00;
}

.market-card-title.highlight-yellow {
    color: #fbbf24;
}

.market-card-title.highlight-blue {
    color: #3b82f6;
}

.market-card-title.highlight-red {
    color: #ef4444;
}

.market-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.market-card-icon svg {
    width: 100%;
    height: 100%;
}

.market-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    flex-grow: 1;
}

.market-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.market-card-arrow:hover {
    border-color: #C6FF00;
    color: #C6FF00;
    background: rgba(198, 255, 0, 0.1);
}

.market-card-arrow i {
    font-size: 14px;
}

/* ========================================
   4-Step Trading Process
   ======================================== */
.forex-steps-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    max-width: 100%;
    max-height: 100%;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: #666;
}

.steps-cta {
    text-align: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ========================================
   FAQ Section
   ======================================== */
.forex-faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #C6FF00;
}

.faq-num {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 15px;
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.faq-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding-left: 45px;
}

/* ========================================
   Start Trading CTA Section
   ======================================== */
.forex-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #d4f000 0%, #C6FF00 50%, #b8e600 100%);
    position: relative;
    overflow: hidden;
}

.forex-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.forex-cta-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.forex-cta-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
}

.forex-cta-visual {
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 20px;
}

.trading-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    height: 120px;
}

.bar {
    width: 40px;
    border-radius: 8px 8px 0 0;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.bar-1 { height: 40%; }
.bar-2 { height: 65%; }
.bar-3 { height: 85%; }
.bar-4 { height: 50%; }
.bar-5 { height: 95%; background: #1a1a1a; }
.bar-6 { height: 70%; }

.forex-cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-outline-dark:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ========================================
   Join CTA Section
   ======================================== */
.join-cta-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.join-cta-content {
    text-align: center;
}

.join-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.join-cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer Apps Section */
.footer-apps-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-apps-section img {
    height: 45px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .forex-hero-title {
        font-size: 56px;
    }
    
    .currency-icons {
        width: 280px;
        height: 280px;
    }
    
    .currency-icon {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .forex-hero-content {
        flex-direction: column;
    }
    
    .forex-hero-left {
        max-width: 100%;
    }
    
    .forex-hero-right {
        flex: none;
        width: 100%;
        justify-content: center;
        padding-top: 0;
    }
    
    .market-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-card {
        min-height: 360px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tradingview-chart-wrapper {
        flex-direction: column;
    }
    
    .currency-pairs-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pair-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .forex-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .forex-hero-title {
        font-size: 42px;
    }
    
    .market-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .market-card {
        min-height: 320px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .forex-cta-title {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .join-cta-content h2 {
        font-size: 28px;
    }
    
    .market-tabs {
        flex-wrap: wrap;
    }
    
    .currency-pairs-sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .forex-hero-title {
        font-size: 36px;
    }
    
    .forex-cta-actions,
    .join-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .forex-cta-actions .btn,
    .join-cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .why-um-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .currency-icons {
        width: 220px;
        height: 220px;
    }
    
    .currency-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
}
