/* Markets & Commodities Styles */

/* Sub-navigation */
.market-subnav {
    background-color: #f8f9f5;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.subnav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.subnav-list a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.subnav-list a:hover, .subnav-list a.active {
    color: #000;
}

.subnav-list a.active {
    position: relative;
}

.subnav-list a.active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.market-hero-new {
    padding: 60px 0 40px; /* Reduced padding */
}

.pill-label {
    display: inline-block;
    background-color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 500; /* Matching global headers */
    margin-bottom: 40px;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-intro {
    max-width: 900px;
    margin: 0 auto;
}

.intro-subtitle {
    font-size: 28px;
    font-weight: 700; /* Matching global subtitles */
    margin-bottom: 24px;
    color: var(--text-main);
}

.intro-text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

.separator {
    border: none;
    height: 1px;
    background-color: var(--primary-color);
    margin: 30px auto;
    width: 60px;
    opacity: 0.5;
}

/* Benefits Section */
.benefits-section {
    padding: 40px 0; /* Reduced padding */
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 500; /* Standardized weight */
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-wrapper {
    margin-bottom: 40px;
}

.benefits-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f2fbe0;
}

.benefits-table td {
    padding: 16px 24px; /* Slightly tighter padding */
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
    font-size: 16px;
    color: #333;
}

.benefits-table td:last-child {
    text-align: right;
    width: 60px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #7ab55c;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

/* Info Grid */
.commodities-info, .indices-info {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 40px;
}

.info-title {
    font-size: 36px;
    font-weight: 500; /* Standardized weight */
    margin-bottom: 24px;
}

.info-p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Price Cards Visual */
.info-visual-col {
    position: relative;
    height: 400px;
}

.price-cards-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.price-card {
    position: absolute;
    width: 200px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.card-label {
    display: block;
    font-size: 11px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-price {
    display: block;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Commodities specific colors */
.price-card.silver { background-color: #83e0d1; top: 0; right: 80px; z-index: 3; }
.price-card.brent { background-color: #dbe7c9; top: 50px; left: 0; z-index: 2; }
.price-card.gold { background-color: #feba4a; bottom: 0; right: 120px; z-index: 4; }
.price-card.gas { background-color: #f7e1b5; bottom: 40px; left: 40px; z-index: 1; }

/* Indices specific colors & positions */
.price-card.dow { background-color: #f7e1b5; top: 0; left: 100px; z-index: 2; }
.price-card.uk100 { background-color: #83e0d1; top: 50px; left: 0; z-index: 1; }
.price-card.sp500 { background-color: #c4d8f5; top: 20px; right: 40px; z-index: 3; }
.price-card.nasdaq { background-color: #e6cfe6; bottom: 40px; left: 40px; z-index: 4; }
.price-card.ftse100 { background-color: #feba4a; bottom: 0; right: 80px; z-index: 5; }

.market-hours-link {
    margin-top: 30px;
}

.market-hours-link a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0; /* Reduced padding */
    background-color: var(--bg-light);
}

.faq-accordion {
    max-width: 1400px;
    margin: 40px auto 0;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-main);
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 15px;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 30px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 0; /* Slightly reduced */
    background-color: var(--bg-light-accent);
}

.cta-title {
    font-size: var(--fs-h2);
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }
    
    .cta-title {
        font-size: 42px;
    }

    .info-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-visual-col {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        height: auto;
        justify-content: center;
    }
    
    .price-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 180px;
    }
    
    .subnav-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .faq-question {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .intro-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .benefits-table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .faq-question {
        font-size: 18px;
        padding: 20px 0;
    }

    .pill-label {
        margin-bottom: 15px;
    }

    .market-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .subnav-list {
        justify-content: flex-start;
        padding: 0 20px;
        width: max-content;
    }
}
