/* ========================================
   tfi COLOR SCHEME IMPLEMENTATION
   Based on https://www.tfi.com/
   ======================================== */

/* ========================================
   COLOR VARIABLES (CSS Custom Properties)
   ======================================== */
:root {
    /* Primary Colors - tfi Brand */
    --tfi-primary: #6b47f5;
    --tfi-primary-dark: #5a3ce6;
    --tfi-primary-light: #8b6ff7;
    --tfi-primary-ultra-light: #f0edff;

    /* Secondary Colors */
    --tfi-secondary: #2c3e50;
    --tfi-secondary-light: #34495e;
    --tfi-secondary-dark: #1a252f;

    /* Background Colors */
    --tfi-bg-primary: #ffffff;
    --tfi-bg-secondary: #f8f9fb;
    --tfi-bg-tertiary: #f1f3f4;
    --tfi-bg-dark: #2c3e50;

    /* Text Colors */
    --tfi-text-primary: #2c3e50;
    --tfi-text-secondary: #5a6c7d;
    --tfi-text-light: #8b9dc3;
    --tfi-text-white: #ffffff;

    /* Border Colors */
    --tfi-border-light: #e8ecef;
    --tfi-border-medium: #dfe4ea;
    --tfi-border-dark: #c7d2fe;

    /* Success, Warning, Error */
    --tfi-success: #10b981;
    --tfi-warning: #f59e0b;
    --tfi-error: #ef4444;

    /* Gradients */
    --tfi-gradient-primary: linear-gradient(135deg, #6b47f5 0%, #8b6ff7 100%);
    --tfi-gradient-secondary: linear-gradient(135deg, #f8f9fb 0%, #e8ecef 100%);
    --tfi-gradient-hero: linear-gradient(135deg, #6b47f5 0%, #5a3ce6 100%);

    /* Shadows */
    --tfi-shadow-sm: 0 1px 2px rgba(107, 71, 245, 0.05);
    --tfi-shadow-md: 0 4px 6px rgba(107, 71, 245, 0.07);
    --tfi-shadow-lg: 0 10px 15px rgba(107, 71, 245, 0.1);
    --tfi-shadow-xl: 0 20px 25px rgba(107, 71, 245, 0.15);
}

/* ========================================
   UPDATED COLOR CLASSES
   ======================================== */

/* Background Colors */
.bg-primary-color {
    background: var(--tfi-primary) !important;
}

.bg-secondary-color {
    background: var(--tfi-secondary) !important;
}

.bg-tfi-light {
    background: var(--tfi-bg-secondary) !important;
}

.bg-tfi-white {
    background: var(--tfi-bg-primary) !important;
}

.bg-gradient-color {
    background: var(--tfi-gradient-primary) !important;
}

.bg-gradient-hero {
    background: var(--tfi-gradient-hero) !important;
}

/* Text Colors */
.text-primary-color {
    color: var(--tfi-primary) !important;
}

.text-secondary-color {
    color: var(--tfi-secondary) !important;
}

.text-tfi-light {
    color: var(--tfi-text-light) !important;
}

.text-white {
    color: var(--tfi-text-white) !important;
}

.heading-text-color {
    color: var(--tfi-text-primary) !important;
}

/* ========================================
   HEADER tfi STYLING
   ======================================== */

.header-navigation-area {
    background: var(--tfi-bg-primary);
    box-shadow: var(--tfi-shadow-md);
    border-bottom: 1px solid var(--tfi-border-light);
}

.logo-text {
    background: var(--tfi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-menu nav ul li a {
    color: var(--tfi-text-primary);
    transition: all 0.3s ease;
}

.main-menu nav ul li a:hover {
    color: var(--tfi-primary);
    background: var(--tfi-primary-ultra-light);
}

.main-menu nav ul li a.btn-style {
    background: var(--tfi-gradient-primary);
    color: var(--tfi-text-white) !important;
    box-shadow: var(--tfi-shadow-md);
}

.main-menu nav ul li a.btn-style:hover {
    transform: translateY(-2px);
    box-shadow: var(--tfi-shadow-lg);
}

/* Language Toggle - tfi Style */
.language-toggle .language-btn {
    border: 2px solid var(--tfi-border-medium);
    background: var(--tfi-bg-primary);
    color: var(--tfi-text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.language-toggle .language-btn:hover {
    border-color: var(--tfi-primary);
    background: var(--tfi-primary-ultra-light);
    transform: translateY(-1px);
    box-shadow: var(--tfi-shadow-md);
}

.language-toggle form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle span {
    background: var(--tfi-primary);
}

/* ========================================
   HERO SECTION tfi STYLING
   ======================================== */

.banner-section {
    background: var(--tfi-gradient-hero);
    color: var(--tfi-text-white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.banner-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.banner-section .container {
    position: relative;
    z-index: 2;
}

.banner-section .content-box {
    padding: 2rem 0;
}

.banner-section .content-box h1 {
    color: var(--tfi-text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.banner-section .content-box p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.banner-section .content-box .badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--tfi-text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    display: inline-block;
}

.banner-section .cs-btn-one.btn-white {
    background: var(--tfi-bg-primary);
    color: var(--tfi-primary);
    box-shadow: var(--tfi-shadow-lg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.banner-section .cs-btn-one.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--tfi-shadow-xl);
    background: #f8f9fb;
}

.banner-section .image-box img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.banner-section .image-box img:hover {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .banner-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .banner-section .content-box h1 {
        font-size: 2.5rem;
    }

    .banner-section .content-box p {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .banner-section .content-box h1 {
        font-size: 2rem;
    }

    .banner-section .content-box .badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   SERVICES SECTION tfi STYLING
   ======================================== */

.serivce-section {
    background: var(--tfi-bg-secondary);
    position: relative;
}

.serivce-section .section-title h2 {
    color: var(--tfi-text-primary);
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.serivce-section .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--tfi-gradient-primary);
    margin: 1.5rem auto 3rem;
    border-radius: 2px;
}

.service-box {
    background: var(--tfi-bg-primary);
    border: 1px solid var(--tfi-border-light);
    border-radius: 20px;
    box-shadow: var(--tfi-shadow-sm);
    transition: all 0.4s ease;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--tfi-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--tfi-shadow-xl);
    border-color: var(--tfi-primary);
}

.service-icon {
    margin-bottom: 2rem;
    position: relative;
}

.service-icon .webexflaticon {
    font-size: 4rem;
    color: var(--tfi-primary);
    background: var(--tfi-primary-ultra-light);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon .webexflaticon {
    background: var(--tfi-primary);
    color: white;
    transform: scale(1.1);
}

.service-content .title h3 {
    color: var(--tfi-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-content .para p {
    color: var(--tfi-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .serivce-section .section-title h2 {
        font-size: 2rem;
    }

    .service-box {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .service-icon .webexflaticon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}

/* ========================================
   CONTENT SECTIONS ENHANCED STYLING
   ======================================== */

/* Section Titles Global */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--tfi-text-primary);
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--tfi-gradient-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* How It Works Section */
.how-it-works-step {
    background: var(--tfi-bg-primary);
    border: 2px solid var(--tfi-border-light);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
}

.how-it-works-step::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--tfi-text-light);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.how-it-works-step:hover::before {
    opacity: 1;
}

.how-it-works-step:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--tfi-shadow-lg);
}

.step-number {
    background: var(--tfi-gradient-primary) !important;
    color: white !important;
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2rem !important;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--tfi-shadow-md);
    position: relative;
}

.step-number::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--tfi-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.how-it-works-step:hover .step-number::after {
    opacity: 0.3;
    transform: scale(1);
}

.step-title {
    color: var(--tfi-text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--tfi-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

/* Feature Sections */
.feature-section {
    padding: 5rem 0;
}

.feature-section .content-area h2 {
    color: var(--tfi-text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.feature-section .content-area p {
    color: var(--tfi-text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.feature-list li i {
    background: var(--tfi-primary-ultra-light);
    color: var(--tfi-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.feature-list li span {
    color: var(--tfi-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Image Enhancements */
.feature-image {
    position: relative;
}

.feature-image img {
    border-radius: 20px;
    box-shadow: var(--tfi-shadow-lg);
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.02);
}

.feature-image::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--tfi-gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

/* CTA Section Enhanced */
.cta-section {
    background: var(--tfi-gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 70%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .section-title h2 {
        font-size: 2.25rem;
    }

    .feature-section .content-area h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 1.875rem;
    }

    .how-it-works-step {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem !important;
    }

    .feature-section .content-area h2 {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

.footer-main-area {
    background: var(--tfi-secondary-dark);
    color: var(--tfi-text-white);
}

.footer-widget h3,
.footer-widget .widget-title {
    color: var(--tfi-text-white);
    margin-bottom: 1.5rem;
}

.footer-widget-list a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-widget-list a:hover,
.footer-link:hover {
    color: var(--tfi-text-white) !important;
    padding-left: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

.footer-bottom-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--tfi-secondary-dark);
}

/* ========================================
   BUTTONS tfi STYLING
   ======================================== */

.cs-btn-one {
    background: var(--tfi-bg-primary);
    /* color: var(--tfi-primary) !important; */
    box-shadow: var(--tfi-shadow-md);
    transition: all 0.3s ease;
}

.cs-btn-one:hover {
    background: var(--tfi-bg-primary);
    color: var(--tfi-primary);
    transform: translateY(-2px);
    box-shadow: var(--tfi-shadow-lg);
}

.cs-btn-one.btn-gradient-color {
    background: var(--tfi-gradient-primary) !important;
}

.cs-btn-one.btn-gradient-color:hover {
    background: var(--tfi-gradient-hero) !important;
    box-shadow: var(--tfi-shadow-xl);
    color: var(--tfi-text-white);
}

.cs-btn-one.btn-border {
    border: 2px solid var(--tfi-primary);
    background: transparent;
    color: var(--tfi-primary);
}

.cs-btn-one.btn-border:hover {
    background: var(--tfi-primary);
    color: var(--tfi-text-white);
}

/* ========================================
   FORMS tfi STYLING
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    border: 2px solid var(--tfi-border-medium);
    background: var(--tfi-bg-primary);
    color: var(--tfi-text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--tfi-primary);
    box-shadow: 0 0 0 3px var(--tfi-primary-ultra-light);
    outline: none;
}

/* ========================================
   CARDS & COMPONENTS tfi STYLING
   ======================================== */

.card,
.widget {
    /* border-radius: 12px; */
    box-shadow: var(--tfi-shadow-sm);
}

.card:hover {
    box-shadow: var(--tfi-shadow-md);
}

/* Accordion */
.accordion .accordion-item .accordion-header.active .title {
    background: var(--tfi-gradient-primary) !important;
    color: var(--tfi-text-white);
}

.accordion .accordion-item .accordion-header .title {
    background: var(--tfi-bg-secondary);
    color: var(--tfi-text-primary);
}

.accordion .accordion-item .accordion-header span {
    background: var(--tfi-gradient-primary) !important;
}

.accordion .accordion-item .accordion-body {
    background: var(--tfi-bg-secondary);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
    .main-menu {
        background: var(--tfi-bg-primary);
        box-shadow: var(--tfi-shadow-lg);
        border: 1px solid var(--tfi-border-light);
    }

    .sub-menu {
        background: var(--tfi-bg-secondary);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.border-tfi {
    border-color: var(--tfi-border-medium) !important;
}

.border-tfi-primary {
    border-color: var(--tfi-primary) !important;
}

.shadow-tfi-sm {
    box-shadow: var(--tfi-shadow-sm) !important;
}

.shadow-tfi-md {
    box-shadow: var(--tfi-shadow-md) !important;
}

.shadow-tfi-lg {
    box-shadow: var(--tfi-shadow-lg) !important;
}

/* Spacing Utilities */
.section-padding {
    padding: 2rem 0;
}

.section-padding-lg {
    padding: 6rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

/* Typography Enhancements */
.display-1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--tfi-text-secondary);
}

.text-gradient {
    background: var(--tfi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Spacing */
.content-spacing {
    margin-bottom: 2rem;
}

.content-spacing-lg {
    margin-bottom: 3rem;
}

/* Button Enhancements */
.btn-tfi {
    background: var(--tfi-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--tfi-shadow-md);
}

.btn-tfi:hover {
    background: var(--tfi-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--tfi-shadow-lg);
    color: white;
}

.btn-tfi-outline {
    background: transparent;
    color: var(--tfi-primary);
    border: 2px solid var(--tfi-primary);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-tfi-outline:hover {
    background: var(--tfi-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--tfi-shadow-md);
}

/* Card Enhancements */
.card-tfi {
    background: var(--tfi-bg-primary);
    border: 1px solid var(--tfi-border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--tfi-shadow-sm);
    transition: all 0.3s ease;
}

.card-tfi:hover {
    transform: translateY(-5px);
    box-shadow: var(--tfi-shadow-lg);
}

/* List Enhancements */
.list-tfi {
    list-style: none;
    padding: 0;
}

.list-tfi li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--tfi-border-light);
    display: flex;
    align-items: center;
}

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

.list-tfi li::before {
    content: "✓";
    background: var(--tfi-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Responsive Spacing */
@media (max-width: 991px) {
    .section-padding {
        padding: 4rem 0;
    }

    .section-padding-lg {
        padding: 5rem 0;
    }

    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }

    .section-padding-lg {
        padding: 4rem 0;
    }

    .display-1 {
        font-size: 2rem;
    }

    .display-2 {
        font-size: 1.875rem;
    }

    .btn-tfi,
    .btn-tfi-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .card-tfi {
        padding: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS & INTERACTIONS
   ======================================== */

.tfi-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tfi-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--tfi-shadow-lg);
}

.tfi-fade-in {
    animation: tfiFadeIn 0.6s ease-out;
}

@keyframes tfiFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.tfi-loading {
    position: relative;
    overflow: hidden;
}

.tfi-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--tfi-primary-ultra-light),
        transparent
    );
    animation: tfiShimmer 1.5s infinite;
}

@keyframes tfiShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    :root {
        --tfi-primary: #000000;
        --tfi-text-primary: #000000;
        --tfi-bg-primary: #ffffff;
    }
}

/* ========================================
   RTL (Arabic) SUPPORT
   ======================================== */

[dir="rtl"] .language-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .main-menu nav ul li {
    float: right;
}

[dir="rtl"] .sub-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .service-icon {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .feature-list li {
    padding-right: 0;
    padding-left: 2rem;
}

[dir="rtl"] .feature-list li i {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-widget-list li a:hover {
    padding-left: 0;
    padding-right: 8px;
}

[dir="rtl"] .cs-btn-one i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .logo-text {
    text-align: right;
}

[dir="rtl"] .mobile-menu-toggle {
    left: 15px;
    right: auto;
}

[dir="rtl"] .header-navigation-area .main-menu {
    float: left;
}

[dir="rtl"] .navbar-brand {
    float: right !important;
}

/* Ensure gradient works in RTL */
[dir="rtl"] .text-gradient-color,
[dir="rtl"] .bg-gradient-color {
    background: var(--tfi-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* =====================================================
   RESPONSIVE TYPOGRAPHY FIXES (TFI Website)
   ===================================================== */

/* Base font sizing for readability */
body {
    font-size: 1rem; /* ~16px */
    line-height: 1.6;
}

/* Headings general reset */
h1,
h2,
h3,
h4,
h5 {
    font-family: inherit;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Hero / Page Titles */
.page-title-section .title {
    font-size: 2.75rem; /* desktop default */
    font-weight: 800;
}

/* Section titles and content */
h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Paragraphs and list text */
p,
li {
    font-size: 1rem;
    line-height: 1.7;
    color: #1f2937;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */

/* Tablets (≤991px) */
@media (max-width: 991px) {
    .page-title-section .title {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p,
    li {
        font-size: 0.9375rem; /* ~15px */
    }
}

/* Mobiles (≤767px) */
@media (max-width: 767px) {
    .page-title-section .title {
        font-size: 1.875rem; /* 30px */
    }

    h3 {
        font-size: 1.375rem; /* 22px */
    }

    h4 {
        font-size: 1.125rem; /* 18px */
    }

    p,
    li {
        font-size: 0.875rem; /* 14px */
        line-height: 1.6;
    }

    .faq-block h4,
    .service-details h4 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.875rem;
    }

    /* Sidebar titles smaller for mobile */
    .col-lg-4 h5 {
        font-size: 1rem;
    }
}

/* Small Mobiles (≤480px) */
@media (max-width: 480px) {
    .page-title-section .title {
        font-size: 1.625rem; /* 26px */
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1rem;
    }

    p,
    li {
        font-size: 0.8125rem; /* 13px */
    }
}

[lang="ar"] p,
[lang="ar"] li {
    line-height: 1.5;
}

/* ==============================================
   TFI NAVBAR — CLEAN, STICKY, RESPONSIVE
   ============================================== */

.tfi-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

/* --- Base Navbar --- */
.tfi-navbar .navbar {
    padding: 1rem 1.25rem; /* increased height for desktop */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Gradient Brand --- */
.text-gradient {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Nav Links --- */
.navbar-nav .nav-item {
    margin: 0 0.75rem;
}

.navbar-nav .nav-link {
    color: #1f2937;
    font-weight: 500;
    padding: 10px 12px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: #6b47f5;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    color: #1f2937;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #6b47f5;
}

/* --- Login Button --- */
.btn-tfi-login {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.btn-tfi-login:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* --- Language Switch Button --- */
.lang-switch {
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    /* border: 2px solid #e5e7eb; */
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    border-color: #6b47f5;
    color: #6b47f5;
}

/* --- Navbar Action Area (Login + Language) --- */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =======================================
   RTL ADJUSTMENTS
   ======================================= */

[dir="rtl"] .navbar-nav .nav-link {
    text-align: right;
}

[dir="rtl"] .navbar-actions {
    flex-direction: row-reverse;
    gap: 0.75rem;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* =======================================
   MOBILE VIEW ADJUSTMENTS
   ======================================= */
@media (max-width: 991px) {
    /* Sticky still works on mobile */
    .tfi-navbar .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
        align-items: stretch;
    }

    .navbar-nav .nav-item {
        margin: 8px 0;
        text-align: center;
    }

    /* Divider inside mobile collapse */
    .nav-divider {
        border-top: 1px solid #e5e7eb;
        width: 100%;
        margin: 10px 0;
    }

    /* Full-width login button */
    .btn-tfi-login {
        width: 100%;
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Full-width language switch */
    .lang-switch {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px 20px;
        font-weight: 600;
    }

    [dir="rtl"] .navbar-nav .nav-item {
        text-align: center;
    }

    [dir="rtl"] .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        text-align: center;
    }

    /* Center right-section actions in mobile collapse */
    .navbar-actions {
        justify-content: center;
        margin-top: 10px;
    }
}

.table-tfi {
    background: var(--tfi-primary, #6b47f5);
    color: #fff;
}

/* Ensure white text stays visible on gradient backgrounds */
.bg-gradient-color,
.bg-gradient-hero {
    color: var(--tfi-text-white) !important;
}

.bg-gradient-color h1,
.bg-gradient-color h2,
.bg-gradient-color h3,
.bg-gradient-color h4,
.bg-gradient-color h5,
.bg-gradient-color p,
.bg-gradient-color li,
.bg-gradient-color a,
.bg-gradient-hero h1,
.bg-gradient-hero h2,
.bg-gradient-hero h3,
.bg-gradient-hero h4,
.bg-gradient-hero h5,
.bg-gradient-hero p,
.bg-gradient-hero li,
.bg-gradient-hero a {
    color: var(--tfi-text-white) !important;
}

.bg-gradient-color a.btn-light,
.bg-gradient-hero a.btn-light {
    color: var(--tfi-primary) !important;
    background-color: var(--tfi-text-white) !important;
    border: none;
}

.card-tfi p {
    color: var(--tfi-text-secondary);
    line-height: 1.7;
}
.nav-item:hover {
    background: var(--tfi-primary-ultra-light);
    color: var(--tfi-primary);
}

/* service form section */

.step-indicator .badge {
    width: 35px;
    height: 35px;
    line-height: 24px;
    font-size: 16px;
}
@media (max-width: 576px) {
    .step-indicator .badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .card-body {
        padding: 1rem;
    }
}
.list-group-item.active strong {
    color: #fff !important;
}
