/* Section Container */
.anistonnew-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  padding-left: 0px;
  padding-right: 0px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image Styling */
.anistonnew-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anistonnew-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  width: 100%;
  /* Ensures responsiveness */
  max-height: 400px;
  object-fit: cover;
}

/* Text Content */
.anistonnew-text {
  flex: 1;
  max-width: 500px;
}

.anistonnew-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.anistonnew-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Alternate Section: Reverse Order */
.anistonnew-section.reverse {
  flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .anistonnew-section {
    padding: 40px;
    gap: 30px;
  }

  .anistonnew-text h2 {
    font-size: 2.5rem;
  }

  .anistonnew-text p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .anistonnew-section {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    gap: 20px;
  }

  .anistonnew-section.reverse {
    flex-direction: column;
    /* Remove reverse effect on mobile */
  }

  .anistonnew-text {
    max-width: 100%;
  }

  .anistonnew-text h2 {
    font-size: 1.6rem;
  }

  .anistonnew-text p {
    font-size: 14px;
  }

  .anistonnew-image img {
    max-height: 300px;
  }
}
