/* One Stop Payment Solution Section Styles */
.payment-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 80px 0;
}

@media (max-width: 1199.98px) {
    .payment-bg {
        padding: 60px 40px;
    }
}

/* Main container styling */
.payment-bg .container {
    position: relative;
    z-index: 2;
}

/* Header wrapper */
.payment-header-wrapper {
    /* max-width: 850px;
    margin-bottom: 80px; */
    justify-items: anchor-center;
}

@media (max-width: 991.98px) {
    .payment-header-wrapper {
        /* margin-bottom: 60px; */
        justify-items: anchor-center;
    }
}

@media (max-width: 767.98px) {
    .payment-header-wrapper {
        /* margin-bottom: 50px;
        text-align: center; */
        justify-items: anchor-center;
    }
}

/* Typography */
.payment-solution-title {
    font-family: 'Gilroy-semibold';
    font-weight: 500;
    font-size: 45px;
    line-height: 46.5px;
    color: #3F405B;
    margin-bottom: 10px;
}

@media (min-width: 1200px) {
    .payment-solution-title {
        font-size: 45px;
        line-height: 46.5px;
    }
}

.payment-solution-subtitle {
    font-family: 'Gilroy-light', sans-serif !important;
    font-size: 20px;
    line-height: 25.2px;
    color: #6c757d;
    margin-bottom: 52px;
    text-align: justify;
}

@media (min-width: 1200px) {
    .payment-solution-subtitle {
        font-size: 20px;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .payment-solution-subtitle {
        margin-bottom: 80px;
    }
}

/* Accent color */
.text-accent-orange {
    color: #FFAF30;
}

/* Feature Cards Grid */
.payment-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
}

@media (min-width: 576px) {
    .payment-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 28px;
    }
}

@media (min-width: 992px) {
    .payment-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1300px) {
    .payment-features-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: -webkit-center;
    }
    .payment-feature-description {
        text-align: center;
    }
    
}

/* Individual Feature Card */
.payment-feature-card {
    min-width: 292px;
    max-width: 292px;
    margin: 0 auto;
    justify-items: center;
    text-align-last: center;
}

.payment-feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.payment-feature-title {
    font-family: 'Gilroy-SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3F405B;
    font-size: 24px;
    line-height: 28.8px;
    font-weight: 500;
    margin-top: 24px;
    margin-bottom: 18px;
}

.payment-feature-description {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #6c757d;
    font-weight: 400;
    font-size: 15px;
    text-align: justify;
    line-height: 22.5px;
    margin: 0;
}

/* Hover Effects */
.payment-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-feature-card:hover {
    transform: translateY(-5px);
}

.payment-feature-card:hover .payment-feature-icon-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767.98px) {
    .payment-feature-title {
        font-size: 22px;
        line-height: 26px;
    }
    
    .payment-feature-description {
        font-size: 14px;
        line-height: 21px;
    }
}

/* Responsive adjustments */
@media (min-width: 576px) and (max-width: 767.98px) {
    .payment-bg {
        padding: 60px 40px;
    }
    
    .payment-solution-title {
        font-size: 27px;
        line-height: 32px;
        padding: 0 15px;
        text-align: center;
    }
    
    .payment-solution-subtitle {
        font-size: 14px;
        padding: 0 15px;
        text-align: center;
        margin-bottom: 40px;
    }
    .payment-feature-description {
        text-align: center;
    }
    
    .payment-feature-card {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
        justify-items: center;
    }
    .payment-feature-card .relative {
        justify-items: center;
    }
    
    .payment-features-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .payment-bg {
        padding: 35px 10px;
    }
    
    .payment-solution-title {
        font-size: 31px;
        line-height: 32px;
        padding: 0 15px;
        text-align: center;
    }
    
    .payment-solution-subtitle {
        font-size: 14px;
        padding: 0 15px;
        text-align: center;
        margin-bottom: 40px;
    }
    .payment-feature-description {
        text-align: center;
    }
    
    .payment-feature-card {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
        justify-items: center;
    }
    .payment-feature-card .relative {
        justify-items: center;
    }
    
    .payment-features-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .payment-bg {
        padding: 30px 10px !important;
    }
    .payment-feature-description {
        font-size: 14px;
        line-height: 21px;
        text-align: center;
        font-family: 'Gilroy-Light';
    }
}

/* Dark theme support */
body.dark .payment-bg {
    background: linear-gradient(135deg, #3F405B 0%, #111827 100%);
}

body.dark .payment-solution-title {
    color: #f9fafb;
}

body.dark .payment-solution-subtitle {
    color: #d1d5db;
}

body.dark .payment-feature-title {
    color: #f9fafb;
}

body.dark .payment-feature-description {
    color: #d1d5db;
}

body.dark .payment-feature-icon-wrapper {
    background: #374151;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark .payment-feature-card:hover .payment-feature-icon-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Dark theme icon colors */
body.dark .payment-feature-icon-wrapper svg path[fill="#635BFE"] {
    fill: #818CF8 !important;
}

body.dark .payment-feature-icon-wrapper svg path[fill="#141414"] {
    fill: #F3F4F6 !important;
}

body.dark .payment-feature-icon-wrapper svg path[fill="#000000"] {
    fill: #F9FAFB !important;
}