body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background: #f8f9fa;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}

.container + .container {
  margin-top: 10px;
}

.info {
  flex: 1 1 520px;
  padding: 32px 32px 32px 28px;
}

.info h1 {
  font-size: 1.5em;
  margin-bottom: 0.6em;
  color: #222;
  font-weight: 600;
}

.info p {
  font-size: 0.97em;
  margin-bottom: 1em;
}

.highlight {
  font-weight: 600;
  color: #4A4A4A;
}

.icons {
  margin-top: 20px;
}

.icons a {
  margin-right: 16px;
  display: inline-block;
}

.icons img {
  height: 24px;
  width: 24px;
  vertical-align: middle;
  transition: transform 0.2s;
  filter: grayscale(0%) brightness(0.4);
}

.icons img:hover {
  transform: scale(1.1);
  filter: brightness(0.2);
}

.email {
  margin-top: 20px;
  font-size: 0.9em;
  color: #4A4A4A;
}

.photo {
  flex: 1 1 300px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.frame-outer {
  background: #fff;
  padding: 6px;
  border-radius: 50%;
  display: inline-block;
}

.frame-middle {
  background: #000;
  padding: 5px;
  border-radius: 50%;
  display: inline-block;
}

.frame-middle img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: block;
}

.full-line-header {
  width: 100%;
  box-sizing: border-box;
  padding-left: 28px;
  padding-right: 32px;
  margin-top: 3px;
}

.section-heading {
  font-size: 1.4em;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.underline {
  width: 100%;
  height: 2px;
  background: #ccc;
}

.news-item {
  font-size: 0.96em;
  color: #444;
  line-height: 1.6;
  padding-left: 10px;
  border-left: 3px solid #ddd;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 40px;
  max-width: 100%;
  box-sizing: border-box;
}

.icon-row img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.icon-row img:hover {
  transform: scale(1.08);
}

.icon-row a {
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
}

.icon-row a img {
  pointer-events: auto; /* make sure images respond to clicks */
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 10px auto;
  }

  .photo {
    padding: 20px 0;
  }
}

.news-list {
  margin-top: 16px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96em;
  color: #444;
  line-height: 1.6;
  padding-left: 10px;
  border-left: 3px solid #ddd;
}

.news-text {
  flex: 1;
}

.reflection {
  margin-top: 16px;
  font-size: 0.96em;
  color: #444;
  line-height: 1.7;
  padding: 0 4px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.news-card {
  background: #fdfdfd;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-size: 0.95em;
  line-height: 1.6;
}

.news-date {
  font-weight: bold;
  color: #3949ab;
  margin-bottom: 6px;
}

.news-body a {
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
}

.news-body a:hover {
  text-decoration: underline;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9em;
  color: #3949ab;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}


.reflection-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.reflection-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.reflection-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}

.reflection-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reflection-title {
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 4px;
}

.reflection-snippet {
  font-size: 0.92em;
  color: #444;
}

.reflection-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.reflection-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 280px;
}

.reflection-inline-image {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.reflection-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
}


.reflection-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  align-items: center;
  transition: transform 0.2s ease;
}

.reflection-card:hover {
  transform: translateY(-2px);
}

.reflection-thumb-large {
  width: 160px;   /* was 120px */
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.reflection-thumb-large_s {
  width: 160px;
  height: 100px; /* allow natural height */
  object-fit: contain; /* prevent cropping */
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
}

.reflection-card-content {
  flex: 1;
}

.reflection-title {
  font-size: 1.05em;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 6px;
}

.reflection-snippet {
  font-size: 0.92em;
  color: #444;
  line-height: 1.5;
}

.reflection-card-content a {
  text-decoration: none;
}

.reflection-card-content a:hover .reflection-title {
  text-decoration: underline;
}

.reflection-image_rat {
  width: 45%;
  max-width: 300px;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section {
  padding: 24px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 8px;
}

.section-line {
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  margin-bottom: 20px;
}

.edu-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 10px;
  margin: 0;  /* remove if extra space added */
}

.edu-entry img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.edu-text strong {
  font-weight: 600;
  font-size: 1em; /* keep this normal for title */
  color: #222;
}

.edu-text span {
  display: block;
  font-size: 0.78em; /* smaller for city and dates */
  color: #555;
}

.edu-text .dates {
  font-style: italic;
  color: #333;
  margin-top: 2px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 20px;
  padding: 0 4px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.publication-list {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 0.95em;
  line-height: 1.6;
}
.publication-list li {
  margin-bottom: 10px;
}

.vertical-space {
  height: 30vh; /* Adjust as needed */
}

@media (max-width: 600px) {
  .vertical-space {
    height: 6vh;
  }
}

.courses-link {
  margin-top: 20px;
  text-align: left;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 20px 0;
}

.pub-card {
  background: #fdfdfd;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95em;
  line-height: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pub-card a.link-icon {
  margin-left: 12px;
  font-size: 1.1em;
  text-decoration: none;
}

@media (max-width: 600px) {
  .pub-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

