/* ============================================
   Responsible Lending Section Styles
   ============================================ */

   .responsible-lending-section {
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.responsible-lending-hero {
    width: 100%;
    background-color: #0A0E27; /* Fallback until bg image loads */
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/6713e838-9ad8-4379-be3c-d21e13f477f9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 90px 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.responsible-lending-hero-content {
    max-width: 1200px;
    width: 100%;
}

.responsible-lending-hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    /* Fluid size so the ratio between title & description stays consistent */
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 600;
    color: #7594CC;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.responsible-lending-hero-tagline {
    font-family: 'Inter', sans-serif;
    /* Slightly smaller than title in a fluid way to preserve proportion on small screens */
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 400;
    color: #B0B5C8;
    line-height: 1.8;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Commitment Section */
.commitment-section {
    padding: 80px 90px;
    background: #ffffff;
}

.commitment-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.commitment-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 32px 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.commitment-heading::before,
.commitment-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Left line - use second image */
.commitment-heading::before {
    right: 100%;
    margin-right: 60px;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/21a1edc3-6f37-4bbb-81f2-82ac350417e9.png');
}

/* Right line - use first image */
.commitment-heading::after {
    left: 100%;
    margin-left: 60px;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/54f1e9f6-8f92-4e74-bd0e-e8067f731a9d.png');
}

.commitment-heading-part1 {
    font-size: clamp(30px, 4.5vw, 44px);    
    font-weight: 600;
    color: #A7BFE9;
}

.commitment-heading-part2 {
    font-weight: 800;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.commitment-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 400;
    line-height: 1.8;
    color: #787878;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.commitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.commitment-list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #6B6B7C;
    padding-left: 28px;
    position: relative;
}

.commitment-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/e1a2c3e7-73a9-494d-a266-1f314ca491bf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* What You Can Expect Section */
.expect-section {
    padding: 80px 90px;
    background: #F2F7FF;
}

.expect-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.expect-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    margin: 0 0 60px 0;
    text-align: center;
}

.expect-heading-part1 {
    font-weight: 600;
    color: #7594CC;
}

.expect-heading-part2 {
    font-weight: 800;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expect-content {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.expect-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.expect-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.expect-list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #6B6B7C;
    padding-left: 28px;
    position: relative;
}

.expect-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/e1a2c3e7-73a9-494d-a266-1f314ca491bf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.expect-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.expect-img {
    width: 600px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

/* What We Need Section */
.borrower-section {
    padding: 80px 90px;
    background: #ffffff;
}

.borrower-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.borrower-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    margin: 0 0 60px 0;
    text-align: center;
}

.borrower-heading-part1 {
    font-weight: 600;
    color: #7594CC;
}

.borrower-heading-part2 {
    font-weight: 800;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.borrower-content {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.borrower-image {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    flex: 0 0 auto;
}

.borrower-img {
    width: 600px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.borrower-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    order: 2;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.borrower-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.borrower-list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #6B6B7C;
    padding-left: 28px;
    position: relative;
}

.borrower-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/e1a2c3e7-73a9-494d-a266-1f314ca491bf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.borrower-additional-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.borrower-additional-info p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #1A1F3A;
    margin: 0;
}

.borrower-link {
    color: #2967CC;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.borrower-link:hover {
    color: #2967CC;
    text-decoration: underline;
}

/* Override scroll-reveal background colors */
.responsible-lending-section .scroll-reveal {
    background-color: transparent !important;
}

.commitment-section .scroll-reveal {
    background-color: transparent !important;
}

.expect-section .scroll-reveal {
    background-color: transparent !important;
}

.borrower-section .scroll-reveal {
    background-color: transparent !important;
}

/* Ensure scroll-reveal doesn't override expect section background */
.expect-section.scroll-reveal-section {
    background-color: #F2F7FF !important;
}

/* Responsive Design */

/* Large Desktop (1440px and above) - Laptop layout maintained */
@media (min-width: 1440px) {
    .responsible-lending-hero {
        padding: 160px 90px 120px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 80px 90px;
    }
    
    .expect-content,
    .borrower-content {
        gap: 60px;
    }
    
    .expect-img,
    .borrower-img {
        width: 600px;
    }
}

/* Desktop (1200px - 1439px) - Laptop layout maintained */
@media (min-width: 1200px) and (max-width: 1439px) {
    .responsible-lending-hero {
        padding: 150px 80px 110px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 80px 80px;
    }
    
    .expect-content,
    .borrower-content {
        gap: 50px;
    }
    
    .expect-img,
    .borrower-img {
        width: 550px;
        max-width: 100%;
    }
}

/* Medium Desktop (1025px - 1199px) - Laptop layout maintained */
@media (min-width: 1025px) and (max-width: 1199px) {
    .responsible-lending-hero {
        padding: 140px 70px 100px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 80px 70px;
    }
    
    .expect-content,
    .borrower-content {
        gap: 45px;
    }
    
    .expect-img,
    .borrower-img {
        width: 500px;
        max-width: 100%;
    }
}

/* Tablets and Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .responsible-lending-hero {
        padding: 140px 50px 90px;
    }
    
    .responsible-lending-hero-title {
        font-size: 52px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 16px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 70px 50px 60px;
    }
    
    .commitment-heading,
    .expect-heading,
    .borrower-heading {
        font-size: 42px;
    }
    
    .commitment-heading::before,
    .commitment-heading::after {
        width: 180px;
        margin-right: 40px;
        margin-left: 40px;
    }
    
    .expect-content,
    .borrower-content {
        gap: 40px;
    }
    
    .expect-img,
    .borrower-img {
        width: 100%;
        max-width: 500px;
    }
    
    .commitment-description {
        font-size: 17px;
    }
    
    .expect-list li,
    .borrower-list li,
    .commitment-list li {
        font-size: 15px;
    }
}

/* Intermediate breakpoint (900px - 1024px) for smoother transition */
@media (min-width: 900px) and (max-width: 1024px) {
    .expect-content,
    .borrower-content {
        gap: 45px;
    }
    
    .expect-img,
    .borrower-img {
        max-width: 550px;
    }
}

/* Intermediate breakpoint (600px - 768px) for smoother transition */
@media (min-width: 600px) and (max-width: 768px) {
    .responsible-lending-hero {
        padding: 130px 35px 75px;
    }
    
    .responsible-lending-hero-title {
        font-size: 40px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 75px 35px 55px;
    }
    
    .commitment-heading,
    .expect-heading,
    .borrower-heading {
        font-size: 34px;
    }
    
    .expect-content,
    .borrower-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    /* On mobile, show image above the description points */
    .expect-image {
        order: 1;
        width: 100%;
    }
    
    .expect-text {
        order: 2;
        width: 100%;
    }
    
    .expect-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .borrower-image {
        order: 1;
        width: 100%;
    }
    
    .borrower-text {
        order: 2;
        width: 100%;
    }
    
    .borrower-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* Mobile Landscape and Small Tablets (481px - 768px) - Phone layout */
@media (min-width: 481px) and (max-width: 768px) {
    .responsible-lending-hero {
        padding: 140px 40px 80px;
    }
    
    .responsible-lending-hero-title {
        font-size: 42px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 14px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 80px 40px 60px;
    }
    
    .commitment-container,
    .expect-container,
    .borrower-container {
        padding: 0;
    }
    
    .commitment-heading,
    .expect-heading,
    .borrower-heading {
        font-size: 36px;
    }
    
    .commitment-heading::before,
    .commitment-heading::after {
        display: none;
    }
    
    .commitment-description {
        font-size: 16px;
        text-align: left;
        padding: 0 10px;
    }
    
    .expect-content,
    .borrower-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    /* On mobile, show image above the description points for "What you can expect from us" */
    .expect-image {
        order: 1;
        width: 100%;
    }

    .expect-text {
        order: 2;
        width: 100%;
    }

    .expect-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* On mobile, show image above the description points for "What we need from you" */
    .borrower-image {
        order: 1;
        width: 100%;
    }
    
    .borrower-text {
        order: 2;
        width: 100%;
    }
    
    .borrower-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .expect-list li,
    .borrower-list li,
    .commitment-list li {
        font-size: 15px;
    }
}

/* Small Mobile Phones (320px - 480px) - Phone layout maintained */
@media (max-width: 480px) {
    .responsible-lending-hero {
        padding: 100px 20px 50px;
    }
    
    .responsible-lending-hero-title {
        font-size: 32px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 13px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 60px 20px 40px;
    }
    
    .commitment-heading,
    .expect-heading,
    .borrower-heading {
        font-size: 28px;
    }
    
    .commitment-heading::before,
    .commitment-heading::after {
        display: none;
    }
    
    .commitment-description {
        font-size: 15px;
        text-align: left;
        padding: 0 5px;
    }
    
    .expect-content,
    .borrower-content {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }
    
    /* On mobile, show image above the description points for "What you can expect from us" */
    .expect-image {
        order: 1;
        width: 100%;
    }
    
    .expect-text {
        order: 2;
        width: 100%;
    }
    
    .expect-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* On mobile, show image above the description points for "What we need from you" */
    .borrower-image {
        order: 1;
        width: 100%;
    }
    
    .borrower-text {
        order: 2;
        width: 100%;
    }
    
    .borrower-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .expect-list li,
    .borrower-list li,
    .commitment-list li {
        font-size: 14px;
        padding-left: 24px;
        line-height: 24px;
    }
    
    .borrower-additional-info p {
        font-size: 14px;
        line-height: 22px;
    }
}

/* Very Small Mobile Phones (below 320px) */
@media (max-width: 320px) {
    .responsible-lending-hero {
        padding: 80px 16px 40px;
    }
    
    .responsible-lending-hero-title {
        font-size: 28px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 12px;
    }
    
    .commitment-section,
    .expect-section,
    .borrower-section {
        padding: 50px 16px 30px;
    }
    
    .commitment-heading,
    .expect-heading,
    .borrower-heading {
        font-size: 24px;
    }
    
    .commitment-description {
        font-size: 14px;
        padding: 0;
    }
    
    .expect-content,
    .borrower-content {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }
    
    /* On mobile, show image above the description points */
    .expect-image {
        order: 1;
        width: 100%;
    }
    
    .expect-text {
        order: 2;
        width: 100%;
    }
    
    .expect-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .borrower-image {
        order: 1;
        width: 100%;
    }
    
    .borrower-text {
        order: 2;
        width: 100%;
    }
    
    .borrower-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .expect-list li,
    .borrower-list li,
    .commitment-list li {
        font-size: 13px;
        padding-left: 20px;
        line-height: 22px;
    }
    
    .borrower-additional-info p {
        font-size: 13px;
        line-height: 20px;
    }
}