/* =============================================
   OPTION CREDIT SERVICES – Global Stylesheet
   style.css
   ============================================= */

/* ---------- BASE ---------- */
* { font-family: 'Poppins', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #F8FAFC; overflow-x: hidden; max-width: 100vw; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #2563EB; border-radius: 6px; }

/* ---------- GLOBAL OVERFLOW FIX ---------- */
section { max-width: 100vw; overflow-x: hidden; }
.swiper-wrapper { max-width: 100vw; }

/* ---------- NAVBAR ---------- */
#navbar { transition: all 0.3s ease; }
#navbar.scrolled { box-shadow: 0 4px 24px rgba(30,58,138,0.12); background: #fff; }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563EB;
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.current-menu-item a::after { width: 100%; }

/* ---------- HAMBURGER ---------- */
.hamburger span { display: block; width: 24px; height: 2px; background: #1E3A8A; transition: all 0.3s; margin: 5px 0; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
#mobile-menu { transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobile-menu.open { max-height: 500px; opacity: 1; }

/* ---------- HERO SLIDER ---------- */
.swiper { width: 100%; height: 80vh; }
@media (max-width: 768px) { .swiper { height: 55vh; } }

.hero-swiper {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

/* SCOPED to hero only — does NOT affect testimonial swiper */
.hero-swiper .swiper-slide {
  width: 100% !important;
  max-width: 100vw;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 7s ease;
  width: 100%;
  height: 100%;
}
.swiper-slide-active .slide-bg { transform: scale(1.06); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,60,0.72) 0%, rgba(10,20,60,0.38) 60%, transparent 100%);
}

.slide-content { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; padding: 0 6%; }
.slide-title { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; color: #fff; }
.slide-sub { color: rgba(255,255,255,0.85); font-size: clamp(0.9rem, 1.8vw, 1.15rem); margin-top: 10px; }

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 48px !important;
  height: 48px !important;
  backdrop-filter: blur(4px);
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 18px !important; font-weight: 700; }

.swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; background: #2563EB; }

@media (max-width: 768px) {
    .allvehicleimg img{
        height:300px;
        object-fit:cover;
    }
    .sldrBtn {
    display: flex;
    justify-content: center;
}
    .loan-card{
    width: 100% !important;
}
  .hero-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100vw;
    overflow: hidden;
  }
  .slide-content { padding: 0 4%; text-align: center; justify-content: center;}
  .slide-title { font-size: 1.5rem !important; }
  .slide-sub { font-size: 0.8rem; }
  .swiper-button-next,
  .swiper-button-prev { width: 36px !important; height: 36px !important; }
  .swiper-button-next::after,
  .swiper-button-prev::after { font-size: 14px !important; }
}

/* ---------- TESTIMONIAL SWIPER ---------- */
.testimonial-swiper { height: auto !important; padding-bottom: 40px !important; }
.testimonial-swiper .swiper-wrapper { align-items: stretch; }
.testimonial-swiper .swiper-slide { height: auto; display: flex; }
.testimonial-swiper .swiper-slide > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* ---------- LOAN CATEGORY TICKER ---------- */
.loan-ticker-wrap { overflow: hidden; width: 100%; }
.loan-ticker { display: flex; gap: 12px; width: max-content; animation: tickerScroll 22s linear infinite; }
.loan-ticker:hover { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- LOAN PILL ---------- */
.loan-pill { transition: all 0.25s; cursor: pointer; }
.loan-pill:hover { background: #2563EB; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); border-color: #2563EB; }
.loan-pill:hover svg { color: #fff; stroke: #fff; }

/* ---------- SERVICE / LOAN CARDS ---------- */
.loan-card {
  transition: all 0.3s ease;
  background: #EEF2FF;
  width: calc(25% - 12px);
  min-width: 200px;
  min-height: 240px;
}

@media(max-width: 768px) {
  .loan-card { width: calc(50% - 8px); }
}

.loan-card:hover {
  background: #1E3A8A;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,58,138,0.2);
}

/* Icon wrap */
.loan-card .card-icon-wrap { background: #dce6fb; border-radius: 12px; transition: all 0.3s; }
.loan-card:hover .card-icon-wrap { background: rgba(255,255,255,0.15); }

/* Icon */
.loan-card .card-icon { color: #1E3A8A; transition: all 0.3s; }
.loan-card:hover .card-icon { color: #fff; }

/* Title */
.loan-card .card-title { color: #1E3A8A; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; transition: all 0.3s; }
.loan-card:hover .card-title { color: #fff; }

/* Description – ALWAYS visible */
.loan-card .card-desc { display: block; color: #4B5563; font-size: 0.75rem; line-height: 1.5; margin-top: 8px; transition: color 0.3s; }
.loan-card:hover .card-desc { color: #BFDBFE; }

/* Link – ALWAYS visible */
.loan-card .card-link { display: flex; align-items: center; gap: 6px; color: #1E3A8A; font-size: 0.8rem; font-weight: 600; margin-top: 12px; transition: color 0.3s; }
.loan-card:hover .card-link { color: #fff; }

/* Layout – ALWAYS left aligned */
.loan-card .default-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}
/* ---------- FEATURE CARDS (service inner pages) ---------- */
.feature-card { transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,58,138,0.12); }
.newflxbn.visible {
    display: flex;
   
    justify-content: center;
    flex-wrap: wrap;
}
.newflxbn.visible  .loan-type-card  {
    width: calc(33.386% - 14px);
}
.loan-type-card { transition: all 0.3s ease; }
.loan-type-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,58,138,0.12); }

/* ---------- FAQ ---------- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 300px; }
.faq-chevron { transition: transform 0.3s; }
.faq-chevron.open { transform: rotate(180deg); }

/* ---------- PARTNER LOGOS ---------- */
.partner-ticker { display: flex; gap: 40px; width: max-content; animation: partnerScroll 20s linear infinite; }
.partner-ticker:hover { animation-play-state: paused; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-item img { filter: grayscale(100%) opacity(0.5); transition: all 0.3s; height: 36px; width: auto; object-fit: contain; }
.partner-item:hover img { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* ---------- BLOG CARDS ---------- */
.blog-card .blog-img { transition: transform 0.5s ease; }
.blog-card:hover .blog-img { transform: scale(1.06); }

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- SCHEME CARDS ---------- */
.scheme-card { transition: all 0.3s; }
.scheme-card:hover { transform: translateY(-4px); }

/* ---------- STAND CARD (About page) ---------- */
.stand-card { transition: all 0.3s ease; }
.stand-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,58,138,0.15); }

/* ---------- FORM INPUTS ---------- */
.form-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); outline: none; }
input[type="range"] { accent-color: #2563EB; }

/* ---------- PROCESS LINE ---------- */
.process-line { background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%); height: 2px; flex: 1; }

/* ---------- LOAN SCROLL ---------- */
.loan-scroll::-webkit-scrollbar { height: 3px; }
.loan-scroll::-webkit-scrollbar-thumb { background: #2563EB; border-radius: 4px; }

/* ---------- BUTTON ZOOM EFFECT ---------- */
a[class*="rounded-full"]:not(.nav-link):not(.loan-pill),
a[class*="rounded-xl"]:not(.nav-link),
a[class*="rounded-2xl"],
button[class*="rounded-full"],
button[class*="rounded-xl"],
button[class*="rounded-2xl"] {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}
a[class*="rounded-full"]:not(.nav-link):not(.loan-pill):hover,
a[class*="rounded-xl"]:not(.nav-link):hover,
a[class*="rounded-2xl"]:hover,
button[class*="rounded-full"]:hover,
button[class*="rounded-xl"]:hover,
button[class*="rounded-2xl"]:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 25px rgba(37,99,235,0.35) !important;
}

/* ---------- FLOATING SOCIAL BUTTONS ---------- */
.social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50% 0 0 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s;
  color: #fff;
  text-decoration: none;
}
.social-float a:hover { width: 52px; }

/* Hide floating buttons on mobile to prevent overflow */
/* Smaller floating buttons on mobile */
@media (max-width: 768px) {
  .social-float a {
    width: 36px;
    height: 36px;
  }
  .social-float a svg {
    width: 16px;
    height: 16px;
  }
  .newflxbn.visible  .loan-type-card  {
    width: calc(100% - 0px);
}
}
/* ---------- HERO BANNER (service inner pages) ---------- */
.hero-banner {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 560px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  box-sizing: border-box;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.20);
  z-index: 0;
}
/* Tablet */
@media (max-width: 1024px) {
  .hero-banner { min-height: 460px; padding-top: 90px; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 360px;
    padding-top: 80px;
    padding-bottom: 40px;
    background-position: center center !important;
  }
  .hero-banner h1 { font-size: 1.8rem !important; line-height: 1.2 !important; }
  .hero-banner p { font-size: 0.8rem !important; }
  .hero-banner .flex-wrap { gap: 6px !important; }
  .hero-banner span { font-size: 0.65rem !important; padding: 4px 8px !important; }
}

/* ---------- BANNER IMAGES PER PAGE ---------- */
.banner-usedcar  { background-image: url('image/usedcarloan.jpg'); }
.banner-newcar   { background-image: url('image/newcarloan.png'); }
.banner-personal { background-image: url('image/personalloan.png'); }
.banner-business { background-image: url('image/businessloan.png'); }
.banner-home     { background-image: url('image/homeloan.png'); }
.banner-credit   { background-image: url('image/creditcard.png'); }
.banner-topup    { background-image: url('image/carloantopupbanner..jpg'); }
.banner-cv       { background-image: url('image/cv-loan.png'); }
.banner-mortgage { background-image: url('image/mortgage.png'); }
.banner-about    { background-image: url('image/about.jpg'); }
.banner-services { background-image: url('image/services.jpg'); }

.banner-usedcar {
  background: url('image/usedcarloan.jpg') center top / cover no-repeat !important;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 20, 60, 0.75) 0%, rgba(10, 20, 60, 0.45) 20%, transparent 70%);
  z-index: 0;
}
/* ---------- ABOUT / BLOG / CONTACT / SERVICES HEROES ---------- */
.about-hero {
   background-position: center;background-size: cover;background-repeat: no-repeat;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  box-sizing: border-box;
}
.footmnu a {
    color: #bfdbfe;
}
.about-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,20,60,0.30); }

.blog-hero {
  background: url('image/blog banner.jpg') center/cover no-repeat;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  box-sizing: border-box;
}
.blog-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,20,30,0.60); }

.contact-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  box-sizing: border-box;
}
.contact-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,20,30,0.20); }

.services-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  box-sizing: border-box;
}
.services-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,20,60,0.60); }

@media (max-width: 768px) {
  .about-hero,
  .blog-hero,
  .contact-hero,
  .services-hero {
    min-height: 260px;
    padding-top: 70px;
  }
}

/* ---------- ABOUT – VALUE IMAGE CARD ---------- */
.value-img-card {
  position: relative;
  background-image: url('image/ourvalue.png');
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.value-img-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,60,0.88) 40%, rgba(10,20,60,0.30) 100%);
  border-radius: 1rem;
}

/* ---------- BLOG INNER – MORE CARDS ---------- */
.more-card { position: relative; overflow: hidden; border-radius: 1rem; }
.more-card img { transition: transform 0.5s ease; }
.more-card:hover img { transform: scale(1.05); }
.more-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,60,0.85) 0%, rgba(10,20,60,0.2) 60%, transparent 100%);
}

/* ---------- BLOG INNER – CONTENT TYPOGRAPHY ---------- */
.blog-content h2 { font-size: 1.2rem; font-weight: 800; color: #1E3A8A; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.blog-content p { font-size: 0.875rem; color: #4B5563; line-height: 1.8; margin-bottom: 1rem; }
.blog-content a { color: #2563EB; font-weight: 600; }
.blog-content ol { counter-reset: item; padding-left: 0; }
.blog-content ol li { font-size: 0.875rem; color: #4B5563; line-height: 1.8; margin-bottom: 1rem; padding-left: 0; list-style: none; }
.blog-content ol li .point-title { color: #2563EB; font-weight: 600; display: block; margin-bottom: 0.25rem; }

/* ---------- CONTACT INFO CARD ---------- */
.info-card { transition: all 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,58,138,0.12); }





/* ===== CONTACT FORM VALIDATION ===== */
.form-input.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.form-input.input-success {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
}

.field-error-msg {
  display: none;
  color: #ef4444;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

.field-error-msg.visible {
  display: block;
}

.form-success-toast {
  display: none;
  background: #f0fdf4;
  border: 1px solid #22c55e;
  color: #15803d;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.form-success-toast.visible {
  display: block;
}

.send-btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}












/* Validation Styles subscription */
/* ── Newsletter Validation ── */
.newsletter-input-error {
  outline: none !important;
  box-shadow: 0 0 0 2px #ef4444 !important;
}

.newsletter-input-success {
  box-shadow: 0 0 0 2px #22c55e !important;
}

.newsletter-error-msg {
  color: #fca5a5;
  font-size: 14px;
  margin-top: 6px;
  text-align: left;
  display: none;
  padding-left: 2px;
}

.newsletter-error-msg.show {
  display: block;
      text-align: center;
}

.newsletter-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #22c55e;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.newsletter-toast.show {
  opacity: 1;
  transform: translateY(0);
}


.text-sm {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}
.loan-card .card-desc {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}
.loan-card .card-link {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

@media (max-width: 767px) {
   .text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}
.loan-card .card-desc {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}
.loan-card .card-link {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}
}

