/* ===================================
   QCEF - Insights Pages Styling
   Dedicated styles for blog/article pages
   =================================== */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--qatar-maroon-dark) 100%);
    color: var(--white);
    padding: 140px 20px 80px;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(222, 41, 16, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.article-hero .container {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.article-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    background: rgba(201, 169, 97, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Article Content */
.article-content {
    background: var(--white);
    padding: 80px 20px;
}

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

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    margin-top: 50px;
    line-height: 1.3;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.content-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--qatar-maroon);
    margin-top: 30px;
    margin-bottom: 15px;
}

.lead-paragraph {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 400;
}

.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin-left: 25px;
    margin-bottom: 25px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
}

.content-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--qatar-maroon);
    font-size: 24px;
    line-height: 1.3;
}

.content-section ol {
    list-style: decimal;
    padding-left: 25px;
}

.content-section ol li {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    padding-left: 10px;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.content-section em {
    color: var(--qatar-maroon);
    font-style: italic;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-left: 4px solid var(--qatar-maroon);
    padding: 35px 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.highlight-box h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--qatar-maroon);
    margin-top: 0;
    margin-bottom: 20px;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-box ul li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
}

.highlight-box ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--qatar-maroon);
    font-weight: 700;
    font-size: 18px;
}

/* Stats Grid in Content */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-box {
    background: var(--light-bg);
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    border-color: var(--qatar-maroon);
    transform: translateY(-5px);
}

.stat-box .stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--qatar-maroon);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.4;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--qatar-maroon);
    color: var(--white);
}

.data-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(139, 21, 56, 0.03);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 18px 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* Comparison Boxes */
.comparison-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.compare-box {
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.compare-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.compare-box.negative {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border: 2px solid rgba(220, 53, 69, 0.2);
}

.compare-box.positive {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.compare-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}

.compare-box.negative h4 {
    color: #dc3545;
}

.compare-box.positive h4 {
    color: #28a745;
}

.compare-box .big-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.compare-box.negative .big-number {
    color: #dc3545;
}

.compare-box.positive .big-number {
    color: #28a745;
}

.compare-box > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.compare-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-box ul li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.compare-box.negative ul li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
    font-size: 20px;
}

.compare-box.positive ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}

/* Case Highlight */
.case-highlight {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    border-top: 4px solid var(--gold);
}

.case-highlight h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--qatar-maroon);
    margin-top: 30px;
    margin-bottom: 15px;
}

.case-highlight h4:first-child {
    margin-top: 0;
}

.case-highlight p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.case-highlight ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.case-highlight ul li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.case-highlight ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.case-highlight blockquote {
    margin: 25px 0;
    padding: 25px 30px;
    background: var(--white);
    border-left: 4px solid var(--qatar-maroon);
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Conclusion Section */
.conclusion {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.03) 0%, rgba(201, 169, 97, 0.03) 100%);
    padding: 45px 50px;
    border-radius: 12px;
    border-left: 5px solid var(--qatar-maroon);
    margin-top: 60px;
}

.conclusion h2 {
    margin-top: 0;
    color: var(--qatar-maroon);
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--qatar-maroon-dark) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.article-cta h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.article-cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.article-cta .btn {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.article-cta .btn:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--qatar-maroon);
}

/* Related Insights */
.related-insights {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid var(--border-color);
}

.related-insights h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

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

.related-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    display: block;
}

.related-card:hover {
    border-color: var(--qatar-maroon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--qatar-maroon);
    margin-bottom: 12px;
}

.related-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-arrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--qatar-maroon);
    transition: var(--transition-smooth);
}

.related-card:hover .related-arrow {
    transform: translateX(5px);
    color: var(--qatar-maroon-dark);
}

/* Responsive Design for Articles */
@media (max-width: 968px) {
    .article-hero {
        padding: 120px 20px 60px;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .article-subtitle {
        font-size: 18px;
    }
    
    .article-content {
        padding: 60px 20px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section h3 {
        font-size: 22px;
    }
    
    .lead-paragraph {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .highlight-box,
    .case-highlight {
        padding: 30px 25px;
    }
    
    .article-cta {
        padding: 40px 30px;
    }
    
    .article-cta h3 {
        font-size: 26px;
    }
    
    .comparison-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .article-hero {
        padding: 100px 15px 50px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-subtitle {
        font-size: 16px;
    }
    
    .article-content {
        padding: 40px 15px;
    }
    
    .content-section h2 {
        font-size: 24px;
        margin-top: 40px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 16px;
    }
    
    .lead-paragraph {
        font-size: 17px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box .stat-number {
        font-size: 36px;
    }
    
    .highlight-box,
    .case-highlight {
        padding: 25px 20px;
    }
    
    .article-cta {
        padding: 35px 25px;
    }
    
    .article-cta h3 {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 12px 10px;
    }
    
    .conclusion {
        padding: 30px 25px;
    }
}
