@charset "UTF-8";

.projects {
  padding: 10px 20px;
}

.projects p {
  color: #0f65e8;
  font-size: 14px;
}

.projects h2 {
  font-size: 18px;
}

.projects h2 + p {
  color: #000;
}

.main_projects {
  padding-top: 10px;
}

.main_projects h3 {
  display: inline-block;
  font-size: 18px;
}

.main_projects h3:nth-child(1) {
  border-bottom: 2px solid #0f65e8;
}

.main_projects p {
  color: #000;
}

.project-list {
  display: grid;
  gap: 30px;
  list-style: none;
  margin-top: 40px;
  padding: 0;
  grid-template-columns: 1fr;
}

.project-filter {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:40px;
  margin:50px 0 40px;
  border-bottom:1px solid #ddd;
}

.filter-btn {
  position:relative;
  padding:0 0 16px;
  border:none;
  background:none;
  color:#666;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}

.filter-btn:hover {
  color:#0f65e8;
}

.filter-btn.active {
  color:#0f65e8;
}

.filter-btn::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:100%;
  height:3px;
  background:#0f65e8;
  transform:scaleX(0);
  transition:.3s;
}

.filter-btn.active::after {
  transform:scaleX(1);
}

.filter-btn:hover::after {
  transform:scaleX(1);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
}

.page-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #0f65e8;
  border-radius: 10px;
  background: #fff;
  color: #0f65e8;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.page-btn:hover {
  background: #0f65e8;
  color: #fff;
}

.page-btn.active {
  background: #0f65e8;
  color: #fff;
}

.project-card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.project-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.project-card__image {
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media screen and (max-width:767px) {

    .project-filter {
      gap:20px;
      overflow-x:auto;
      justify-content:flex-start;
      padding-bottom:8px;
      scrollbar-width:none;
    }

    .project-filter::-webkit-scrollbar {
      display:none;
    }

    .filter-btn {
      flex-shrink:0;
      font-size:15px;
    }

}

.project-card__category {
  text-align: center;
}

.activity-area {
  margin-top: 20px;
}

.activity-area h3 {
  display: inline-block;
  font-size: 18px;
}

.activity-area h3:nth-child(1) {
  border-bottom: 2px solid #0f65e8;
}

.activity-area p {
  color: #000;
}

.main_activity-area_li {
  list-style: none;
}

.main_activity-area_li li {
  padding: 10px 10px;
}

.main_activity-area_li li + li {
  padding: 25px 10px;
}

.main_activity-area_li img {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 50px;
}

.main_activity-area_li h3 {
  display: block;
  font-size: 20px;
  text-align: center;
}

.main_activity-area_li p {
  font-size: 18px;
  text-align: center;
}

.future-together {
  margin: 0 25px;
  padding: 10px;
  background: #eee;
  border-radius: 10px;
  box-shadow: 1px 1px 3px gray;
}

.future-together h2 {
  padding-bottom: 5px;
  text-align: center;
  font-size: 20px;
}

.future-together p {
  font-size: 14px;
  padding-bottom: 15px;
}

.future-together p + p {
  padding-top: 10px;
  text-align: center;
}

.future-together p a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 10px 20px;
  background: #0f65e8;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: all .3s ease;
}

.future-together p a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, .35);
  transform: skewX(-25deg);
  transition: left .5s ease;
}

.future-together p a:hover {
  background: #0b53c1;
  box-shadow: 0 8px 16px rgba(15, 101, 232, .3);
}

.future-together p a:hover::before {
  left: 140%;
}

.footer {
  margin-top: 30px;
}

@media screen and (min-width: 768px) {
  .projects {
    padding: 15px 30px;
  }

  .title_projects p {
    font-size: 16px;
    text-align: center;
  }

  .title_projects h2 {
    font-size: 24px;
    text-align: center;
  }

  .title_main_projects p {
    text-align: center;
  }

  .main_projects h3 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
  }

  .main_projects h3 + p {
    padding-top: 10px;
  }

  .project-list {
    grid-template-columns: repeat(2,1fr);
  }

  .title_activity-area p {
    text-align: center;
  }

  .activity-area h3 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
  }

  .activity-area h3 + p {
    padding-top: 10px;
  }

  .main_activity-area_li {
    display: flex;
    padding: 10px;
  }

  .main_activity-area_li li {
    padding: 0 10px;
  }

  .main_activity-area_li li {
    width: calc(100% / 3);
  }

  .main_activity-area_li li + li {
    padding: 0 10px;
  }

  .main_activity-area_li li p {
    text-align: left;
  }

  .future-together {
    margin: 50px;
  }

  .future-together h2 {
    font-size: 24px;
  }

  .future-together h2 + p {
    text-align: center;
  }
}

@media screen and (min-width: 1024px) {
  .projects {
    margin-top: 30px;
  }

  .projects p {
    font-size: 18px;
  }

  .projects h2 {
    font-size: 28px;
  }

  .main_projects h3 {
    font-size: 24px;
  }

  .project-list {
    grid-template-columns: repeat(3,1fr);
  }

  .activity-area h3 {
    font-size: 24px;
  }
  
  .future-together {
    position: relative;
    margin: 90px 0;
    height: 170px;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
  }

  .future-together h2 {
    position: absolute;
    top: calc(50% - 5px);
    left: calc(50% - 30px);
    transform: translate(-100%, -100%);
  }

  .future-together h2 + p {
    position: absolute;
    left: 52%;
    bottom: calc(50% - 5px);
    transform: translate(-100%, 100%);
  }

  .future-together p a {
    position: absolute;
    top: 50%;
    right: calc(50% - 80px);
    transform: translate(100% ,-50%);
    font-size: 18px;
  }
}