/* ===== SPREAD ARTICLE SPECIFIC STYLES ===== */

/* Table styles */
.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;
}

/* 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: #1e88e5;
    background: #f0f7ff;
}

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

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

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

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

/* Responsive tables */
@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;
    }
}

@media (max-width: 576px) {
    .recommendation-table {
        display: block;
        overflow-x: auto;
    }
}

/* Page-specific styles for page 11 (Understanding Spreads) */
.pg12-content {
    padding: 40px 0;
}

.pg12-single-column .article-body {
    width: 100%;
    max-width: 100%;
}

/* Dynamic Spread Visualization */
.pg12-spread-visual {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.spread-visual-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.visual-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visual-control label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.visual-control select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.3s;
}

.visual-control select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.spread-visual-display {
    margin-top: 30px;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.bid-price, .ask-price {
    text-align: center;
    min-width: 120px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.bid-price .price-value {
    color: #f44336;
    border-color: #ffcdd2;
}

.ask-price .price-value {
    color: #4caf50;
    border-color: #c8e6c9;
}

.spread-indicator {
    text-align: center;
    min-width: 200px;
}

.spread-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.spread-bar {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.spread-fill {
    height: 100%;
    background: #4caf50;
    border-radius: 10px;
    width: 16%;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.spread-cost {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.market-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Extreme Spread Section */
.pg12-extreme-spread-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 40px;
    margin: 60px 0;
    position: relative;
}

.pg12-extreme-spread-section h2 {
    color: #e65100;
    margin-bottom: 20px;
}

.pg12-warning-box {
    background: #ffecb3;
    border-left: 4px solid #ff9800;
    border: none;
    margin: 25px 0;
}

.pg12-warning-box .warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pg12-warning-box h4 {
    color: #e65100;
    margin: 0;
}

/* News Events Grid */
.pg12-news-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.news-event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
}

.impact-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.impact-badge.extreme {
    background: #ffcdd2;
    color: #c62828;
}

.impact-badge.high {
    background: #ffe0b2;
    color: #ef6c00;
}

.news-event-card h5 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.event-details {
    padding: 20px;
}

.event-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.event-details i {
    width: 16px;
    color: #666;
}

.event-warning {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px !important;
    font-weight: 600;
    font-size: 13px !important;
}

.event-tip {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px !important;
    font-weight: 600;
    font-size: 13px !important;
}

/* Weekend Table */
.pg12-weekend-table {
    margin: 40px 0;
    overflow-x: auto;
}

.pg12-weekend-table table {
    min-width: 800px;
}

.pg12-weekend-table th {
    background: #ff9800;
    color: white;
}

.pg12-weekend-table tr.high-risk td:first-child {
    border-left: 4px solid #ff9800;
}

.pg12-weekend-table tr.extreme-risk td:first-child {
    border-left: 4px solid #f44336;
}

.pg12-weekend-table tr.medium-risk td:first-child {
    border-left: 4px solid #ffc107;
}

.action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.action-badge.avoid {
    background: #ffebee;
    color: #c62828;
}

.action-badge.close {
    background: #fce4ec;
    color: #ad1457;
}

.action-badge.wait {
    background: #fff3e0;
    color: #ef6c00;
}

.action-badge.check {
    background: #e3f2fd;
    color: #1565c0;
}

/* Real Examples */
.pg12-real-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.example-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.example-header {
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-header.christmas {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.example-header.nfp {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.example-header.weekend {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
}

.example-header h5 {
    margin: 0;
    font-size: 18px;
}

.example-data {
    padding: 20px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-label {
    color: #666;
    font-size: 14px;
}

.data-value {
    font-weight: 600;
    font-size: 15px;
}

.data-value.normal {
    color: #4caf50;
}

.data-value.medium {
    color: #ff9800;
}

.data-value.high {
    color: #f44336;
}

.data-value.extreme {
    color: #d32f2f;
    font-weight: 700;
}

.data-conclusion {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Protection Guide */
.pg12-protection-guide {
    margin: 40px 0;
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.protection-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.protection-item:hover {
    transform: translateY(-3px);
}

.protection-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196f3;
    font-size: 20px;
    flex-shrink: 0;
}

.protection-content h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.protection-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Key Takeaways */
.pg12-key-takeaways {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.pg12-key-takeaways .takeaways-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pg12-key-takeaways h4 {
    color: #2e7d32;
    margin: 0;
}

.pg12-key-takeaways ul {
    columns: 2;
    column-gap: 40px;
}

.pg12-key-takeaways li {
    margin-bottom: 12px;
    break-inside: avoid;
}

/* Next Topic */
.pg12-next-topic {
    margin: 60px 0 40px;
}

.next-topic-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.next-topic-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.next-topic-header h3 {
    color: #333;
    margin: 0;
}

.next-topic-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.next-topic-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
}

.next-topic-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.next-topic-info {
    flex: 1;
    text-align: left;
}

.next-topic-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 20px;
}

.next-topic-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.next-topic-difficulty {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.next-arrow {
    color: #1e88e5;
    font-size: 24px;
}

/* Quiz Section */
.pg12-quiz {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .pg12-extreme-spread-section,
    .pg12-spread-visual {
        padding: 25px;
    }
    
    .price-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .pg12-key-takeaways ul,
    .pg12-key-takeaways-final ul {
        columns: 1;
    }
    
    .protection-grid,
    .pg12-news-events-grid,
    .pg12-real-examples {
        grid-template-columns: 1fr;
    }
    
    .next-topic-link {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .next-topic-info {
        text-align: center;
    }
}
/* Simple colored icons option */
.info-box-header i {
    color: #FF9800; /* Orange for lightbulb */
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Different colors for different icons */
.info-box-header .fa-calculator { color: #4CAF50; }
.info-box-header .fa-check-circle { color: #2196F3; }
.info-box-header .fa-shield-alt { color: #9C27B0; }
.info-box-header .fa-exclamation-triangle { color: #FF9800; }
.info-box-header .fa-bullhorn { color: #F44336; }
.info-box-header .fa-calendar-alt { color: #00BCD4; }
.info-box-header .fa-chart-line { color: #3F51B5; }
.info-box-header .fa-lock { color: #607D8B; }

/* Base icon styling for all boxes */
.info-box-header i,
.scenario-header i,
.calculation-header i,
.warning-header i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Specific colors for each icon type */

/* INFO BOXES */
.info-box-header .fa-lightbulb { 
    color: #FF9800; /* Orange */
}

.info-box-header .fa-calculator { 
    color: #4CAF50; /* Green */
}

.info-box-header .fa-check-circle { 
    color: #2196F3; /* Blue */
}

.info-box-header .fa-shield-alt { 
    color: #9C27B0; /* Purple */
}

.info-box-header .fa-info-circle { 
    color: #00BCD4; /* Cyan */
}

/* SCENARIO BOXES (like Fixed Spreads) */
.scenario-header .fa-lock { 
    color: #607D8B; /* Blue Grey */
}

.scenario-header .fa-bullhorn { 
    color: #F44336; /* Red */
}

.scenario-header .fa-bullseye { 
    color: #E91E63; /* Pink */
}

/* CALCULATION BOXES (like Variable Spreads) */
.calculation-header .fa-chart-line { 
    color: #3F51B5; /* Indigo */
}

.calculation-header .fa-calculator { 
    color: #009688; /* Teal */
}

.calculation-header .fa-balance-scale { 
    color: #795548; /* Brown */
}

/* WARNING BOXES */
.warning-header .fa-exclamation-triangle { 
    color: #FF9800; /* Orange */
}

.warning-header .fa-exclamation-circle { 
    color: #F44336; /* Red */
}

.warning-header .fa-ban { 
    color: #D32F2F; /* Dark Red */
}

/* CONFIDENCE LEVEL ICONS */
.confidence-header .fa-bolt { 
    color: #FFC107; /* Amber */
}

.confidence-header .fa-chart-line { 
    color: #2196F3; /* Blue */
}

.confidence-header .fa-moon { 
    color: #673AB7; /* Deep Purple */
}

.confidence-header .fa-sun { 
    color: #FF9800; /* Orange */
}

.confidence-header .fa-umbrella-beach { 
    color: #00BCD4; /* Cyan */
}

.confidence-header .fa-calendar-day { 
    color: #E91E63; /* Pink */
}

/* SIDEBAR/NEXT TOPIC ICONS */
.sidebar-card i,
.next-topic-icon i {
    color: white; /* White icons on colored backgrounds are fine */
}

/* Optional: Add hover effects for better UX */
.info-box-header i:hover,
.scenario-header i:hover,
.calculation-header i:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Ensure proper spacing */
.info-box-header,
.scenario-header,
.calculation-header,
.warning-header,
.confidence-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.info-box-header h4,
.scenario-header h4,
.calculation-header h4,
.warning-header h4,
.confidence-header h5 {
    margin: 0;
}

.pg12-info-box h5 {
    color: #333 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 20px 0 15px 0 !important;
    border: none !important;
}

/* Fix for confidence level h5 headings */
.confidence-level h5,
.pg12-confidence-levels h5,
.confidence-header h5 {
    color: #333 !important; /* Dark text */
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border: none !important;
}

/* Specific styles for each confidence level */
.pg12-confidence-high .confidence-header h5 {
    color: #2E7D32 !important; /* Dark green for high confidence */
}

.pg12-confidence-medium .confidence-header h5 {
    color: #F57C00 !important; /* Dark orange for medium confidence */
}

.pg12-confidence-low .confidence-header h5 {
    color: #D32F2F !important; /* Dark red for low confidence */
}

/* Style the confidence header properly */
.confidence-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Icon colors in confidence headers */
.confidence-header .fa-bolt {
    color: #4CAF50; /* Green */
}

.confidence-header .fa-chart-line {
    color: #FF9800; /* Orange */
}

.confidence-header .fa-moon {
    color: #9C27B0; /* Purple */
}

/* If you want to keep the original styling but just fix the color: */
.confidence-level h5 {
    color: inherit !important; /* Inherits color from parent */
}

/* Minimal next topic */
.next-up {
    margin: 50px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2196F3;
}

.next-up p {
    margin: 0;
    color: #333;
}

.next-up a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
}

.next-up a:hover {
    text-decoration: underline;
}
body.page-id-11 .article-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
}

body.page-id-11 .article-sidebar {
    display: none !important;
}
.pg12-full-width-content {
    width: 100%;
    max-width: 100%;
}

.pg12-full-width-content .article-body {
    width: 100%;
    max-width: 100%;
}

/* Minimal Next Topic */
.next-topic-minimal {
    margin: 50px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.next-topic-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-topic-label i {
    color: #2196F3;
    font-size: 14px;
}

.next-topic-link a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.topic-name {
    font-weight: 600;
    color: #2196F3;
}

.topic-desc {
    color: #666;
    font-size: 16px;
}

.next-topic-link a:hover .topic-name {
    text-decoration: underline;
}

/* Next Topic - Related Topics Style */
.related-topics.next-topic-compact {
    margin: 60px 0 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.related-topics-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.related-topics-header i {
    color: #2196F3;
    font-size: 18px;
}

.related-topics-header h4 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #2196F3;
    text-decoration: none;
}

.topic-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.topic-content {
    flex: 1;
}

.topic-content h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.topic-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.topic-label {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* If you want the minimal version but styled */
.next-up.styled {
    margin: 60px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.next-up.styled p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.next-up.styled a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    background: #e3f2fd;
    border-radius: 4px;
    margin: 0 5px;
}

.next-up.styled a:hover {
    text-decoration: underline;
    background: #bbdefb;
}