/* 
 * Modern Design System for MyFileKit Fin
 * Green Financial Theme
 */

:root {
    /* These gradients and derived colors depend on the dynamic primary/accent vars.
       Updated dynamically via CSS custom property fallback chain. */
    --mfk-premium-gradient: var(--theme-gradient-bg);
    --mfk-gold-gradient: linear-gradient(135deg, var(--secondary-color) 0%, color-mix(in srgb, var(--secondary-color) 60%, white) 100%);
    --mfk-glass-bg: rgba(255, 255, 255, 0.05);
    --mfk-glass-border: rgba(255, 255, 255, 0.10);
    --mfk-radius-lg: 20px;
    --mfk-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.07);
}

/* Global Section Styles */
.section-pad {
    padding: 100px 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Hero Slider Styles */
.mfk-hero-section {
    position: relative;
    overflow: hidden;
}
.mfk-hero-swiper {
    width: 100%;
    height: 550px; /* Fixed height for consistency */
}
.mfk-slide {
    position: relative;
    display: flex !important;
    align-items: center;
    height: 100%;
}

/* CLASSIC STYLE */
.mfk-hero-style-classic .mfk-slide {
    background-size: cover;
    background-position: center center;
    background-color: var(--primary-color);
}
.mfk-hero-style-classic .mfk-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}
.mfk-hero-style-classic .mfk-slide-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
}
.mfk-hero-style-classic .mfk-slide-subtitle {
    color: rgba(255,255,255,0.9);
}

/* SPLIT STYLE (Design from a.html) */
.mfk-hero-style-split {
    padding: 0; /* Remove padding to let swiper define height */
    background: #f6f6f6;
}
.mfk-hero-style-split.mfk-hero-width-boxed .mfk-hero-swiper {
    max-width: 1200px;
    margin: 40px auto;
    background: #eef1f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.mfk-hero-style-split.mfk-hero-width-full .mfk-hero-swiper {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    background: #eef1f5;
}
.mfk-hero-style-split .mfk-hero-swiper {
    height: 550px !important;
}
.mfk-hero-style-split .mfk-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100% !important;
}
.mfk-hero-style-split .mfk-hero-image-wrap {
    flex: 0 0 50%;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mfk-hero-style-split .mfk-hero-person {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* As requested by user */
    display: block;
}
.mfk-hero-style-split .mfk-slide-content {
    flex: 1;
    padding: 0;
    text-align: left;
}
.mfk-hero-style-split .mfk-slide-title {
    color: #222;
    font-size: clamp(2rem, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.mfk-hero-style-split .mfk-slide-subtitle {
    margin-top: 15px;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 1;
}
.mfk-hero-style-split .mfk-btn-primary {
    background: var(--primary-color); 
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    transition: all 0.3s ease;
}
.mfk-hero-style-split .mfk-btn-primary:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.mfk-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    color: #888;
    z-index: 10;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mfk-slide-nav:hover {
    background: var(--secondary-color, #ff7900);
    color: #fff;
}
.mfk-hero-style-classic .mfk-slide-nav {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.swiper-button-prev.mfk-slide-nav { left: 20px; }
.swiper-button-next.mfk-slide-nav { right: 20px; }
.mfk-slide-nav::after { display: none; }

.mfk-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
}
.mfk-slide-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
}
.mfk-slide-dots .swiper-pagination-bullet-active {
    background: var(--secondary-color, #ff7900);
}

@media (max-width: 900px) {
    .mfk-hero-style-split .mfk-slide-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .mfk-hero-style-split .mfk-hero-image-wrap {
        width: 100%;
        order: -1;
    }
    .mfk-hero-style-split .mfk-slide-content {
        text-align: center;
    }
    .mfk-hero-style-split .mfk-slide-title {
        font-size: 28px;
    }
}

/* Stats Bar Modern Look */
/* Stats Bar - Cool UI */
.mfk-stats {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--primary-color, #1a3a1a);
    /* Deep base */
}

.mfk-stats-glass-bg {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 163, 93, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(201, 163, 93, 0.05) 0%, transparent 40%);
    filter: blur(80px);
    z-index: 1;
}

.mfk-stats-inner {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--mfk-radius-lg);
    padding: 60px 40px;
}

.mfk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.mfk-stat-item {
    text-align: center;
    position: relative;
}

.mfk-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    background: var(--mfk-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.mfk-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mfk-stat-dot {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: rgba(201, 163, 93, 0.3);
    border-radius: 2px;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .mfk-stat-number {
        -webkit-text-fill-color: var(--accent-color, #4caf50);
    }
}

/* Service Item Modernize */
.mfk-service-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    background: #fff;
    padding: 50px;
    border-radius: var(--mfk-radius-lg);
    box-shadow: var(--mfk-shadow-soft);
    margin-bottom: 100px;
    transition: transform 0.3s ease;
}

.mfk-service-item:hover {
    transform: translateY(-10px);
}

.mfk-service-item:nth-child(even) {
    direction: rtl;
}

.mfk-service-item:nth-child(even) .mfk-service-content {
    direction: ltr;
}

.mfk-service-media {
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    min-height: 300px;
}

.mfk-benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.mfk-benefits-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 500;
}

.mfk-benefits-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color, #4caf50);
    font-weight: 800;
}

/* Feature Cards */
.mfk-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mfk-feature-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--mfk-radius-lg);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.mfk-feature-card:hover {
    border-color: var(--accent-color, #4caf50);
    box-shadow: 0 15px 40px rgba(201, 163, 93, 0.1);
}

.mfk-feature-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 25px;
    color: var(--accent-color, #4caf50);
}

/* Footer Modern Header */
.footer-top {
    background: color-mix(in srgb, var(--primary-color, #1a3a1a) 80%, black);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 60px;
}

.footer-col-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color, #4caf50);
}

.footer-menu-list {
    list-style: none;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 15px;
}

.footer-menu-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu-list a:hover {
    color: var(--accent-color, #4caf50);
}

/* CTA Band */
#cta-band {
    background: var(--mfk-premium-gradient);
    color: #fff;
    padding: 80px 60px;
    border-radius: var(--mfk-radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

#cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
}

#cta-band h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

#cta-band p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

#cta-band .btn-white {
    background: #fff;
    color: var(--primary-color, #1a3a1a);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

#cta-band .btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.mfk-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mfk-contact-item {
    background: #fff;
    padding: 40px;
    border-radius: var(--mfk-radius-lg);
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}

.mfk-contact-item:hover {
    border-color: var(--accent-color, #4caf50);
    transform: translateY(-5px);
}

.mfk-contact-item h4 {
    color: var(--primary-color, #1a3a1a);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mfk-contact-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
}

.mfk-contact-item a {
    color: var(--accent-color, #4caf50);
    text-decoration: none;
    font-weight: 600;
}

/* Services & Features Dynamic Fix */
.mfk-services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.mfk-icon-char {
    font-size: 2.5rem;
    line-height: 1;
}

.mfk-service-media img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mfk-radius-md);
    box-shadow: var(--mfk-shadow-md);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .mfk-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .mfk-stat-dot {
        display: none;
    }

    .mfk-service-item {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .mfk-reverse {
        direction: ltr !important;
    }

    #cta-band {
        padding: 50px 30px;
    }
}

@media (max-width: 575px) {
    .mfk-stats-grid {
        grid-template-columns: 1fr;
    }

    .mfk-stat-number {
        font-size: 2.5rem;
    }
}