html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

body {
  display: flex;
  flex-direction: column;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: #0f172a;
  padding: 18px 0;
  text-align: center;
}

.navbar a,
.navbar a:visited,
.navbar a:active,
.navbar a:focus {
  color: #ffffff;
  text-decoration: none;
  margin: 0 26px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
}

.navbar a:hover { opacity: 0.75; }

/* ===== STICKY FOOTER ===== */
.main-content { flex: 1; }

/* ===== HOME LAYOUT (image left, text right) ===== */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}

.container img {
  width: 260px;
  border-radius: 12px;
}

.text h1 { font-size: 42px; margin: 0; font-weight: 600; }

.subtitle { font-size: 18px; color: #555; margin-top: 10px; }

.tagline { margin-top: 12px; font-size: 16px; color: #1e3a8a; font-weight: 500; }

.description { margin-top: 25px; font-size: 16px; line-height: 1.6; max-width: 580px; }

/* ===== FOOTER ===== */
.footer {
  background-color: #f3f3f3;
  padding: 22px 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}

.footer a,
.footer a:visited,
.footer a:active,
.footer a:focus {
  color: #0f172a;
  text-decoration: none;
  margin: 0 10px;
  white-space: nowrap;
  outline: none;
}

.footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { flex-direction: column; text-align: center; }
}

/* ===== CV PAGE ===== */
.cv-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 20px 30px;
}

.cv-title{
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.cv-subtitle{
  color: #555;
  margin: 0 0 22px 0;
  font-size: 15px;
}

.cv-section{
  margin-top: 26px;
}

.cv-section h2{
  font-size: 18px;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e6e6e6;
  color: #1e3a8a;
  font-weight: 600;
}

.cv-entry{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cv-entry:last-child{
  border-bottom: none;
}

.cv-entry .left .role{
  font-weight: 600;
}

.cv-entry .left .org{
  color: #444;
  font-size: 14px;
  margin-top: 2px;
}

.cv-entry .right{
  text-align: right;
  white-space: nowrap;
  color: #555;
  font-size: 14px;
}

.cv-bullets{
  grid-column: 1 / -1;
  margin: 6px 0 0 0;
  padding-left: 18px;
  color: #333;
}

.cv-bullets li{
  margin: 4px 0;
  line-height: 1.45;
  font-size: 14px;
}

@media (max-width: 760px){
  .cv-entry{
    grid-template-columns: 1fr;
  }
  .cv-entry .right{
    text-align: left;
  }
}

/* ===== EDUCATION PAGE ===== */
.edu-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 20px 30px;
}

.edu-title{
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.edu-subtitle{
  color: #555;
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
}

.edu-program{
  margin-top: 26px;
}

.edu-program h2{
  font-size: 18px;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e6e6e6;
  color: #1e3a8a;
  font-weight: 600;
}

.edu-meta{
  color: #555;
  font-size: 14px;
  margin: 0 0 14px 0;
}

.term{
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  background: #fff;
}

.term-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.term-title{
  font-weight: 600;
  font-size: 15px;
}

.term-date{
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}

.course-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin: 0;
  padding-left: 18px;
}

.course-grid li{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px){
  .term-head{ flex-direction: column; align-items: flex-start; }
  .course-grid{ grid-template-columns: 1fr; }
}
