/* Modern Lending Section Redesign - Dashboard Layout */
.lending-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.lending-section-header h2 {
    font-weight: 800;
    max-width: 900px;
    line-height: 1.3;
    margin: 0 auto;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-family: var(--font-family-sora);
    color: #111827;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
}

.lending-section-header p {
    color: #4b5563;
    margin: 0 auto;
    font-size: 1.15rem;
    max-width: 700px;
}

.lending-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 992px) {
    .lending-cards-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Base Card Container */
.lending-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Image Header with Overlay */
.card-top-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lending-card:hover .card-top-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
}

.card-overlay h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-sora);
}

.card-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Accordion/Content Items */
.card-white-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item-custom {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-left: 5px solid transparent;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item-custom.active {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-left: 5px solid;
}

/* Active Indicator Borders */
.rbi-card .accordion-item-custom.active {
    border-left: 5px solid #0a66c2;
}

.sebi-card .accordion-item-custom {
    border-left: 5px solid #004d2a;
}

.accordion-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

.accordion-header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.accordion-header-content-wrapper span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    font-family: var(--font-family-sora);
}

.accordion-icon-box {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-item-custom.active .accordion-icon-box {
    background: #0a66c2;
    color: #ffffff;
}

.sebi-card .accordion-icon-box {
    background: #004d2a;
    color: white;
}

.toggle-icon {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.accordion-item-custom.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content-custom {
    padding: 0 1.5rem 1.5rem 5.5rem;
    /* Aligned with text after icon */
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
    padding-bottom: 0;
}

.accordion-item-custom.active .accordion-content-custom,
.static-open .accordion-content-custom {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 2rem;
}

/* Tags/Pills */
.lending-tag {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    margin-top: 10px;
}

.lending-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #003061;
    border-radius: 50%;
}

.sebi-card .lending-tag::before {
    background: #5d4915;
}

@media (max-width: 768px) {
    .card-top-image {
        height: 250px;
    }

    .card-overlay {
        padding: 1.5rem;
    }

    .card-overlay h3 {
        font-size: 1.6rem;
    }

    .accordion-content-custom {
        padding-left: 1.5rem;
    }

    .accordion-header-content-wrapper {
        gap: 0.8rem;
    }
}