/* General styles */
.container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: auto;
  padding: 1rem 0;
  background-color: #FEB500; /* Yellow */
  color: #151515; /* Dark text for better readability on yellow */
}

.innerContainer {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  background-color: #FEB500; /* Yellow background for the inner card */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); /* Stronger shadow so the inner card pops */
  border-radius: 12px; /* Slight border radius to enhance the "card" look */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically and horizontally */
}

/* Blob styles */
.innerContainer::before,
.innerContainer::after,
.blob3 {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: #ffffff; /* White so the blobs show up against the yellow background */
  opacity: 0.2; /* Tweak opacity for desired subtlety */
  z-index: -1;
  clip-path: path('M150,15 C210,15 240,55 240,105 C240,155 210,195 150,195 C90,195 60,155 60,105 C60,55 90,15 150,15 Z');
}

.innerContainer::before {
  top: -75px;
  left: -75px;
  transform: scale(1.5);
}

.innerContainer::after {
  bottom: -75px;
  right: -75px;
  transform: scale(1.8);
}

.blob3 {
  top: -75px;
  right: -75px;
  transform: scale(1.2);
}

/* --- DYNAMIC IMAGE STYLES --- */
.imageWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  z-index: 2; /* Ensures image sits above the blob backgrounds */
}

.sectionImage {
  width: 250px;
  height: 250px;
  object-fit: contain; /* Keeps aspect ratio */
  transition: width 0.3s ease, height 0.3s ease;
}

/* Content styles */
.content,
.contentOne {
  width: 80%; /* Adjusted width for better spacing */
  text-align: center;
  margin-bottom: 20px; /* Consistent margin */
  z-index: 2;
}

.content h1,
.contentOne h1 {
  font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive font size */
  margin-bottom: 10px;
}

.content p,
.contentOne p {
  font-size: clamp(1rem, 2vw, 1.2rem); /* Responsive font size */
  text-align: justify;
}

/* --- NEW: Card Wrappers & Spacing --- */
.cardsOne {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem; /* Space below major sections */
}

.cardStyles {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem; /* ADDED: Generous margin at the bottom of the cards */
}
/* ----------------------------------- */


/* Responsive styles using media queries */
@media (max-width: 768px) {
  .innerContainer {
    width: 95%;
    padding: 10px;
  }

  .content,
  .contentOne {
    width: 90%;
  }

  /* Modified to prevent inline sizes breaking mobile */
  .sectionImage {
    width: auto !important;
    height: auto !important;
    max-width: 180px; 
  }

  /* Adjust blob sizes and positions as needed for smaller screens */
  .innerContainer::before,
  .innerContainer::after,
  .blob3 {
    width: 150px;
    height: 150px;
  }

  .cardStyles {
    margin-bottom: 2.5rem; /* Slightly smaller margin on mobile */
  }
}

@media screen and (max-width: 480px) {
  /* Modified to prevent inline sizes breaking mobile */
  .sectionImage {
      max-width: 120px;
  }
}