/*
 * Sections Font & Icon Consistency Fix
 * Ensures all sections use Cairo font and proper icon styling
 */

/* Force Cairo font on all section elements */
.section,
.section *,
.product-section,
.product-section *,
.plan-section,
.plan-section *,
.faq-section,
.faq-section *,
.header-section,
.header-section *,
.content-section,
.content-section *,
.footer-section,
.footer-section * {
    font-family: 'Cairo', sans-serif !important;
}

/* Database sections - force Cairo font on all custom sections */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6,
.container p,
.container span,
.container div,
.container a,
.container button {
    font-family: 'Cairo', sans-serif !important;
}

/* Section headings consistent styling */
.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Product section specific styles */
.product-section .card h5,
.product-section .product-name {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.product-section .btn {
    font-family: 'Cairo', sans-serif !important;
}

/* Plan section specific styles */
.plan-section .plan-name,
.plan-section .plan-title h5 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.plan-section .plan-price {
    font-family: 'Cairo', sans-serif !important;
    font-weight: bold !important;
}

.plan-section .plan-feature {
    font-family: 'Cairo', sans-serif !important;
}

/* FAQ section specific styles */
.faq-section .faq-question {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
}

.faq-section .faq-answer {
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.6 !important;
}

/* Hero and Features section from database */
nav a,
nav .navbar-brand {
    font-family: 'Cairo', sans-serif !important;
}

.fw-semibold,
.fw-bold,
.badge,
.btn {
    font-family: 'Cairo', sans-serif !important;
}

/* Icon consistency */
.section i,
.section .fas,
.section .far,
.section .fab,
.section .la,
.section .las,
.section .bi {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Features section icons */
.fas.fa-plug,
.fas.fa-dollar-sign,
.fas.fa-mouse-pointer {
    color: #666 !important;
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Button icons */
.fas.fa-sign-in-alt,
.fas.fa-user-plus,
.fas.fa-tachometer-alt {
    margin-right: 0.5rem;
    font-size: 1rem;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Warning icon */
.fas.fa-exclamation-triangle {
    margin-right: 0.5rem;
    color: #fff;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Plan feature icons */
.fas.fa-bolt {
    color: #dc3545 !important; /* danger color for main features */
    margin-right: 0.5rem !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

.fas.fa-infinity {
    color: #198754 !important; /* success color for unlimited features */
    margin-right: 0.5rem !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Ensure Font Awesome icons are properly displayed */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Force proper icon display */
i.fas, i.far, i.fab,
span.fas, span.far, span.fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

/* Force webfont loading for Font Awesome */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://use.fontawesome.com/releases/v6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
         url("https://use.fontawesome.com/releases/v6.4.0/webfonts/fa-solid-900.woff") format("woff");
}

/* Specific icon content codes as fallback */
.fas.fa-plug::before { content: "\f1e6"; }
.fas.fa-dollar-sign::before { content: "\24"; }
.fas.fa-mouse-pointer::before { content: "\f245"; }
.fas.fa-bolt::before { content: "\f0e7"; }
.fas.fa-infinity::before { content: "\f534"; }
.fas.fa-sign-in-alt::before { content: "\f2f6"; }
.fas.fa-user-plus::before { content: "\f234"; }
.fas.fa-tachometer-alt::before { content: "\f3fd"; }
.fas.fa-exclamation-triangle::before { content: "\f071"; }

/* Plan feature icons */
.plan-feature-icon {
    color: #dc3545; /* danger color for main features */
    margin-right: 0.5rem;
}

.plan-unlimited-icon {
    color: #198754; /* success color for unlimited features */
    margin-right: 0.5rem;
}

/* Button consistency */
.section .btn {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 500 !important;
}

/* Ensure proper text rendering */
.section {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pricing tab buttons */
.pricing-tabs .btn {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 500 !important;
}

/* Override any Bootstrap defaults */
.section .text-muted,
.section .small,
.section .badge {
    font-family: 'Cairo', sans-serif !important;
}

/* Database content specific overrides */
.text-secondary,
.badge.bg-danger,
.btn.btn-outline-dark {
    font-family: 'Cairo', sans-serif !important;
}