:root {
  --white: #ffffff;
  --green: #3b7a3b;
  --orange: #ef8a00;
  --text: #0f1724;
  --muted: #6b7280;
  --max-w: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.nav-wrap {
  display: flex;
  flex-direction: column;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.logo-link { margin-bottom: 10px; }

/* Ensure logo container doesn't break layout */
.solint-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.nav-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  align-self: flex-end;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--green); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  display: none;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  flex-direction: column;
}
.dropdown-menu a { display: block; padding: 8px 16px; font-weight: 500; color: var(--text); }
.dropdown-menu a:hover { background: var(--green); color: #fff; }

.nav-item.dropdown:hover > .dropdown-menu { display: flex; }

/* Nested dropdowns */
.dropdown-menu .nav-item.dropdown:hover > .dropdown-menu {
  display: flex;
  position: absolute;
  top: 0;
  left: 100%;
}

/* Edge-of-screen fixes */
.nav-item.dropdown.open-left > .dropdown-menu { left: auto; right: 100%; }
.dropdown-menu .nav-item.dropdown.open-left > .dropdown-menu { left: auto; right: 100%; }

/* Hero */
.hero {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 16px;
  text-align: center;
}
.hero h1 { font-size: 48px; margin: 0 0 12px; }
.hero .tagline {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 28px;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; }
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn.primary { background: var(--green); color: var(--white); }
.btn.primary:hover { background: var(--orange); }
.btn.ghost { border: 2px solid #ddd; color: var(--text); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 16px;
}
.feature {
  background: linear-gradient(180deg, #fafafa, #fff);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s;
}
.feature:hover { transform: translateY(-4px); }
.feature h3 { margin: 0 0 8px; color: var(--green); }

/* Footer */
footer {
  border-top: 1px solid #eee;
  text-align: center;
  padding: 28px 16px;
  background: #fafafa;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner .motto { font-size: 12px; margin-top: 6px; color: var(--green); }

/* Responsive */
@media (max-width: 1024px){
  .main-nav { justify-content: flex-start; flex-wrap: wrap; }
  .dropdown-menu { max-width: 200px; }
}
/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.show { max-height: 2000px; /* large enough to fit all items */ }

  .nav-item { width: 100%; }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;          /* always flex for smooth height */
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-item.open > .dropdown-menu {
    max-height: 1000px; /* enough for all nested submenus */
  }

  .dropdown-menu .dropdown-menu { padding-left: 12px; }
  .dropdown-menu .dropdown-menu .dropdown-menu { padding-left: 24px; }

  .nav-item.dropdown > a::after {
    content: " Ä‚Ë�Ă˘â‚¬â€śĂ‚Â¸";
    font-size: 12px;
    float: right;
  }
}

.overview {
  padding: 4rem 2rem;
  text-align: center;
  background: #fafafa;
}

.overview h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.overview .intro {
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.overview-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.overview-card h3 a {
  color: #004aad;
  text-decoration: none;
}

.overview-card p {
  margin: 0.5rem 0 1rem;
  color: #333;
}

.sub-links {
  list-style: none;
  padding-left: 1rem;
}

.sub-links li {
  margin: 0.25rem 0;
}

.sub-links a {
  font-size: 0.95rem;
  color: #0066cc;
  text-decoration: none;
}

.sub-links a:hover {
  text-decoration: underline;
}

.page-header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}
.page-header .tagline {
  color: var(--muted);
  font-size: 1rem;
}
.page-content {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}
.page-content h2 {
  margin-top: 2rem;
  color: var(--green);
}
.page-content ul {
  margin: 1rem 0 1.5rem 1.2rem;
}
.page-content li {
  margin-bottom: 0.5rem;
}

/* Logo styles */
.solint-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--white);
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-svg { 
    height: 60px; 
    width: auto; 
}

@media(max-width:1024px) {
    .logo-svg { height: 50px; }
}

@media(max-width:600px) {
    .logo-svg { height: 40px; }
}

