body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f5ef;
  color: #111;
}

header {
  background-color: #fff;
  padding: 15px 30px;
  border-bottom: 1px solid #e0dcd6;
}

.logo {
  height: 30px;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  padding: 50px 30px;
  background-color: #f1e8db;
}

.intro-text {
  flex: 1 1 400px;
  padding-right: 20px;
}

.intro-text h1 {
  font-size: 3em;
  margin: 0 0 20px;
}

.intro-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

.intro-image {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image img {
  width: 180px;
  max-width: 100%;
}

.pairs-section {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
}

.pairs-section h2 {
  font-size: 2.5em;
  margin: 0 0 30px;
  text-align: center; /* ensure the heading is centered */
}

.pairs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.pair-box {
  flex: 1 1 220px;
  min-height: 200px;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.pair-box img {
  width: 80px;
  margin-top: 15px;
}

/* Themed colors */
.green { background-color: #3ab493; }
.purple { background-color: #865ba3; }
.yellow { background-color: #e6b441; }
.blue { background-color: #4ba3c3; }

@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    padding-right: 0;
  }

  .pairs-grid {
    flex-direction: column;
    align-items: center;
  }

}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid #e0dcd6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo img {
  height: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

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

.nav-links li a:hover {
  color: #4ba3c3;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    position: absolute;
    right: 30px;
    top: 60px;
    padding: 15px;
    border: 1px solid #ccc;
    display: none;
  }

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

  .navbar {
    flex-wrap: wrap;
  }
}

/* Grid for 16 types – Fixed 4x4 layout */
.types-grid-fixed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Type Box Style */
.type-box {
  padding: 40px 0;
  border-radius: 10px;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  text-align: center;
  transition: transform 0.2s ease;
}

.type-box:hover {
  transform: scale(1.05);
}

/* Section Header */
.types-section {
  background-color: #fff;
  padding: 50px 20px;
}

.types-header {
  background-color: #f1e8db;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 10px;
  padding: 40px 30px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-inline: auto;
}

.types-header h2 {
  font-size: 2.5em;
  margin: 0;
  flex: 1 1 400px;
}

.types-header img {
  width: 150px;
  flex: 1 1 150px;
  max-width: 100%;
}

/* Color themes */
.purple { background-color: #865ba3; }
.green  { background-color: #3ab493; }
.yellow { background-color: #e6b441; }
.blue   { background-color: #4ba3c3; }

/* Responsive 2-column on mobile */
@media (max-width: 768px) {
  .types-grid-fixed {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-button-wrapper {
  margin-top: 30px;
  margin-bottom: 36px; /* add room under the CTA */
  text-align: center;
}

.cta-button {
  background-color: #4ba3c3;
  color: white;
  padding: 15px 25px;
  font-size: 1.1em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #3c8ba6;
}

@media (max-width: 480px) {
  .cta-button-wrapper { margin-bottom: 24px; }
  .cta-button { padding: 12px 18px; font-size: 1em; }
}
