.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;     /* safe side spacing */
  width: 100%;
  box-sizing: border-box;
}

.spacer {
  height: 120px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1rem 6rem;
}

/* --- Info Bar --- */
.info-bar {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  
  overflow: hidden; /* Keeps content inside the rounded corners */
}

/* This is the clickable header bar */
.info-bar__header {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.info-bar__icon {
  width: 60px;
  height: auto;
  margin-right: 2rem;
  display: block;
}

.info-bar__icon_1 {
  width: 64px;
  height: auto;
  margin-right: 1.8rem;
  display: block;
}

.info-bar__chevron {
  width: 24px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.info-bar__chevron.rotated {
  transform: rotate(180deg);
}

/* --- Accordion Content --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

/* This is now a flex container */
.accordion-content__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem; /* Consistent padding */
  margin-top: 32px;
  margin-bottom: 32px;
}

.accordion-content__image {
  width: 100%;
  max-width: 420px;
  margin-right: 30px; /* gap */
  flex-shrink: 0; /* Prevents image from shrinking */
}

.accordion-content__text-block {
  flex-grow: 1; /* Allows text block to take remaining space */
}

/* --- Sub Accordion Styles --- */
.text-feature {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}
.text-feature-content {
  flex-grow: 1;
}
.sub-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  padding: 0 2rem;
}


/* cards Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.4rem;
  margin-top: 1rem;  
  margin-bottom: 3rem;
}

.sub-accordion-content .card-grid {
  padding: 0;
  margin-top: 2.4rem;
  margin-bottom: 2.4rem;
}


.divider {
  width: 75%;
  height: 1px;
  background-color: hsl(210, 20%, 90%);
  margin: 4rem auto 24px auto;
}

.empty-space {
  margin-bottom: 1000px;
}


/* --- Responsive Styles --- */


@media (max-width: 820px) {
  .accordion-content__grid {
    flex-direction: column; /* Stacks the items vertically */
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .accordion-content__image {
    margin-right: 0; /* Removes side margin */
    margin-bottom: 2rem; /* Adds space below the image */
  }
  .info-bar__icon {
    margin-right: 1.5rem;
  }
  .card-grid {
    /* 1. Stack cards in a single column */
    grid-template-columns: 1fr;

    /* 2. Set the width and remove side padding */
    max-width: 440px;
    padding: 0;

    /* 3. Center the entire card grid */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {

  .hero-container {
    align-items: flex-start;
    text-align: left;
  }
  
  
  
  .info-bar__header {
    flex-direction: column; /* Stacks items vertically */
    align-items: flex-start;
    padding: 2rem 0.5rem;
    flex-wrap: wrap;
  }

  .info-bar__chevron {
    display: none; 
  }

  .info-bar__icon {
    display: block;
    width: 70px;
    margin: 0 0 1rem 0;
  }
  .info-bar__icon_1 {
    display: block;
    width: 75px;
    margin: 0 0 1rem 0;
  }
  
  .accordion-content__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem; /* Consistent padding */
    
  }

  .accordion-content__image {
    margin-right: 0; /* Removes side margin */
    margin-bottom: 2rem; /* Adds space below the image */
    margin-top: 1rem;
  }

  .sub-accordion-content + .text-feature {
    border-top: 1px solid hsl(210, 20%, 90%);
    
    
  }

  .sub-accordion-content {
    padding: 0 0.5rem;
    padding-bottom: 0;
  }

  .sub-accordion-content .card-grid {
    
    margin-top: 0rem;
    margin-bottom: 40px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 0;
    margin-bottom: 0px;
    padding-top: 40px;
    padding-bottom: 50px;
    
    
  }

  .text-feature {
    text-align: left;
    padding-bottom: 40px;
    padding-top: 40px;
    align-items: flex-start;
    padding-left: 8px;
    padding-right: 8px;
    
  }
  
  
  
  .divider {
    display: none;
  }

  .empty-space {
    margin-bottom: 500px;
  }
  

}
