:root {
  --primary-color: #7a66e2;
  --primary-dark: #1b5e20;
  --bg-color: #f6f9ff;
  --card-bg: #ffffff;
  --text-main: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1,
h2,
h3,
.brand {
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
}
a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-item {
  font-weight: 600;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.nav-item:hover {
  color: var(--primary-color);
  background-color: #effaf0;
}
.nav-item.active {
  color: white;
  background-color: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  background-color: white;
}

.heading-tertiary {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Grids / Flexes */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  column-gap: 4.8rem;
  row-gap: 3.2rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
  row-gap: 12rem;
}

.grid-center--v {
  align-items: center;
}

/* Margins */
.margin-m {
  margin-bottom: 3.2rem;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  /* Home Page Specific */
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-icon {
    display: none;
  }
  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
  }
}

/* --- Home Page Specific Styles (index.html) --- */

/* HERO SECTION */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8rem;
  box-shadow: var(--shadow);
}
.hero-content {
  max-width: 60%;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: white;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
}
.btn-light:hover {
  background-color: #f0f0f0;
}
.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  margin-left: 1rem;
}
.btn-outline:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.1);
}
.hero-icon {
  font-size: 8rem;
  opacity: 0.2;
}

/* PROBLEM STATEMENT SECTION */
.problem-statement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8rem;
}

.problem-statement span {
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: inline-block;
}

.problem-statement h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.problem-statement p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* HOW IT WORKS SECTION */
.how-it-works {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8rem;
}

.how-it-works_p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.how-it-works h2 {
  font-size: 2.5rem;
  text-align: center;
}

/* .how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.how-it-works .steps .step-5 {
  text-align: center;
  grid-column: 2 / span 2;
}

.how-it-works article {
  margin-top: 2rem;
} */

/* **************** */
/*  STEPS SECTION  */
/* **************** */
.section-steps {
  margin-bottom: 8rem;
}

.steps-img--box img {
  width: auto;
  height: 450px;
  margin-left: auto;
  margin-right: auto;
}

.steps-text--box h4 {
  font-size: 3.2rem;
  margin-bottom: 1.6rem;
  color: #adb5bd;
}

.steps-description {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* KEY FEATURES SECTION */
.key-features {
  margin-bottom: 8rem;
}

.key-features h2 {
  text-align: center;
  margin-bottom: 1.6rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stat-info h4 {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.stat-info .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}
.stat-info .trend {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}
.stat-icon {
  width: 50px;
  height: 50px;
  background-color: #effaf0;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* NEWSLETTER SECTION */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.newsletter button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 6px 8px;
  width: 55%;
}

.newsletter input {
  width: 55%;
}

/* --- Blog Index Specific Styles (blog.html) --- */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.search-bar {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 250px;
  font-family: inherit;
}
.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.blog-img {
  height: 180px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
}
.blog-img.energy {
  background-color: #e3f2fd;
  color: #2196f3;
}
.blog-img.waste {
  background-color: #e8f5e9;
  color: #4caf50;
}
.blog-img.events {
  background-color: #fff3e0;
  color: #ff9800;
}
.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}
.category-tag {
  background-color: #edf2f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-main);
}
.blog-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.blog-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.read-more {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Single Post Specific Styles (post.html) --- */
.breadcrumb {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}
.breadcrumb a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.article-container {
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}
.article-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: #e3f2fd;
  color: #2196f3;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.tag {
  background-color: #edf2f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 10px;
}

.article-content {
  font-size: 1.1rem;
  color: var(--text-main);
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}
.back-btn:hover {
  text-decoration: underline;
}

/* --- About Page Specific Styles (about.html) --- */
.about-container {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.avatar {
  width: 80px;
  height: 80px;
  background-color: #edf2f7;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* **************************** */
/* BELOW 970px (Lower-resolution desktops & Tablets) */
/* **************************** */
@media (max-width: 60em) {
  /* HOME */
  .menu-container {
    flex-direction: column;
    align-items: center;
    margin: 0 1.6rem;
    gap: 1.6rem;
  }

  .main-nav-list {
    font-size: 2rem;
    gap: 1.6rem;
  }

  .home-section-hero--background {
    margin-bottom: 4.8rem;
  }

  .section-partners {
    margin-bottom: 4.8rem;
  }

  .partners-img-box {
    height: 6.4rem;
    gap: 2.4rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
  }

  .newsletter-input {
    width: 80%;
    border-radius: 10rem;
  }

  .newsletter h3 {
    font-size: 2.4rem;
    margin-bottom: 3.2rem;
  }

  .newsletter-btn {
    font-size: 1.6rem;
    border-radius: 1.2rem;
    padding: 1.8rem 2.4rem;
  }

  .grid--footer {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 4.8rem;
    row-gap: 1.6rem;
  }

  .logo-col {
    grid-row: 2;
    grid-column: span 3;
    align-self: center;
    justify-self: center;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  /* ABOUT US */
  .heading-primary {
    font-size: 4.8rem;
    line-height: 1.2;
  }

  .grid-about {
    display: flex;
    flex-direction: column;
  }

  .overview h3 {
    transform: none;
    margin-bottom: 1.6rem;
  }

  .about-description--box {
    border: none;
    padding: 4.8rem 2.4rem;
    border-top: 1px solid #000;
  }

  .heading-secondary {
    font-size: 3.2rem;
  }

  .heading-description {
    font-size: 1.6rem;
  }

  .theme-box {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    padding: 3.2rem;
  }

  .themes-img-box img {
    height: auto;
    width: 50rem;
  }

  .heading-tertiary-onAccent {
    font-size: 2.4rem;
    margin-bottom: 3.2rem;
  }

  .hero-paragraph {
    font-size: 1.6rem;
  }

  /* STEPS */

  .section-hero--mobile {
    display: block;
    padding: 0;
  }

  .steps-img {
    margin: 0 0 3.2rem;
    padding: 0 3.2rem;
    height: auto;
  }

  .steps-pagination {
    gap: 1.6rem;
  }

  .steps-pagination a:link,
  .steps-pagination a:visited {
    font-size: 1.4rem;
    padding: 1.6rem;
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  #step-01 {
    grid-row: 1;
  }

  #step-02 {
    grid-row: 4;
  }

  #step-04 {
    grid-row: 8;
  }
}
