:root {
    --primary-color: #E7B911;
    --primary-dark: #af8b06;  
    --lite: #fbe07f;    
    --background-color: #ffffff;
    --alt-background-color: #f4f4f4;
    --max-width: 80%;
    --dark-brown: #0f0906;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
    color: #333;
  }


h2 {
  font-size: 45px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color); 
}
h2 img {
  height: 50px;
}
h3 {
  font-size: 35px;
  color: var(--dark-brown);
  margin-bottom: 30px;
}


  /* HEADER - now inside hero, transparent by default */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
  }

  header.scrolled {
    background-color: var(--dark-brown);
  }

  .logo img {
    height: 60px;
    display: block;
    transition: 0.3s;
  }
.scrolledL {
    height: 50px!important;
}


.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu > li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: bold;
}



/* Dropdown styling */
.dropdown {
  display: none;
  position: absolute;
  background: var(--primary-color);
  list-style: none;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 8px;
  margin: 0;
  min-width: 300px;
  z-index: 999;
  border-radius: 15px;
  text-align: center;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px; /* position above the dropdown */
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--primary-color);
}


.dropdown li a {
  padding: 10px 15px;
  white-space: nowrap;
  font-weight: 100;
}

.dropdown li a:hover {
  background: var(--dark-brown);
}

/* Show dropdown on hover */
.nav-menu li:hover .dropdown {
  display: block;
}


  header.scrolled nav a {
    color: white;
  }

  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-image: url('asset/herobg.jpg');
    background-size: cover;
  }
  .heroSub {
    height:55vh; 
    text-align:center;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
  }
  .heroSub h1 {
    font-size: 3em;
    color: white;
  }
  .hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  
  .hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Optional overlay for text visibility */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  
  .hero-text {
    display: flex;
    justify-content: space-between;
    align-items: center; /* changed from flex-start */
    width: 40%;
    color: #fff;
    text-align: center;
    opacity: 0.8;
  }
  
  .hero-text h1 {
    font-size: 60px;
    line-height: 60px;
    margin-bottom: 20px;
  }
  .hero-text h1 span {
    display: block;
    font-size: 1rem;
    color: var(--lite);
  }

  section {
    width: 100%;
    padding: 3rem 0;
  }

  section > .container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 1rem;
  }

/* CTA Section */
.cta-section {
  background-color: var(--dark-brown);
  padding: 3rem 0;
}

.cta-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta {
  background: var(--primary-color);
  border-radius: 8px;
  width: 23%; /* 4 items in a row with gap */
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-bottom: 5px solid var(--primary-dark);
}

.cta .material-icons {
  font-size: 85px;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.cta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-brown);
  line-height: 1.4;
}


  /* Carousel Section */
  .carousel-section {
background-color: var(--dark-brown);
/* background: url(../asset/bg.png); */
background-size: cover;
background-attachment: fixed;
  }

  .carousel-wrapper {
    overflow: hidden;
  }

  .carousel {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-item {
    flex: 0 0 calc(33.3333% - 0.75rem);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
  }
.carousel-item img {
  width: 100%;
}
  .carousel-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }

  /* About Section */
  .about-section:nth-of-type(odd) {
    background-color: #ffffff;
  }

  .about-section:nth-of-type(even) {
    background-color: #f4f4f4;
  }

  .about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
  }

  .about-wrapper img,
  .about-section img {
    width: 30%;
    border-radius: 8px;
  }

  .about-text {
    flex: 1;
    box-sizing: border-box;
    padding: 3em 6em;
  }

  .footer {
    background-color: var(--dark-brown);
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6em 20px;
    flex-wrap: wrap;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .footer-section {
    max-width: 250px;
    text-align: left;
  }
  
  .footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-section li,
  .footer-section p,
  .footer-section a {
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
  
  .footer-logo img {
    max-height: 100px;
  }
  
  .social-icons {
    margin-top: 10px;
  }
  
  .social-icons a {
    color: #fff;
    margin-right: 10px;
    font-size: 1.2rem;
  }
  
  .social-icons a:hover {
    color: #FFD700; /* Optional highlight color on hover */
  }
  

  /* Responsive */
  @media (max-width: 768px) {
    .cta {
      width: 100%;
    }

    .carousel-item {
      flex: 0 0 100%;
    }

    .about-wrapper {
      flex-direction: column;
    }

    nav {
      gap: 0.5rem;
    }
  }


  .blog-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
  }
  
  
  .blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  .blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-content h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    color: #222;
  }
  
  .meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
  }
  
  .blog-content p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
  }
  


  .tag-cloud {
    margin-top: 30px;
  }
  .tag-cloud .tag {
    display: inline-block;
    background: var(--lite);
    color: var(--primary-dark);
    padding: 15px;
    margin: 4px 6px 0 0;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  .tag-cloud .tag:hover {
    background: #ebd171;
  }
  #result span {

    box-sizing: border-box;
    padding: 30px;
    margin: 15px 15px 30px 15px;
    overflow: hidden;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--lite);
  }
  #result span strong {
    font-size: 1.1em;
    color: var(--lite);
  }
  #result ul {
    padding: 0 0 15px 15px;
  }
  #result a {
    display: inline-block;
    box-sizing: border-box;
    padding: 15px;
    color: inherit;
    text-decoration: none;
    margin: 15px 0;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
    
  }
  .b1 {
    background-color: var(--primary-color);
    color: var(--dark-brown)!important;
  }
  .getFinance {
    color: var(--primary-color);
  }


  /* Unique loan form wrapper */
.loan_form {
  max-width: 60%;
  margin: 0 auto;
  padding: 30px;
  background: #f9fafa;
  border: 2px solid #e0e4e8;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
    box-sizing: border-box;
}

/* General inputs */
.loan_form input[type="text"],
.loan_form input[type="email"],
.loan_form input[type="tel"],
.loan_form input[type="range"],
.loan_form input[type="number"],
.loan_form select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.loan_form input[type="range"] {
  padding: 0;
  height: 30px;
}

.loan_form input:focus,
.loan_form select:focus {
  border-color: #0077cc;
  outline: none;
}

/* Form labels */
.loan_form label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: block;
  margin-top: 10px;
}

/* Loan summary display */
.loan_form .loan-summary input {
  background: #f0f3f6;
  border: none;
  font-weight: bold;
  color: #333;
}

/* Form button */
.loan_form .formbutton {
  display: block;
  background-color: #0077cc;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.loan_form .formbutton:hover {
  background-color: #005fa3;
}

.loan_form .formbutton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Range slider label */
.loan_form input[type="range"] + input[type="text"] {
  background-color: #e8f0fe;
  border: 1px solid #c3dafe;
  font-weight: bold;
  color: #0a2f6b;
}

/* Section grouping */
.loan_form .form-group {
  margin-bottom: 20px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .loan_form {
    padding: 20px;
  }
}



iframe {
  width: 100%;
  height: 100vh;
  border: none;
}

.gfn {
  background-color: var(--primary-color)!important;
  color: var(--alt-background-color)!important;
}
.mobNav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-brown);
  box-sizing: border-box;
  padding: 15px;
  z-index: 50000;
}
.mobNav ul {
  list-style: none;
  padding: 0; margin: 60px 0;
}
.mobNav ul li {
  box-sizing: border-box;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.05);
  text-align: center;
}
.mobNav ul li a {
  color: var(--primary-color);
  
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}
.mNav,
.closeM {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 55000;
  display: none;
  box-sizing: border-box;
  padding: 0;
  color: var(--primary-color);
  transition: 0.5s;
}
.activeM {
  transform: rotate(45deg);
}
.menu-icon {
  font-size: 25px;
    background: rgba(0, 0, 0, 0.55);
    padding: 15px;
    border-radius: 25px;
}

/* MEDIA  */
@media (max-width: 1780px) {

header {padding: 1rem 5%;}

} /* MEDIA  */
/* MEDIA  */
@media (max-width: 1560px) {

header {padding: 1rem 1%;}  
.logo img {height: unset!important; width: 500px;}
.scrolledL {height: unset!important; width: 500px;}

} /* MEDIA  */
/* MEDIA  */
@media (max-width: 1400px) {

nav {display: none;}
:root {--max-width: 95%;}
.logo img {height: unset!important; width: 80%; margin: 0 0 0 15px;}
.scrolledL {height: unset!important; width: 80%;}
.about-text {padding: 15px;}  
.hero-text{width: 95%;}
.hero-text h1 {font-size: 40px;line-height: 40px;}
.desktop {display: none;}
.footer-section {max-width: 100%;text-align: center !important;margin: 15px 0;}
.about-wrapper img, .about-section img {width: 95%!important;border-radius: 8px;}
.mNav {display: block;}

} /* MEDIA  */
/* MEDIA  */
@media (max-width: 400px) {

.logo img {height: unset!important; width: 60%; margin: 0 0 0 15px;}
.scrolledL {height: unset!important; width: 60%;}

} /* MEDIA  */