@charset "utf-8";

:root {
  --primary-color: #772323;
  --secondary-color: #cfae61;
  --padding-m: clamp(10px, 1vw, 20px);
}

* {
  box-sizing: border-box;
}

body {
  color: #1a0203;
  margin: 0px;
  padding: 0px;
  background-color: #faf6f2;
  font-size: clamp(16px, 1vw, 18px);
  font-family: Roboto Condensed, Arial, Noto Sans TC, Microsoft Yahei,
    Microsoft JhengHei, fantasy, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  background-image: url(../images/main-bg.png);
  background-size: 600px;
  background-position: left -100px top -50px;
  background-repeat: no-repeat;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  padding: 15px;
  max-width: 1300px;
  margin: 0 auto;
}

.lector {
  margin: 20px auto;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: clamp(240px, 20vw, 380px) 1fr;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  /* border: 1px solid var(--border-color); */
}

.lector-info {
  background-color: #f3dbce;
  padding: var(--padding-m);
  text-align: center;
  font-weight: 700;
}
.lector-info h2 {
  color: var(--primary-color);
}
.lector-pic {
  padding: 2vw;
  display: block;
  margin: 1vw auto;
  width: 75%;
  aspect-ratio: auto 1 / 1;
}

.lector-pic {
  padding: 2vw;
  display: block;
  margin: 1vw auto;
  width: 75%;
  aspect-ratio: auto 1 / 1;
}


.lector-pic img {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  object-fit: cover;
  object-position: 50% 50%;
}

.lector-content {
  padding: 30px 2vw 50px 4vw;
}

.lector-content h3 {
  position: relative;
  color: var(--primary-color);
  margin: 20px 0;
}

.lector-content table {
  position: relative;
}

.lector-content table td {
  border: 0;
  padding: 3px;
  border-bottom: 1px dashed var(--border-color);
}

.course-time {
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50px;
  padding: 0 10px;
  display: inline-block;
  margin: 3px 0;
}


@media only screen and (min-width: 767px) {
  .lector-content h3::before {
    content: "■";
    position: absolute;
    top: -5px;
    left: -25px;
  }

  .lector-content table::before {
    content: "";
    position: absolute;
    left: -20px;
    width: 1px;
    height: 100%;
    border-radius: 50px;
    background-color: var(--primary-color);
  }
  .lector-content p {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
  }

  .lector-content p::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 1px;
    height: 100%;
    border-left: 1px solid var(--primary-color);
  }
}

@media only screen and (max-width: 767px) {
  body {
    background-size: 300px;
    background-position: left -100px top -50px;
    background-repeat: no-repeat;
  }

  .lector {
    grid-template-columns: 1fr;
  }

  .lector-pic {
    padding: 20px;
    width: 200px;
  }

  .lector-content {
    padding: 20px;
  }
}
