/* New Styles for Lending Network Section */
.lending-section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.lending-section-header h2 {
    font-weight: 800;
    max-width: 900px;
    line-height: 1.6;
    margin: 0 auto;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Sora', sans-serif;
}

.lending-section-header p {
    color: #555;
    margin: 0 auto;
    font-size: 1.1rem;
}

.lending-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mt-70px {
    margin-top: 100px !important;
}

.card-icon-50mx {
    width: 50px;
    height: 50px;
}

@media (min-width: 992px) {
    .lending-cards-container {
        flex-direction: row;
    }
}

.lending-card {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    /* Gradient Background - Greenish Blue Theme */
    background: linear-gradient(180deg, #21D891 0%, #52ABFF 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lending-card:hover {
    transform: translateY(-2px);
}

.card-top-image img {
    width: 100%;
    border-radius: 10px;
    height: 300px;
    object-fit: cover;
}

.card-header-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
}

.card-icon {
    background: white;
    border-radius: 50%;
    /* Circular */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg,
.card-icon i {
    width: 24px;
    height: 24px;
    color: #2DB5E9;
    /* Fallback Color */
}


.card-title-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Sora', sans-serif;
}

.card-title-block p {
    font-size: 0.9rem;
    margin: 5px 0 0;
    opacity: 0.95;
    line-height: 1.4;
    color: #f0faff;
}


.card-white-box {
    /* Remove the white background from the container, let it be transparent */
    background: transparent;
    padding: 0;
}

/* Accordion Styles - Separated Cards */
.accordion-item-custom {
    background: white;
    /* Individual card background */
    border-radius: 10px;
    /* Rounded corners */
    margin-bottom: 12px;
    /* Gap between items */
    border-bottom: none;
    /* Remove separator border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
    overflow: hidden;
    /* Ensure content doesn't overflow radius */
}

.accordion-item-custom.last-item {
    margin-bottom: 0;
}

.accordion-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 700;
    color: #333;
    transition: background 0.2s;
}

.accordion-header-custom:hover {
    background: #f9f9f9;
}

.accordion-header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.accordion-icon-circle {
    width: 36px;
    height: 36px;
    background: #F0F0F0;
    /* Light grey placeholder */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    flex-shrink: 0;
}



.accordion-content-custom {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px 0px 71px;
    /* Constant padding */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    background: white;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    /* Added padding transition */
}

.accordion-item-custom.active .accordion-content-custom {
    opacity: 1;
    /* max-height handled by JS to match content height */
    padding: 0 20px 20px 71px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .lending-section-header h2 {
        font-size: 1.7rem;
    }

    .lending-card {
        padding: 1.7rem;
    }

    .card-top-image img {
        height: 240px;
    }

    .accordion-header-custom {
        padding: 12px 15px;
    }

    .accordion-content-custom {
        padding: 0 15px 0px 15px;
        /* Reset left padding for mobile to save space */
    }

    .accordion-item-custom.active .accordion-content-custom {
        padding: 0 15px 15px 15px;
    }

    .accordion-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Animation for toggle icon */
.accordion-header-custom .toggle-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    color: #999;
}

.accordion-header-custom.active .toggle-icon {
    transform: rotate(180deg);
}

/* Core Strength Section Styles */
.core-strength-section {
    padding: 80px 0;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
}

.core-strength-card {
    background: linear-gradient(90deg, rgba(255, 217, 0, 0.10) 0%, rgba(255, 229, 83, 0.20) 100%);
    /* Cream/Yellowish background */
    border-radius: 20px;
    padding: 60px 30px 0 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    position: relative;
}

.core-content-wrapper {
    padding-bottom: 60px;
}

/* Typography */
.core-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #21D891 0%, #0988FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-family: var(--font-family-sora);
}

.core-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Social Proof */
.avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid white;
}

.stars i {
    font-size: 0.9rem;
    margin-right: 2px;
}

/* Feature Grid */
.feature-card {
    background: #389FFF;
    text-align: left;
    /* Blue background */
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 157, 248, 0.2);
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 300;
}

/* Image */
.core-person-img {
    height: 530px;
    width: auto;
    object-fit: cover;
    /* Optional: drop shadow for the person */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .core-strength-section {
        padding: 60px 0;
        text-align: center;
        /* Center align on mobile */
    }

    .core-strength-card {
        padding: 60px 30px 0 30px;
    }

    .core-content-wrapper {
        padding-bottom: 0px;
    }

    .core-heading {
        font-size: 2rem;
    }

    .core-description {
        margin: 0 auto 30px;
        max-width: 100%;
    }

    .social-proof {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .avatars-group {
        justify-content: center;
    }

    .rating-info.ms-3 {
        margin-left: 0 !important;
        text-align: center;
    }



    .core-image-wrapper {
        margin-top: 40px;
    }

    .core-person-img {
        max-height: 400px;
    }

    .rating-info small {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .core-heading {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card h4 {
        font-size: 1rem;
    }

    .core-person-img {
        max-height: 350px;
    }
}