.section {
    display: flex;
    flex-wrap: wrap;
    padding: 3rem 1rem; /* more vertical padding */
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1100px;     /* reduced overall width */
    margin: 0 auto;         /* center it */
  }
  
  .text-content,
  .image-content {
    flex: 1 1 450px;
    max-width: 520px;
    height: 520px; /* increased height */
  }
  
  
  .text-content {
    background-color: #fefee9;
    padding: 2rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .text-content p {
    font-size: 1.2rem;
    line-height: 32px;
    color: #444;
    padding: 5px;
  }
  
  .image-content {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .image-content img {
    width: 90% !important;
    height: 100%;
    object-fit: cover; /* Keeps proportions and fills the container */
    border-radius: 5px;
  }
  /* Base styles */
.section,
.toggle-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}
 .reverse {
    flex-direction: row !important;
  }
  /* Responsive for mobile */
  @media (max-width: 768px) {
    .section,
  .toggle-content {
    flex-direction: column;
  
    text-align: left;
  }
.reverse {
    flex-direction: column-reverse !important;
  }

    .text-content,
    .image-content {
      height: auto;
      max-width: 100%;
      width: 80%;
    }
  
    .text-content h1 {
      font-size: 2rem;
    }
  
    .text-content p {
      font-size: 1rem;
    }
  
    .image-content img {
      height: auto;
      
      padding: 10px;
    }
  }
  
.bg-jumbotron-nail {
  background: linear-gradient(rgba(33, 30, 28, 0.7), rgba(33, 40, 28, 0.7)),
              url(../images/nail/103.png) no-repeat center center;
  background-size: cover;
  height: 500px;
}

  .bg-jumbotron-hair {
    background: linear-gradient(rgba(33, 30, 28, 0.7), rgba(33, 40, 28, 0.7)), url(../images/home/10002.jpg), no-repeat center center;
    background-size: cover;
  }
   .bg-jumbotron-skin {
  background: linear-gradient(rgba(34, 34, 34, 0.2), rgba(28, 28, 28, 0.2)), 
              url(../images/skin/107.png) no-repeat center center;
  background-size: cover;
}
 .bg-jumbotron-body {
    background: linear-gradient(rgba(33, 30, 28, 0.7), rgba(33, 40, 28, 0.7)), url(../images/home/Radiance\ 1920\ X\ 1080.png\ body\ care.png) no-repeat center center;
  background-size: cover;
  height: 500px;
  }
    .bg-jumbotron-bridal {
    background: linear-gradient(rgba(33, 30, 28, 0.7), rgba(33, 40, 28, 0.7)), url(../images/makeup/100.png) no-repeat center center;
  background-size: cover;
  height: 500px;
  }
  .toggle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  .toggle-buttons {
    text-align: center;
    margin-bottom: 30px;
  }

  .toggle-btn {
    padding: 12px 30px;
    margin: 0 10px;
    font-size: 16px;
    border: none;
    background: #ddd;
    color: #333;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
  }

  .toggle-btn.active {
    background: #000;
    color: #fff;
  }

  .toggle-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
  }

  .toggle-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .toggle-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
  }

  .text-content {
    flex: 1;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
  }

  .text-content h1 {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .text-content p {
    font-size: 17px;
    line-height: 1.7;
  }

  .image-content {
    flex: 1;
    text-align: center;
  }

  .image-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
  }

  @media (max-width: 768px) {
    .toggle-content {
      flex-direction: column;
    }

    .image-content img {
      max-width: 100%;
    }
  }

  .toggle-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
  }
  
  .toggle-content {
    display: none;
    flex: 1 1 100%;
    gap: 20px;
    align-items: center;
  }
  
  .toggle-content.active {
    display: flex;
  }
  
  .text-content, .image-content {
    flex: 1;
    /* padding: 20px; */
  }
  
  .image-content img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
  }

  
.toggle-btn.active {
    background-color: #000;
    color: #fff;
  }
  
  .toggle-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
  }
  
  .toggle-content {
    display: none;
    flex: 1 1 100%;
    gap: 20px;
    align-items: center;
  }
  
  .toggle-content.active {
    display: flex;
  }
  
  .text-content, .image-content {
    flex: 1;
    /* padding: 20px; */
  }
  
  .image-content img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
  }
