:root {
  --primary: #0b6b4f;
  --accent: #f4f8f6;
  --muted: #6b7280;
  --container: 95%;   /* instead of 1100px */
  --radius: 12px;
}
.nav-wrap,
.topbar .inner,
.card-grid,
.team,
.footer-inner,
.hero-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Reset */
* { box-sizing: border-box; }
body, html {
  margin: 0; padding: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111; background: #fff; line-height: 1.45;
}
body {
   padding-top: 100px; }

/* Top bar */
.topbar { background: #5791d0; color:#fff; font-size:16px; padding:8px 16px; }
.topbar .inner { max-width: var(--container); margin:auto; display:flex; gap:8px; align-items:center; }
.topbar .spacer { flex:1; }

/* Header */
header { position:fixed; top:0; left:0; width:100%; z-index:1000; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.1); border-bottom:1px solid #eee; }
.nav-wrap { max-width: var(--container); margin:0 auto; display:flex; justify-content:space-between; align-items:center; }
.logo { display:flex; gap:12px; align-items:center; }
.logo img { height:80px; border-radius:10px; }
.site-title { font-weight:900; font-size:1.2rem; color:#5791d0; }

/* Navigation */
nav ul { list-style:none; display:flex; gap:18px; margin:0; padding:0; }
nav a { color:#111; text-decoration:none; font-weight:600; padding:8px 12px; display:block; }
.cta { background:#5791d0; color:#fff; border-radius:8px; font-weight:700; }

/* Dropdown */
.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; top:5%; left:0; background:#fff; border:1px solid #ccc; min-width:150px; z-index:1000; }
.dropdown:hover .dropdown-menu { display:block; }
.dropdown-menu li a { padding:8px 12px; }
.dropdown-menu li a:hover { background:#f4f8f6; }

/* Mobile nav */
.mobile-toggle { display:none; background:none; border:none; font-size:22px; }
.nav-mobile { display:none; background:#fff; padding:12px; border-top:1px solid #eee; }
.nav-mobile a { display:block; padding:8px 0; color:#111; text-decoration:none; }
.nav-mobile a:hover { color:#5791d0; }

/* Hero wrapper */
.hero-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero carousel */
.hero2, .carousel {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 70vh;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel .item img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Hero content centered */
.hero-content2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  text-align: center;

  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.hero2 .btn { background:#ff6600; margin-top:1rem; padding:0.75rem 1.5rem; border-radius:5px; color:#fff; text-decoration:none; }

/* Hero overlay */
.carousel .item::before {
  content: ""; position:absolute; top:0; left:0; width:100%; height:100%;
  background: z-index:1;
}
.carousel .item.active .hero-content2 {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Hero text animations */
.hero-content2 h2,
.hero-content2 p,
.hero-content2 .btn {
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.carousel .item.active .hero-content2 h2 {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.2s;
}
.carousel .item.active .hero-content2 p {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.4s;
}
.carousel .item.active .hero-content2 .btn {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.6s;
}

/* Cards */
.card-grid { max-width: var(--container); margin:30px auto; padding:0 16px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card { background:#c5db3a; border-radius:var(--radius); padding:20px; box-shadow:0 6px 18px rgba(12,30,22,.08); }
.card:hover { font-size:20px; }
.card img {width:10%; height:auto; object-fit:cover; border-radius:10px;}
.card h3 { margin-top:0; }

/* Products */
.team { max-width: var(--container); margin:30px auto; padding:0 16px; }
.team h2 { text-align: center;}
.team-grid { display:grid; gap:18px; grid-template-columns:repeat(3,1fr); }
.member { text-align:center; padding:12px; }
.member img { width:100%; height:240px; object-fit:contain; border-radius:10px; }
.member h4 { margin:8px 0 4px; font-size:22px; }
.readmore { background:#5791d0; color:#fff; border-radius:50px; padding:6px 12px; font-weight:700; text-decoration:none; }

/*Loan Products */
.team { max-width: var(--container); margin:30px auto; padding:0 16px; }
.team-grid { display:grid; gap:18px; grid-template-columns:repeat(3,1fr); }
.member { text-align:center; padding:12px; }
.loanmember img { width:200px; height:100px; object-fit:contain; border-radius:10px; }
.member h4 { margin:8px 0 4px; font-size:22px; }
.readmore { background:#5791d0; color:#fff; border-radius:50px; padding:6px 12px; font-weight:700; text-decoration:none; }



/* Responsive */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .hero2 { max-height: 60vh; }
  .hero-content2 { font-size:14px; }
  nav ul { display:none; }
  .mobile-toggle { display:block; }
  .team-grid { grid-template-columns: 1fr; }
}
footer {
  background: #c5db3a;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  font-family: "Inter", system-ui, sans-serif;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 10px 10px;
  max-width: 1000px;
  margin: auto;
}

.footer-section strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.footer-section nav a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 4px;
  opacity: 0.9;
  transition: 0.2s;
}

.footer-section nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer .logo img {
  width: 70px;
  height: auto;
  border-radius: 6px;
}

.footer .brand-text {
  display: flex;
  flex-direction: column;
}

.footer .site-title {
  font-weight: 700;
  font-size: 14.5px;
}

.footer .tagline {
  font-size: 12.5px;
  opacity: 0.9;
}

.footer-section p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  margin-right: 10px;
  color: #ffffff;
  font-size: 19px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #333333;
}

.footer-bottom {
  text-align: center;
  background: #b4c735;
  padding: 8px 0;
  font-size: 12.5px;
  color: #ffffff;
}

