/* Purged main.css - Only critical (above-the-fold) styles kept. Purged on 2025-04-21 for performance. */

.apply-hero-section {
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%);
    color: white;
    border-radius: 0 0 100px 100px;
}

.apply-hero-section .hero-title,
.apply-hero-section .hero-lead {
    color: #1e3c72;
}
.hidden { display: none !important; }
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 70px;
    background-color: #1e3c72;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-display: swap;
}

.main-content {
    min-height: calc(100vh - 80px);
    position: relative;
    overflow-y: auto;
}

/* Navbar - critical for above-the-fold layout */
.navbar {
    min-height: 70px;
    background-color: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 5px 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.nav-tabs {
    border-bottom: 2.5px solid #1e3c72;
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%);
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30,60,114,0.07);
}

.nav-tabs .nav-link {
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 1.5rem 1.5rem 0 0;
    background: transparent;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
    padding: 0.75rem 2.2rem;
    margin-right: 0.15rem;
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    background: #fffbe6;
    color: #ffb347;
    box-shadow: 0 2px 8px rgba(30,60,114,0.08);
}

/* Standardized logo image sizing */

.eligibility-title {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(30,60,114,0.10);
    letter-spacing: 0.5px;
    border-radius: 0.75rem;
    padding: 0.25em 0.9em;
    display: inline-block;
}

.card-header h2,
.card-header h4,
.card .card-body > h2,
.card .card-body > h4 {
    font-weight: 700;
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(30,60,114,0.10);
    letter-spacing: 0.5px;
}

.logo-fixed {
    width: 140px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
    color: #212529;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #FF6B00;
}

.navbar-dark .navbar-toggler, 
.navbar-toggler {
    border-color: #333 !important;
    background: #fff !important;
    outline: none;
    padding: 4px 6px; /* Reduced padding for smaller button */
    box-shadow: 0 2px 8px rgba(30,60,114,0.08);
    border-radius: 4px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1051;
    transition: box-shadow 0.3s;
    min-width: 32px;
    min-height: 32px;
}

.navbar-toggler .navbar-toggler-icon,
.navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* Hero section critical styles */
.hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 3rem 0 2rem 0;
  background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(30,60,114,0.07);
  border-radius: 1.25rem;
  position: relative;
  z-index: 1;
  min-height: 600px; /* Reserve space */
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.btn.btn-warning {
  background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%) !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30,60,114,0.08);
  transition: background 0.2s, color 0.2s;
}

.btn.btn-warning:hover, .btn.btn-warning:focus {
  background: linear-gradient(90deg, #ffb347 0%, #1e3c72 100%) !important;
  color: #fff !important;
}

.btn-outline-light {
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
}

@media (max-width: 991.98px) {
  .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 2rem 0 1rem 0;
    scroll-margin-top: 70px;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%) !important;
    color: #fff !important;
  }
  .hero h1 {
    font-size: 2rem;
  }
  /* Prevent header overlap for anchor links and first section */
  .navbar + .hero, .navbar + section {
    margin-top: 70px;
  }
}

.navbar-dark .navbar-toggler:focus, 
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-custom {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    outline: none;
}

.skip-link:focus {
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
}

.btn-warning {
    background: linear-gradient(90deg, #FF6B00 0%, #FF8C00 100%);
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    color: white !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 20px;
    font-size: 16px;
}

.btn-warning:hover {
    background: linear-gradient(90deg, #e55c00 0%, #e57c00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.navbar-nav {
    align-items: center;
}

.feature-box {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.feature-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px; /* Fixed dimensions */
}

.loan-card {
    background: #fff;
    color: #222;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.loan-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.faq-header {
    background: linear-gradient(90deg, #1e3c72 0%, #FF6B00 100%) !important;
    color: #fff !important;
}

.faq-link {
    color: #1e3c72;
    text-decoration: underline;
}

.btn-outline-custom {
    color: #b45309;
    border-color: #b45309;
    background-color: #fff;
}

.btn-outline-custom:hover {
    color: #fff;
    background-color: #b45309;
}

.support-icon {
    font-size: 2.5rem;
}

.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white !important;
    padding: 100px 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
    min-height: 80vh !important;
}

.faq-icon {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

footer {
    background-color: #1e3c72;
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 999;
}

footer a {
    color: #1e3c72;
    text-decoration: underline;
}

footer div {
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Interactive hover effect for hero feature boxes */
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Interactive hover effect for loan cards */
.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* White background for FAQ section */
.faq-section {
    background-color: #fff !important;
}

/* Feature icons with Font Awesome */
.feature-box .feature-icon::before,
.loan-card .loan-icon::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    content: '';
}

/* Hero section feature icons mapping */
.hero .col-md-3:nth-of-type(1) .feature-icon::before { content: '\f0e7'; color: #fff; }
.hero .col-md-3:nth-of-type(2) .feature-icon::before { content: '\f295'; color: #fff; }
.hero .col-md-3:nth-of-type(3) .feature-icon::before { content: '\f3ed'; color: #fff; }
.hero .col-md-3:nth-of-type(4) .feature-icon::before { content: '\f4c4'; color: #fff; }

/* Touch target for accessibility (social icons) */
.touch-target {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.touch-target:focus-within, .touch-target:hover {
  background: rgba(30,60,114,0.08);
}

/* Hero section feature box gradient background */
.feature-gradient {
  background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%) !important;
  color: #fff !important;
  border-radius: 12px;
  border: none;
}

/* Loan type icons distinct mappings */
#loan-types .loan-card:nth-of-type(1) .loan-icon::before { content: '\f0d6'; color: #1e3c72; }
#loan-types .loan-card:nth-of-type(2) .loan-icon::before { content: '\f1ad'; color: #ff6b00; }
#loan-types .loan-card:nth-of-type(3) .loan-icon::before { content: '\f1b9'; color: #dc3545; }
#loan-types .loan-card:nth-of-type(4) .loan-icon::before { content: '\f015'; color: #6f42c1; }

/* Remove previous col-lg-3 overrides */
.col-lg-3:nth-of-type(1) .loan-icon::before {
    content: unset;
}
.col-lg-3:nth-of-type(2) .loan-icon::before {
    content: unset;
}
.col-lg-3:nth-of-type(3) .loan-icon::before {
    content: unset;
}
.col-lg-3:nth-of-type(4) .loan-icon::before {
    content: unset;
}

/* Icon styling: circular background, size, hover effect */
.loan-icon {
    display: inline-block;
    font-size: 3rem;
    padding: 1rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.loan-card:nth-of-type(1) .loan-icon { background: rgba(30,60,114,0.1); }
.loan-card:nth-of-type(1):hover .loan-icon { background: rgba(30,60,114,0.2); }
.loan-card:nth-of-type(2) .loan-icon { background: rgba(255,107,0,0.1); }
.loan-card:nth-of-type(2):hover .loan-icon { background: rgba(255,107,0,0.2); }
.loan-card:nth-of-type(3) .loan-icon { background: rgba(220,53,69,0.1); }
.loan-card:nth-of-type(3):hover .loan-icon { background: rgba(220,53,69,0.2); }
.loan-card:nth-of-type(4) .loan-icon { background: rgba(111,66,193,0.1); }
.loan-card:nth-of-type(4):hover .loan-icon { background: rgba(111,66,193,0.2); }

.loan-card:hover .loan-icon {
    transform: scale(1.2);
}

/* FAQ header interactive styling */
.faq-header {
    background: linear-gradient(90deg, #1e3c72 0%, #FF6B00 100%) !important;
    color: #fff !important;
}
.faq-header .btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.05rem;
    color: #fff !important;
    cursor: pointer;
}
.faq-header .btn::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s ease;
    color: #fff !important;
}
.faq-header .btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.faq-header:hover {
    background: linear-gradient(90deg, #1e3c72 0%, #FF6B00 100%) !important;
}

/* Why Choose Us section styling */
.why-choose-us {
    background-color: #fff;
    padding: 2rem 0;
}
.why-choose-us .col-md-3 {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.why-choose-us .col-md-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}
/* Why Choose Us icons */
.why-choose-us .feature-icon::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    display: block;
    margin: 0 auto 1rem;
    content: '';
    transition: transform 0.3s ease, color 0.3s ease;
}
.why-choose-us .col-md-3:nth-of-type(1) .feature-icon::before { content: '\f0e7'; color: #ffc107; }
.why-choose-us .col-md-3:nth-of-type(2) .feature-icon::before { content: '\f295'; color: #6c757d; }
.why-choose-us .col-md-3:nth-of-type(3) .feature-icon::before { content: '\f3ed'; color: #28a745; }
.why-choose-us .col-md-3:nth-of-type(4) .feature-icon::before { content: '\f4c4'; color: #17a2b8; }
.why-choose-us .col-md-3:hover .feature-icon::before {
    transform: scale(1.2);
    color: #ff6b00;
}

/* Why Choose Us header styling */
.why-choose-us h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}
.why-choose-us p.lead {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* FAQ section header styling */
.faq-section .text-center.mb-5 h2 {
    color: #1e3c72;
}
.faq-section .accordion-button {
    background: none;
    color: #1e3c72;
}

/* CTA section styling */
.cta-section.py-5.bg-dark.text-white, .cta-section {
    padding: 3rem 1rem;
    text-align: center;
    z-index: 1040;
    position: relative;
}
@media (max-width: 767.98px) {
    .cta-section, .cta-section.py-5.bg-dark.text-white {
        padding: 2.5rem 0.5rem !important;
        overflow: visible !important;
        min-height: unset !important;
        display: block !important;
    }
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
    .cta-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
    .cta-section .btn {
        font-size: 1.1rem !important;
        padding: 0.75rem 2rem !important;
    }
}

/* Navbar dropdown background white with dark items */
.navbar-custom .dropdown-menu {
    background-color: #fff !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    overflow: hidden;
    z-index: 2000;
}
.navbar-custom .dropdown-menu .dropdown-item {
    color: #212529 !important;
    transition: background-color 0.2s ease;
}
.navbar-custom .dropdown-menu .dropdown-item:hover,
.navbar-custom .dropdown-menu .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff !important;
    }
    .navbar-collapse .nav-link {
        color: #212529 !important;
    }
    .navbar-custom .navbar-toggler-icon { filter: invert(1); }
}

/* FINAL OVERRIDES: Distinct loan-type icons & backgrounds */
#loan-types .row > .col-lg-3:nth-child(1) .loan-icon::before { content: '\f555' !important; color: #1e3c72 !important; }
#loan-types .row > .col-lg-3:nth-child(2) .loan-icon::before { content: '\f0b1' !important; color: #ff6b00 !important; }
#loan-types .row > .col-lg-3:nth-child(3) .loan-icon::before { content: '\f1b9' !important; color: #dc3545 !important; }
#loan-types .row > .col-lg-3:nth-child(4) .loan-icon::before { content: '\f015' !important; color: #6f42c1 !important; }
#loan-types .row > .col-lg-3:nth-child(1) .loan-icon { background: rgba(30,60,114,0.1) !important; }
#loan-types .row > .col-lg-3:nth-child(2) .loan-icon { background: rgba(255,107,0,0.1) !important; }
#loan-types .row > .col-lg-3:nth-child(3) .loan-icon { background: rgba(220,53,69,0.1) !important; }
#loan-types .row > .col-lg-3:nth-child(4) .loan-icon { background: rgba(111,66,193,0.1) !important; }
#loan-types .row > .col-lg-3:nth-child(1):hover .loan-icon { background: rgba(30,60,114,0.2) !important; }
#loan-types .row > .col-lg-3:nth-child(2):hover .loan-icon { background: rgba(255,107,0,0.2) !important; }
#loan-types .row > .col-lg-3:nth-child(3):hover .loan-icon { background: rgba(220,53,69,0.2) !important; }
#loan-types .row > .col-lg-3:nth-child(4):hover .loan-icon { background: rgba(111,66,193,0.2) !important; }

/* Prevent fixed navbar from hiding anchor target */
#applicationFormSection {
    scroll-margin-top: 80px;
}

/* Reserve hero section height to prevent layout shifts */
.hero {
    min-height: 80vh !important;
}

/* --- Application Form Enhancements (from apply-now.html) --- */

.btn-gradient-logo {
    background: linear-gradient(90deg, #1e3c72 0%, #ffb347 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-gradient-logo:hover, .btn-gradient-logo:focus {
    box-shadow: 0 4px 16px rgba(30,60,114,0.15);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

/* Apply Now Hero Section & CTA Banner */
.apply-hero-section {
    margin-top: 80px; /* Ensures gap below navbar on desktop */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    z-index: 1;
}
.cta-banner {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(30,60,114,0.10);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}
.cta-loan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #fff;
    font-size: 2.4rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(255, 193, 7, 0.15);
    margin-bottom: 0.5rem;
}
.badge-success {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.08);
}

.btn-gradient-warning {
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #212529;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-gradient-warning:hover, .btn-gradient-warning:focus {
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px) scale(1.03);
    color: #212529;
}
.btn-gradient-success {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-gradient-success:hover, .btn-gradient-success:focus {
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}
.step-indicator {
    font-size: 1.1rem;
}
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #ffb347;
    font-size: 1.3rem;
    border: 2px solid #ffb347;
    transition: background 0.3s, color 0.3s;
}
.step-active {
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #fff;
    border: 2px solid #ffb347;
}
.step-label {
    font-weight: 500;
    color: #888;
}
.step-bar {
    width: 44px;
    height: 3px;
    background: #ffb347;
    display: inline-block;
    border-radius: 2px;
    margin: 0 2px;
}
.form-step .form-group label {
    font-weight: 500;
}
.form-step .input-group-text {
    background: #fff;
    border-right: 0;
    color: #ffb347;
}
.form-step .form-control:focus {
    border-color: #ffb347;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}
.form-step .form-control {
    border-radius: 0.5rem;
}
.form-step .bg-light {
    background: #fafbfc !important;
}
@media (max-width: 576px) {
    .display-4 { font-size: 2rem; }
    .step-indicator { flex-direction: column; align-items: flex-start; }
    .step-bar { width: 24px; margin: 6px 0; }
    .hero {
        padding: 2rem 0 1rem 0 !important;
        min-height: 60vh !important;
    }
    .hero h1 {
        font-size: 1.35rem !important;
    }
    .hero .lead {
        font-size: 1rem !important;
    }
    .feature-box {
        min-height: 120px !important;
        padding: 0.75rem 0.5rem !important;
    }
    .btn-warning {
        padding: 8px 12px !important;
        margin-left: 0 !important;
        font-size: 0.95rem !important;
    }
    .btn-outline-light {
        padding: 8px 12px !important;
        font-size: 0.95rem !important;
    }
    .loan-card {
        padding: 0.5rem !important;
    }
    .navbar-nav {
        align-items: stretch !important;
    }
    .logo-fixed {
        width: 90px !important;
    }
    main {
        padding-top: 15px !important;
    }
    body {
        padding-top: 56px !important;
    }
}

main {
    padding-top: 30px;
}

/* Layout Stability Fixes */
img {
    width: 100%;
    height: auto;
    display: block;
}

html body .hero.hero-white {
  background: #fff !important;
  color: #1e3c72 !important;
}

html body .hero.hero-white h1,
html body .hero.hero-white .lead {
  color: #1e3c72 !important;
}
