/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

h1, h2, h3 {
  color: #002244;
}

a {
  text-decoration: none;
  color: #002244;
}

/* ===== HEADER STYLES ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
}

.logo {
  height: auto;
  max-height: 50px;
  width: auto;
  max-width: 160px;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem; /* Better than margin-left on each item */
}

nav a {
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  white-space: nowrap; /* Prevent text wrapping */
}

nav a:hover {
  color: #f4b127;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f4b127;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero, .about-hero, .legal-hero {
  min-height: 45vh; /* Use min-height instead of height */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('assets/businessloan.png') center/cover;
  padding: clamp(2rem, 5vh, 4rem) 5% clamp(1rem, 3vh, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center;
  text-align: center;
  color: white;
}

.hero h1, .about-hero h1, .legal-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); /* Responsive font size */
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero p, .about-hero p, .legal-hero p {
  font-size: clamp(1rem, 3vw, 1.4rem); /* Responsive font size */
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-btn {
  background: #f4b127;
  color: white;
  padding: clamp(10px, 2vw, 12px) clamp(20px, 5vw, 30px);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.25rem); /* Fixed typo and made responsive */
  transition: all 0.3s ease;
  display: inline-block; /* Better for transforms */
}

.cta-btn:hover {
  background: #e09e1c;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .logo {
    max-height: 40px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .hero, .about-hero, .legal-hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem;
  }
  
  nav {
    gap: 0.5rem;
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  .hero, .about-hero, .legal-hero {
    min-height: 40vh;
    padding: 1.5rem 1rem;
  }
}

/* ===== ZOOM SUPPORT ===== */
@media (min-resolution: 144dpi) {
  header {
    min-height: 70px;
  }
  
  nav a {
    padding: 0.25rem 0;
  }
}
/* ===== CAROUSEL ===== */
.product-carousel {
  padding: 1.5rem 0 0 0;
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 1200px; /* Optional: controls full-width scaling */
  margin: 0 auto;
}

.carousel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item {
  display: none;
  width: 100%;
  margin-bottom: 0;
}

.carousel-item:first-child {
  display: block;
}

.card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
}

.card-content {
  background: rgba(0, 34, 68, 0.85);
  color: white;
  padding: 12px 16px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  max-width: 100%;
  border-radius: 0 0 0 0;
  margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
  background: #f8f9fa;
  text-align: center;
}

.features-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: #f4b127;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  background: #f8f9fa;
}

.about-content .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text p {
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-top: 25px;
  margin-bottom: 15px;
}

.about-text ul {
  padding-left: 20px;
  margin-top: 15px;
}

.about-text ul li {
  margin-bottom: 10px;
}

/* ===== TEAM SECTION ===== */
.team-section {
  text-align: center;
  padding: 60px 0;
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.team-member {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e0e0e0;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.member-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f4b127;
  opacity: 0.3;
}

/* ===== LEGAL SECTION ===== */
.legal-content {
  background: #f8f9fa;
}

.legal-section {
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
  margin-bottom: 20px;
  color: #002244;
  border-bottom: 2px solid #f4b127;
  padding-bottom: 10px;
}

.legal-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  background: #002244;
  color: white;
  padding-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  gap: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  max-width: 300px;
  opacity: 0.8;
}

.footer-links h3, .footer-contact h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #f4b127;
}

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
  color: #f4b127;
}

/* ===== CAROUSEL IMAGE SUPPORT (IMG VERSION) ===== */
.card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
  }
  
  nav {
    margin-top: 15px;
  }
  
  nav a {
    margin: 0 10px;
  }
  
  .hero h1, .about-hero h1, .legal-hero h1 {
    font-size: 2.2rem;
  }
  
  .carousel-item {
    display: none;
    width: 100%;
    max-height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
  }

  .carousel-item:first-child {
    display: block;
  }
  
  .footer-container {
    flex-direction: column;
  }
}
.hero-logo {
  text-align: center;
  margin-bottom: 20px;
}

.hero-logo-img {
  width: 100px;
  height: auto;
}
.apply-btn {
  display: inline-block;
  margin: 18px auto 30px auto; /* Centered, with bottom space */
  padding: 14px 32px;
  background-color: #f4b127;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.apply-btn:hover {
  background-color: #e09e1c;
  transform: translateY(-2px);
}
.footer-social {
  text-align: center;
  margin: 10px 0;
}

.footer-social a {
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
  opacity: 0.85;
}
/* Social Media Links in Footer */
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.footer-contact a:hover {
  opacity: 0.85;
}
.footer-logo .tagline {
  white-space: nowrap;
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}
