/* ========================================
   Montor About Section Styles
   ======================================== */

.montor-about {
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* About Content Wrapper */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Image Left Layout */
.about-content-wrapper.image-left {
  grid-template-columns: 1fr 1fr;
}

.about-content-wrapper.image-left .about-content {
  order: 2;
}

.about-content-wrapper.image-left .about-doctor-image {
  order: 1;
}

/* Content */
.about-content {
  max-width: 600px;
}

.about-title {
  margin: 0 0 24px 0;
  line-height: 1.2;
  color: #019EB2;
  font-size: 48px;
  font-weight: 700;
}

.about-description {
  margin: 0 0 32px 0;
  max-width: 550px;
  color: #7a8a8f;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

/* Button */
.about-btn {
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  border: none;
  background-color: #023047;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-btn:hover {
  background-color: #019EB2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 158, 178, 0.4);
}

/* Doctor Image */
.about-doctor-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-doctor-image img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Circle Background */
.about-doctor-image.has-circle::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-content-wrapper {
    gap: 60px;
  }

  .about-title {
    font-size: 40px;
  }

  .about-doctor-image.has-circle::before {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .about-content-wrapper,
  .about-content-wrapper.image-left {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-content,
  .about-content-wrapper.image-left .about-content {
    max-width: 100%;
    order: 2;
  }

  .about-doctor-image,
  .about-content-wrapper.image-left .about-doctor-image {
    order: 1;
  }

  .about-title {
    font-size: 32px;
  }

  .about-description {
    max-width: 100%;
    font-size: 14px;
  }

  .about-btn {
    padding: 12px 24px;
    font-size: 12px;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .about-doctor-image.has-circle::before {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 28px;
  }

  .about-doctor-image.has-circle::before {
    width: 300px;
    height: 300px;
  }
}

/* Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default: Image Right */
.about-content {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.about-doctor-image {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Image Left Layout */
.about-content-wrapper.image-left .about-content {
  animation: fadeInRight 0.8s ease-out forwards;
}

.about-content-wrapper.image-left .about-doctor-image {
  animation: fadeInLeft 0.8s ease-out forwards;
}

/* Mobile: Always fade up */
@media (max-width: 768px) {
  .about-content,
  .about-doctor-image,
  .about-content-wrapper.image-left .about-content,
  .about-content-wrapper.image-left .about-doctor-image {
    animation: fadeInUp 0.8s ease-out forwards;
  }

  .about-content,
  .about-content-wrapper.image-left .about-content {
    animation-delay: 0.2s;
  }
}

/* Accessibility */
.about-btn:focus {
  outline: 2px solid #019EB2;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .about-btn {
    display: none;
  }

  .about-doctor-image.has-circle::before {
    display: none;
  }
}

