/* ===== LOANS PAGE STYLES ===== */

/* Loans Hero Section */
.loans-hero {
    padding: 100px 0 80px;
    background: var(--bg-light);
}

.loans-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.loans-hero-text h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.loans-hero-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.loans-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blue-gradient-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #0047b3 0%, #0066ff 50%, #00a3ff 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.blue-gradient-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    transform: rotate(-15deg);
}

/* Transparent Terms Section */
.transparent-terms {
    padding: 100px 0;
    background: var(--secondary-color);
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.terms-header h2 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.term-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.term-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.term-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.term-value {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Why Borrow Section */
.why-borrow {
    padding: 100px 0;
    background: var(--bg-light);
}

.why-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.why-header h2 {
    font-size: 48px;
    font-weight: 600;
    margin: 0;
}

.why-items {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.why-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    align-items: start;
}

.why-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon svg {
    stroke: var(--text-primary);
}

.why-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.why-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.why-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Section with Accordion */
.loans-faq {
    padding: 100px 0;
    background: var(--secondary-color);
}

.faq-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-accordion-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-question span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover span {
    color: var(--text-secondary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: var(--text-primary);
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 28px;
}

.faq-answer p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.loans-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #001a4d 0%, #0047b3 50%, #0066ff 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .loans-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .loans-hero-text h1 {
        font-size: 36px;
    }

    .loans-hero-text p {
        font-size: 16px;
    }

    .blue-gradient-box {
        height: 300px;
    }

    .terms-header {
        flex-direction: column;
        gap: 30px;
    }

    .terms-header h2 {
        font-size: 36px;
    }

    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .why-header h2 {
        font-size: 36px;
    }

    .why-item {
        grid-template-columns: 60px 1fr;
        gap: 30px;
    }

    .why-icon {
        width: 60px;
        height: 60px;
    }

    .why-icon svg {
        width: 36px;
        height: 36px;
    }

    .why-content h3 {
        font-size: 24px;
    }

    .why-content p {
        font-size: 16px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .loans-hero {
        padding: 60px 0 40px;
    }

    .loans-hero-text h1 {
        font-size: 28px;
    }

    .loans-hero-text p {
        font-size: 15px;
    }

    .transparent-terms,
    .why-borrow,
    .loans-faq {
        padding: 60px 0;
    }

    .terms-header h2 {
        font-size: 28px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }

    .term-card {
        padding: 30px 20px;
        min-height: auto;
    }

    .why-header h2 {
        font-size: 28px;
    }

    .why-items {
        gap: 50px;
    }

    .why-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-icon {
        width: 48px;
        height: 48px;
    }

    .why-icon svg {
        width: 32px;
        height: 32px;
    }

    .why-content h3 {
        font-size: 22px;
    }

    .why-content p {
        font-size: 15px;
    }

    .faq-question span {
        font-size: 17px;
    }

    .faq-answer p {
        font-size: 15px;
    }

    .loans-cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 16px;
    }
}
