/* ===== Universal Font System ===== */
:root {
  --font-heading: 48px;
  --font-subheading: 22px;
  --font-paragraph: 16px;
  --font-bold: 700;
  --font-semibold: 600;
  --font-regular: 400;
  --color-primary: #002366;
  --color-accent: #00c0e6;
  --color-text: #555555;
  --color-bg: #f8f9fb;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

.upper-section {
  background-color: #36365E;
  text-align: center;
  color: #ffffff;
  padding: 60px 0;
}

.upper-section h3 {
  font-size: var(--font-heading);
  font-weight: var(--font-semibold);
  margin: 0;
}

/* ===== Navbar ===== */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: var(--font-bold);
  color: var(--color-primary);
  font-size: 22px;
}

.navbar-nav .nav-link {
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-right: 15px;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-accent);
}

.btn-login {
  background-color: #00c0e6;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-login:hover {
  background-color: #009dc0;
  text-decoration: none;
}

/* ===== Hero Section ===== */
.hero-slide-text,
.hero-slide-img {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Show only the active one */
.hero-slide-text.active,
.hero-slide-img.active {
  display: block;
  opacity: 1;
}

/* Button styling (reuse from your earlier design) */
.btn-primary-custom {
  background-color: #00c0e6;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary-custom:hover {
  background-color: #009dc0;
}

/* Optional: Hero background */
.hero {
  background: linear-gradient(90deg, #ffffff 50%, #e8faff 50%);
}

.hero h3 {
  font-size: var(--font-subheading);
  color: var(--color-accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  margin-bottom: 15px;
}

.hero p {
  font-size: var(--font-paragraph);
  margin-bottom: 25px;
  line-height: 1.6;
}

.hero-content {
  display: none;
  transition: opacity 0.6s ease-in-out;
}

/* Show only the active one */
.hero-content.active {
  display: block;
}

.btn-primary-custom {
  background-color: var(--color-accent);
  border: none;
  font-weight: var(--font-semibold);
  padding: 12px 28px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary-custom:hover {
  background-color: #00a6c7;
}

.hero img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border: none;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  margin-left: auto;
  display: block;
}


/* ===== Features Section ===== */
/* ===== Features Section ===== */
.features {
  position: relative;
  background-image: url('../images/company.jpg');
  /* your image path here */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 72, 0.8);
  /* dark overlay for readability */
  z-index: 0;
}

.feature-box {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.feature-box h4 {
  font-weight: var(--font-semibold);
  font-size: 20px;
  margin-top: 10px;
  color: var(--color-accent);
}

.feature-box p {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 8px;
}

/* When visible on scroll */
.feature-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .feature-box {
    margin-bottom: 20px;
  }
}


/* ===== Responsive Fix ===== */
@media (max-width: 992px) {
  .hero {
    text-align: center;
  }

  .hero img {
    margin-top: 30px;
  }
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about-img-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
}

.about-main-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-overlay-img {
  position: absolute;
  top: 20px;
  /* adjust this to move vertically */
  right: 20px;
  /* adjust this to move horizontally */
  width: 35%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff;
  height: 250px;
}

.floating {
  animation: floatUpDown 3s ease-in-out infinite;
}

.about-img-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
}

.about-main-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ✅ Experience Badge */
.experience-badge {
  position: absolute;
  bottom: 60px;
  left: 0px;
  background: linear-gradient(135deg, #00C0E6);
  color: #fff;
  padding: 15px 25px;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.experience-badge h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}

.experience-badge p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Overlay image */
.about-overlay-img {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff;
  transition: transform 0.4s ease;
}

/* Floating animation */
.floating {
  animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-overlay-img {
    top: 10px;
    right: 10px;
    width: 42%;
    height: 177px;
  }

  .experience-badge {
    bottom: 42px;
    left: 0px;
    padding: 10px 15px;
  }
}


.about-content h3 {
  font-size: var(--font-subheading);
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: var(--font-semibold);
}

.about-content h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: var(--font-bold);
}

.about-content p {
  font-size: var(--font-paragraph);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about-content ul li {
  font-size: var(--font-paragraph);
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.about-content ul li i {
  color: var(--color-accent);
  margin-right: 10px;
  font-size: 20px;
}

/* ===== Scroll Animation ===== */
.fade-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about {
    text-align: center;
  }

  .about-content ul li {
    justify-content: center;
  }

  .about-img {
    margin-bottom: 40px;
  }
}


.services {
  position: relative;
  background: #1E5C87 url("../images/services-bg-2-1.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

/* Add overlay to darken the background */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 92, 135, 0.85);
  /* color overlay */
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services h3 {
  font-size: 18px;
  color: #00C0E6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services h1 {
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 40px;
}

/* 🟩 Service Card */
.service-box {
  background-color: #2a2a72;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
}

.service-box img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #00C0E6;
  padding: 15px 25px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  border-radius: 0;
}

/* Hover Effects */
.service-box:hover img {
  opacity: 0.8;
  transform: scale(1.03);
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-footer:hover .service-arrow {
  transform: translateX(6px);
  transition: 0.3s ease;
}

.loan-calculator-section {
  padding: 80px 0;
  color: #fff;
}

.loan-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.7);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00C0E6;
  font-size: 24px;
  transition: 0.3s;
}

.play-button:hover {
  background-color: #00C0E6;
  color: #fff;
  cursor: pointer;
}

.loan-calculator {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.loan-calculator h3 {
  text-align: center;
  color: #1E5C87;
  margin-bottom: 30px;
  font-weight: 700;
}

.range-group {
  margin-bottom: 25px;
}

input[type="range"] {
  width: 100%;
  accent-color: #00C0E6;
  cursor: pointer;
}

.loan-results p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
}

.btn-primary-custom {
  background-color: #00C0E6;
  color: #fff;
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-primary-custom:hover {
  background-color: #009dc0;
}


/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
  background: url("../images/why-choose-bg-1-1.png") no-repeat center center/cover;
  padding: 80px 0;
  /* color: var(--color-text); */
  position: relative;
}

/* Right column background */
.right-images {
  background: url("../images/why-choose-shape-1-2.png") no-repeat center center/cover;
  padding: 40px;
  position: relative;
}

/* Main & overlay images */
.right-images .main-img {
  width: 100%;
}

.right-images .overlay-img {
  position: absolute;
  bottom: -30px;
  right: 40px;
  width: 60%;
  animation: floatUpDown 3s ease-in-out infinite alternate;
}

/* Floating animation */
@keyframes floatUpDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

/* Headings */
.why-choose h3 {
  font-size: var(--font-subheading);
  color: var(--color-accent);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.why-choose h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  margin-bottom: 20px;
}

/* Paragraph */
.why-choose p {
  font-size: var(--font-paragraph);
  color: var(--color-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Benefits list */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefits-list li {
  font-size: var(--font-paragraph);
  font-weight: var(--font-semibold);
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* Progress Section */
.progress-section {
  margin-top: 25px;
}

.progress-item p {
  margin-bottom: 5px;
  font-weight: var(--font-semibold);
  color: var(--color-primary);
}

.progress {
  height: 10px;
  background-color: rgba(0, 35, 102, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  background-color: var(--color-accent);
  text-align: right;
  padding-right: 8px;
  color: #fff;
  font-weight: var(--font-semibold);
}

/* Main (background) image */
.right-images .main-img {
  width: 70%;
  /* max-width: 500px; */
  height: 500px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Overlay (floating) image */
.right-images .overlay-img {
  position: absolute;
  bottom: 0px;
  right: 1px;
  width: 256px;
  height: 300px;
  object-fit: cover;
  animation: floatUpDown 3s ease-in-out infinite alternate;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Floating animation */
@keyframes floatUpDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

/* Responsive fix for small screens */
@media (max-width: 992px) {
  .right-images .main-img {
    max-width: 100%;
    height: auto;
  }

  .right-images .overlay-img {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 15px;
    width: 60%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive Fix */
@media (max-width: 992px) {
  .right-images {
    margin-top: 30px;
  }

  .right-images .overlay-img {
    position: relative;
    bottom: 139px;
    left: 56px;
    width: 54%;
    margin-top: 15px;
  }
}


/* ===== Work Process Section ===== */
.work-process {
  background-color: var(--color-bg);
  padding: 80px 0;
  text-align: center;
}

.work-process h3 {
  font-size: var(--font-subheading);
  color: var(--color-accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-process h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  margin-bottom: 40px;
}

/* Each Step */
.work-step {
  max-width: 250px;
  transition: all 0.3s ease-in-out;
}

.step-img-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.step-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1E5C87;
  transition: transform 0.3s ease;
}

.step-img:hover {
  transform: scale(1.05);
}

.step-btn {
  background-color: #1E5C87;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 6px 20px;
  margin-bottom: 10px;
  font-size: 14px;
}

.process-arrow {
  width: 80px;
  height: auto;
  margin-top: 40px;
}

.work-step h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1E5C87;
}

.work-step p {
  font-size: 14px;
  color: #555;
}

/* Responsive layout */
@media (max-width: 991px) {
  .process-arrow {
    display: none;
  }
}

/* ✅ Stats Section */
/* ✅ Stats Section */
.stats-section {
  background: url("../images/funfact-bg-1-1.jpg") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 80px 0;
  width: 100%;
  position: relative;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 52, 96, 0.7);
  /* universal dark overlay */
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

/* ✅ Universal Font Sizes */
.stats-section h3 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.stats-section p {
  font-size: 18px;
  color: #f1f1f1;
  margin: 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-section h3 {
    font-size: 36px;
  }

  .stats-section p {
    font-size: 16px;
  }

  .stats-section {
    padding: 60px 20px;
  }
}

/* ===== Testimonial Section ===== */
/* ===== Testimonial Section (No Background Image) ===== */
.testimonial-section {
  background: #ffffff;
  /* clean white background */
  color: #333;
  padding: 80px 0;
  position: relative;
  font-family: "Poppins", sans-serif;
}

.testimonial-section h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.testimonial-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 40px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card.active {
  display: flex;
  animation: fadeIn 1s ease;
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #007bff;
}

.testimonial-card p {
  font-size: 18px;
  font-style: italic;
  color: #555;
  max-width: 550px;
}

.testimonial-footer h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-footer p {
  color: #777;
  font-size: 16px;
  margin-bottom: 10px;
}

.stars i {
  color: #ffc107;
  margin: 0 2px;
}

/* ===== Buttons ===== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 123, 255, 0.15);
  border: none;
  color: #007bff;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: #007bff;
  color: #fff;
}

.prev {
  left: -50px;
}

.next {
  right: -50px;
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 30px 15px;
  }

  .testimonial-card p {
    font-size: 16px;
    padding: 0 15px;
  }

  .slider-btn {
    left: 10px;
    right: 10px;
  }
}

.footer-section {
  background: linear-gradient(rgba(0, 35, 102, 0.9), rgba(0, 35, 102, 0.9)),
    url("../images/testimonial-2-3.jpg") no-repeat center center/cover;
  color: var(--color-bg);
  font-family: "Poppins", sans-serif;
  padding: 80px 0 40px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-section p {
  font-size: var(--font-paragraph);
  line-height: 1.7;
}

.footer-section h3 {
  color: var(--color-accent);
  font-size: var(--font-subheading);
  font-weight: var(--font-semibold);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--color-bg);
  text-decoration: none;
  font-size: var(--font-paragraph);
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--color-accent);
}

.footer-line {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 40px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-icons i {
  font-size: 20px;
  margin-right: 15px;
  color: var(--color-accent);
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}

.social-icons i:hover {
  color: #fff;
  transform: translateY(-3px);
}

.copyright {
  color: var(--color-bg);
  font-size: 14px;
  margin: 0;
}

.form-label {
  font-size: 14px;
  color: var(--color-accent);
}

.form-control {
  border-radius: 25px;
  border: none;
  padding: 10px 15px;
}

.form-control:focus {
  box-shadow: none;
  outline: 2px solid var(--color-accent);
}

.form-text {
  font-size: 12px;
  color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-section {
    text-align: center;
  }

  .social-icons i {
    margin: 0 10px;
  }
}


.service-2 {
  background-color: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.service-2 h3 {
  font-size: var(--font-subheading);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: 15px;
}

.service-2 h1 {
  font-size: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 30px;
}

.service-2 p {
  font-size: var(--font-paragraph);
  color: var(--color-text);
  max-width: 350px;
  margin: 10px auto 0;
}

.service-2 .icon {
  font-size: 48px;
  color: var(--color-accent);
  margin-bottom: 10px;
}


.contact {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-paragraph);
}

.contact .contact-card {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 40px 20px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact .contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--color-primary);
  color: #ffffff;
}

.contact .contact-card:hover .icon {
  color: var(--color-accent);
  transform: scale(1.2) rotate(8deg);
}

.contact .icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.contact h3 {
  font-size: var(--font-subheading);
  font-weight: var(--font-semibold);
  margin-bottom: 10px;
  color: var(--color-primary);
  transition: color 0.4s ease;
}

.contact p {
  font-size: var(--font-paragraph);
  color: var(--color-text);
  transition: color 0.4s ease;
}

.contact .contact-card:hover h3,
.contact .contact-card:hover p {
  color: #ffffff;
}

.map {
  background-color: var(--color-bg);
  text-align: center;
}

.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .map-container {
    height: 300px;
    border-radius: 8px;
  }
}