/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-family: 'Montserrat', sans-serif; /* Use Montserrat or other modern sans-serif font */
}

/* Body Styles */
body {
  /*font-family: 'Montserrat', sans-serif; /* Use Montserrat or other modern sans-serif font */
  font-family: "Playfair Display", serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  /* Example background color */
  color: #333;
  /* Example text color */
  max-width: 1200px;
  /* Adjust as needed */
  /*border: 1px solid #ccc;*/
  /* Border around the body */
  border-radius: 15px;
  /* Rounded edges */
  margin: 30px auto;
}

.to_round {
  border: 1px solid #ccc;
  border-radius: 15px;
  overflow: hidden;
  /* Ensure content stays within the rounded borders */
}

/* ... Previous CSS rules ... */

/* Header Styles */
header {
  background-color: #fff;
  border-radius: 15px 15px 0 0;
  /* Rounded corners for the header */
  background-color: rgb(129, 33, 33);
  color: white;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: center;

}

.profile img {
  width: 400px;
  margin-bottom: 0;
  margin-top: auto;
  /**border-radius: 50%;*/
  height: auto;
  /* Maintain aspect ratio */
}

.profile h1 {
  text-align: left;
  font-size: 70px;
  max-width: 300px;
  line-height: 70px;
}

.profile-info {
  text-align: left;
  padding: 40px 0;
}

/* Biography Styles */
.biography {
  max-width: 500px;
  text-align: justify;
  text-justify: inter-word;
}

.section-content {
  background-color: rgb(253, 248, 242);
}

/* Section Styles */
.section-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /*margin-top: 30px;*/

}

.section-info-hat {
  border-top: 1px solid #ccc;
}

.section-left .epigraph {
  font-size: 14px;
}

.section-left,
.section-right {
  margin-top: 30px;
  margin-bottom: 30px;
  width: 48%;
  /* Adjust as needed, leaving space for margins */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
}

.section-right img,
.section-left img {
  max-width: 52%;
  /* Adjust the width */
  max-height: 500px;
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
}

.section-right h2 {
  color: rgb(129, 33, 33);
  font-size: 30px;
}

.epigraph {
  margin-top: 10px;
  text-align: center;
  /* Center the text */
  max-width: 500px;
}

.section-right ul {
  list-style: none;
  padding-left: 20px;
  text-align: center;
  /* Center the bullet points */
}

.info-right {
  text-align: left;
}

.info-left {
  text-align: right;
}

.bullet-point {
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
  padding-right: 20px;
}

/* Style for Title */
.bullet-point h3 {
  font-style: italic;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Style for Subtitle */
.bullet-point h4 {
  margin-top: 5px;
  margin-bottom: 10px;
}

.right-bullets {
  list-style: none;
}

.right-bullets li {
  position: relative;
  padding-left: 20px;
  /* Space for the bullet */
  margin-bottom: 10px;
  /* Adjust as needed */
  text-align: left;

}

.right-bullets li::before {
  content: "";
  position: absolute;
  top: 50%;
  /* Adjust the vertical alignment */
  left: 0px;
  transform: translateY(-50%);
  width: 6px;
  /* Size of the bullet */
  height: 6px;
  /* Size of the bullet */
  background-color: #dcdcdc;
  /* Color of the bullet */
  border-radius: 50%;
  /* Shape of the bullet (circle) */
}


.section-education {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  /*margin-top: 30px;*/
  border-top: 1px solid #ccc;
  background-color: rgb(253, 248, 242);

}

.section-education h2 {
  width: 100%;
}

.section-education img {
  /*max-width: 40%; /* Adjust the width */
  max-width: 100%;
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 5px;
}

/* RESEARCH */

.section-research-each:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  border-radius: 15px 0 0 15px;
}



.section-research-each:nth-child(even) .subsection-research-content {
  order: 2;
  /* Switch content placement for even subsections */
  margin-left: 20px;
}

.section-research-each:nth-child(even) .subsection-research-image {
  order: 1;
  /* Text on the left for even subsections */
}

.section-research-each:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  border-radius: 0 15px 15px 0;
}

.section-research-each:nth-child(odd) .subsection-research-content {
  order: 1;
  /* Switch content placement for odd subsections */
  margin-right: 20px;
}

.section-research-each:nth-child(odd) .subsection-research-image {
  order: 2;
  /* Text on the right for odd subsections */
}



.section-research {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  /*margin-top: 30px;*/
  border-top: 1px solid #ccc;
  background-color: rgb(253, 248, 242);
  text-align: center;
}

.section-research h2 {
  color: rgb(129, 33, 33);
  font-size: 50px;
  margin-left: auto;
  margin-right: auto;
}

.section-research-each {
  /* max-height: 600px;*/
  text-align: center;
  /* Center the text */
  width: 80%;
  padding: 20px;
  display: flex;
  background-color: rgb(129, 33, 33);
  color: white;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  /*align-items: flex-start;
    justify-content: space-between;*/
  margin-top: 15px;
  margin-bottom: 15px;
}


.subsection-research-image {
  /* width: 40%; /* Adjust as needed, leaving space for margins */
  border-radius: 5px;
  display: flex;
  /* align-items: center; /* Center content horizontally */
  /* margin-top: auto;
     margin-bottom: auto;*/
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.subsection-research-content {
  /*height: 100%;*/
  flex: 1;
  align-items: center;
  /* Center content horizontally */
}

.subsection-research-image img {
  /* object-fit: scale-down;*/
  /*height: auto; /* Maintain aspect ratio */
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  /*max-height: 450px;
    min-width: 200px;*/


  /* max-height: 100%; /* Ensure the image won't exceed container height */
  max-width: 100%;
  /* Ensure the image won't exceed container width */
  width: auto;
  /* Maintain aspect ratio */
  /* height: auto; /* Maintain aspect ratio */
  object-fit: scale-down;
  /* Fit the image inside its container */
  object-position: center;
}

.subsection-research-right ul {
  list-style: none;
  padding-left: 20px;
  text-align: center;
  /* Center the bullet points */
}

/* CARDS */

.card-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(129, 33, 33);
  margin-top: 50px;
  padding-top: 30px;
}

.row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 90%;
  /* Adjust the maximum width as needed */
  margin-bottom: 20px;
  /* Space between rows */
  flex-wrap: wrap;
  /* Allow cards to wrap when screen size decreases */
}

.card {
  width: calc(30% - 10px);
  /* Half width with margin between cards */
  text-align: center;
  border: 1px solid #ccc;
  padding: 15px;
  background-color: rgb(253, 248, 242);
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
}

.card-small-text {
  font-size: small;
}

.card img {
  width: 90%;
  height: auto;
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  max-height: 500px;
  object-fit: scale-down;
}

.card-small-text img {
  width: 80%;
}

.big-text {
  text-align: center;
  margin-bottom: 20px;
  /* Space between big text and rows */
  color: white;
  font-size: 30px;
  text-shadow: 4px 4px 11px rgba(0, 0, 0, 0.26);
}


/* TEACHING */

.teaching-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(129, 33, 33);
  margin-top: 30px;
}

.teaching-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  /*margin-top: 30px;*/
  border-top: 1px solid #ccc;
  background-color: rgb(129, 33, 33);
  color: white;
}

.teaching-section h2 {
  width: 100%;
  text-align: left;
  margin-right: 50px;
  color: white;
  font-size: 40px;
  margin-left: 20px;
}

.teaching-section-left,
.teaching-section-right {
  margin-left: 20px;
  width: 80%;
  /* Adjust as needed, leaving space for margins */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
}

.teaching-section-right img,
.teaching-section-left img {
  max-width: 40%;
  /* Adjust the width */
  max-height: 500px;
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
  box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
}

.teaching-epigraph {
  margin-top: 10px;
  text-align: center;
  /* Center the text */
  max-width: 500px;
}

.teaching-section-right ul {
  list-style: none;
  padding-left: 20px;
  text-align: center;
  /* Center the bullet points */
}

/* SKILLS */

.skills-section {
  padding: 30px;
}

.skills-container {
  position: relative;
  /* Set width, height, and other styles for the container */
}

.skills-center-image {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  /* Add styles for your center image container */
}

.skills-center-image img {
  max-width: 100%;
  /* Add styles for your image */
}

.skills-text-1,
.skills-text-2,
.skills-text-3,
.skills-text-4 {
  position: absolute;

}

.skills-text-1 {
  top: 20%;
  left: 18%;
  transform: translate(-50%, -50%);
  max-width: 300px;
}

.skills-text-2 {
  top: 75%;
  left: 25%;
  transform: translate(-50%, -50%);
  max-width: 400px;
}

.skills-text-3 {
  top: 40%;
  left: 82%;
  right: 1%;
  transform: translate(-50%, -50%);
  max-width: 800px;
}

.skills-text-4 {
  top: 68%;
  left: 83%;
  transform: translate(-50%, -50%);
  max-width: 400px;
}

.skills-section h2 {
  margin-left: auto;
  margin-right: auto;
  color: rgb(129, 33, 33);
  font-size: 50px;
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}