* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden; /* prevent horizontal scroll */
}

/* Navbar */
.custom-nav {
  background-color: #800000;
}

.navbar-brand {
  font-size: 1.2rem;
}

/* Hero */
.hero-section {
  background: linear-gradient(rgba(128,0,0,0.85), rgba(128,0,0,0.85)),
              url('../images/hero.jpg') center/cover no-repeat;
  min-height: 100vh;
  color: white;
  padding-top: 80px;
}

.hero-section h1 {
  font-size: 1.8rem;
}

.hero-section p {
  font-size: 1rem;
}
.hero-section {
  padding-top: 80px;
}

/* Button */
.btn-maroon {
  background-color: #800000;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
}

.btn-maroon:hover {
  background-color: #600000;
}

/* Services */
.service-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Features */
.feature-box {
  background-color: #800000;
  color: white;
  padding: 20px;
  border-radius: 12px;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #800000;
  color: white;
  padding: 20px 0;
}

/* Logo */
.logo {
  height: 40px;      /* Perfect for mobile */
  width: auto;
}

/* Bigger logo on larger screens */
@media (min-width: 768px) {
  .logo {
    height: 80px;
  }
}

/* Mobile menu styling */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #800000;
    padding: 15px;
    border-radius: 0 0 10px 10px;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 1.1rem;
  }
}


/* ================= ABOUT US SECTION ================= */

.about-bg {
  background: linear-gradient(
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.96)
    ),
    url('../images/pattern.png');
  background-size: cover;
}

/* Headings */
#about-section h2,
#about-section h3 {
  color: #800000;
}

/* Paragraph text */
#about-section p,
#about-section li {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About Image */
.about-img {
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.about-img:hover {
  transform: scale(1.03);
}

/* ================= CARDS (MISSION, VISION, VALUES, WHY US) ================= */

.about-card {
  border: none;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(128, 0, 0, 0.25);
}

/* Card Titles */
.about-card h5 {
  color: #800000;
  margin-bottom: 12px;
}

/* Icons inside cards */
.about-card img {
  filter: grayscale(20%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-card:hover img {
  transform: scale(1.15);
  filter: grayscale(0%);
}

/* Values list */
.about-card ul li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* ================= WHY CHOOSE US GRID ================= */

#about-section .row.g-4 > div {
  display: flex;
}

/* ================= WHO WE ARE SECTION ================= */

#about {
  background: #ffffff;
}

#about h2 {
  color: #800000;
}

#about p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

#about img {
  max-height: 350px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  #about-section h2,
  #about-section h3 {
    text-align: center;
  }

  .about-img,
  #about img {
    max-height: 260px;
    margin-top: 15px;
  }

  .about-card {
    padding: 25px 18px !important;
  }
}

/* ================= SUBTLE ANIMATION ================= */

.fade-in,
.fade-in-up {
  animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SERVICES SECTION ================= */

.services-bg {
  background: linear-gradient(
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.96)
    ),
    url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center;
}

#service-section h2,
#service-section h3 {
  color: #800000;
}
.service-card {
  background: #ffffff;
  border-radius: 22px;
  transition: all 0.35s ease;
  height: 100%;
}

.service-card h5 {
  color: #800000;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #2c2c2c;
  line-height: 1.6;
}

/* Hover Effect */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.service-card img {
  transition: transform 0.35s ease;
}

.service-card:hover img {
  transform: scale(1.15);
}
@media (max-width: 768px) {
  #services-section h2 {
    font-size: 1.6rem;
  }

  #services-section p {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 28px 20px !important;
  }
}

/* ================= BRANCHES ================= */

.branch-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(128, 0, 0, 0.25);
}

.branch-card h6 {
  color: #800000;
  font-weight: 600;
}

.branch-card p {
  font-size: 0.9rem;
  color: #555;
}
.branch-card img {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
/* ================= GLOBAL CARD HOVER EFFECT ================= */

.about-card,
.service-card,
.branch-card,
.card {
  position: relative;
  border: 2px solid transparent;
  transition: 
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.about-card:hover,
.service-card:hover,
.branch-card:hover,
.card:hover,
.about-card:focus-within,
.service-card:focus-within,
.branch-card:focus-within,
.card:focus-within {
  border-color: #800000; /* Maroon */
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.25),
              0 18px 40px rgba(128, 0, 0, 0.3);
  transform: translateY(-8px);
}
.about-card,
.service-card,
.branch-card,
.card {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .about-card:active,
  .service-card:active,
  .branch-card:active,
  .card:active {
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.25);
    transform: scale(0.98);
  }
}
.branch-card:hover img {
  transform: scale(1.1);
}

.branch-card img {
  transition: transform 0.3s ease;
}
.service-card img,
.about-card img {
    transition: transform 0.3s ease;
}

/* ================= LOAN PRODUCTS SECTION ================= */

.loan-bg {
  background: #f8f9fa; /* Light background for contrast */
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Header */
#loan-products h2 {
  color: #800000;
}

#loan-products p {
  color: #555;
  font-size: 0.95rem;
}

/* Loan Cards */
.loan-card {
  background: #ffffff;
  border-radius: 22px;
  border: 2px solid transparent;
  transition: all 0.35s ease;
  padding: 25px;
  height: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* Card Titles */
.loan-card h5 {
  color: #800000;
  margin-bottom: 10px;
}

/* Card Paragraphs */
.loan-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Card Icons */
.loan-card img {
  transition: transform 0.3s ease;
}

.loan-card:hover img {
  transform: scale(1.15);
}

/* Hover / Pointer Effect for Cards */
.loan-card:hover,
.loan-card:focus-within {
  border-color: #800000; /* Maroon */
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.25),
              0 18px 40px rgba(128, 0, 0, 0.3);
  transform: translateY(-8px);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  #loan-products h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  #loan-products p {
    text-align: center;
    font-size: 0.9rem;
  }

  .loan-card {
    padding: 20px;
  }
}

/* OPTIONAL: Smooth fade-in animation */
#loan-products .loan-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

#loan-products .loan-card:nth-child(1) { animation-delay: 0.1s; }
#loan-products .loan-card:nth-child(2) { animation-delay: 0.2s; }
#loan-products .loan-card:nth-child(3) { animation-delay: 0.3s; }
#loan-products .loan-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MAIN FOOTER ================= */
.main-footer {
  background-color: #0c1b34;; /* Maroon */
  color: #ffffff;
  padding: 60px 20px 30px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-column h3,
.footer-column h4 {
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column li a {
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffcccb; /* light pinkish hover */
}

/* Social Links */
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 8px;
    width: 40px;
    height: 40px;
    background: #0c66f0;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #084bb1;
    transform: translateY(-4px);
}
.social-links a:hover i {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    border-top: 1px solid #444;
    margin-top: 40px;
}
.social-links a:hover {
  background-color: #0a76f1;
  color: #fdfcfc;
  transform: scale(1.2);
}

/* Copyright */


/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 25px;
  }

  .social-links a {
    margin-right: 8px;
    margin-bottom: 10px;
  }
}

/* ================= COMPANY STATS ================= */

.stats-bg {
  background: linear-gradient(
      #800000,
      #800000
    ),
    url('../images/stats-bg.jpg');
  background-size: cover;
  background-position: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 35px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(128, 0, 0, 0.35);
}

/* Numbers */
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #800000;
  margin-bottom: 8px;
}

/* Labels */
.stat-card p {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 28px 15px;
  }
}

/* ================= CONTACT SECTION ================= */

/* ================= CONTACT PAGE STYLES ================= */

/* Header */
.contact-header {
  background: linear-gradient(
    rgba(128, 0, 0, 0.95),
    rgba(128, 0, 0, 0.95)
  );
  color: #fff;
  text-align: center;
  padding: 70px 15px;
}

.contact-header h1 {
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 1rem;
  opacity: 0.95;
}

/* Contact Cards */
.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.35s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(128, 0, 0, 0.35);
  border: 2px solid #800000;
}

/* Icon Circle */
.icon-circle {
  width: 70px;
  height: 70px;
  background: #800000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto;
}

/* Titles */
.contact-card h4 {
  font-weight: 600;
  margin-top: 15px;
  color: #800000;
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #800000;
  color: #fff;
  border-radius: 50%;
  margin: 0 6px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #5e0000;
  transform: scale(1.12);
  color: #fff;
}

/* Working Hours */
.contact-card ul li {
  padding: 6px 0;
  font-size: 0.95rem;
}

/* Form Inputs */
.form-control,
.form-select {
  border-radius: 12px;
  padding: 12px;
  border: 1.5px solid #ddd;
}

.form-control:focus,
.form-select:focus {
  border-color: #800000;
  box-shadow: none;
}

/* Button */
.btn-primary {
  background-color: #800000;
  border: none;
  border-radius: 12px;
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5e0000;
}

/* Google Map */
iframe {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .contact-header {
    padding: 55px 15px;
  }

  .contact-card {
    padding: 25px 18px;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  iframe {
    height: 300px;
  }
}


/* ================= WHATSAPP FLOATING BUTTON ================= */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: scale(1.08);
  color: #fff;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 24px;
    bottom: 18px;
    right: 18px;
  }
}

/* ================= CHECK ACCOUNT BUTTON ================= */

.btn-check-account {
  background: linear-gradient(135deg, #800000, #5e0000);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(128, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.btn-check-account:hover {
  background: linear-gradient(135deg, #5e0000, #800000);
  transform: translateY(-4px) scale(1.03);
  color: #fff;
}

/* ================= CHECK ACCOUNT PAGE ================= */

.check-account-bg {
  background: linear-gradient(
    rgba(128, 0, 0, 0.95),
    rgba(128, 0, 0, 0.95)
  );
  min-height: 100vh;
}

/* Result Box */
.result-box {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #800000;
}

/* Status Badge */
.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-active {
  background: #e6f4ea;
  color: #137333;
}

.status-pending {
  background: #fff4e5;
  color: #b26a00;
}

.status-closed {
  background: #fdecea;
  color: #b3261e;
}

/* ================= BACK TO TOP BUTTON ================= */

#backToTop {
  position: fixed;
  bottom: 95px; /* Above WhatsApp button */
  right: 22px;
  background: #800000;
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(128, 0, 0, 0.4);
  z-index: 998;
  transition: all 0.3s ease;
}

#backToTop:hover {
  background: #5e0000;
  transform: translateY(-4px);
}

/* Mobile */
@media (max-width: 768px) {
  #backToTop {
    width: 44px;
    height: 44px;
    font-size: 16px;
    bottom: 85px;
  }
}
