#portfolio {
  font-family: "Pretendard";
  background-color: #ffffff;
}

#portfolio .inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 150px 0;
}

#portfolio .portfolio-wrapper {
  display: flex;
  flex-direction: column;
}

#portfolio .portfolio-top {
}

#portfolio .portfolio-top p {
  color: #2f6edb;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.sub_path ul.portfolio-category li a {
  color: #999;
  transition:
    color 0.2s ease,
    font-weight 0.2s ease;
}

.sub_path ul.portfolio-category li.active a {
  color: #2f6edb;
}

.sub_path ul.portfolio-category li a:hover {
  color: #2f6edb;
}

/* =========================
   Portfolio Search
========================= */
.portfolio-search {
  text-align: center;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  margin-right: 47px;
}

.search-select {
  position: relative;
  display: inline-block;
}

#searchTypeBtn {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  justify-content: space-between;
}

#searchTypeList {
  position: absolute;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  list-style: none;
  padding: 4px 0;
  margin: 4px 0 0 0;
  width: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

#searchTypeBtn i {
  font-size: 12px;
}

#searchTypeList li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Pretendard", sans-serif;
}

#searchTypeList li:hover {
  background-color: #f9f9f9;
}

.hidden {
  display: none;
}

.portfolio-search input {
  padding: 8px 12px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Pretendard", sans-serif;
}

.portfolio-search button:not(#searchTypeBtn) {
  padding: 8px 14px;
  background: #2f6edb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
}

.portfolio-search button:hover:not(#searchTypeBtn) {
  background: #2f6edb;
}

/* =========================
   Portfolio Items + Pagination
========================= */
.portfolio-bottom {
  margin: 40px 0;
}

.portfolio-item-container {
  display: flex;
  flex-direction: column;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-list.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.portfolio-list.empty p {
  grid-column: unset;
  font-size: 16px;
  color: #666;
}

.portfolio-item {
  display: flex;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

/* .portfolio-item img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
} */

.portfolio-item img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-orientation: from-image;
}

.portfolio-item h3 {
  font-size: 18px;
  margin: 20px 0 40px 0;
}

/* =========================
   Pagination (Updated)
========================= */
#portfolio .pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

#portfolio .pagination .page-btn {
  background: none;
  border: none;
  color: rgba(21, 21, 22, 0.4);
  font-size: 16px;
  font-weight: 500;
  font-family: "Pretendard", sans-serif;
  cursor: pointer;
  padding: 6px 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/* 아이콘 */
#portfolio .pagination .page-btn i {
  font-size: 16px;
}

/* hover */
#portfolio .pagination .page-btn:hover:not(.disabled) {
  color: #2f5fd8;
}

/* active */
#portfolio .pagination .page-btn.active {
  color: #2f5fd8;
  font-weight: 700;
}

/* disabled */
#portfolio .pagination .page-btn.disabled {
  color: rgba(21, 21, 22, 0.4);
  cursor: not-allowed;
}

#inquiry {
  width: 100%;
}

#inquiry .inquiry-box {
  height: 520px;
  background-image: url(../img/company2.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
}

#inquiry .inquiry-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#inquiry .inquiry-box p {
  position: relative;
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.4;
  font-weight: 600;
  z-index: 1;
}

#inquiry .inquiry-btn {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 15px 60px;

  background: #ffffff;
  color: #2f5fd8;

  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  border: none;

  cursor: pointer;
  transition: all 0.25s ease;
}

#inquiry .inquiry-btn:hover {
  background: #2f5fd8;
  color: #ffffff;
}

.inquiry-form-wrap {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.6s ease;
}

.inquiry-form-wrap.active {
  max-height: 3000px;
}

.inquiry-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.inquiry-form h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

.inquiry-form .form-group {
  width: 100%;
  margin-bottom: 24px;
}

.inquiry-form label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;

  font-size: 14px;
}

.inquiry-form textarea {
  min-height: 160px;
  resize: vertical;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: #9ca3af;
}

.inquiry-form .submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 40px;

  background: #2f5fd8;
  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.inquiry-form .submit-btn:hover {
  background: #004fa3;
}

.file-limit-text {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

#footer {
  background-color: #1b1b1b;
}

#footer .inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px 12px;

  color: #ffffff;
}

#footer .footer-top {
  display: flex;
  justify-content: space-between;
  margin: 0 0 50px 0;
  align-items: center;
}

#footer .footer-top img {
  width: 300px;
  height: auto;
}

#footer .footer-top h1 {
  font-size: 36px;
}

#footer .footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding: 30px 0;
  border-top: 1px solid #8c8c8c;
}

#footer .footer-bottom-left {
}

#footer .footer-bottom-left p {
  margin: 4px 0;
  font-size: 14px;
}

#footer .footer-bottom-right {
}

#footer .footer-bottom-right p {
  font-size: 16px;
  color: #b1b1b1;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  #portfolio {
    padding: 0 20px;
  }

  #portfolio .inner {
    padding: 60px 0;
  }

  #portfolio .company-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  #portfolio .portfolio-wrapper {
    display: flex;
    flex-direction: column;
    padding-left: 0;
  }

  #portfolio .portfolio-top p {
    font-size: 13px;
    padding-left: 0;
  }

  #portfolio .portfolio-search {
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-right: 0;
  }

  #portfolio .search-select,
  #portfolio .portfolio-search input,
  #portfolio .portfolio-search button:not(#searchTypeBtn),
  #portfolio #searchTypeBtn {
    width: 100%;
  }

  #portfolio .search-select {
    flex: 1 1 100%;
  }

  #searchTypeBtn {
    justify-content: space-between;
  }

  #searchTypeList {
    width: 100%;
  }

  #portfolio .portfolio-search input {
    margin: 0;
  }

  .portfolio-bottom {
    margin: 20px 0;
  }

  .portfolio-list {
    grid-template-columns: 1fr;
    margin: 10px 0 20px 0;
  }

  .portfolio-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  #inquiry .inquiry-box {
    height: 500px;
  }

  #inquiry .inquiry-box p {
    font-size: 28px;
  }
  #inquiry .inquiry-btn {
    font-size: 16px;
    padding: 10px 24px;
  }

  #footer .footer-top {
    flex-direction: column;
    text-align: left;
    gap: 20px;
    margin: 0 0 40px 0;
    align-items: flex-start;
  }
  #footer .footer-top img {
    width: 180px;
  }
  #footer .footer-top h1 {
    font-size: 16px;
  }
  #footer .footer-bottom {
    flex-direction: column;
    text-align: left;
    gap: 10px;
  }
  #footer .footer-bottom-right p {
    font-size: 12px;
  }
}
