/* Brand colors: Blue #3E728C | Green #719C57 | Gray #A7A9AC | Dark Gray #808285 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* TOPBAR */
.topbar {
  background: #1e3d4f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 8rem;
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.topbar-left { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,0.25); margin: 0 0.6rem; }
@media (max-width: 768px) { .topbar { display: none; } }

/* NAV */
nav {
  background: #3E728C;
  padding: 0 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-upload-btn {
  background: #719C57 !important;
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-upload-btn:hover { background: #5d8447 !important; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: #719C57;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #5d8447; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #3E728C;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #3E728C;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: #e8f2ee; }
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* SECTION UTILITIES */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #719C57;
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #3E728C;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.section-sub {
  color: #808285;
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 520px;
}
.text-center { text-align: center; }
.text-center .section-sub,
.section-sub.text-center { margin-left: auto; margin-right: auto; }
.section-pad { padding: 5rem 2.5rem; }
.section-pad-sm { padding: 3.5rem 2.5rem; }
.bg-light { background: #f5f7f5; }
.bg-blue { background: #3E728C; }
.max-w { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.8rem;
  border: 1px solid #dde8dd;
  border-top: 3px solid #3E728C;
  box-shadow: 0 2px 8px rgba(62,114,140,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(62,114,140,0.14); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  background: #e8f2ee;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: #3E728C; margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: #808285; line-height: 1.6; }
.card-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: #719C57; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #2d5568 0%, #3E728C 60%, #4a8aa8 100%);
  color: #fff;
  padding: 6rem 2.5rem 5rem;
  text-align: center;
}
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a8d4a8; margin-bottom: 1.2rem; }
.hero h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; max-width: 680px; margin: 0 auto 0.6rem; }
.hero-tagline { font-size: 1.15rem; font-style: italic; color: #c8e6c8; margin-bottom: 1.4rem; }
.hero p.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2.4rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #2d5568 0%, #3E728C 100%);
  color: #fff;
  padding: 4rem 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto; }

/* FOOTER */
footer {
  background: #2d5568;
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 10rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
footer strong { color: #fff; display: block; margin-bottom: 0.4rem; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-logo img { height: 36px; width: auto; opacity: 0.9; margin-bottom: 0.5rem; display: block; }
.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* FORMS */
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #3E728C; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #c5ddd6;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: #3E728C; box-shadow: 0 0 0 3px rgba(62,114,140,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* DROP ZONE */
.drop-zone {
  border: 2px dashed #c5ddd6;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f5f7f5;
}
.drop-zone.dragover { border-color: #3E728C; background: #e8f2ee; }
.drop-zone p { color: #808285; font-size: 0.9rem; margin-top: 0.5rem; }
.drop-zone .drop-icon { font-size: 2rem; }

/* ALERT */
.alert { padding: 1rem 1.2rem; border-radius: 4px; font-size: 0.9rem; margin-top: 1rem; display: none; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* INDUSTRY PILLS */
.industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.industry-pill {
  background: #e8f2ee;
  color: #3E728C;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #c5ddd6;
}

/* POST HERO BANNER */
.post-hero {
  background: linear-gradient(135deg, #1e3d4f 0%, #2d5568 50%, #3E728C 100%);
  color: #fff;
  padding: 5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(113,156,87,0.18);
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(113,156,87,0.12);
}
.post-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a8d4a8;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.post-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.post-hero-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* BLOG INDEX */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: #fff; border-radius: 8px; padding: 2rem 1.8rem; border: 1px solid #dde8dd; border-top: 3px solid #3E728C; box-shadow: 0 2px 8px rgba(62,114,140,0.07); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(62,114,140,0.14); transform: translateY(-2px); }
.blog-card-date { font-size: 0.78rem; color: #A7A9AC; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.blog-card h2 { font-size: 1.1rem; font-weight: 700; color: #3E728C; margin-bottom: 0.7rem; line-height: 1.35; }
.blog-card p { font-size: 0.9rem; color: #808285; line-height: 1.6; flex: 1; }
.blog-card-link { display: inline-block; margin-top: 1.2rem; font-size: 0.85rem; font-weight: 600; color: #719C57; text-decoration: none; }
.blog-card-link:hover { text-decoration: underline; }

/* BLOG POST */
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { font-size: 1.4rem; font-weight: 700; color: #3E728C; margin: 2rem 0 0.8rem; }
.post-content h3 { font-size: 1.1rem; font-weight: 700; color: #3E728C; margin: 1.5rem 0 0.6rem; }
.post-content p { color: #444; line-height: 1.8; margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { color: #444; line-height: 1.8; margin: 0 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-meta { font-size: 0.82rem; color: #A7A9AC; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #dde8dd; }
.post-share { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #dde8dd; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.post-share span { font-size: 0.85rem; font-weight: 600; color: #808285; }
.post-share a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #3E728C; text-decoration: none; padding: 0.45rem 1rem; border: 1px solid #c5ddd6; border-radius: 4px; transition: background 0.2s; }
.post-share a:hover { background: #e8f2ee; }

/* CTA BAND */
.cta-band { background: #f5f7f5; padding: 4rem 2.5rem; text-align: center; border-top: 1px solid #dde8dd; }
.cta-band h2 { font-size: 1.8rem; font-weight: 700; color: #3E728C; margin-bottom: 0.8rem; }
.cta-band p { color: #808285; font-size: 1rem; margin-bottom: 1.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  /* position: absolute resolves against the sticky nav — do not change nav to static/relative */
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #3E728C; padding: 1rem 1.2rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; background: none; border: none; cursor: pointer; }
  .nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .section-pad { padding: 3rem 1.2rem; }
  footer { flex-direction: column; }
}
@media (min-width: 769px) {
  .nav-burger { display: none; }
}
