/* Blog Page Styling */

.blog-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Search and Filter */
.blog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.blog-search {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.blog-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.blog-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Horizontal Ad Row (between article rows) */
.ad-row-horizontal {
    grid-column: 1 / -1; /* Span full width */
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 1.5rem 0;
    position: relative;
}

/* Placeholder text when ad is not loaded */
.ad-row-horizontal::before {
    content: "📢 مساحة إعلانية";
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.6;
    position: absolute;
}

/* Hide placeholder when ad loads */
.ad-row-horizontal:has(ins[data-ad-status="filled"])::before,
.ad-row-horizontal:has(ins.adsbygoogle-noablate)::before {
    display: none;
}

.ad-row-horizontal ins {
    display: block;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

/* Article with Sidebar Layout */
.article-layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .article-layout-with-sidebar {
        grid-template-columns: 1fr 180px;
    }
    
    [dir="ltr"] .article-layout-with-sidebar {
        grid-template-columns: 180px 1fr;
    }
}

.article-main-content {
    min-width: 0; /* Allow shrink */
}

/* Sidebar Ad Container */
.sidebar-ad {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-ad-container {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
}

.sidebar-ad-container ins {
    display: block;
    width: 160px;
}

@media (max-width: 991px) {
    .sidebar-ad {
        display: none; /* Hide sidebar on mobile */
    }
}

/* Hero Image in Articles - Compact Size for More Content Space */
.article-hero-wrapper {
    max-height: 140px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.article-hero-wrapper img,
.article-hero-image {
    width: 100%;
    height: 140px;
    max-height: 140px;
    object-fit: cover;
}

/* Concept Images - Also Compact */
.concept-image-wrapper img {
    max-height: 320px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Professional Workflow Steps */
.workflow-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.workflow-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.workflow-content h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.workflow-content p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* Formula/Quote Box Styling - Premium 3D Style */
.formula-box,
.equation-box {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
}

.formula-box:hover,
.equation-box:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .formula-box,
[data-theme="dark"] .equation-box {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-left-color: #818cf8;
}

.formula-box::before,
.equation-box::before {
    content: "📐";
    position: absolute;
    top: -14px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    padding: 6px 12px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

[dir="ltr"] .formula-box::before,
[dir="ltr"] .equation-box::before {
    right: auto;
    left: 20px;
}

.formula-box p,
.equation-box p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 2.2;
    margin: 0;
    letter-spacing: 0.3px;
}

.formula-box .formula-en {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .formula-box .formula-en {
    color: #a5b4fc;
}

.formula-box .formula-ar {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Code blocks - Enhanced */
pre, .code-block {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-left: 4px solid #818cf8;
}

pre code, .code-block code {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-date::before {
    content: "📅 ";
}

.article-read-time::before {
    content: "⏱️ ";
}

/* Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding-top: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-style: italic;
}

/* Share Buttons */
.share-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent; /* Default transparent border */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Theme-specific borders for share buttons */
[data-theme="dark"] .share-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .share-btn {
    border-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn.email {
    background: var(--success-color);
    color: white;
}

/* Related Articles */
.related-articles {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-controls {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
}

/* 
   ========== Contrast Fixes for Dark Containers ========== 
   Ensures text is readable on dark/colored backgrounds.
   NOTE: .key-takeaway has a LIGHT background — do NOT force white text on it.
*/

.roi-highlight,
.blog-hero,
.benefit-hero,
.comparison-hero,
.p6-hero,
.roi-box,
[class*="-hero"] {
    color: white !important;
}

.roi-highlight h1, .roi-highlight h2, .roi-highlight h3, .roi-highlight h4, .roi-highlight p, .roi-highlight li, .roi-highlight strong, .roi-highlight span,
.blog-hero h1, .blog-hero h2, .blog-hero h3, .blog-hero p, .blog-hero li,
.benefit-hero h1, .benefit-hero h2, .benefit-hero h3, .benefit-hero p, .benefit-hero li,
.comparison-hero h1, .comparison-hero h2, .comparison-hero h3, .comparison-hero p, .comparison-hero li,
.p6-hero h1, .p6-hero h2, .p6-hero h3, .p6-hero p, .p6-hero li,
.roi-box h1, .roi-box h2, .roi-box h3, .roi-box p, .roi-box li,
[class*="-hero"] h1, [class*="-hero"] h2, [class*="-hero"] h3, [class*="-hero"] p {
    color: white !important;
}

/* key-takeaway has a light background — use dark text */
.key-takeaway {
    color: var(--text-primary, #1e293b) !important;
}

/* Ensure inline backgrounds on thead are visible through the th cells */
.article-body thead[style*="background"] th,
thead[style*="background"] th {
    background-color: transparent;
}

.key-takeaway h1, .key-takeaway h2, .key-takeaway h3, .key-takeaway h4 {
    color: var(--text-primary, #1e293b) !important;
}

.key-takeaway p, .key-takeaway li, .key-takeaway span, .key-takeaway strong,
.key-takeaway td {
    color: var(--text-secondary, #334155) !important;
}

/* Specific fix for transparency in some elements */
.roi-highlight p, 
.roi-highlight .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ════════════════════════════════════════════════════════════════════
   COMPREHENSIVE TEXT CONTRAST SYSTEM
   ════════════════════════════════════════════════════════════════════
   RULE: Background determines text color. NOT the theme.
   
   GROUP A — ALWAYS-DARK backgrounds → ALWAYS light text (#e2e8f0)
     pre, .code-block, .metric-box
   
   GROUP A2 — ADAPTIVE backgrounds (light in light mode, dark in dark)
     .formula-box → dark text in light mode, light text in dark mode
   
   GROUP B — ALWAYS-LIGHT backgrounds → ALWAYS dark text (#1e293b)
     .lesson-card, .quiz-container, .quiz-question, .quiz-option,
     .crew-card, .pro-tip, .warning-box, .key-takeaway,
     .article-quiz
     (These use var(--card-bg, white) or hardcoded light gradients —
      --card-bg is NOT defined, so fallback is always white/light)
   
   GROUP C — ALWAYS-DARK gradient headers → ALWAYS white text
     .comparison-table th, .dark-gradient
   ════════════════════════════════════════════════════════════════════ */

/* ── GROUP A: Always-dark backgrounds → Light text ── */
pre, .code-block,
pre *, .code-block * {
    color: #e2e8f0 !important;
}

/* ── GROUP A2: formula-box has LIGHT bg in light mode, DARK bg in dark mode ── */
.formula-box,
.formula-box * {
    color: #1e293b !important;
}

[data-theme="dark"] .formula-box,
[data-theme="dark"] .formula-box * {
    color: #e2e8f0 !important;
}

/* ========== Quiz Container / Lesson Cards Adaptive Styling ========== */
/* 
   Elements with rgba() backgrounds like .quiz-container, .lesson-card,
   .pro-tip, .warning-box, .key-takeaway will naturally adapt their
   background darkness based on the body's theme.
   Therefore, they don't need forced text colors; they safely inherit
   var(--text-primary).
*/

/* Quiz question cards — force white bg + dark text in ALL themes */
.quiz-question,
.quiz-question strong,
.quiz-question p {
    color: #1e293b !important;
}
.quiz-question {
    background: #ffffff !important;
}

/* Quiz options — force light bg + dark text in ALL themes */
.quiz-option {
    color: #1e293b !important;
    background: #f3f4f6 !important;
}
.quiz-option:hover {
    background: #e5e7eb !important;
}

/* Crew cards — force white bg + dark text in ALL themes */
.crew-card {
    background: #ffffff !important;
}
.crew-card,
.crew-card h4, .crew-card strong, .crew-card li,
.crew-card p, .crew-card span:not(.metric-box) {
    color: #1e293b !important;
}

/* Removed .comparison-table td to let theme.css handle table cell adaptive colors */

/* article-quiz class (used in some older articles) */
.article-quiz, .article-quiz p,
.article-quiz label, .article-quiz strong {
    color: #1e293b !important;
}

/* ── formula-box INSIDE group B elements: use dark text (light mode), light text (dark mode) ── */
.crew-card .formula-box, .crew-card .formula-box *,
.lesson-card .formula-box, .lesson-card .formula-box *,
.pro-tip .formula-box, .pro-tip .formula-box *,
.warning-box .formula-box, .warning-box .formula-box *,
.key-takeaway .formula-box, .key-takeaway .formula-box *,
.quiz-container .formula-box, .quiz-container .formula-box * {
    color: #1e293b !important;
}

[data-theme="dark"] .crew-card .formula-box, [data-theme="dark"] .crew-card .formula-box *,
[data-theme="dark"] .lesson-card .formula-box, [data-theme="dark"] .lesson-card .formula-box *,
[data-theme="dark"] .pro-tip .formula-box, [data-theme="dark"] .pro-tip .formula-box *,
[data-theme="dark"] .warning-box .formula-box, [data-theme="dark"] .warning-box .formula-box *,
[data-theme="dark"] .key-takeaway .formula-box, [data-theme="dark"] .key-takeaway .formula-box *,
[data-theme="dark"] .quiz-container .formula-box, [data-theme="dark"] .quiz-container .formula-box * {
    color: #e2e8f0 !important;
}

/* ── GROUP C: Dark gradient backgrounds → White text ── */
.comparison-table th {
    color: white !important;
}

.metric-box {
    color: white !important;
}

.dark-gradient, .dark-gradient p, .dark-gradient li, .dark-gradient span,
.dark-gradient strong, .dark-gradient h3, .dark-gradient h4 {
    color: #f1f5f9 !important;
}

tr[style*="linear-gradient"] th,
tr[style*="linear-gradient"] td {
    color: #f1f5f9 !important;
}

/* ========== Section Headers for Blog Categories ========== */

.blog-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-right: 5px solid var(--section-color, var(--primary-color));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

[dir="ltr"] .section-header {
    border-right: none;
    border-left: 5px solid var(--section-color, var(--primary-color));
}

.section-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.section-info {
    flex: 1;
    min-width: 200px;
}

.section-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.section-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.section-count {
    background: var(--section-color, var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Section Color Variants */
.section-header.bim { --section-color: #3b82f6; }
.section-header.planning { --section-color: #10b981; }
.section-header.revit { --section-color: #8b5cf6; }
.section-header.csi { --section-color: #f59e0b; }

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* ========== Light Mode Color Optimization ========== */
/* Ensure proper contrast for information boxes in light mode */
.info-box,
.key-takeaway,
.pro-tip,
.warning-box,
.success-box,
.real-example {
    color: var(--text-primary) !important;
}

.info-box p, .info-box li, .info-box span, .info-box a,
.key-takeaway p, .key-takeaway li, .key-takeaway span, .key-takeaway a,
.pro-tip p, .pro-tip li, .pro-tip span, .pro-tip a,
.warning-box p, .warning-box li, .warning-box span, .warning-box a,
.success-box p, .success-box li, .success-box span, .success-box a,
.real-example p, .real-example li, .real-example span, .real-example a,
.mistake-card p, .mistake-card li, .mistake-card span, .mistake-card a {
    color: var(--text-primary) !important;
}

/* Color links inside colored boxes for better contrast */
.info-box a, .key-takeaway a, .pro-tip a, .warning-box a,
.success-box a, .real-example a, .mistake-card a {
    color: #2563eb !important;
    font-weight: 600;
}

/* Replace light background boxes with better contrast in Light Mode */
html[data-theme="light"] [style*="background: #fff3cd"],
html[data-theme="light"] [style*="background: #fff9c4"],
html[data-theme="light"] [style*="background: #fff3e0"],
html[data-theme="light"] [style*="background: #fffbeb"] {
    background-color: #fef8e7 !important;
}

/* Ensure table cells have proper contrast */
table td, table th {
    color: var(--text-primary) !important;
}

/* Fix info box styling */
.info-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1)) !important;
    border-color: #ff9800 !important;
    color: var(--text-primary) !important;
}

.info-box strong, .info-box b, .info-box h3, .info-box h4 {
    color: #e65100 !important;
}

/* Pro-tip box optimization */
.pro-tip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)) !important;
    color: var(--text-primary) !important;
}

.pro-tip strong, .pro-tip b, .pro-tip h3, .pro-tip h4 {
    color: #15803d !important;
}

/* Warning box optimization */
.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)) !important;
    color: var(--text-primary) !important;
}

.warning-box strong, .warning-box b, .warning-box h3, .warning-box h4 {
    color: #991b1b !important;
}

/* Responsive Section Headers */
@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .section-info {
        text-align: center;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
}

