/* Main Container */
.principal-container {
  display: flex;
  width: 80vw;
  border-radius: 15px;
  padding: 40px 20px;
  overflow: hidden;
  height: auto;
  margin: 50px auto;
  gap: 20px;
  box-sizing: border-box;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Left Side: Message Content */
.message-content {
  flex: 1; /* Occupy more space */
  padding: 40px;
  box-sizing: border-box;
}

.message-content h2 {
  font-size: 2rem;
  color: rgba(9, 115, 183, 1);
  margin-bottom: 15px;
}

.message-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

.read-more {
  text-decoration: none;
  color: rgba(9, 115, 183, 1);
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.read-more:hover {
  text-decoration: underline;
}

.author-name {
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

/* Right Side: Profile Card */
.profile-card {
  flex: 1;
  background: linear-gradient(135deg, #3ba99c, #276875);
  border-radius: 0 0 50px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
  box-sizing: border-box;
  height: auto;
  transition: all 0.3s ease;
}

/* Circular Profile Image */
.profile-header {
  width: 350px;
  height: 350px;
  border-radius: 100%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .principal-container {
    flex-direction: column; /* Stack sections vertically */
    padding: 60px 20px; /* Adjust padding */
  }

  .profile-card {
    width: 100%; /* Full width for container shape */
    border-radius: 15px; /* Change to a container shape */
    order: -1; /* Move to the top */
    height: auto; /* Adjust height for content */
    padding: 20px;
  }

  .profile-header {
    width: 100%; /* Full width for container */
    height: auto; /* Adjust height for content */
    border-radius: 15px; /* Remove circular shape */
  }

  .message-content {
    width: 100%; /* Full width for better layout */
    padding: 0; /* Adjust padding */
  }
}

@media (max-width: 768px) {
  .principal-container {
    padding: 40px 15px; /* Further reduce padding */
  }

  .profile-card {
    padding: 15px; /* Reduce padding for smaller screens */
  }

  .profile-header {
    width: 100%; /* Full width for container */
    height: auto; /* Adjust height for smaller screens */
  }

  .message-content h2 {
    font-size: 1.5rem; /* Smaller heading size */
  }

  .message-content p {
    font-size: 0.9rem; /* Smaller font size */
  }
}
