/* ===== COMPLETE pip.css for Article Page ===== */

/* 1. Hero Section Overrides for Article Page */
.fx-hero[style*="padding: 80px 0 40px"] {
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5f 100%) !important;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px !important;
}

.fx-hero[style*="padding: 80px 0 40px"] .fx-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.fx-hero[style*="padding: 80px 0 40px"] h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.fx-hero[style*="padding: 80px 0 40px"] .fx-hero-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

/* Fix for hero stats */
.fx-hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.fx-stat {
    text-align: left;
}

.fx-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e6a23c;
    display: block;
    line-height: 1;
}

.fx-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #e6a23c;
    text-decoration: underline;
}

.breadcrumb span {
    color: #e6a23c;
    font-weight: 600;
}

/* 3. Article Layout */
.article-content {
    padding: 60px 0;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.article-body {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* 4. Headings (CRITICAL FIX) */
.article-body h2 {
    font-size: 1.8rem !important;
    color: #1a3a5f !important;
    margin: 2.5rem 0 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.article-body h2:first-child {
    margin-top: 0 !important;
}

.article-body h3 {
    font-size: 1.5rem !important;
    color: #1a3a5f !important;
    margin: 2rem 0 1rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.article-body h4 {
    font-size: 1.2rem !important;
    color: #1a3a5f !important;
    margin: 1.5rem 0 0.8rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

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

/* 5. Paragraphs and Text */
.article-body p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.article-body strong {
    color: #1a3a5f;
    font-weight: 600;
}

/* 6. Special Boxes */
.info-box, .calculation-example, .scenario-box {
    padding: 1.8rem;
    margin: 1.8rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.info-box {
    background: #f0f9ff;
    border-left-color: #1a3a5f;
}

.calculation-example {
    background: #fffaf0;
    border-left-color: #e6a23c;
}

.scenario-box {
    background: #f0fff4;
    border-left-color: #43a047;
}

.note {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.note i {
    color: #e6a23c;
    margin-right: 8px;
}

/* 7. Lists */
.article-body ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

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

.scenario-box ul {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* 8. Positive/Negative Text */
.positive {
    color: #43a047 !important;
    font-weight: 700 !important;
}

.negative {
    color: #f44336 !important;
    font-weight: 700 !important;
}

/* 9. Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, #1a3a5f, #2a5a8c);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.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;
}

.key-takeaways h3 i {
    color: #e6a23c !important;
}

.key-takeaways ul {
    padding-left: 1.2rem;
    margin: 0;
}

.key-takeaways li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    position: relative;
    padding-left: 5px;
}

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

/* 10. Sidebar */
.article-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: #1a3a5f;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: #e6a23c;
}

/* 11. Calculator */
.pip-calculator {
    margin-top: 1rem;
}

.calc-field {
    margin-bottom: 1.2rem;
}

.calc-field label {
    display: block;
    font-size: 0.9rem;
    color: #1a3a5f;
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-field select {
    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;
    cursor: pointer;
}

.calc-field select:focus {
    border-color: #1a3a5f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

.calc-result {
    text-align: center;
    margin: 1.8rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.calc-result h4 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a3a5f;
    line-height: 1;
}

/* 12. Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.primary-btn {
    background: linear-gradient(135deg, #e6a23c 0%, #d18a2c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 162, 60, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 162, 60, 0.4);
    color: white;
}

.secondary-btn {
    background: linear-gradient(135deg, #1e88e5 0%, #0d6ec7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
    color: white;
}

/* 13. Summary List */
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    display: flex;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list strong {
    min-width: 140px;
    color: #1a3a5f;
}

/* 14. Next Topic */
.next-topic {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.next-topic:hover {
    background: white;
    border-color: #e2e8f0;
    transform: translateX(5px);
}

.next-topic-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e88e5, #0d6ec7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
}

.next-topic-info {
    flex: 1;
}

.next-topic-info h4 {
    color: #1a3a5f;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.next-topic-info p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

.next-topic i.fa-chevron-right {
    color: #64748b;
}

/* 15. Quiz Section */
.quiz-cta {
    padding: 60px 0;
    background: #1a3a5f;
    color: white;
}

.quiz-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-text h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.quiz-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* 16. Responsive Design */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-body {
        padding: 2rem;
    }
    
    .quiz-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .fx-hero[style*="padding: 80px 0 40px"] h1 {
        font-size: 2.2rem;
    }
    
    .fx-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem !important;
    }
    
    .article-body h3 {
        font-size: 1.3rem !important;
    }
    
    .key-takeaways {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .fx-hero[style*="padding: 80px 0 40px"] h1 {
        font-size: 1.8rem;
    }
    
    .fx-hero-lead {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

.key-takeaways {
    /* Remove any max-width or overflow restrictions */
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.key-takeaways li {
    /* Ensure text can wrap properly */
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    max-width: 100% !important;
    
    /* Adjust spacing for better readability */
    margin-bottom: 0.8rem;
    padding-right: 10px; /* Add some padding */
}

/* Make sure the container has proper width */
.key-takeaways ul {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Fix for small screens */
@media (max-width: 768px) {
    .key-takeaways {
        padding: 1.5rem !important;
    }
    
    .key-takeaways li {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

/* Extreme Spread Section Styles */
.section-spacing {
    padding: 60px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin: 40px 0;
}

.news-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.news-event {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 4px;
}

.news-event.high-impact {
    border-left-color: #f44336;
}

.news-event.medium-impact {
    border-left-color: #FF9800;
}

.impact-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.impact-badge.high {
    background: #ffebee;
    color: #c62828;
}

.impact-badge.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.info-box.warning {
    border-left-color: #ff9800;
    background: #fff3e0;
}

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

