body{ font-family: "Libertinus Serif" , "Zen Old Mincho", "serif";
       .hero{
            position: relative;
            background-image: url(../img/hero.jpg);
            background-size: cover;
            height: 250px;
            z-index: 1;
            background-position: center top;
            background-position: 50% 30%; 
        .front-text{
            position: absolute;
            top: 0; left: 0;
            text-align: center;
            color: #fff;
            height: 250px;
            width: 100%;
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;  
            h1{
                font-size: 40px;
                padding-bottom: 14px;
                font-weight: 300;   
                @media(width <= 700px){
                    font-size: 26px;
                };
            }  
            p{
                font-size: 20px;
                font-weight: 300;
                margin: 5px 80px 10px;
            }
            h2{
                font-size: 26px;
                font-weight: 300;
                margin-top: 5px;
                margin-bottom: 20px;
            }   
        }

    }
    .hero-under{
            position: relative;
            background-image: url(../img/hero.jpg);
            background-size: cover;
            height: 100px;
            z-index: 1;
            background-position: center top;
            background-position: 50% 30%; 
        .front-text{
            position: absolute;
            top: 0; left: 0;
            color: #fff;
            height: 100px;
            width: 100%;
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;  
            h1{
                font-size: 25px;
                padding-bottom: 20px;
                font-weight: 300;
                @media(width <= 700px){
                    font-size: 23px;
                };
            }  
        }

    }
    header {
  display: flex;
  align-items: center;
  background-color: #f4f4f4;
  border-bottom: 1px solid gray;
  position: sticky;
  top: 0;
  z-index: 100;
  ul {
    display: flex;
    align-items: center;
    color: #f4f4f4;
    flex: 1;

    @media (width <= 750px) {
      display: none;
    }

    li {
      flex: 1;
    }
    li a {
      display: block;           
      text-align: center;
      font-size: 25px;
      font-weight: 500;
      padding: 10px 0;
      color: black;
      text-decoration: none;
      position: relative;
    }
@media (width >= 750px) {
    li a:hover {
      color: #8d8d8d;
    }
    li a::after {
      content: "";
      position: absolute;
      inset: 0;
      border: 2px solid #000000;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    }

    li a:hover::after {
      opacity: 1;
    }
  }
    .burger {
        margin-left: auto;
    display: none;
    position: relative;
    @media(width <= 750px) {
      display: block;
    }
    details {
      summary {
        list-style: none;
        outline: none;
        cursor: pointer;
        &::-webkit-details-marker {
          display: none;
        }
        button {
          gap: 4px;
          padding-inline: 10px;
          width: 40px;
          height: 40px;
          border-radius: 6px;
          border: none;
          pointer-events: none;
          background-color: transparent;
          span {
            display: block;
            background-color: #000000;
            width: 20px;
            height: 2px;
            border-radius: 10px;
            position: absolute;
            inset: 0;
            margin: auto;
            transition-property: opacity, translate, rotate;
            transition-duration: .2s;
            &:nth-child(1) {
              translate: 0 -6px;
            }
            &:nth-child(3) {
              translate: 0 6px;
            }
          }
        }
      }
      &[open] {
        button {
          span {
            &:nth-child(1) {
              translate: 0;
              rotate: 45deg;
            }
            &:nth-child(2) {
              opacity: 0;
            }
            &:nth-child(3) {
              translate: 0;
              rotate: -45deg;
            }
          }
        }
      }
      .menu {
        width: max-content;
        border: 1px solid #000000;
        background-color: #fff;
        border-radius: 5px;
        padding: 10px 15px;
        position: absolute;
        inset: 80% 0 auto auto;
        ul {
          display: grid;
          gap: .5em;
          a {
            font-size: 14px;
            font-weight: 400;
            @media(width <= 750px) {
              font-size: 12px;
            }
            &:hover {
              color: #32988e;
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
    }
    main{
        .news-item {
  margin-bottom: 10px;
}
#pager button {
  margin: 2px;
}
        .top{
            display: grid;
            grid-template-columns : 60% 40%;
                @media(width <=900px){
                    grid-template-columns: 100%;
                    grid-template-rows: auto auto;
                }
            row-gap: 20px;
            margin: 40px 40px;
            .explanation{
                h1{
                    margin-top: 15px;
                    font-size: 30px;
                    text-align: center;
                }
                h2{
                    font-size: 24px;
                    text-align: center;
                    margin-bottom: 40px;
                }
                ul{
                    li{
                        margin-top: 18px;
                        font-size: 18px;
                        @media(width <= 700px){
                    font-size: 16px;
                };
                    }
                }
                p{
                    margin-top: 40px;
                    text-align: right;
                    font-size: 15px;
                    margin-right: 40px;
                    @media(width <= 700px){
                    font-size: 14px;
                    margin-right: 0;
                    margin-top: 24px;                    
                };
                    
                    a{
                        text-decoration: underline;
                        &:hover{
                            color: #999999;
                        }
                    }
                }                
            }
            .map{
                width: 90%;
                overflow: hidden;
                border: solid #000 1px;
                border-radius: 3px;
                aspect-ratio: 1 /1;
                margin: 0 auto 20px; 
                @media(width <=900px){
                    width: 300px;
                    margin: 0 auto 20px;               
                }
                iframe{
                    width: 100%;
                    aspect-ratio: 1 / 1;
                    height: auto;
                } 
            }            
        }
        h3 {
  margin-left: 40px;
  font-size: 25px;
  text-decoration: underline;
}

#news {
  border-left: 1.5px solid #333;
  padding-left: 20px;
  max-width: 600px;
  margin: 20px auto;
  @media(width <= 700px){
    margin: 16px 16px;
                }
}

.news-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.date {
  font-size: 17px;
  margin-bottom: 8px;
}

.content p {
  margin: 0 0 10px 0;
}

.news-item img {
  width: 300px;
  display: block;
  margin: 20px auto;
  @media(width <= 700px){
    width: 200px;
    margin: 16px auto;
                };
}

#pager {
  margin-top: 20px;
  margin-bottom: 20px;
}

.pager-inner {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.prev {
  width: 60px;
  text-align: left;
}

.next {
  width: 60px;
  text-align: right;
}

.pages {
  flex: 1;
  text-align: center;
}

#pager button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  padding: 5px 10px;
  font-size: 16px;
  &:hover{
    text-decoration: underline;    
  }
}

#pager span {
  margin: 0 5px;
  color: #999;
}
.new {
  color: red;
  font-size: 12px;
  margin-left: 10px;
}
.name-of-title{
    .for-design{
        height: 10px;
        background-color: #606060;
        margin: 4px 0;
    }
    h1{
        font-size: 25px;
        padding: 4px;
        color: #fff;
        background-color: #606060;
        text-align: center;
        margin-bottom: 30px;
    }
}  
.about1{
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    justify-content: center;
    height: 300px;
    align-items: center;
    margin: 10px 60px;
    .picture-about{   
        height: 250px;
        overflow: hidden;
        display: flex;
        align-items: center;
        .img{
            height: 100%;
            aspect-ratio: 5 / 4;
            object-fit: cover;
        }
    }
    .text{
        p{
            margin-bottom: 12px;
        }
    }
    @media(width <= 600px){
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    height: auto;
    gap: 20px;
    margin: 20px 60px;
    .picture-about{
      order: 2;
      height: 250px;
    }
    .text{
      order: 1
    }
      }
}
.about2{
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    justify-content: center;
    height: 300px;
    align-items: center;
    margin: 10px 60px;
    .picture-about{   
        height: 250px;
        overflow: hidden;
        display: flex;
        align-items: center;
        .img{
            height: 100%;
            aspect-ratio: 5 / 4;
            object-fit: cover;
        }
    }
        p{
            margin-bottom: 12px;
        }
        @media(width <= 600px){
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    height: auto;
    gap: 20px;
    margin: 20px 60px;
    .picture-about{
      height: 250px;
    }
      }   
}       
.about3{
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    justify-content: center;
    height: 300px;
    align-items: center;
    margin: 10px 60px;
    .picture-about{   
        height: 250px;
        overflow: hidden;
        display: flex;
        align-items: center;
        .img{
            height: 100%;
            aspect-ratio: 5 / 4;
            object-fit: cover;
        }
    }
    .text{
        p{
            margin-bottom: 12px;
        }
    }
    @media(width <= 600px){
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    height: auto;
    gap: 20px;
    margin: 20px 60px 60px;
    .picture-about{
      order: 2;
      height: 250px;
    }
    .text{
      order: 1
    }
      }
}
.title {
    display: flex;
    width: 50%;
  background: #ccc;
  padding: 5px;
  text-align: center;
  font-size: 20px;
  justify-content: center;
  font-weight: bold;
  letter-spacing: 10px;
}

.techer .name {
    margin: 0 10%;
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid #000000;
  padding:  10px 0 0;
  justify-content: space-around;
  .pro{
    font-size: 20px;
    @media(width <= 700px){
      font-size: 16px;
                }
  }
  .name-pro{
    font-size: 25px;
    font-weight: bold;
    @media(width <= 700px){
      font-size: 20px;
                }
    .name-eng{
        padding-left: 50px;
        font-weight: 500;
        font-size: 22px;
        @media(width <= 700px){
          font-size: 16px;
                }
    }
  }
}
.techer .detail{
    margin: 0 20%;
    display: grid;
    grid-template-columns: 65% 35%;
    font-size: 16px;
    @media(width <= 700px){
      grid-template-columns: auto;
      grid-template-rows: auto auto;
      margin: 0 10%;
                }
    .certification{
        justify-content: center;
        @media(width <= 700px){
          order: 2;
                }
        ul{
            margin-bottom: 30px;
            @media(width <= 700px){
              margin-bottom: 20px;
                }
            li{
                margin: 5px 0;
            }
        }
        p{
            margin-left: 20%;
            font-size: smaller;
        }
    }
}

.techer .picture {
  float: right;
  margin-left: 20px;
  margin-top: 10px;
  @media(width <= 700px){
    order: 1;
    display: flex;
    justify-content: center;
                }
}

.techer .picture img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  @media(width <= 700px){
    width: 160px;
                }
}

.history{
    display: grid;
    grid-template-columns: 60px auto;
    margin: 40px 5%;
    justify-content: center;
    @media(width <= 700px){
      grid-template-columns: auto;
      grid-template-rows: auto auto;
                }
    h1{
        font-size: 20px;
        text-decoration: underline;
        @media(width <= 700px){
          margin-left: 30px;
          margin-bottom: 20px;
                }
    }    
}

.techer table {
  width: 100%;
  border-collapse: collapse;
}

.techer th {
  width: 80px;
  text-align: right;
  padding: 10px;
  color: #555;
}

.techer td {
  padding: 10px 20px;
  border-left: 2px solid #aaa;
  position: relative;
}

.techer td::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 50%;
}
.student{
  .hidden{
    font-size: 16px;
    padding: 30px 20px;
  }
    .current{
        display: grid;
        grid-template-columns: 60% 40%;
        gap: 30px;
        margin: 20px 10%;
        @media(width <= 700px){
      grid-template-columns: auto;
      grid-template-rows: auto auto;
      justify-items: center;
                }        
        .text{
            align-items: center;
            .subtitle{
                margin: 20px 0;
                font-size: 18px;
            }
            table{
                font-size: 18px;
                tr{
                border-bottom: 1.5px black solid;
                height: 30px;
                }
                th{
                    text-align: justify;
                    text-align-last: justify;
                    width: 100px;
                    font-weight: 500;
                }
                td{
                    width: 200px;
                    text-align: end;
                    padding-right: 30px;
                }
                span{
                    margin: 0 10px;
                    font-size: larger;
                }           
            }
        }
    }
    .picture{
        display: flex;
        justify-content: center;                        
        overflow: hidden;
        align-items: center;
        width: 70%;
        padding-top: 20px;
        @media(width <= 700px){
          padding-bottom: 20px;
                }
    }
    .img{
    aspect-ratio: 3 / 2;
    object-fit: cover;
    }  
}
.official{
        margin-left: 20%;
        display: grid;
        grid-template-columns: 30% 70%;
        grid-template-rows: auto auto;
        row-gap: 25px;
        @media(width <= 700px){
      margin-left: 5%;
                }
        .subtitle{
            text-decoration: underline;
            font-weight: 600;
        }
        li{
            margin-bottom: 10px;
            list-style-type: disc;
            &:hover{
                color: #606060;
                text-decoration: underline;
            }
        }
    }
    .container {
  display: flex;
  max-width: 900px;
  margin: 40px auto;
}

.tabs {
  width: 120px;
  border-right: 1px solid #aaa;
  @media(width <= 550px){
    width: 80px;
   }
}

.tab {
  padding: 10px;
  cursor: pointer;
  &:hover{
    text-decoration: underline;
    color: #606060;
  }
}

.tab.active {
  background: #999;
  color: #fff;
}

.content {
  flex: 1;
  padding-left: 20px;  
  padding-right: 10px;
  @media(width <= 550px){
    padding-left: 0px;
   }
}

.content ul {
  padding-left: 20px;  
}

.content li {
  margin-bottom: 10px;
  line-height: 1.6;
  @media(width <= 550px){
    font-size: 14px;
   }
}
    }
    footer{
        padding: 10px 10px;
        display: flex;
        height: 120px;
        background-color: #f4f4f4;
        border-top: #000 1px solid;
        justify-content: center;
        .under-logo{
            display: flex;
            align-items: flex-end;
            padding: 0 30px 15px;
            :hover{
                color: #8c8c8c;
            }
        }
        
    }
}