/**
 * Modern Homepage Design - 2024+ Aesthetic
 * Beige & Brown Color Scheme
 * Colors: #F7E5DA (soft beige), #832B00 (deep brown)
 */

/* === COLOR VARIABLES === */
:root {
    --primary-brown: #832B00;        /* buttons */
    --primary-beige: #F7E5DA;        /* hero background */
    --dark-brown: #5a1e00;           /* button hover */
    --light-beige: #F7E5DA;          /* hero background */
    --text-dark: #2d1810;
    --text-muted: #8b6b5c;
}

/* === RESET & BASE === */
.fslp-homepage-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
}

.fslp-homepage-modern * {
    box-sizing: border-box;
}

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === MODERN HERO === */
.modern-hero {
    background: var(--primary-beige);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: #000000;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #000000;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.hero-subheading {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #000000;
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-brown);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(131, 43, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(131, 43, 0, 0.4);
    color: #ffffff;
    background: var(--dark-brown);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--primary-beige);
    border-color: var(--primary-beige);
    color: var(--text-dark);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.3);
}

/* === SERVICE CATEGORIES === */
.categories-section {
    padding: 5rem 0;
    background: #ffffff;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-brown), var(--dark-brown));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(131, 43, 0, 0.12);
    border-color: var(--primary-brown);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.category-desc {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.category-arrow {
    color: var(--primary-brown);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* === FEATURES === */
.features-section {
    padding: 5rem 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(131, 43, 0, 0.2);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.feature-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* === STATS === */
.stats-section {
    padding: 4rem 0;
    background: var(--primary-beige);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--text-dark);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-muted);
}

/* === TESTIMONIALS === */
.testimonials-section {
    padding: 5rem 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === CTA SECTION === */
.cta-section {
    padding: 5rem 0;
    background: var(--primary-beige);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.cta-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .modern-hero {
        padding: 4rem 0;
    }

    .hero-heading {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-primary,
    .cta-secondary {
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-divider {
        display: none;
    }

    .categories-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .modern-container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.feature-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* === CATEGORY PAGES === */
.fslp-category-page-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
}

.services-section {
    padding: 5rem 0;
    background: #ffffff;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-brown), var(--dark-brown));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(131, 43, 0, 0.12);
    border-color: var(--primary-brown);
}

.service-icon-modern {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.service-desc-modern {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    flex: 1;
    line-height: 1.6;
}

.service-arrow-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-brown);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-arrow-modern {
    opacity: 1;
    transform: translateX(0);
}

/* === LOANS CATEGORY SPECIFIC STYLES === */

/* Description Section Below Hero */
.category-description-section {
    padding: 5rem 0;
    padding-top: 3rem; /* Reduced top padding for less margin */
    background: #FFFFFF;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
}

.description-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 3rem 0 5rem 0; /* Reduced top padding */
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--primary-beige);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(131, 43, 0, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    background: #832B00 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.benefit-icon svg {
    fill: #ffffff;
    color: #ffffff;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.benefit-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Eligibility Section */
.eligibility-section {
    padding: 5rem 0;
    background: var(--primary-beige);
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.eligibility-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.eligibility-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.eligibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.eligibility-list li:last-child {
    border-bottom: none;
}

.eligibility-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-brown);
    font-weight: bold;
}

/* Comparison Table */
.comparison-section {
    padding: 5rem 0;
    background: #ffffff;
}

.comparison-table-wrapper {
    margin-top: 3rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: var(--primary-brown);
    color: #ffffff;
}

.comparison-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: var(--primary-beige);
}

.comparison-table td {
    padding: 1.25rem;
    color: var(--text-dark);
}

.comparison-table td:first-child {
    font-weight: 600;
}

/* Loan Calculator */
.calculator-section {
    padding: 5rem 0;
    background: var(--primary-beige);
}

.calculator-wrapper {
    margin-top: 3rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calc-field input {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calc-field input:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(131, 43, 0, 0.1);
}

.calculator-result {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    padding: 2.5rem;
    border-radius: 12px;
    color: #ffffff;
}

.result-label {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.calc-cta {
    background: #ffffff;
    color: var(--primary-brown);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section - Loans */
.faq-section-loans {
    padding: 5rem 0;
    background: #ffffff;
}

.faq-accordion {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--primary-beige);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(131, 43, 0, 0.05);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Testimonials - Loans */
.testimonials-section-loans {
    padding: 5rem 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars .star {
    margin-right: 0.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-brown);
    font-size: 0.95rem;
}

/* Responsive - Loans Sections */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .eligibility-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

