/* Base styles */
.container {
  position: relative;
  margin: 0 auto;
  width: 100vw;
  height: auto; 
  min-height: 800px;
  z-index: 1;
  margin-bottom: 1%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.innerContainer {
  z-index: 1;
  box-shadow: 0 8px 16px rgba(46, 32, 51, 0.4);
  width: 90%;
  height: 90%;
  margin: 15% auto;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 40px;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  margin-top: 40px; 
}

.content h1 {
  text-align: center;
  font-size: 4rem;
  margin: 0 15%;
  margin-bottom: 10px;
}

.content p {
  text-align: justify;
  font-size: medium;
  margin: 0 15%;
}

/* --- IMAGE STYLES --- */
.imageWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 10%; 
}

.sectionImage {
  /* Removed fixed width & height so inline styles take over */
  max-width: 100%; /* Prevents breaking container if width is huge */
  object-fit: contain; 
  transition: width 0.3s ease, height 0.3s ease;
}
/* ------------------------ */

.cardsOne {
  margin-top: 1%;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  .container {
      height: auto; 
      width: 100vw;
      padding: 10px; 
      margin: 0 auto;
  }

  .innerContainer {
      margin: 10% auto; 
      width: 100%;
      height: auto; 
  }

  .content {
      width: 90%;
      margin: 2% auto;
      height: auto; 
      text-align: center; 
  }

  .content h1 {
      font-size: 2.5rem; 
      margin: 0 5%;
  }

  .content p {
      font-size: small; 
      margin: 0 5%;
  }

  .cardsOne {
      margin: 2% auto;
      width: 90%;
      text-align: center; 
  }

  /* Responsive Image Override for Mobile */
  .sectionImage {
      width: auto !important; /* Force auto width */
      max-width: 180px; /* Cap size on mobile */
      height: auto !important; /* Force auto height */
  }
}

@media screen and (max-width: 480px) {
  /* Mobile Image Overlay */
  .sectionImage {
      max-width: 120px;
  }
}