/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  padding-top: 80px;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: #222;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007bff;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
}

.dropdown a {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* HERO */
.hero {
  position: relative;
  height: 70vh;
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

/* SECTION */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-image {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
}

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

.service-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  transition: all 0.3s ease;
  height: 100%;
  text-align: left;
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
}

.service-card-link .service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-link:hover .service-card {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* CTA BUTTONS */
.btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* MISSION SECTION */
.mission {
  background-color: #fdfdfd;
}

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

.stat h3 {
  font-size: 2rem;
  color: #007bff;
}

.stat p {
  font-size: 0.95rem;
  color: #444;
}

/* SUBSCRIBE SECTION */
.subscribe-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.subscribe-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.subscribe-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}

.subscribe-form button {
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
  font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE NAVBAR */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu li a {
    padding-left: 1.5rem;
  }
}

/* BLOG/CARD EXTRAS */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.case-study-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  max-width: 340px;
  flex: 1 1 300px;
  text-align: left;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.case-study-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-study-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.case-study-card .btn-secondary {
  background-color: transparent;
  color: #0052cc;
  font-weight: 600;
  padding: 0.5rem 0;
  text-decoration: underline;
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

.blog-article .byline {
  font-style: italic;
  margin-bottom: 2rem;
  color: #888;
  font-size: 0.95rem;
}

.blog-article .article-section {
  margin-bottom: 2.5rem;
}

.blog-article .article-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
  border-left: 4px solid #0056b3;
  padding-left: 0.5rem;
}

.blog-article .custom-list {
  list-style: none;
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.blog-article .custom-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.blog-article .custom-list li::before {
  content: "•";
  color: #0056b3;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.blog-article .cta {
  margin-top: 2rem;
  font-weight: bold;
  font-size: 1.05rem;
}

.blog-article .cta a {
  color: #0056b3;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

.blog-article .cta a:hover {
  color: #003a80;
}

@media (max-width: 768px) {
  .blog-article {
    padding: 1.5rem;
  }

  .blog-article .article-section h2 {
    font-size: 1.3rem;
  }

  .blog-article .custom-list li {
    font-size: 0.95rem;
  }
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
}

.dropdown a {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.join-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #eef4f8;
  border-top: 1px solid #dce6ee;
}

.join-section h2 {
  font-size: 2em;
  color: #003f7d;
  margin-bottom: 10px;
}

.join-section p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #333;
}

.join-section .btn-primary {
  background-color: #0057a8;
  color: #fff;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.join-section .btn-primary:hover {
  background-color: #003f7d;
}

.job-listing {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.job-card {
  background-color: #f9fbfd;
  padding: 20px;
  border-left: 5px solid #0057a8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.job-card h3 {
  margin-top: 0;
  color: #003f7d;
}

.job-card p {
  margin: 10px 0;
}

.btn-primary.small {
  padding: 8px 16px;
  font-size: 0.9em;
}

.benefits-section .benefits-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.benefit-card {
  background: #fff;
  flex: 1 1 250px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.benefit-card h4 {
  margin-top: 0;
  color: #0057a8;
}

/* ----------------------------------------------------------------
   Page Hero (consistent across site) 
-----------------------------------------------------------------*/
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  color: #fff;
  text-align: center;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 1;
}

/* Specific image for Privacy page */
.privacy-hero {
  background-image: url('../images/privacy-hero.jpg');
}

/* Typography */
.page-hero h1 {
  font-size: 2.75rem;
  margin: 0;
  font-weight: 700;
}
.page-hero p {
  font-size: 1.125rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero {
    padding: 4rem 0;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-hero p {
    font-size: 1rem;
  }
}