/* Line 4 container: max width and centered */
.line4 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background-color: #f9f9f9;
}

/* Left-side image container */
.profile-photo {
  flex: 0 0 363px; /* unchanged width */
}

/* Image styling: 10px taller */
.profile-photo img {
  width: 100%;
  height: 500px; /* increased from 480px */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Right-side text container: 15px narrower */
.profile-text {
  flex: 1;
  max-width: calc(100% - 10px); /* reduce width by 15px */
  font-family: Arial, sans-serif;
  color: #333;
}

/* Main heading */
.profile-text h1 {
  font-size: 1.8em;
  margin-bottom: 8px;
  color: #005a9c;
}

/* Subheadings with tight spacing */
.profile-text h2 {
  font-size: 1.3em;
  margin-top: 8px;
  margin-bottom: 2px;
  color: #0078d4;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
}

/* Paragraphs */
.profile-text p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Responsive fallback */
@media (max-width: 900px) {
  .line4 {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo,
  .profile-text {
    flex: 1 1 100%;
    text-align: center;
  }

  .profile-text {
    text-align: left;
    max-width: 800px;
  }

  .profile-photo img {
    height: auto;
  }
}
