@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #138522; /* Core Green */
  --primary-dark: #0d5d18;
  --secondary: #1E3A8A; /* Professional Blue (Navy) */
  --secondary-light: #3B82F6; /* Bright Blue */
  --accent: #2563EB; /* Primary Action Blue */
  --dark: #000000; /* Pure Black */
  --bg: #F8FAFC; /* Light Blue-Gray background */
  --white: #FFFFFF;
  --gray: #4B5563;
  --light-gray: #E2E8F0;
  --gradient: linear-gradient(135deg, #000000 0%, #1E3A8A 100%); /* Black to Blue */
  --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  --gradient-green: linear-gradient(135deg, #138522 0%, #1bb32e 100%);
  --shadow: 0 4px 24px rgba(30,58,138,0.1);
  --shadow-hover: 0 8px 40px rgba(30,58,138,0.18);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }
.section-padding { padding: 80px 0; }
.section-bg { background: var(--bg); }

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--accent);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary-custom:hover { background: var(--secondary); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border: 2px solid var(--white);
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-custom:hover { background: var(--white); color: var(--secondary); }

/* ===== SECTION HEADINGS ===== */
.section-tag { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }
.section-title { font-size: clamp(28px, 4vw, 42px); color: var(--secondary); line-height: 1.2; margin: 8px 0 16px; }
.section-subtitle { color: var(--gray); font-size: 16px; max-width: 600px; }

/* ===== TOP BAR ===== */
.topbar { background: var(--dark); padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.topbar a { color: rgba(255,255,255,0.8); }
.topbar a:hover { color: var(--secondary-light); }

/* ===== NAVBAR ===== */
.navbar-custom { background: var(--white); padding: 6px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.navbar-brand img { height: 75px; }
.navbar-brand span { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--secondary); }
.navbar-brand span em { color: var(--primary); font-style: normal; }
.navbar-custom .nav-link { font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--dark) !important; padding: 8px 16px !important; font-size: 15px; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { color: var(--accent) !important; }
.navbar-custom .dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px; min-width: 220px; }
.navbar-custom .dropdown-item { font-family: 'Poppins', sans-serif; font-size: 14px; padding: 8px 16px; border-radius: 8px; color: var(--dark); }
.navbar-custom .dropdown-item:hover { background: var(--bg); color: var(--accent); }
.navbar-custom .btn-apply { background: var(--primary); color: var(--white) !important; border-radius: 50px; padding: 10px 24px !important; font-weight: 600; }
.navbar-custom .btn-apply:hover { background: var(--primary-dark); }

/* ===== HERO ===== */
.hero-section { background: var(--gradient); min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; color: var(--white); }
.hero-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 700px; height: 700px; background: rgba(59,130,246,0.05); border-radius: 50%; }
.hero-section::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px; background: rgba(19,133,34,0.1); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; }
.hero-badge { background: rgba(255,255,255,0.1); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.2); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero-title { font-size: clamp(36px, 5vw, 64px); color: var(--white) !important; line-height: 1.15; margin-bottom: 20px; }
.hero-subtitle { color: rgba(255,255,255,0.85) !important; font-size: 18px; margin-bottom: 36px; max-width: 520px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat .num { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 800; color: var(--white); }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 500; margin-top: 4px; display: block; }
.hero-card { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-hover); position: relative; z-index: 2; }
.hero-card h4 { font-size: 20px; color: var(--secondary); margin-bottom: 24px; font-weight: 800; border-bottom: 2px solid var(--light-gray); padding-bottom: 12px; }
.form-label-custom { font-size: 14px; font-weight: 700; color: #1F2937; margin-bottom: 6px; display: block; }
.form-control-custom { border: 1.5px solid #D1D5DB; border-radius: 10px; padding: 12px 16px; font-size: 15px; width: 100%; transition: var(--transition); outline: none; background: #F9FAFB; }
.form-control-custom:focus { border-color: var(--accent); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.form-select-custom { border: 2px solid var(--light-gray); border-radius: 10px; padding: 12px 16px; font-size: 15px; width: 100%; background: white; }

/* ===== LOAN CARDS ===== */
.loan-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; border: 1px solid var(--light-gray); transition: var(--transition); height: 100%; text-align: center; }
.loan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.loan-icon { width: 72px; height: 72px; background: var(--gradient-blue); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.loan-icon i { font-size: 28px; color: var(--white); }
.loan-card h5 { font-size: 18px; color: var(--secondary); margin-bottom: 10px; }
.loan-card p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.loan-rate { font-size: 13px; color: var(--secondary); font-weight: 600; background: rgba(30,58,138,0.08); padding: 6px 16px; border-radius: 50px; }
.loan-card a.learn-more { font-size: 14px; font-weight: 600; color: var(--accent); display: block; margin-top: 16px; }

/* ===== STATS ===== */
.stats-section { background: var(--secondary); padding: 60px 0; }
.stat-item .number { font-family: 'Poppins', sans-serif; font-size: 48px; font-weight: 800; color: var(--white); display: block; }
.stat-item .label { color: rgba(255,255,255,0.75); font-size: 15px; }

/* ===== PROCESS ===== */
.process-step { text-align: center; }
.step-num { width: 64px; height: 64px; background: var(--gradient-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--white); margin: 0 auto 20px; }
.process-step h5 { font-size: 16px; color: var(--secondary); margin-bottom: 8px; }

/* ===== EMI CALCULATOR ===== */
.calculator-box { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.emi-result { background: var(--gradient-blue); border-radius: 16px; padding: 32px; color: var(--white); text-align: center; }
.emi-result .emi-amount { font-size: 44px; font-weight: 800; }
.range-input { width: 100%; accent-color: var(--accent); }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); height: 100%; }
.stars { color: #F59E0B; }
.client-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-family: 'Poppins', sans-serif; font-size: 18px; }

/* ===== BLOG CARDS ===== */
.blog-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); background: var(--white); height: 100%; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.blog-body h5 { font-size: 17px; color: var(--secondary); margin: 8px 0 12px; }

/* ===== INNER PAGE HERO ===== */
.inner-hero { background: var(--gradient); padding: 80px 0 60px; color: var(--white); }
.inner-hero h1 { color: var(--white) !important; margin-bottom: 16px; }
.inner-hero p { color: rgba(255,255,255,0.85); }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: var(--white); opacity: 0.7; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== FEATURES ===== */
.feature-icon { width: 56px; height: 56px; min-width: 56px; background: rgba(30,58,138,0.08); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.feature-icon i { font-size: 22px; color: var(--secondary); }
.feature-text h5 { font-size: 16px; color: var(--secondary); margin-bottom: 4px; }

/* ===== ELIGIBILITY TABLE ===== */
.eligibility-table th { background: var(--secondary); color: var(--white); }

/* ===== ABOUT ===== */
.mission-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--accent); transition: var(--transition); height: 100%; }
.mission-icon { font-size: 40px; color: var(--accent); margin-bottom: 16px; }
.mission-card h4 { font-size: 20px; color: var(--secondary); margin-bottom: 12px; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--gradient-blue); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: white; margin: 0 auto 16px; }
.team-card h5 { font-size: 17px; color: var(--secondary); }

/* ===== CONTACT ===== */
.contact-info-card { background: var(--gradient); border-radius: 20px; padding: 40px; color: var(--white); height: 100%; }
.contact-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.contact-form-card { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); height: 100%; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--gradient); padding: 80px 0; text-align: center; color: var(--white); }
.cta-banner h2 { color: var(--white) !important; margin-bottom: 20px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 60px 0 0; color: rgba(255,255,255,0.6); }
.footer h5, .footer h6 { color: var(--white) !important; }
.footer ul li a { color: rgba(255,255,255,0.6) !important; }
.footer ul li a:hover { color: var(--primary) !important; padding-left: 4px; }
.footer-contact i { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; }
.social-links a:hover { background: var(--accent); color: var(--white); }

/* ===== BACK TO TOP ===== */
#backToTop { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; background: var(--accent); border: none; border-radius: 50%; color: white; display: none; align-items: center; justify-content: center; z-index: 9999; box-shadow: 0 4px 16px rgba(37,99,235,0.5); }
#backToTop:hover { background: var(--secondary); transform: translateY(-3px); }

.whatsapp-float { position: fixed; bottom: 88px; right: 28px; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; z-index: 9999; box-shadow: 0 4px 16px rgba(37,211,102,0.5); }
.phone-float { position: fixed; bottom: 148px; right: 28px; width: 52px; height: 52px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; z-index: 9999; box-shadow: 0 4px 16px rgba(37,99,235,0.5); }
.phone-float:hover, .whatsapp-float:hover { transform: translateY(-3px); color: white; }

/* ===== SOCIAL BUTTONS (ABOUT US) ===== */
.social-btn { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 50px; color: white !important; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 14px; text-decoration: none; }
.social-btn.fb { background: #1877F2; }
.social-btn.ig { background: #E4405F; }
.social-btn.tw { background: #000000; }
.social-btn.li { background: #0A66C2; }
.social-btn.yt { background: #FF0000; }

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.divider { width: 56px; height: 4px; background: var(--accent); border-radius: 4px; margin: 12px 0 24px; }
.divider-center { margin: 12px auto 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-stats { gap: 20px; }
  .navbar-custom .btn-apply { margin-top: 12px; }
}
@media (max-width: 767px) {
  .section-padding { padding: 60px 0; }
  .hero-section { min-height: auto; padding: 80px 0 60px; }
  .topbar { display: none; }
}

/* ===== CUSTOM VALIDATION ===== */
.invalid-feedback-custom {
  color: #EF4444 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
  display: none;
  align-items: center;
  gap: 6px;
  animation: fadeInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.form-control-custom.is-invalid-custom,
.form-select-custom.is-invalid-custom {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

