* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.content {
  padding: 0 16px;
}

.top_section {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.top_section h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 8px;
}
.top_section h4 {
  font-size: 1.1rem;
  color: #555;
}

.image_container {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about_section {
  margin-bottom: 32px;
}
.about_section h2 {
  font-size: 1.5rem;
  color: #2980b9;
  margin-bottom: 12px;
}
.about_section p {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 1.2px;
  text-align: justify;
}
.biography_section {
  margin: 50px 0;
}
.biography_section h3 {
  font-size: 1.3rem;
  color: #16a085;
  margin-bottom: 10px;
}
.biography_section ul {
  padding-left: 20px;
}
.biography_section li {
  margin-bottom: 8px;
}

footer {
  margin-top: 32px;
  text-align: center;
  font-size: 1rem;
  color: #888;
}

footer a {
  color: #2980b9;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 700px) {
  .container {
    padding: 12px;
  }
  .top_section {
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    gap: 16px;
    text-align: center; /* Center text inside */
  }
  .image_container {
    width: 140px;
    height: 140px;
    margin: 0 auto; /* Center image container */
  }
  .top_section h1 {
    font-size: 1.5rem;
  }
  .top_section h4 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 6px;
  }
  .content {
    padding: 0 4px;
  }
  .top_section h1 {
    font-size: 1.1rem;
  }
  .about_section h2,
  .biography_section h3 {
    font-size: 1rem;
  }
  .image_container {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 701px) {
  .top_section {
    flex-direction: row-reverse; /* Image on right, text on left */
    align-items: center;
    text-align: left;
  }
  .image_container {
    margin-left: 24px;
    margin-right: 0;
  }
  .top_section h1,
  .top_section h4 {
    text-align: left; /* Ensure heading and subheading are left-aligned */
    margin-left: 0;
  }
}
