/* ========================================
   MTD PAGE SPECIFIC STYLES - SCOPED TO .mtd-page
   All styles are scoped to prevent conflicts with other pages
   ======================================== */

/* Ensure all global button styles work properly */
.mtd-page .btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1E5CAA 0%, #3b82f6 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mtd-page .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(30, 92, 170, 0.4);
}

/* Base button styles - ensure consistency with global styles */
.mtd-page .btn-premium-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1E5CAA;
    background: transparent;
    border: 2px solid #1E5CAA;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mtd-page .btn-premium-outline:hover {
    background: #1E5CAA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(30, 92, 170, 0.3);
}

/* Hero Section */
.mtd-page .mtd-hero-section {
    padding-top: clamp(5rem, 10vh, 7rem);
    padding-bottom: clamp(3rem, 6vh, 4rem);
    padding-left: 0;
    padding-right: 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: visible !important;
}

.mtd-page .mtd-hero-section .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    z-index: 10 !important;
}

.mtd-page .mtd-hero-section .row {
    gap: 4rem;
}

.mtd-page .mtd-hero-section .col-lg-5 {
    position: relative !important;
    z-index: 10 !important;
}

/* M Logo Background Behind Text (Left Column) - Match FBR Page */
.mtd-page .mtd-hero-section .col-lg-5::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('/svg-m-logo-01.svg') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 500px auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.12 !important;
}

.mtd-page .mtd-hero-section .col-lg-5 * {
    position: relative !important;
    z-index: 11 !important;
}

.mtd-page .mtd-hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative !important;
    z-index: 3 !important;
    background-color: transparent !important;
}

.mtd-page .mtd-hero-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mtd-page .mtd-hero-heading .mtd-accent {
    color: #1E5CAA;
    font-weight: 700;
}

.mtd-page .mtd-hero-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 32rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mtd-page .mtd-hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mtd-page .mtd-hero-image-wrapper {
    position: relative;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

.mtd-page .mtd-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    text-align: right;
    display: block;
    margin-left: auto;
    margin-right: 0;
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mtd-page .mtd-hero-svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* SVG Background Elements - Match FBR exactly */
.mtd-page .hero-svg-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.mtd-page .svg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.mtd-page .svg-blob-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
}

/* Features Section */
.mtd-page .features-carousel-section {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: #ffffff;
    position: relative;
}

.mtd-page .features-carousel-section .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.mtd-page .features-section-header {
    margin-bottom: 3rem;
}

.mtd-page .features-section-label {
    color: #1E5CAA;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.mtd-page .features-section-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mtd-page .features-section-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.mtd-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
}

/* Benefit Cards */
.mtd-page .benefit-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mtd-page .benefit-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mtd-page .benefit-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #bfdbfe;
    z-index: 2;
}

.mtd-page .benefit-card-modern:hover::before {
    transform: scaleX(1);
}

.mtd-page .benefit-icon-wrapper {
    width: clamp(3.5rem, 5vw, 4rem);
    height: clamp(3.5rem, 5vw, 4rem);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mtd-page .benefit-icon {
    width: clamp(1.75rem, 2.5vw, 2rem);
    height: clamp(1.75rem, 2.5vw, 2rem);
    color: #1E5CAA;
    transition: transform 0.3s ease;
}

.mtd-page .benefit-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.mtd-page .benefit-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Icon Background Gradients - Scoped to MTD page */
.mtd-page .icon-bg-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.mtd-page .icon-bg-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.mtd-page .icon-bg-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.mtd-page .icon-bg-purple {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.mtd-page .icon-bg-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.mtd-page .icon-bg-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* MTD Compliance Sections - Match FBR Section Style */
.mtd-page .mtd-compliance-section {
    padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem);
    background: #ffffff !important;
    overflow: visible;
    background-image: url('/lines-bg-header.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto;
    position: relative;
}

.mtd-page .mtd-compliance-section .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 3rem) !important;
    padding-right: clamp(1rem, 3vw, 3rem) !important;
}

/* Use CSS Grid like FBR section for proper layout */
.mtd-page .mtd-compliance-section .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: clamp(2rem, 4vw, 4rem) !important;
    align-items: center !important;
}

/* Content side - Reset any order from other CSS files */
.mtd-page .mtd-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: unset !important;
}

/* Image side - Reset any order from other CSS files */
.mtd-page .mtd-image {
    display: flex;
    align-items: center;
    justify-content: center;
    order: unset !important;
}

.mtd-page .mtd-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.mtd-page .mtd-feature-item {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
}

.mtd-page .mtd-feature-icon {
    width: 3rem !important;
    height: 3rem !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-radius: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mtd-page .mtd-feature-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #1E5CAA !important;
}

.mtd-page .mtd-feature-content {
    flex: 1 !important;
}

.mtd-page .mtd-feature-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-size: clamp(1rem, 1.5vw, 1.125rem) !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.mtd-page .mtd-feature-description {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.875rem, 1.3vw, 0.9375rem) !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.mtd-page .mtd-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mtd-page .mtd-heading .mtd-accent {
    color: #1E5CAA;
}

.mtd-page .mtd-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mtd-page .mtd-step-number {
    width: clamp(3rem, 5vw, 3.5rem);
    height: clamp(3rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    color: #1E5CAA;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(30, 92, 170, 0.1);
}

.mtd-page .mtd-image-wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mtd-page .mtd-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mtd-page .mtd-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments - Match FBR section */
@media (min-width: 768px) {
    .mtd-page .mtd-compliance-section .row {
        grid-template-columns: 1fr 1fr !important;
        display: grid !important;
    }
    
    .mtd-page .mtd-content {
        order: unset !important;
    }
    
    .mtd-page .mtd-image {
        order: unset !important;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .mtd-page .mtd-hero-section .col-lg-5::before {
        background-size: 400px auto !important;
    }
    
    .mtd-page .mtd-compliance-section .row {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem !important;
    }
    
    .mtd-page .mtd-compliance-section {
        padding: 4rem 30px !important;
    }
    
    .mtd-page .mtd-compliance-section .container-fluid {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    .mtd-page .mtd-heading {
        font-size: 2rem !important;
    }
    
    .mtd-page .mtd-image-wrapper {
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .mtd-page .mtd-hero-section {
        min-height: auto !important;
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mtd-page .mtd-hero-section .col-lg-5::before {
        background-size: 300px auto !important;
        opacity: 0.08 !important;
    }
    
    .mtd-page .mtd-compliance-section .row {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .mtd-page .mtd-content {
        order: unset !important;
    }
    
    .mtd-page .mtd-image {
        order: unset !important;
    }
    
    .mtd-page .mtd-compliance-section {
        padding: 4rem 20px !important;
    }
    
    .mtd-page .mtd-compliance-section .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .mtd-page .mtd-heading {
        font-size: clamp(1.75rem, 5vw, 2rem) !important;
    }
    
    .mtd-page .mtd-image-wrapper {
        max-width: 100% !important;
    }
    
    .mtd-page .mtd-hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mtd-page .mtd-hero-buttons .btn-premium,
    .mtd-page .mtd-hero-buttons .btn-premium-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Testimonials Section */
.mtd-page .pm-testimonials-section {
    background: #ffffff;
    padding: 4rem 0;
}

.mtd-page .testimonial-card-new {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.3s ease;
}

.mtd-page .testimonial-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.mtd-page .testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mtd-page .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.mtd-page .testimonial-info {
    flex: 1;
}

.mtd-page .testimonial-info strong {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.mtd-page .testimonial-info span {
    color: #64748b;
    font-size: 0.875rem;
}

.mtd-page .testimonial-stars-new {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.mtd-page .testimonial-stars-new svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mtd-page .testimonial-quote {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* CTA Section */
.mtd-page .pm-cta-section {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: #f8fafc;
}

.mtd-page .pm-cta-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.mtd-page .pm-cta-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.mtd-page .pm-cta-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Responsive adjustments for testimonials and CTA */
@media (max-width: 768px) {
    .mtd-page .pm-testimonials-section {
        padding: clamp(3rem, 6vh, 4rem) 0 !important;
    }
    
    .mtd-page .pm-cta-section {
        padding: clamp(3rem, 6vh, 4rem) 0 !important;
    }
    
    .mtd-page .pm-cta-card {
        padding: 2rem;
    }
    
    .mtd-page .testimonial-card-new {
        padding: 1.5rem;
    }
}
