/* ===== GOLD TRADING SPECIFIC STYLES ===== */

/* Recommendation Table */
.recommendation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.recommendation-table th {
    background: #1a3a5f;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
}

.recommendation-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.recommendation-table tr:nth-child(even) {
    background: #f8fafc;
}

.recommendation-table tr:hover {
    background: #f0f7ff;
}

/* Confidence Levels */
.confidence-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 1.5rem 0;
}

.confidence-level {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.confidence-level.high {
    background: #f0fff4;
    border-left-color: #43a047;
}

.confidence-level.medium {
    background: #fffaf0;
    border-left-color: #ff9800;
}

.confidence-level.low {
    background: #fff5f5;
    border-left-color: #f44336;
}

.confidence-level h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-level.high h5 i {
    color: #43a047;
}

.confidence-level.medium h5 i {
    color: #ff9800;
}

.confidence-level.low h5 i {
    color: #f44336;
}

/* Warning Box */
.info-box.warning {
    background: #fff5f5;
    border-left-color: #f44336;
}

.info-box.warning h4 i {
    color: #f44336;
}

/* Risk Meter */
.risk-meter {
    margin: 1rem 0;
}

.risk-level {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.risk-label {
    width: 100px;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(to right, #43a047, #f44336);
    border-radius: 4px;
}

.risk-percent {
    width: 60px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

/* Gold-specific calculator inputs */
.pip-calculator input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pip-calculator input[type="number"]:focus {
    border-color: #d18a2c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(209, 138, 44, 0.1);
}

.result-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
    text-align: center;
}

/* Gold-themed color overrides */
.fx-hero[style*="background"] {
    background: linear-gradient(135deg, #d18a2c 0%, #b8731c 100%) !important;
}

.breadcrumb a:hover {
    color: #ffd700 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommendation-table {
        font-size: 0.8rem;
    }
    
    .recommendation-table th,
    .recommendation-table td {
        padding: 8px 6px;
    }
    
    .confidence-levels {
        gap: 10px;
    }
    
    .risk-level {
        flex-wrap: wrap;
    }
    
    .risk-label {
        width: 100%;
        margin-bottom: 5px;
    }
}
/* ===== GOLD ARTICLE SPECIFIC STYLES ===== */

/* 1. Fix for h5 headings */
.article-body h5 {
    font-size: 1.1rem !important;
    color: #1a3a5f !important;
    margin: 1.2rem 0 0.8rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.article-body h5 i {
    color: #e6a23c !important;
    font-size: 1rem !important;
}

/* 2. Fix for code blocks */
.article-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1a3a5f;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
}

/* 3. Fix for ordered lists */
.article-body ol {
    padding-left: 1.8rem;
    margin: 1rem 0;
    counter-reset: item;
}

.article-body ol li {
    margin-bottom: 0.8rem;
    color: #4a5568;
    line-height: 1.5;
    position: relative;
}

.article-body ol li::before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: 600;
    color: #e6a23c;
    position: absolute;
    left: -1.8rem;
}

/* 4. Fix for recommendation table */
.recommendation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendation-table th {
    background: #1a3a5f;
    color: white;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.recommendation-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.recommendation-table tr:nth-child(even) {
    background: #f8fafc;
}

.recommendation-table tr:hover {
    background: #f0f7ff;
    transition: background 0.2s;
}

.recommendation-table td:first-child {
    font-weight: 600;
    color: #1a3a5f;
}

/* 5. Fix for confidence levels */
.confidence-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 1.5rem 0;
}

.confidence-level {
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.confidence-level.high {
    border-left-color: #43a047;
    background: #f0fff4;
}

.confidence-level.medium {
    border-left-color: #ff9800;
    background: #fffaf0;
}

.confidence-level.low {
    border-left-color: #f44336;
    background: #fff5f5;
}

.confidence-level h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confidence-level.high h5 i {
    color: #43a047 !important;
}

.confidence-level.medium h5 i {
    color: #ff9800 !important;
}

.confidence-level.low h5 i {
    color: #f44336 !important;
}

/* 6. Fix for warning box */
.info-box.warning {
    background: #fff5f5;
    border-left-color: #f44336;
}

.info-box.warning h4 i {
    color: #f44336;
}

/* 7. Fix for risk meter */
.risk-meter {
    margin: 1rem 0;
}

.risk-level {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.risk-label {
    width: 100px;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(to right, #43a047, #ff9800, #f44336);
    border-radius: 4px;
}

.risk-percent {
    width: 60px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

/* 8. Fix for input fields in calculator */
.pip-calculator input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pip-calculator input[type="number"]:focus {
    border-color: #e6a23c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 162, 60, 0.1);
}

/* 9. Fix for result label */
.result-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
    text-align: center;
}



/* 11. Fix for breadcrumb hover */
.breadcrumb a:hover {
    color: #ffd700 !important;
}

/* 12. Responsive fixes */
@media (max-width: 768px) {
    .recommendation-table {
        font-size: 0.8rem;
    }
    
    .recommendation-table th,
    .recommendation-table td {
        padding: 10px 8px;
    }
    
    .confidence-levels {
        gap: 12px;
    }
    
    .confidence-level {
        padding: 12px;
    }
    
    .risk-level {
        flex-wrap: wrap;
    }
    
    .risk-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .recommendation-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .article-body h5 {
        font-size: 1rem !important;
    }
}
/* ===== KEY TAKEAWAYS SECTION FIX ===== */

.key-takeaways {
    background: linear-gradient(135deg, #1a3a5f, #2a5a8c) !important;
    color: white !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    margin: 3rem 0 1rem 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(26, 58, 95, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.key-takeaways::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #e6a23c, #ffd700);
    z-index: 1;
}

.key-takeaways h3 {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
}

.key-takeaways h3 i {
    color: #ffd700 !important;
    font-size: 1.3rem !important;
}

.key-takeaways ul {
    padding-left: 1.2rem !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.key-takeaways li {
    margin-bottom: 0.8rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
    position: relative !important;
    padding-left: 5px !important;
    font-size: 1.05rem !important;
    list-style-type: none !important;
}

.key-takeaways li:before {
    content: "✓" !important;
    color: #82D32B !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -1.2rem !important;
    font-size: 1.1rem !important;
}

.key-takeaways li strong {
    color: white !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin: 0 2px !important;
}

/* Fix for text wrapping in key takeaways */
.key-takeaways li {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

/* Responsive fixes for key takeaways */
@media (max-width: 768px) {
    .key-takeaways {
        padding: 1.8rem !important;
        margin: 2rem 0 1rem 0 !important;
    }
    
    .key-takeaways h3 {
        font-size: 1.3rem !important;
        gap: 10px !important;
    }
    
    .key-takeaways li {
        font-size: 1rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    .key-takeaways li:before {
        left: -1rem !important;
    }
}

@media (max-width: 576px) {
    .key-takeaways {
        padding: 1.5rem !important;
    }
    
    .key-takeaways h3 {
        font-size: 1.2rem !important;
    }
    
    .key-takeaways li {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

/* Optional: Add decorative background pattern */
.key-takeaways {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(230, 162, 60, 0.05) 0%, transparent 20%) !important;
}

 .key-takeaways {
        background: linear-gradient(135deg, #1a3a5f, #2a5a8c) !important;
        color: white !important;
        padding: 30px !important;
        border-radius: 12px !important;
        margin: 40px 0 20px 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .key-takeaways h3 {
        color: white !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding-bottom: 15px !important;
        margin-bottom: 20px !important;
        font-size: 24px !important;
    }
    
    .key-takeaways h3 i {
        color: #ffd700 !important;
    }
    
    .key-takeaways ul {
        padding-left: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .key-takeaways li {
        color: rgba(255, 255, 255, 0.95) !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
        padding-left: 24px !important;
        position: relative !important;
    }
    
    .key-takeaways li:before {
        content: "✓" !important;
        color: #82D32B !important;
        position: absolute !important;
        left: 0 !important;
    }