.purple-banner {
  background-color: #6C4193; 
  color: #fdfdfd;
  padding: 2.5rem 1rem 3rem 1rem;
  font-weight: 1000;
  font-size: 5rem;             
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  letter-spacing: 0.02em;
  border-radius: 6px;
  max-width: 100%;
  margin: 6.5rem auto 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.purple-banner p {
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0;
  max-width: 600px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}


.button-link {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  background-color: #fdfdfd;
  color: #6C4193;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: 
    background-color 0.4s ease, 
    color 0.4s ease,
    border 0.4s ease;
}

.button-link:hover {
  background-color: #6C4193;
  color: white;
  border: 2px solid white;
}

@media (max-width: 768px) {
  .purple-banner {
    font-size: 3rem;        /* smaller heading text */
    padding: 2rem 1rem 2.5rem 1rem;
    margin: 5rem auto 2rem auto;
  }

  .purple-banner p {
    font-size: 1rem;
    max-width: 90%;         /* allow more fluid width on mobile */
  }

  .button-link {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
  }
}

@media (max-width: 480px) {
  .purple-banner {
    font-size: 2.2rem;      /* even smaller heading */
    padding: 1.5rem 1rem 2rem 1rem;
    margin: 4rem auto 1.5rem auto;
  }

  .purple-banner p {
    font-size: 0.9rem;
    max-width: 95%;
  }

  .purple-banner button {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

/* What is Rebus Section */

.what-is-rebus-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 3rem auto 6rem auto;
  gap: 2rem;
  padding: 0 1rem;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.what-is-rebus {
  flex: 1 1 400px; /* grow/shrink with a base width */
  text-align: left;
  color: #222222;
}

.what-is-rebus h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.what-is-rebus p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 100%;
  color: #555555;
}

.what-is-rebus-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.what-is-rebus-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* optional rounding */
}

.blue-banner {
  background-color: #122566;    
  color: #fdfdfd;               /* dark blue text for contrast */
  padding: 3rem 2rem 4rem 2rem; /* bigger padding */
  font-weight: 600;
  font-size: 2.5rem;            /* bigger heading */
  text-align: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  letter-spacing: 0.02em;
  border-radius: 8px;
  max-width: 100%;
  margin: 5rem auto 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.blue-banner p {
  font-weight: 400;
  font-size: 1.4rem;
  max-width: 900px;
  margin: 0;
  color: #fdfdfd;  /* slightly transparent dark blue */
  line-height: 1.5;
}

/* Perks and Benefits */

.perks-benefits {
  background-color: #fff;
  max-width: 1100px;
  margin: 4rem auto 6rem auto;
  padding: 2rem 1rem 4rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222222;
  text-align: center;
}

.perks-benefits h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #003366;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem 3rem;
  justify-items: center;
}

.perk-item {
  max-width: 300px;
  text-align: center;
}

.perk-icon {
  font-size: 3rem; /* emoji size or you can use SVG icons */
  margin-bottom: 1rem;
  color: #007aff;
}

.perk-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #004a99;
}

.perk-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

/* Open Roles */

.open-roles-section {
  background-color: #fdfdfd; 
  padding: 4rem 1rem 6rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.open-roles-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #122566;
}

.open-roles-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #444;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.accordion-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: white;
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
  color: #122566; /* Set header text to blue */
}

.accordion-header:hover {
  background-color: #f4f3f3;
}

.arrow-icon {
  transition: transform 0.3s ease;
  color: #122566; /* Arrow icon in blue */
  font-size: 1.2rem;
}

.accordion-body {
  padding: 1rem 1.5rem;
  display: none;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 1rem;
  color: #444;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .arrow-icon {
  transform: rotate(180deg);
}

/* Optional: Highlight active header */
.accordion-item.active .accordion-header {
  background-color: #fdfdfd;
  color: #122566;
}

.accordion-header i {
  color: #122566;
  margin-right: 0.5rem;
}

.arrow-icon {
  transition: transform 0.3s ease;
  color: #122566;
  font-size: 1.2rem;
}

.accordion-item.active .arrow-icon {
  transform: rotate(180deg);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.apply-button-link {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  background-color: #6c4193;
  color: #fdfdfd;
  font-weight: 600;
  border: 1px solid #6C4193;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
}