/* ============================================================
   LENDAMERICA — responsive.css  (production-grade)
   Breakpoints: 1366 | 1199 | 1024 | 991 | 768 | 575 | 480 | 375
   ============================================================ */

/* ------------------------------------------------------------------
   GLOBAL BASE — applied at all sizes
   Fix: iOS background-attachment:fixed rendering bug,
        horizontal overflow, fluid images
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* iOS: fixed backgrounds cause rendering artifacts — convert to scroll */
/* .play-sec,
.company-sec,
.counter-sec,
.loan-sec,
.testimonials-sec {
  background-attachment: scroll;
} */

/* Global: h1 override in custom.min.css (.dark-section h1 at 3.8rem)
   is leaking onto blog-detail and privacy pages. Scope it. */
section.blog-detail h1.mainHead,
section.privacy-policy h1.mainHead,
section.terms-conditions h1.mainHead {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0c2139;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  text-shadow: none;
  letter-spacing: 0;
}

/* ============================================================
   1366px — Large laptops / wide screens
   ============================================================ */
@media only screen and (max-width: 1920px) and (min-width: 1500px) {
  .container {
    max-width: 1200px;
  }
}

@media only screen and (max-width: 1366px) {
  html {
    font-size: 15px;
  }

  .main-box {
    width: 280px;
  }

  .businessub2,
  .businessub3,
  .chooseimg2,
  .chooseimg3 {
    max-width: 120px;
  }

  .company-sec::before {
    width: 800px;
  }

  .main-box .main-icon img {
    width: 40px;
  }

  .inner-banner {
    height: 480px;
  }
}

/* ============================================================
   1199px — Tablet landscape / small laptop
   ============================================================ */
@media (max-width: 1199.98px) {
  html {
    font-size: 14px;
  }

  /* Navbar */
  .navbar-nav {
    gap: 1.4rem;
  }

  .headphone-imag {
    display: none;
  }

  .nav-flex a i {
    border-right: none;
    padding-right: 0.5rem;
  }

  /* Hero */
  .main-box {
    padding: 1.25em;
  }

  .mainbanner .row+.row {
    padding-top: 100px;
  }

  .main-content h1 {
    font-size: 3rem;
  }

  /* About */
  .about-content p {
    width: 100%;
  }

  .about-loan {
    margin: -120px -10px 0 0;
  }

  /* Company */
  .company-sec::before {
    width: 700px;
  }

  .company-content {
    margin-left: 0;
  }

  .company-flex p {
    width: 100%;
  }

  /* Business */
  .business-wrapp {
    padding: 2rem;
  }

  .businessub2,
  .businessub3,
  .chooseimg2,
  .chooseimg3 {
    max-width: 90px;
  }

  /* Choose */
  .choose-main {
    padding-left: 1rem;
  }

  /* Footer */
  .footer-bottom {
    margin-top: 4rem;
  }

  .inner-banner {
    height: 380px;
  }
}

/* ============================================================
   1024px — Small laptop / large tablet
   ============================================================ */
@media (max-width: 1024px) {

  /* Services card padding */
  .services-content {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  }

  /* Company wide blue bar */
  .company-sec::before {
    width: 100%;
    border-radius: 0;
  }

  /* Business */
  .business-wrapp {
    padding: 1.75rem;
    gap: 0.75rem;
  }

  /* Choose decorative images */
  .chooseimg2,
  .chooseimg3 {
    display: none;
  }

  /* Footer bottom spacing */
  .footer-bottom {
    margin-top: 3rem;
  }
}

/* ============================================================
   991px — Tablet portrait  (Bootstrap md breakpoint)
   ============================================================ */
@media (max-width: 991.98px) {
  html {
    font-size: 13px;
  }

  section {
    padding: 4rem 0;
  }

  /* ------ NAVBAR ------ */
  header {
    padding: 0.875rem 0;
  }

  .navbar-toggler {
    border: 2px solid #0c2139;
    border-radius: 4px;
    color: #0c2139;
    font-size: 1.1rem;
    padding: 0.35rem 0.6rem;
    background: transparent;
    outline: none;
    box-shadow: none;
    flex-shrink: 0;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid #e6eaef;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-item .nav-link {
    padding: 0.55rem 0;
    font-size: 1rem;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .form-inline {
    width: 100%;
  }

  .nav-flex {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-flex a i {
    border-right: none;
    padding-right: 0;
    width: auto;
    height: auto;
  }

  .headphone-imag {
    display: flex;
    padding-left: 0;
  }

  .navbar-brand {
    width: 170px;
  }

  /* nav must be relative for absolute dropdown */
  nav.navbar {
    position: relative;
  }

  /* ------ HERO / MAIN BANNER ------ */
  .mainbanner {
    padding: 5.5rem 0 0;
  }

  .mainbanner .row+.row {
    padding-top: 60px;
  }

  .main-content h1 {
    font-size: 2.75rem;
  }

  .main-content p {
    margin-bottom: 1.25rem;
  }

  /* Fix hard-coded 331px box width */
  .main-flex {
    gap: 0.625rem;
  }

  .main-box {
    width: 200px;
  }

  .main-box h4 {
    font-size: 1rem;
  }

  /* ------ ABOUT ------ */
  .about-sec {
    padding: 4rem 0 2rem;
  }

  .about-content p {
    width: 100%;
  }

  .about-flex {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  /* Hide the floating loan calculator — causes layout issues */
  .about-loan {
    display: none;
  }

  /* ------ SERVICES ------ */
  .services-sec {
    padding: 4rem 0 2rem;
  }

  .services-sec .row>[class*="col-"] {
    margin-bottom: 2.5rem;
  }

  .services-sec .row>[class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .services-content {
    padding: 2rem 1.75rem 1.75rem;
  }

  /* The icon badge that overflows service card bottom */
  .services-sub {
    height: 3.5rem;
    width: 3.5rem;
    right: 1rem;
    bottom: -1.75rem;
  }

  /* Decorative bottom image on services */
  .servicessub {
    display: none;
  }

  /* Services page extra rows */
  section.services-sec.servicespage-sec .row+.row {
    padding-top: 2.5rem;
  }

  /* ------ BUSINESS ------ */
  .business-sec {
    padding: 4rem 0 5rem;
  }

  .business-sec::before {
    height: 100%;
    top: 0;
  }

  .business-wrapp {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .business-sec .row+.row {
    padding-top: 2rem;
  }

  .businessub2,
  .businessub3 {
    display: none;
  }

  /* ------ PLAY SECTION ------ */
  .play-sec {
    height: 360px;
  }

  .play-wrapp a i {
    height: 5rem;
    width: 5rem;
    font-size: 1.5rem;
  }

  /* ------ COMPANY ------ */
  .company-sec {
    margin-top: 3rem;
  }

  .company-sec::before {
    width: 100%;
    height: 520px;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 0;
  }

  .company-content {
    margin-left: 0;
    margin-bottom: 2.5rem;
  }

  .company-flex p {
    width: 100%;
  }

  .company-list {
    max-height: none;
    flex-flow: row wrap;
    gap: 0.5rem 2rem;
  }

  .company-main {
    margin-top: 2rem;
  }

  /* ------ TESTIMONIALS ------ */
  .testimonials-wrapp {
    padding: 2rem 2rem 4rem;
  }

  .testimonslider {
    padding-bottom: 5.5rem;
  }

  /* ------ CHOOSE / WHY US ------ */
  section.choose-sec {
    padding: 4rem 0 4rem;
  }

  section.choose-sec.about-choose {
    padding: 4rem 0 5rem;
  }

  .choose-imag {
    margin-bottom: 2rem;
  }  

  .choose-main {
    padding-left: 0;
  }

  .chooseimg2,
  .chooseimg3 {
    display: none;
  }

  .choose-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .choose-wrapp {
    width: 100%;
  }

  /* ------ COUNTER ------ */
  .counter-sec {
    padding: 4rem 0;
  }

  .counter-wrapp {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  /* Hide the vertical divider lines between counters */
  .counter-wrapp::before {
    display: none;
  }

  /* ------ BLOG ------ */
  .blog-sec .row>[class*="col-"] {
    margin-bottom: 2rem;
  }

  .blog-sec .row>[class*="col-"]:last-child {
    margin-bottom: 0;
  }

  /* Blog page extra rows */
  .blog-sec.blogpage .row+.row {
    padding-top: 2rem;
  }

  /* ------ LOAN / CTA BANNER ------ */
  .loan-sec .themeBtn {
    display: inline-block;
    margin-left: 0;
    margin-top: 1.5rem;
  }

  .loan-content .mainHead {
    font-size: 2.25rem;
  }

  /* ------ FOOTER ------ */
  footer {
    padding: 4rem 0 0;
  }

  footer .container>.row>[class*="col-"] {
    margin-bottom: 2rem;
  }

  .footer-bottom {
    margin-top: 2rem;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  /* ------ INNER BANNER ------ */
  .inner-banner .overlay h2 {
    font-size: 3.5rem;
  }

  /* On inner pages, the main-bottom is absolutely positioned
     overlapping the banner image — make it static */
  .inner-banner .main-bottom {
    position: static;
    padding: 1.25em;
    background: #f4f6f8;
    border-radius: 4px;
  }

  .inner-banner .main-flex {
    justify-content: space-between;
  }

  .inner-banner .main-box {
    border-radius: 4px !important;
  }

  /* ------ CONTACT ------ */
  .contact-overlay {
    padding: 2rem 1.75rem;
  }

  ul.contact-list {
    margin-top: 2.5rem;
  }

  ul.contact-list li+li {
    margin: 2.5rem 0;
  }

  ul.contact-list li a h5 {
    white-space: normal;
  }

  /* ------ RESOURCE / CREDIT CHECK ------ */
  .credit_check .row>[class*="col-"] {
    margin-bottom: 2rem;
  }

  .credit_check .credit_text {
    padding: 2rem 1.5rem;
  }

  /* Company section variant on resource page */
  section.company-sec.resource-company {
    padding: 6rem 0;
  }

  section.company-sec.resource-company::before {
    height: 520px;
  }

  /* Testimonials on resource page */
  section.testimonials-sec.resource-testimonials {
    padding: 5rem 0 6rem;
  }

  /* ------ LOAN CALCULATOR (about page) ------ */
  .loan-section {
    padding: 2rem 1.75rem 2.5rem;
  }

  .loan-header {
    padding: 1.75rem;
  }

  /* ------ PLAY SEC ON SERVICES PAGE ------ */
  section.play-sec.services-play {
    margin: 4rem 0;
  }

  .services-sub img {
    width: 28px;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .business-imag img {
    width: 30px;
  }

  .inner-banner {
    height: 280px;
  }

  section.about-sec.aboutpage-sec {
    padding: 12rem 0 4rem;
  }
}

/* ============================================================
   768px — Mobile landscape  (Bootstrap sm breakpoint)
   ============================================================ */
@media (max-width: 767.98px) {
  html {
    font-size: 12.5px;
  }

  .themeBtn {
    padding: 1em;
  }

  section {
    padding: 3.5rem 0;
  }

  .mainHead {
    font-size: 2.25rem;
  }

  /* ------ NAVBAR ------ */
  .navbar-brand {
    width: 155px;
  }

  /* ------ HERO ------ */
  .mainbanner {
    padding: 5rem 0 0;
  }

  .mainbanner .row+.row {
    padding-top: 40px;
  }

  .main-content h1 {
    font-size: 2.25rem;
  }

  .main-box {
    padding: 1em;
    gap: 1rem;
    width: 180px;
  }

  /* ------ ABOUT ------ */
  .about-flex {
    gap: 1.25rem;
  }

  /* ------ SERVICES ------ */
  .services-content {
    padding: 1.75rem 1.5rem;
  }

  /* ------ BUSINESS ------ */
  .business-sec {
    padding: 3.5rem 0 4rem;
  }  

  /* ------ COMPANY ------ */
  .company-sec {
    margin-top: 2rem;
  }

  .company-sec::before {
    position: static;
    height: auto;
    width: auto;
  }

  .company-sec .container {
    position: relative;
  }

  .company-list {
    flex-flow: column;
  }  

  /* ------ COUNTER ------ */
  .counter-wrapp h5 {
    font-size: 2.75rem;
  }

  /* ------ BLOG ------ */
  .blog-content h4 {
    font-size: 1.5rem;
  }

  /* ------ LOAN CTA ------ */
  .loan-content .mainHead {
    font-size: 2rem;
  }

  .loan-sec .themeBtn {
    width: auto;
  }

  /* ------ FOOTER ------ */
  .footer-bottom {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
  }

  .footer-bottom .row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-social {
    justify-content: flex-start;
  }

  footer::before {
    height: 4.5rem;
  }

  /* ------ INNER BANNER ------ */
  .inner-banner .overlay h2 {
    font-size: 2.75rem;
  }

  .inner-banner .main-box {
    width: 100%;
  }

  /* ------ CONTACT ------ */
  .contact-overlay {
    padding: 1.75rem 1.25rem;
  }

  ul.contact-list li+li {
    margin: 2rem 0;
  }

  ul.contact-list li a {
    gap: 1.25rem;
  }

  /* ------ SERVICES PLAY ------ */
  section.play-sec.services-play {
    margin: 3rem 0;
  }

  .play-sec {
    height: 320px;
  }

  /* ------ PRELOADER ------ */
  .preLoader .counter {
    font-size: 8rem;
  }

  .main-box .main-icon img {
    width: 30px;
  }

  .about-imag img {
    width: 30px;
  }

  .serivices-wrapp {
    height: auto;
  }
}

/* ============================================================
   575px — Mobile portrait
   ============================================================ */
@media (max-width: 575.98px) {
  html {
    font-size: 12px;
  }

  section {
    padding: 3rem 0;
  }

  .mainHead {
    font-size: 2rem;
  }

  /* ------ NAVBAR ------ */
  .navbar-brand {
    width: 135px;
  }

  /* ------ HERO ------ */
  .mainbanner {
    padding: 4.75rem 0 0;
  }

  .main-content h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .main-content p {
    font-size: 0.9rem;
  }

  .main-content .themeBtn {
    padding: 1em;
  }

  .main-box {
    gap: 0.75rem;
    border-radius: 4px;
  }

  .main-flex .main-box:last-child {
    border-radius: 4px 4px 0 0;
  }

  .main-box h4 {
    font-size: 0.875rem;
  }

  /* ------ ABOUT ------ */
  .about-icons {
    gap: 0.75rem;
  }

  .about-wrapp h3 {
    font-size: 1.2rem;
  }

  /* ------ SERVICES ------ */
  .services-content {
    padding: 1.5rem 1.25rem;
  }

  .services-content h2 {
    font-size: 1.5rem;
  }

  /* Service card icon badge */
  .services-sub {
    height: 3rem;
    width: 3rem;
    right: 0.75rem;
    bottom: -1.5rem;
  }

  /* ------ BUSINESS ------ */  

  .business-content h4 {
    font-size: 1.1rem;
  }

  /* ------ PLAY ------ */
  .play-sec {
    height: 280px;
  }

  .play-wrapp a i {
    height: 4.25rem;
    width: 4.25rem;
    font-size: 1.2rem;
  }

  /* ------ COMPANY ------ */
  .company-counter {
    flex-direction: column;
    text-align: center;
    gap: 0.625rem;
    padding: 1.25rem;
  }

  .company-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .company-counter p {
    font-size: 1rem;
  }

  /* ------ TESTIMONIALS ------ */
  .testimonials-top .mainHead {
    font-size: 1.85rem;
  }

  .testimonials-wrapp {
    padding: 1.75rem 1.25rem 3.5rem;
  }

  /* ------ CHOOSE ------ */
  .choose-flex {
    gap: 1rem;
  }

  /* ------ COUNTER ------ */
  .counter-wrapp h5 {
    font-size: 2.5rem;
  }

  .counter-wrapp p {
    font-size: 1rem;
  }

  /* ------ BLOG ------ */
  .blog-content {
    padding: 1.5rem 1.25rem;
  }

  .blog-content h4 {
    font-size: 1.3rem;
  }

  .blog-bottom {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* ------ LOAN CTA ------ */
  .loan-content .mainHead {
    font-size: 1.8rem;
  }

  .loan-sec .themeBtn {
    margin-left: 0;
  }

  /* ------ FOOTER ------ */
  .footerLogo figure {
    width: 175px;
  }

  .footer-icon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }

  footer h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .footer-wrapp {
    gap: 0.75rem;
  }

  /* ------ INNER BANNER ------ */
  .inner-banner .overlay h2 {
    font-size: 2.25rem;
  }

  .inner-banner .main-bottom {
    padding: 1em;
  }

  .inner-banner .main-flex {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  /* ------ CONTACT ------ */
  .contact-overlay {
    padding: 1.5rem 1rem;
    border-radius: 4px;
  }

  form.contact-form .form-control {
    height: 52px;
    font-size: 1rem;
  }

  form.contact-form textarea.form-control {
    height: 140px;
  }

  form.contact-form button {
    width: 100%;
    height: auto;
    padding: 0.875rem 1rem;
  }

  ul.contact-list li a::before {
    display: none;
  }

  ul.contact-list li a {
    gap: 1rem;
  }

  ul.contact-list {
    margin-top: 0;
  }

  ul.contact-list li+li {
    margin: 1.75rem 0;
  }

  /* ------ RESOURCE / CREDIT CHECK ------ */
  .credit_check .credit_text {
    padding: 1.75rem 1.25rem;
  }

  .credit_check h3 {
    font-size: 1.75rem;
    padding-bottom: 1rem;
  }

  .credit_check p {
    font-size: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
  }

  /* ------ BLOG DETAIL & PRIVACY/TERMS ------ */
  .blog-detail {
    padding: 3rem 0;
  }  

  .blog-detail .blog-content h3,
  .privacy-policy h3,
  section[class*="terms"] h3 {
    font-size: 1.3rem;
  }

  /* ------ LOAN CALCULATOR ------ */
  .loan-section {
    padding: 1.5rem 1.25rem 2rem;
  }

  .loan-header {
    padding: 1.5rem;
  }

  .loan-header h4 {
    font-size: 1.5rem;
  }

  /* ------ PRELOADER ------ */
  .preLoader .counter {
    font-size: 6rem;
    right: 2rem;
  }

  .main-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .inner-banner {
    height: 200px;
  }
}

/* ============================================================
   480px — Small mobile
   ============================================================ */
@media (max-width: 480px) {
  .main-content h1 {
    font-size: 1.75rem;
  }

  .mainHead {
    font-size: 1.85rem;
  }

  .navbar-brand {
    width: 125px;
  }

  /* Testimonial */
  .testimonials-wrapp {
    padding: 1.5rem 1rem 3rem;
  }

  /* Company counter stacked */
  .company-counter {
    padding: 1rem;
  }

  /* Business card */
  .business-wrapp {
    padding: 1.5rem 1.25rem;
  }

  /* Blog */
  .blog-content h4 {
    font-size: 1.2rem;
  }

  /* Inner banner */
  .inner-banner .overlay h2 {
    font-size: 2rem;
  }

  /* Contact */
  .contact-overlay {
    padding: 1.25rem 0.875rem;
  }

  /* Footer social */
  .footer-social li a i {
    height: 2.25rem;
    width: 2.25rem;
  }

  section.about-sec.aboutpage-sec {
    padding: 14rem 0 4rem;
  }
}

/* ============================================================
   375px — Small phones (iPhone SE, older Android)
   ============================================================ */
@media (max-width: 375px) {
  html {
    font-size: 11.5px;
  }

  .navbar-brand {
    width: 110px;
  }

  .main-content h1 {
    font-size: 1.6rem;
  }

  .mainHead {
    font-size: 1.75rem;
  }

  .main-box h4 {
    font-size: 0.8rem;
  }

  .services-content h2 {
    font-size: 1.35rem;
  }

  .counter-wrapp h5 {
    font-size: 2.25rem;
  }

  .inner-banner .overlay h2 {
    font-size: 1.75rem;
  }

  .company-counter {
    padding: 0.875rem;
    gap: 0.5rem;
  }

  .testimonials-wrapp {
    padding: 1.25rem 0.875rem 2.75rem;
  }

  .contact-overlay {
    padding: 1rem 0.75rem;
  }

  .about-flex {
    gap: 1rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .preLoader .counter {
    font-size: 5rem;
    right: 1rem;
  }

  .main-box {
    width: 100%;
    min-width: 140px;
  }
      section.about-sec.aboutpage-sec {
        padding: 18rem 0 4rem;
    }
}

/* ============================================================
   Utility: ensure no element busts the viewport horizontally
   ============================================================ */

/* Prevent absolute/decorative images from causing overflow */
.businessub2,
.businessub3,
.chooseimg2,
.chooseimg3,
.servicessub {
  pointer-events: none;
}