.container {
  position: relative;
  width: 100vw;
  height: auto;
  z-index: 1;
  margin-bottom: 5%;
  margin: 0 auto;
  background-color: #feb500;
  display: flex;
  justify-content: center;
  align-items: center;
}

.innerContainer {
  z-index: 1;
  box-shadow: 0 -4px 16px rgba(250, 246, 246, 0.6);
  width: 90%;
  margin: 0 auto;
  height: 90%;
}

.navButton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900; 
  color: white;
  border: none;
  cursor: pointer;
  padding: 15px 20px; 
  border-radius: 5px; 
  z-index: 2; 
  transition: background-color 0.3s;
  display: block;
  margin-bottom: 5%;
  font-size: 1.5rem; 
}

.navButton.left {
  left: 65%; 
  top: 98%;
}

.navButton.right {
  top: 98%;
  right: 15%; 
}

.holder {
  width: 100%;
  height: 100%;
  margin-top: 3%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex-direction: column;
}

.content {
  width: 100%;
  padding: 0px 20px;
  text-align: center;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.content p {
  font-size: 1rem;
}

.cardsOne {
  margin-top: 5%;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  height: 350px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.6s ease, background-color 0.6s ease;
}

.card:hover {
  transform: rotate(-2deg) translateY(-1px);
  background-color: #222222;
  box-shadow: 0 -2px 12px rgba(250, 246, 246, 0.8);
}

.cardy {
  margin: 20px 5px;
  transition: color 0.6s ease;
}

.cardy h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: transform 0.6s ease, color 0.6s ease;
}

.cardy p {
  font-size: 1rem;
  color: #333;
  transition: transform 0.6s ease, color 0.6s ease;
}

.card:hover .cardy h2,
.card:hover .cardy p {
  transform: scale(1.05);
  color: #FFFFFF;
}

@media (hover: none) {
  .card:hover {
    transform: none;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .card:hover .cardy h2,
  .card:hover .cardy p {
    transform: none;
    color: #333;
  }
}

.toggles {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.toggle {
  width: 15px;
  height: 15px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle:hover {
  background-color: #bbb;
}

.toggle.active {
  background-color: #333;
}

/* --- UPDATED STYLES FOR THE SIDE IMAGE --- */
.sideImageContainer {
  margin-top: 30px;
  display: flex; 
  align-items: center;
  width: 100%;
  z-index: 2;
}

.sideImage {
  /* Removed static width & height so inline React styling takes priority */
  max-width: 100%; 
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease; /* Smooth rotation transition */
}
/* ------------------------------------- */

@media (min-width: 768px) {
  .container {
    height: auto;
    width: 100vw;
    margin: 0 auto;
  }

  .innerContainer {
    width: 89%;
    margin: 0 auto;
  }

  .content h1 {
    font-size: 3rem;
  }

  .content p {
    font-size: 1.2rem;
  }

  .card {
    padding: 30px;
  }

  .cardy h2 {
    font-size: 1.75rem;
  }

  .cardy p {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    height: auto;
    width: 100vw;
    margin: 0 auto;
    padding: 5% 0;
  }

  .innerContainer {
    width: 90%;
    margin: 0 auto;
    padding: 100px 0;
  }

  .holder {
    flex-direction: row;
  }

  .content {
    width: 50%;
  }

  .cardsOne {
    width: 50%;
  }

  .card {
    padding: 40px;
  }

  .cardy h2 {
    font-size: 2rem;
  }

  .cardy p {
    font-size: 1.2rem;
  }
}

/* Safeguard to ensure large Admin sizes scale down gracefully on mobile */
@media (max-width: 768px) {
  .sideImage {
    max-width: 100%;
    height: auto !important; 
  }
}

@media (max-width: 480px) {
  .container {
    width: 100vw;
    height: auto;
    margin: 0 auto;
    margin-top: 4%;
    padding: 8% 0;
  }

  .innerContainer {
    padding: 4% 0;
  }

  .card {
    height: 450px;
  }

  .navButton.left {
    left: 15%; 
    top: 99%;
  }
  
  .navButton.right {
    top: 99%;
    right: 15%; 
  }
}