/* Import Manrope font */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ----------------------------------------
   1. Root Variables & Base Typography
-----------------------------------------*/
:root {
  /* Base Colors */
  --text-color: #333;            /* dark gray for body text */
  --heading-color: #222;         /* nearly black for headings */
  --bg-light: #f9f9f9;           /* light gray backgrounds */
  --border-color: #e0e0e0;       /* light gray for borders */
  
  /* Accent Colors */
  --teal: #00b4d8;              /* Primary teal accent */
  --purple: #9a4dff;             /* Primary purple accent */
  --teal-light: #90e0ef;         /* Light teal for hover states */
  --purple-light: #c77dff;       /* Light purple for hover states */
  
  /* Gradients */
  --gradient-primary: linear-gradient(90deg, var(--teal), var(--purple));
  --gradient-hover: linear-gradient(90deg, var(--teal-light), var(--purple-light));
  
  /* Button Colors */
  --btn-bg: var(--gradient-primary);
  --btn-hover-bg: var(--gradient-hover);
  
  /* Typography */
  --font-sans: 'Manrope', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ----------------------------------------
   2. Utility Classes
-----------------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

h1, h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-weight: 600;
  text-transform: uppercase;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: #fff;
  padding: 0.75rem 1.25rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--btn-hover-bg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.65rem 1.15rem;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #222;
}

input[type="number"],
input[type="text"],
input[type="time"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border 0.3s;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ----------------------------------------
   3. Responsive Breakpoints & Mobile-First
-----------------------------------------*/
/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Space for fixed header */
}

/* Section Styling */
section {
  position: relative;
  padding: 6rem 0;
  scroll-margin-top: 80px; /* Space for fixed header */
}

/* Active Section Highlighting */
section:target {
  scroll-margin-top: 100px; /* Account for fixed header */
  position: relative;
  z-index: 1;
}

/* Container adjustments */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive breakpoints */
/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  html { font-size: 14px; }
  .container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  html { font-size: 15px; }
  .container {
    max-width: 540px;
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.6rem; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 1140px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.8rem; }
  
  /* Make navigation more compact */
  .main-nav ul {
    gap: 1rem;
  }
  
  .main-nav a {
    font-size: 13px;
    padding: 0.4rem 0.6rem;
  }
  
  .main-nav a::after {
    bottom: 10px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  body {
    padding: 0.5in;
    font-size: 12pt;
    color: #000;
  }
  
  .no-print {
    display: none !important;
  }
}

/* ----------------------------------------
   4. Header & Navigation
-----------------------------------------*/
/* Logo and Brand Styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  padding: 0 5px;
  transition: all 0.3s ease;
}

.brand-name:hover {
  background: var(--gradient-hover);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Header Styles */
.site-header {
  background-color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  z-index: 10001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  width: 50px;
  height: 50px;
  margin: 0;
  outline: none;
}

.mobile-menu-toggle .close-icon {
  display: none;
}

.mobile-menu-toggle.active .menu-icon {
  display: none;
}

.mobile-menu-toggle.active .close-icon {
  display: block;
  color: #333;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.main-nav a.active {
  color: #fff;
  font-weight: 600;
}

.main-nav a.active::after {
  width: calc(100% - 30px);
}

.main-nav a:hover::after {
  width: calc(100% - 30px);
  background: var(--gradient-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
  padding: 1rem; /* Increased padding for better touch target */
  margin: -0.5rem -0.5rem -0.5rem 0.5rem; /* Adjust positioning */
  transition: all 0.3s ease;
  font-size: 2.5rem; /* Larger icon size */
  line-height: 1;
  width: 60px; /* Fixed width */
  height: 60px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mobile-menu-toggle .menu-icon,
.mobile-menu-toggle .close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.mobile-menu-toggle.active .menu-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

.mobile-menu-toggle .close-icon {
  opacity: 0;
  transform: rotate(180deg);
}

.mobile-menu-toggle.active .close-icon {
  opacity: 1;
  transform: rotate(0);
}

/* Show mobile menu toggle on mobile */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle:active {
    transform: scale(0.9);
  }
}

/* No-scroll functionality has been removed */

/* Mobile Styles */
@media (max-width: 1023px) {
  .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .contact-method {
    width: 100%;
    max-width: 400px;
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  /* Table container for horizontal scrolling */
  .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }
  
  .table-container::-webkit-scrollbar {
    height: 8px;
  }
  
  .table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }
  
  .calculator .container {
    padding: 0 15px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .loan-table {
    width: auto;
    min-width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  
  .loan-table th,
  .loan-table td {
    padding: 12px 8px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #ddd;
    min-width: 100px;
  }
  
  .loan-table th:first-child,
  .loan-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    min-width: 140px;
  }
  
  .loan-table th {
    background-color: #f5f5f5;
    font-weight: 600;
  }
  
  .loan-table th,
  .loan-table td {
    white-space: nowrap; /* Prevents text from wrapping */
    padding: 12px 15px;
    text-align: center;
  }
  /* Hide desktop contact methods */
  .contact-methods {
    display: none !important;
  }
  
  /* Mobile Contact Boxes - Show on mobile */
  /* Reset container overflow for other sections */
  .calculator .container {
    overflow-x: auto;
  }
  
  .mobile-contact-boxes {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    margin: 1rem auto;
    width: 100%;
    max-width: 100%;
  }
  
  .mobile-contact-box {
    background: rgba(100, 100, 100, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-contact-box h3,
  .mobile-contact-box p {
    color: white !important;
  }
  
  .mobile-contact-box a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .mobile-contact-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: white !important;
  }
  
  .mobile-contact-box h3 {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .mobile-contact-box p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
  }
  .contact-methods-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  /* Mobile Contact Methods */
  .contact-methods-container {
    display: block; /* Show only on mobile */
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  
  .contact-method {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .contact-method h3 {
    font-size: 0.9rem;
    margin: 0.5rem 0 0.2rem;
  }
  
  .contact-method p {
    font-size: 0.8rem;
    margin: 0.1rem 0 0;
  }
  
  .contact-icon i {
    font-size: 1.2rem;
  }
  
  /* Show mobile container on mobile */
  .mobile-contact-methods {
    display: block;
  }
  
  .contact-method h3 {
    font-size: 0.95rem;
    margin: 0.6rem 0 0.3rem;
    font-weight: 600;
  }
  
  .contact-method p {
    font-size: 0.85rem;
    margin: 0.2rem 0 0;
  }
  
  .contact-icon i {
    font-size: 1.4rem;
  }
}

/* Mobile-specific styles */
@media (max-width: 991.98px) {
  /* Hide hero content on mobile */
  .hero-content {
    display: none;
  }
  
  /* Make form take full width on mobile */
  .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Center align hero content on mobile */
  .hero .container > .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 100%;
  }
  
  .hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
  }
  
  /* Center the form on mobile */
  .hero .col-12.col-lg-5 {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }
  
  .hero .elementor-element-27217f7 {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Ensure form fields are properly sized */
  .hero .elementor-field {
    width: 100%;
  }
  
  /* Update hero subtitle for mobile */
  .hero-content h3[data-translate="hero.subtitle"] {
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem;
    position: relative;
    line-height: 1.4;
  }
  .hero-content h3[data-translate="hero.subtitle"] span {
    display: none;
  }
  .hero-content h3[data-translate="hero.subtitle"]::before {
    content: "Personal Loans with the Lowest";
    display: block;
    text-align: center;
    width: 100%;
  }

  .language-switcher.desktop-only {
    display: none !important;
  }
  
  /* Ensure mobile menu items are properly spaced */
  .mobile-nav ul {
    padding: 0 1rem;
  }
  
  .mobile-nav li {
    margin-bottom: 0.5rem;
  }
  
  .mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Mobile menu footer */
  .mobile-menu-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid #eee;
  }
  
  .mobile-contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
  }
  
  .mobile-contact-info p {
    margin: 0.5rem 0;
  }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

/* Ensure desktop navigation is visible on larger screens */
@media (min-width: 992px) {
  .desktop-only {
    display: block !important;
  }
  
  .main-nav {
    display: flex !important;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
  }
  
  .header-right {
    margin-left: auto;
  }
}

/* Responsive navigation */
@media (max-width: 991.98px) {
  .main-nav {
    display: none; /* Hide desktop nav on mobile */
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
  }
  
  .menu-icon, .close-icon {
    font-size: 1.75rem;
    color: #fff;
    transition: opacity 0.3s ease;
  }
  
  .close-icon {
    position: absolute;
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .menu-icon {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .close-icon {
    opacity: 1;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: calc(100% - 30px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  height: -webkit-fill-available;
  height: fill-available;
  background: #fff;
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  will-change: transform;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.mobile-menu.active {
  transform: translateX(0);
  right: 0;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Reset body styles when menu is closed */
body:not(.menu-open) {
  position: relative;
  overflow: visible;
  height: auto;
}

/* Mobile menu scrollbar */
@media (max-width: 991.98px) {
  .mobile-menu::-webkit-scrollbar {
    width: 4px;
  }
  
  .mobile-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  
  .mobile-menu::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* Mobile Menu Header */
.mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background-color: rgba(0, 0, 0, 0.05);
  outline: none;
}

.mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
}

/* Mobile Navigation */
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.mobile-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.mobile-contact-info p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
  margin-bottom: 1rem;
}

.mobile-language-switcher .gtranslate_wrapper_mobile {
  width: 100% !important;
}

.mobile-language-switcher .gt_switcher {
  width: 100% !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.mobile-language-switcher .gt_switcher a {
  padding: 0.5rem 1rem !important;
  color: #333 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.mobile-language-switcher .gt_switcher a:hover {
  background-color: #f0f0f0 !important;
}

.mobile-language-switcher .gt_switcher .gt_selected:after {
  content: '▼' !important;
  margin-left: 8px;
  font-size: 0.7em;
  opacity: 0.7;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

/* Hide desktop navigation on mobile */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Show mobile menu toggle on mobile */
@media (min-width: 992px) {
  .mobile-menu-toggle,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }
}

/* Hide mobile language switcher on desktop */
@media (min-width: 992px) {
  .mobile-language-switcher {
    display: none;
  }
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.main-nav a.active {
  color: #fff;
  font-weight: 600;
}

.main-nav a.active::after {
  width: calc(100% - 30px);
}

.main-nav a:hover::after {
  width: calc(100% - 30px);
  background: var(--gradient-hover);
}

/* Desktop Language Switcher */
.language-switcher.desktop-only {
  display: block;
}

/* Hide mobile menu content on desktop */
.mobile-menu-content {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .language-switcher.desktop-only {
    display: none;
  }
  
  .mobile-menu-content {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: 2rem;
  }
  
  .main-nav li {
    border: none;
    margin: 0;
    padding: 0;
  }
  
  .main-nav a {
    padding: 0.5rem 0;
    font-size: 14px;
  }
  
  .mobile-language-switcher {
    display: none;
  }
  
  .hero {
    padding: 0;
  }
  
  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ----------------------------------------
   4. Hero Section
-----------------------------------------*/
.hero {
  position: relative;
  min-height: 120vh; /* Increased from 100vh */
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-background {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0; */
  overflow: hidden;
  z-index: 1;
  background: #000; /* Solid black background as fallback */
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 0 30px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
}

.hero-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-text {
  margin: 0;
  padding-top: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f8b739;
  text-align: left;
}

.hero h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #fff;
  text-align: left;
  line-height: 1.4;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-features i {
  color: #f8b739;
  margin-right: 10px;
  font-size: 1.2rem;
}

.apply-form-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* Animation Keyframes */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* Desktop styles (Bootstrap grid) */
@media (min-width: 992px) {
  .hero-overlay {
    display: flex;
    align-items: flex-start;
    padding: 40px 0 30px;
    padding-top: 60px;
  }
  
  .hero-text {
    padding-right: 2rem;
    margin: 0;
    padding-top: 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
    text-align: left;
  }
  
  .hero h3 {
    font-size: 1.6rem;
    text-align: left;
  }
  
  .hero-features {
    gap: 0.8rem;
  }
  
  .apply-form-card {
    margin: 0;
    padding: 1.5rem;
    animation: fadeInRight 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
    max-width: 380px;
  }
}

/* Mobile styles */
@media (max-width: 991.98px) {
  .hero-overlay {
    padding: 60px 0;
    min-height: auto;
    text-align: center;
  }
  
  .hero-text {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .hero h3 {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .hero-features {
    align-items: center;
    padding: 0 1rem;
  }
  
  .apply-form-card {
    margin: 0 auto;
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-overlay {
    min-height: auto;
    padding: 80px 0 !important; /* Increased from 60px */
  }
  
  .hero-content {
    flex-direction: column;
    padding: 0 15px 40px !important;
    gap: 2rem;
  }
  
  .hero-text {
    padding: 0;
    text-align: center;
    max-width: 100%;
  }
  
  .apply-form-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
  }
}

/* Desktop overrides */
@media (min-width: 992px) {
  .hero-overlay {
    min-height: 120vh; /* Increased from 100% */
    padding: 120px 0; /* Increased from 100px */
    justify-content: center;
  }
  
  .hero-content {
    flex-direction: row;
    padding: 0 30px !important;
    gap: 60px;
  }
  
  .hero-text {
    padding: 0 2rem 0 0;
    text-align: left;
    max-width: 600px;
  }
  
  .apply-form-card {
    flex: 0 0 500px;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .hero-overlay {
    padding: 30px 0 !important;
  }
  
  .hero-content {
    padding: 0 15px 30px !important;
    gap: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .apply-form-card {
    padding: 1.5rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-features li {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin: 0.4rem 0;
}

/* Staggered animation for list items */
.hero-features li:nth-child(1) { animation: fadeInUp 0.6s ease-out 1s forwards; }
.hero-features li:nth-child(2) { animation: fadeInUp 0.6s ease-out 1.1s forwards; }
.hero-features li:nth-child(3) { animation: fadeInUp 0.6s ease-out 1.2s forwards; }
.hero-features li:nth-child(4) { animation: fadeInUp 0.6s ease-out 1.3s forwards; }
.hero-features li:nth-child(5) { animation: fadeInUp 0.6s ease-out 1.4s forwards; }

.hero-features li:hover {
  transform: translateX(5px);
  color: var(--purple); /* Purple accent color on hover */
}

/* Feature-specific colors with animations */
.hero-features li:nth-child(1) { 
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: white;
  animation: fadeInUp 0.6s ease-out 1s forwards;
}
.hero-features li:nth-child(2) { 
  background: linear-gradient(135deg, #2196F3, #00BCD4);
  color: white;
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
}
.hero-features li:nth-child(3) { 
  background: linear-gradient(135deg, #FFC107, #FF9800);
  color: #333;
  animation: fadeInUp 0.6s ease-out 1.2s forwards;
}
.hero-features li:nth-child(4) { 
  background: linear-gradient(135deg, #F44336, #E91E63);
  color: white;
  animation: fadeInUp 0.6s ease-out 1.3s forwards;
}
.hero-features li:nth-child(5) { 
  background: linear-gradient(135deg, #9C27B0, #673AB7);
  color: white;
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}

.hero-features li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

.hero-features li i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-features li:nth-child(3) i {
  color: #333;
}

.hero-features li:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Hero Text Animations */
.hero-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDown 0.8s ease-out 0.3s forwards;
}

.hero-text h1 {
  font-size: 2.15rem; /* Reduced from 2.5rem */
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDown 0.8s ease-out 0.5s forwards;
}

.hero-text h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDown 0.8s ease-out 0.7s forwards;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h3 .line-break {
  display: block;
  margin-top: 0.3rem;
}

/* Form container */
.apply-form-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 400px;
  max-width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 0 !important; /* Override any padding */
  z-index: 4; /* highest so it floats above all */
  opacity: 0;
  animation: fadeInRight 1s ease-out forwards;
  animation-delay: 0.5s; /* Slight delay to make it more noticeable */
}

/* Ensure inner elementor container has no padding as well */
.apply-form-card .e-con-full {
  padding: 0 !important;
  margin: 0 !important;
}

/* Make sure form elements don't have extra margins */
.apply-form-card .elementor-widget-form {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure form fields don't have extra spacing */
.apply-form-card .elementor-form-fields-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove padding from all immediate children */
.apply-form-card > * {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove padding from form fields and labels */
.apply-form-card .elementor-field-group,
.apply-form-card .elementor-field-label,
.apply-form-card .elementor-field-textual {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure the form takes full width of its container */
.apply-form-card .elementor-form {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove any default margins from form elements */
.apply-form-card input,
.apply-form-card button,
.apply-form-card select,
.apply-form-card textarea {
  margin: 0 !important;
}

/* Elementor container styles */
.e-con-full {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 0;
  /* Ensure the inner container doesn't have its own animation */
  animation: none !important;
}

.e-con {
  display: flex;
  flex-direction: column;
  --border-radius: 10px 10px 10px 10px;
  --padding-top: 25px;
  --padding-right: 25px;
  --padding-bottom: 25px;
  --padding-left: 25px;
  --position: relative;
}

.e-flex {
  display: flex;
}

.e-child {
  position: relative;
}

.elementor-heading-title {
  color: #03BD63;
  font-family: "Manrope", sans-serif;
  margin-bottom: 25px !important; /* Added spacing below the heading */
  font-size: 35px;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0px 0px 100px rgba(0, 0, 0, 0.98);
  padding: 0;
  margin: 0;
  line-height: 35px;
  text-align: left;
}

/* Elementor form styles */
.elementor-form-fields-wrapper {
  width: 100%;
}

.elementor-form .elementor-field-group {
  margin-bottom: 8px;
}

.elementor-field-label {
  font-size: 13px;
  margin-bottom: 3px;
  color: #555;
  font-weight: 500;
}

.elementor-field {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
}

.elementor-form .elementor-button {
  padding: 10px 15px;
  font-size: 14px;
  height: auto;
  min-height: 40px;
}

.elementor-form-fields-wrapper {
  gap: 0.75rem !important;
}

/* General heading title styles */
.elementor-heading-title {
  font-size: 1.8rem !important;
  margin-bottom: 1.2rem !important;
  text-align: center;
  color: #333;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Specific style for Apply Now heading */
.elementor-element-001b764 .elementor-heading-title {
  color: #28a745 !important; /* Green color for Apply Now */
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem !important;
}

.elementor-button {
  width: 100%;
  padding: 15px;
  background: #3b82f6; /* Lighter blue to match theme */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.elementor-button:hover {
  background: #2563eb; /* Slightly darker blue on hover */
  transform: translateY(-1px);
}

.elementor-button-text {
  font-size: 1.2rem;
}

/* Add spacing above the submit button in Elementor forms */
.apply-form-card .elementor-field-group.elementor-field-type-submit,
.apply-form-card .e-form__buttons,
.apply-form-card .elementor-button-wrapper {
  margin-top: 30px !important;
  display: block;
  width: 100%;
}

/* Ensure the button itself has proper spacing */
.apply-form-card .elementor-button {
  margin-top: 10px !important;
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(50px, -50%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

@media (max-width: 1024px) {
  .hero-text h2 {
    font-size: 2rem;
  }
  .apply-form-card {
    right: 3%;
    width: 330px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3rem;
  }
  
  .hero-text {
    flex: 1 1 100%;
    padding-right: 0;
    text-align: center;
  }
  
  .hero-features {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
  }
  
  .apply-form-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .e-con-full {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  
  .form-container {
    padding: 0 0.5rem;
  }
  
  .e-con-full {
    padding: 1.5rem;
  }
}

/* ----------------------------------------
   5. Calculator Section
-----------------------------------------*/
.calculator {
  position: relative;
  background-image: url('../images/Network.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  color: white;
  padding: 4rem 0;
}

.calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.calculator .container {
  position: relative;
  z-index: 2;
}

.calculator h2 {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.calculator h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
}

.calcul.apply-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  min-width: 0; /* Prevent flex item from overflowing */
  margin: 0 0 0 2rem;
  z-index: 3;
  flex-shrink: 0; /* Prevent form from shrinking */
  
  @media (max-width: 1199.98px) {
    margin-left: 1.5rem;
    padding: 1.75rem;
  }
  
  @media (max-width: 991.98px) {
    margin: 2rem auto 0;
    max-width: 100%;
    padding: 1.5rem;
  }
  
  @media (max-width: 575.98px) {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .contact-methods-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto;
    max-width: 1000px;
    padding: 0 1rem;
  }
  
  .contact-method {
    flex: 1 1 250px;
    max-width: 300px;
  }
  
  /* Hide mobile container on desktop */
  .mobile-contact-methods {
    display: none;
  }
  .apply-form-card {
    padding: 2rem;
    margin: 2rem auto;
  }
}

.loan-table {
  width: 100%;
  padding: 1.5rem;
}

#loanRatesTable {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
}

#loanRatesTable th,
#loanRatesTable td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #e0e0e0;
}

#loanRatesTable th {
  font-weight: 700;
  background-color: #f8f9fa;
  color: #333;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

#loanRatesTable td {
  font-weight: 500;
  background-color: #fff;
  color: #333;
}

#loanRatesTable tr:hover td {
  background-color: #f8f9fa;
}

.btn-interest {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
  border: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-interest:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Button Pyramid Layout */
.button-pyramid {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 1000px;
  position: relative;
  padding: 0 1rem;
}

.button-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  width: 100%;
}

.first-row {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Jiggle Animation */
@keyframes jiggle {
  0%, 100% { transform: rotate(-5deg); }
  25% { transform: rotate(5deg) scale(1.1); }
  50% { transform: rotate(-5deg) scale(1.1); }
  75% { transform: rotate(5deg) scale(1.1); }
}

.btn-interest {
  min-width: 320px;
  text-align: center;
  white-space: nowrap;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  border-radius: 50px;
  display: inline-block;
  color: white;
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Style for the emoji/icon */
.btn-icon {
  display: inline-block;
  margin-right: 8px;
  animation: jiggle 2s infinite ease-in-out;
  transform-origin: center center;
}

.first-row .btn-interest {
  margin: 0 auto;
}

.second-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .button-pyramid {
    max-width: 1000px;
  }
  
  .btn-interest {
    min-width: 280px;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
  
  .second-row {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .button-pyramid {
    max-width: 800px;
  }
  
  .btn-interest {
    min-width: 260px;
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .second-row {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .button-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .first-row {
    margin-bottom: 0.5rem;
  }
  
  .second-row {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  
  .btn-interest {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-icon {
    flex-shrink: 0;
    margin-right: 10px;
  }
}

.rate-info {
  margin-bottom: 2rem;
  text-align: center;
}

.rate-info h3 {
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
  color: white;
  font-size: 1.25rem !important;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  display: inline-block;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  line-height: 1.5;
}

.rate-info h3::before {
  content: '🔥';
  margin-right: 12px;
  animation: pulse 1.8s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1); }
}

.rate-info h3:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(90deg, #FF8E53, #FF6B6B);
  letter-spacing: 2px;
}

.rate-info h3:active {
  transform: translateY(-1px);
}

.rate-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.rate-info li {
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.rate-info .fa-check {
  color: white;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem;
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rate-info li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Contact Methods Animation */
.contact-methods {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-methods.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-methods.fadeInUp {
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loan Table Styles */
/* Loan Table Animation */
#loanRatesTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 2rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 0; /* Start invisible */
  transform: translateY(20px); /* Start slightly below */
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity;
}

#loanRatesTable.animate {
  opacity: 1;
  transform: translateY(0);
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.contact-methods.animate {
  opacity: 1;
  transform: translateY(0);
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BounceIn Animation */
@keyframes bounceIn {
  from {
    transform: scale(0.98) translateY(10px);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.02) translateY(-5px);
    opacity: 1;
  }
  70% {
    transform: scale(0.99) translateY(2px);
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#loanRatesTable.animate {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

#loanRatesTable.pulse-effect {
  animation: pulse 1.5s infinite;
}

/* Style for selected table cell */
#loanRatesTable td.selected {
  background-color: #ffeb3b;
  color: #000;
  font-weight: bold;
  position: relative;
}

#loanRatesTable td.selected::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 12px;
  color: #4caf50;
}

/* Loan result container styles */
#loanResult {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #4caf50;
  display: none;
  overflow: hidden;
  position: relative;
}

.loan-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

#loanResult h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

#loanSummary {
  padding: 1.5rem;
}

#loanSummary p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}

#loanSummary strong {
  color: #333;
  min-width: 200px;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #loanSummary p {
    font-size: 14px;
  }
  
  #loanResult {
    margin: 1rem;
    padding: 1rem;
  }
}

/* Table Styling */
#loanRatesTable th,
#loanRatesTable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

#loanRatesTable th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
}

#loanRatesTable tr:last-child td {
  border-bottom: none;
}

#loanRatesTable tr:hover {
  background-color: #f8f9fa;
}

.loan-table.bounceIn {
  animation: bounceIn 1s forwards;
}

.loan-table.pulse-effect {
  animation: scalePulse 2s infinite;
}

@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
  }
}

#loanRatesTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
  border-spacing: 0;
  padding: 0;
  margin: 0;
}

#loanRatesTable td,
#loanRatesTable th {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  margin: 0;
  transition: background-color 0.2s ease;
}

#loanRatesTable tr:hover td {
  background-color: #f8fafc;
}

#loanRatesTable th,
#loanRatesTable td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

#loanRatesTable th {
  background-color: #3b82f6; /* Lighter blue background for headers */
  color: white; /* White text for better contrast */
  font-weight: 700; /* Bolder text */
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#loanRatesTable tr:nth-child(even) {
  background-color: #f0f7ff; /* Lighter blue for even rows */
}

#loanRatesTable tr:hover {
  background-color: #f1f5f9;
}

#loanRatesTable td:first-child {
  font-weight: 700; /* Bolder text for first column */
  color: #3b82f6; /* Lighter blue color for first column */
}

.contact-btn {
  text-align: center;
  margin-top: 2rem;
}

.contact-btn .btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.contact-btn .btn:hover {
  background-color: #2563eb; /* Slightly darker blue on hover */
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rate-info ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .rate-info li {
    justify-content: center;
  }
  
  #loanRatesTable th,
  #loanRatesTable td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* ----------------------------------------
   6. Language Switcher
-----------------------------------------*/
.language-switcher {
  position: relative;
  margin-left: 20px;
  display: flex;
  align-items: center;
  min-height: 36px; /* Ensure consistent height */
  box-sizing: border-box;
}

/* GTranslate widget styles */
.gtranslate_wrapper {
  display: inline-block;
  position: relative;
  z-index: 999;
}

/* Style the language selector button */
.goog-te-gadget {
  font-family: inherit;
  font-size: 14px;
  color: #333;
  margin: 0;
  padding: 0;
}

.goog-te-gadget-simple {
  background: #ffffff;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  height: 36px;
  transition: all 0.2s ease;
  margin: 0;
  box-sizing: border-box;
}

.goog-te-gadget-simple:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style the dropdown menu */
.goog-te-menu2 {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  margin-top: 8px !important;
  padding: 8px 0 !important;
  min-width: 150px !important;
  z-index: 1000 !important;
}

.goog-te-menu2-item {
  padding: 8px 16px !important;
  color: #333 !important;
  font-size: 14px !important;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
}

.goog-te-menu2-item:hover {
  background: #f8f9fa !important;
  color: #000 !important;
}

.goog-te-menu2-item img {
  margin-right: 8px !important;
  width: 20px !important;
  height: auto !important;
  display: inline-block !important;
}

/* Hide Google Translate branding */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget .goog-te-combo {
  display: none !important;
}

/* Fix for body positioning */
body {
  top: 0 !important;
}

/* For the language selector in the dropdown */
.goog-te-gadget-simple img {
  margin-right: 8px !important;
  width: 20px !important;
  height: auto !important;
  display: inline-block !important;
}

/* Ensure the dropdown stays above other content */
.goog-te-menu2 {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  margin-top: 5px !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .language-switcher {
    margin: 10px 0;
    justify-content: flex-end;
  }
  
  .goog-te-menu2 {
    left: auto !important;
    right: 0 !important;
  }
}

.language-switcher .current-language:hover {
  background: #f8f9fa;
  border-color: #d0d5dd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.language-switcher .current-language:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.language-switcher .current-language img {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.language-switcher .current-language span {
  margin: 0 8px 0 0;
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.language-switcher .current-language i {
  color: #666;
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.language-switcher.active .current-language i {
  transform: rotate(180deg);
}

.language-switcher.active .current-language i {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 180px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 4px 0;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.language-switcher.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.language-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s ease;
  position: relative;
}

.language-option:hover {
  background: #f8f8f8;
}

.language-option img {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.language-option.active {
  background: #f0f7ff;
  color: #0066cc;
  font-weight: 500;
}

.language-option.active:after {
  content: '✓';
  position: absolute;
  right: 12px;
  color: #0066cc;
  font-size: 12px;
}

/* Active language in dropdown */
.language-option[data-lang="en"] {
  font-weight: 600;
  color: #1a73e8;
}

/* Responsive styles */
@media (max-width: 991px) {
  .language-switcher {
    margin: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .language-switcher .current-language {
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: white;
  }
  
  .language-dropdown {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    width: 100%;
  }
  
  .language-switcher.active .language-dropdown {
    display: block;
  }
  
  .language-option {
    padding: 12px 24px 12px 48px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .language-option[data-lang="en"] {
    color: white;
    font-weight: 500;
  }
}

/* ----------------------------------------
   7. About Section
-----------------------------------------*/
/* About Section */
.about {
  padding: 4rem 0;
  background-color: #fff;
}

.about h2 {
  font-size: 35px;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 600;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

/* ----------------------------------------
   6. Process Section with Parallax Background
-----------------------------------------*/
.process {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: url('../images/Apply.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.process .container {
  position: relative;
  z-index: 2;
}

.process h2 {
  color: #fff;
  font-size: 35px;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0;
  display: inline-block;
  font-weight: 600;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.process-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.step-icon:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.step-icon i {
  font-size: 2.2rem;
  color: #fff;
}

.process-step h3 {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-step {
    max-width: 300px;
    margin-bottom: 2rem;
  }
}

/* ----------------------------------------
   7. Services Section with Background Image
-----------------------------------------*/
.services {
  background: url('../images/OfferBackground.jpg') center/cover no-repeat fixed;
  padding: 6rem 0;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services h2 {
  color: var(--primary-color);
  font-size: 35px;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
}

.services h2::after {
  display: none; /* Removed the dash from services section heading */
}

.service-content {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.service-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-image:hover {
  transform: scale(1.02);
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px; /* Added margin to move image down */
}

.service-details {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 1;
}

.service-details h2 {
  text-align: left;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0;
}

.service-details h2::after {
  display: none;
}

.service-details p {
  margin-bottom: 1rem;
}

.service-details h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.2rem;
}

.requirement-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.requirement-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }
}

/* ----------------------------------------
   8. Testimonials Section with Background Image
-----------------------------------------*/
.testimonials {
  background: url('../images/TestimonialBackground.jpg') center/cover no-repeat fixed;
  padding: 6rem 0;
  color: #fff;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.testimonials .container {
  position: relative;
  z-index: 2;
  padding: 0 15px;
}

.testimonials h2 {
  color: var(--primary-color);
  font-size: 35px;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
}

.testimonials h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 3rem auto 0;
  padding: 0 1rem;
  max-width: 1400px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-stars {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.testimonial-stars .star {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.testimonial-stars .star:hover {
  transform: scale(1.2);
}

.testimonial-card blockquote {
  font-style: italic;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  padding: 0 1rem;
}

blockquote::before,
blockquote::after {
  content: '"';
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote::before {
  top: -1rem;
  left: -0.5rem;
}

blockquote::after {
  bottom: -2.5rem;
  right: -0.5rem;
}

.testimonial-author {
  color: var(--teal);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonial Carousel */
.testimonial-carousel {
  width: 100%;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-inner {
  padding: 2rem 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  perspective: 1000px;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  backface-visibility: hidden;
  perspective: 1000px;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.carousel-item.active {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  z-index: 2;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Next slide coming in from right */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

/* Previous slide going to left */
.carousel-item-next.carousel-item-start,
.carousel-item-next:not(.carousel-item-start) ~ .carousel-item {
  transform: translateX(100%);
}

/* Previous slide coming in from left */
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

/* Next slide going to right */
.carousel-item-prev.carousel-item-end,
.carousel-item-prev:not(.carousel-item-end) ~ .carousel-item {
  transform: translateX(-100%);
}

/* Slide in from right */
.carousel-item-next:not(.carousel-item-start).sliding-next,
.active.carousel-item-end.sliding-next {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Slide in from left */
.carousel-item-prev:not(.carousel-item-end).sliding-prev,
.active.carousel-item-start.sliding-prev {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-control-prev:hover,
.carousel-control-next:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.8rem;
  height: 1.8rem;
  background-size: 100% 100%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0;
  justify-content: center;
  z-index: 10;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
  opacity: 1;
}

.carousel-indicators .active {
  width: 30px;
  border-radius: 15px;
  background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .carousel-control-prev {
    left: 5%;
  }
  
  .carousel-control-next {
    right: 5%;
  }
}

@media (max-width: 991.98px) {
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicators .active {
    width: 24px;
  }
}

.testimonial-carousel {
  width: 100%;
  padding-bottom: 40px;
}

.swiper-slide {
  height: auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* Pagination Bullets */
.swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .desktop-testimonials {
    display: none;
  }
  
  .mobile-testimonials {
    display: block;
  }
  
  .testimonial-card {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

/* Ensure Swiper container is properly sized */
.swiper-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
}

/* ----------------------------------------
   9. Calculator Section
-----------------------------------------*/
.calculator {
  background-color: #fff;
  padding: 4rem 0;
  position: relative;
}

.calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.calculator h2 {
  color: #000; /* Changed to black */
  font-size: 35px;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  z-index: 1;
}

.calculator h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
}

.calculator h3 {
  text-align: center;
  color: #000; /* Changed to black */
  font-size: 2rem;
  margin-bottom: 2rem;
}

.calculator h3 {
  margin-bottom: 3rem;
}

.calculator-info {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding-top: 0;
}

.rate-info {
  background-color: #f5f5f5; /* Light gray background */
  padding: 1.5rem 3rem;
  color: #000; /* Black text */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0; /* Light border */
}

.rate-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rate-info ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.rate-info ul li {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600; /* Slightly bolder text */
  display: flex;
  align-items: center;
  background-color: #fff; /* White background */
  color: #000; /* Black text */
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0; /* Light border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.rate-info ul li:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rate-info ul li i {
  margin-right: 0.8rem;
  font-size: 1.3rem;
  color: #fff;
  background-color: var(--primary-color); /* Use primary color for the icon background */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rate-info ul li:hover i {
  background-color: #fff;
  color: var(--primary-color);
  transform: rotate(360deg);
}

.loan-table {
  padding: 2rem 0;
  overflow-x: auto;
}

.loan-table td {
  font-weight: 700; /* Make all table data cells bold */
}

.loan-table th {
  font-weight: 700; /* Make table headers bold too for consistency */
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.contact-btn {
  text-align: center;
  margin-top: 2rem;
}

/* ----------------------------------------
   10. Contact/Footer Section
-----------------------------------------*/
/* Mobile Contact Boxes - Hidden by default, shown on mobile */
.mobile-contact-boxes {
  display: none;
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
  margin: 20px auto;
}

.site-footer {
  background: url('../images/Footer.jpg') no-repeat center center/cover;
  padding: 4rem 0 0;
  position: relative;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem auto;
  padding: 0 1rem;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(100, 100, 100, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  line-height: 80px;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-button:hover {
  background: #25D366;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Method */
/* Contact Methods - Desktop */
.contact-methods-container {
  display: none; /* Hide by default for mobile */
}

.contact-method {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  margin: 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 320px;
  max-width: 100%;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  width: 100%;
  will-change: transform, box-shadow, background;
}

.contact-method:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(33, 150, 243, 0.9));
  box-shadow: 0 15px 30px rgba(25, 118, 210, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-method:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact-method.whatsapp:hover i {
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

.contact-method.email:hover i {
  text-shadow: 0 0 10px rgba(234, 67, 53, 0.6);
}


/* Email specific styles */
.contact-method.email i {
  color: #EA4335; /* Gmail red */
}

.contact-method h3,
.contact-method p {
  margin: 0.3rem 0;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-method:hover .contact-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-method:hover::before {
  background: rgba(76, 175, 80, 0.9);
}

.contact-method:hover .contact-icon i,
.contact-method:hover h3,
.contact-method:hover p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-method .contact-icon i {
  transition: all 0.3s ease;
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: white;
}

.contact-method h3,
.contact-method p {
  margin: 0.3rem 0;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.contact-method h3 {
  color: #ffffff;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin: 3rem 0 0 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-bottom p {
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  height: 25px;
  line-height: 25px;
  font-size: 14px;
  max-width: 100%;
}

.footer-bottom p::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  bottom: -5px;
  left: 25%;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: translateY(-5px);
} 