/* ===== Global Reset & Base ===== */
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f9fafb;
  color: #222;
}

:root {
  --nav-height: 72px; /* adjust if navbar is taller/shorter */
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Navbar ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  flex-wrap: wrap; /* allow wrapping */
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  margin-right: 12px;
  height: 44px;
  transition: filter 0.2s;
}

.logo a:hover img {
  filter: brightness(0.85);
}

/* ===== Nav Links ===== */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* allow wrapping if space is tight */
}

.nav-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a,
.dropbtn {
  display: inline-block;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus,
.dropbtn:hover,
.dropbtn:focus {
  color: #fff;
  background: #1872d9;
}

/* ===== Dropdown ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #1872d9;
  color: white;
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(24, 114, 217, 0.08);
  transition: background 0.2s;
  letter-spacing: 0.5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(24, 114, 217, 0.16);
  border-radius: 8px;
  z-index: 10;
  padding: 8px 0;
  list-style: none;
}

.dropdown-content a {
  color: #222;
  padding: 12px 22px;
  text-decoration: none;
  display: block;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  font-size: 1.01rem;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: #eaf6ef;
  color: #1872d9;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
  background-color: #145aa3;
}

/* ===== Sections ===== */
header.hero,
section.section {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section {
  padding: 72px 0;
}

.section + .section {
  margin-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.hero h1,
.section h2 {
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
}

.section h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.subtitle {
  text-align: center;
  margin-top: 8px;
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
}

/* ===== Blog & Progress Page ===== */
.hero--compact .hero-content { padding: 36px 0 8px; }
.blog-section h2 { text-align: center; margin-bottom: 12px; }

.blog-post,
.blog-section p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin: 14px 0 6px;
}

.blog-figure {
  margin: 18px 0 10px;
}

.blog-figure figcaption {
  font-size: 0.92rem;
  opacity: 0.75;
  margin-top: 4px;
  text-align: center;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 12px;
}

@media (max-width: 800px) {
  .figure-grid {
    grid-template-columns: 1fr;
  }
}

.progress-points {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.progress-points li {
  margin: 6px 0;
}

/* ===== Footer ===== */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 22px 0;
  letter-spacing: 0.3px;
  font-size: 1rem;
  margin-top: 40px;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;   /* logo on top, ribbon below */
    align-items: center;
    gap: 12px;
  }

  .nav-links {
    flex-direction: row;      /* keep ribbon horizontal */
    flex-wrap: wrap;          /* allow wrapping if needed */
    justify-content: center;
    gap: 12px;
    position: static;         /* remove absolute positioning */
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}
/* === Centering helpers === */
.center-text { text-align: center; }
.center-img  { display: block; margin-left: auto; margin-right: auto; }

/* === Hero centering & scaling === */
.hero-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap; /* allow text and image to stack on small screens */
  text-align: center;
}
.hero-text { max-width: 720px; margin-inline: auto; }
.hero-img {
  max-width: min(780px, 100%);
  height: auto;
}

/* === Solution section layout (image removed, keep content centered) === */
.solution-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.solution-copy { max-width: 800px; margin-inline: auto; }

/* === Team: side-by-side cards with responsive fall-back === */
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 800px) {
  .grid-two { grid-template-columns: 1fr; }
}

.team-member-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.team-photo {
  width: 220px;         /* keeps photos from being huge */
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;    /* avoids weird cropping */
  margin-bottom: 12px;
}

/* Make all section images scale nicely on small screens */
.blog-img, .team-photo, .hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Optional: slightly narrower text for nicer centering on big screens */
.section .container, .hero .container { max-width: 1100px; }
