/* ================= Header Nav Bar ================= */
.navbar {
  background-color: #44719e;
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.05rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 30px;
}

.navbar li a {
  text-decoration: none;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.navbar li a:hover {
  background-color: #aae5a9;
  color: rgb(7, 6, 6);
  transform: translateY(-2px);
}

.navbar li a:active {
  background-color: #65d0da;
}

/* ================= Profile Section ================= */
.profile-img {
  border-radius: 0%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border: 3px solid #d9e4d9;
}

.columns {
  gap: 2.5rem;
}


/* ================= Contact Box ================= */
.contact-box {
  background-color: #f6f6f6;
  border-radius: 6px;
  padding: 0.75rem 0;
  margin-top: 1rem;
}

.contact-box a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  color: #d5cece;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.contact-box a:hover {
  background-color: #eaeaea;
  border-left-color: #555;
}

.contact-box a + a {
  margin-top: 0.1rem;
}

/* ================= Bio Section ================= */
.column p, .column {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ================= News Highlights ================= */
#news {
  margin-top: 3rem;
}

.news-list {
  list-style: none;
  padding-left: 0;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  padding: 12px 16px;
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: background-color 0.3s, transform 0.2s;
}

.news-item:hover {
  background-color: #e6f2ff;
  transform: translateY(-2px);
}

.news-text {
  font-size: 1rem;
}

.news-date {
  font-size: 0.85rem;
  color: #555;
}

/* ================= GENERAL ================= */
body {
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.page-layout-full .page-columns {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ================= TEACHING COURSES ================= */
.courses-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}

/* ================= COURSE CARD ================= */
.course-card {
  width: 90%;
  max-width: 900px;
  margin: auto;
  border-radius: 14px;
  background: #ada3a3;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: max-width 0.4s ease, box-shadow 0.3s ease;
}

/* Expanded state using [open] */
.course-card[open] {
  max-width: 1150px;
  box-shadow: 0 12px 30px rgba(212, 194, 194, 0.15);
}

/* ================= COURSE HEADER ================= */
.course-header {
  padding: 18px 24px 18px 48px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
  position: relative;
  user-select: none;
  white-space: normal; /* allows multi-line summary */
}

/* Arrow icon */
.course-header .arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.course-card[open] .arrow {
  transform: translateY(-50%) rotate(90deg);
}

/* Course term */
.course-term {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  margin-top: 4px;
}

/* ================= COURSE BODY ================= */
.course-body {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: Georgia, "Times New Roman", serif;
  color: #444;
}

/* ================= DIVIDER ================= */
.course-divider {
  border: none;
  border-top: 1px solid #ddd;
  width: 90%;
  margin: 1.2rem auto;
}

/* ================= HOVER EFFECT ================= */
.course-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
  .course-card,
  .course-card[open] {
    max-width: 100%;
    width: 100%;
  }

  .courses-container {
    gap: 1rem;
  }

  .course-header {
    padding-left: 36px;
  }
}
