@charset "UTF-8";

/* ======================
 Common
=========================*/

h1.page-title {
  margin-bottom: 2rem;
  font-size: 3.2rem;
  font-weight: 800;
}

h2.section-title {
  position: relative;
  font-size: 2.4rem;
}

/* ======================
 Search area
=========================*/
.search-area {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #eee;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 28px;
  border-radius: 8px;

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }

  .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .search-summary {
    flex: 1;
    display: flex;
    width: fit-content;
  }
  .search-summary-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-right: 20px;
    font-weight: 400;
    text-align: left;
  }

  .search-summary .total-data {
    white-space: nowrap;
  }
  .search-summary .keyword-label {
    white-space: nowrap;
  }
  .search-summary .keyword--data {
    white-space: wrap;
  }

  .search-summary span {
    font-weight: 600;
  }

  .search-filter {
    display: block;
    text-align: right;
  }

  .toggle-button {
    all: unset;
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 10px 20px;
    font-size: 1.6rem;
    font-weight: 400;
    border-radius: 5px;
    cursor: pointer;
  }

  .toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }
  .toggle-button:focus {
    outline: none;
  }

  .toggle-icon {
    margin-left: 6px;
    stroke: #999;
    transition: transform 0.3s ease-in-out;
  }

  .toggle-button.active .toggle-icon {
    transform: rotate(180deg);
  }

  .toggle-content {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: 0.3s ease;
    box-sizing: border-box;
  }

  .toggle-content.active {
    height: auto;
    opacity: 1;
    transition: 0.3s ease;
    margin: 12px 0 20px 0;
    padding: 20px;
    width: 100%;
  }

  .group {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    width: 100%;
    border-top: 1px dashed #ccc;
  }

  .group-title {
    width: 7em;
    text-align: left;
    padding: 0 20px 0 0;
    font-weight: 600;
    font-size: 1.6rem;
  }

  .checkbox-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
    gap: 1.6rem;
  }

  .custom-checkbox {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 3rem;
    margin: 0;
    text-align: left;
  }

  .custom-checkbox .checkbox-box {
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    border: 2px solid #8d8d8d;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .custom-checkbox input {
    display: none;
  }

  .custom-checkbox input:checked + .checkbox-box {
    border-color: #000;
    background: #000;
  }

  .custom-checkbox input:checked + .checkbox-box::after {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%2220 6 9 17 4 12%22/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .custom-checkbox input:disabled + .checkbox-box {
    border-color: #ccc;
    background: #eaeaea;
  }

  .custom-checkbox input:disabled + .checkbox-box + span {
    color: #aaa;
  }

  .custom-checkbox input:disabled ~ * {
    pointer-events: none;
  }

  .custom-checkbox:has(input:disabled) {
    cursor: default;
  }

  .filter-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
  }

  .filter-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    border-left: 6px solid var(--color-primary);
    padding-left: 12px;
  }

  .reset-filters-btn {
    text-align: right;
  }

  .reset-filters-btn a {
    display: inline-block;
    border: 1px solid var(--color-primary);
    background: #fff;
    padding: 1.2rem 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
  }

  .reset-filters-btn a:hover {
    background-color: var(--color-primary-light1);
    color: var(--color-primary);
    transition: 0.3s;
  }
}

/* ======================
 Search results area
=========================*/
.search-results-area {
  .section-title {
    display: block;
    width: 100%;
    margin-bottom: 2rem;
  }

  .section-title::before {
    position: absolute;
    content: "";
    bottom: -8px;
    left: 0;
    height: 1px;
    width: 100%;
    background: #6d6e70;
  }

  .card-container {
    position: relative;
    display: grid;
    margin-top: 3rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    box-sizing: border-box;
  }

  .card-link,
  a.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
    border-radius: 10px;
  }

  .card-link:hover,
  a.card-link:hover,
  .card-link:active,
  a.card-link:active {
    border: 1px solid #cfcfcf;
    background-color: rgba(255, 255, 255, 0.15);
  }

  .card-image {
    display: block;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-main {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    box-sizing: border-box;
  }

  .card-main h3 {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.4W;
    color: var(--color-baseText);
    text-align: left;
  }

  .card-main h4 {
    display: block;
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-subText);
    text-align: left;
  }

  .icon-company {
    background-image: url(/202407/frontria/images/icon-company.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 18px;
    padding-left: 22px !important;
  }

  .card-description {
    flex: 1;
    display: block;
    margin: 20px 0 0 0;
    padding: 0;
    color: var(--color-subText);
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-cmd {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .card-detail-link {
    display: inline-block;
    margin-top: 20px;
    text-align: right;
  }

  .more-btn {
    margin: 80px 0;
    text-align: center;
  }

  .more-btn a {
    display: inline-block;
    min-width: 240px;
    max-width: 100%;
    border-color: #7d7d7d;
    background: #fff;
    color: #000;
  }

  .more-btn svg {
    fill: initial;
    transform: rotate(90deg);
  }

  .more-btn svg .circle,
  a:hover .more-btn svg .circle {
    stroke: #1c1c1c !important;
  }

  .icon_set_right {
    padding-left: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  .checkbox-container {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1.4rem;
    gap: 1rem;
  }
  .search-results-area .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media screen and (max-width: 767px) {
  .checkbox-container {
    grid-template-columns: 1fr;
  }
  .search-results-area .card-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }

  .section-title {
    flex-direction: column;
  }

  .search-area {
    padding: 12px 16px;
  }

  .search-area .search-summary {
    width: 100%;
    flex-wrap: wrap;
    margin: 8px 0 12px 0;
  }

  .search-area .search-summary dt {
    font-size: 1.7rem;
    padding: 4px 0;
    font-weight: 400;
    margin: 0;
    text-align: left;
    box-sizing: border-box;
  }
  .search-area .search-summary dd {
    font-size: 1.7rem;
    padding: 4px 20px 4px 0;
    font-weight: 400;
    margin: 0;
    text-align: left;
    box-sizing: border-box;
  }
  .search-area .search-summary .total-data {
    display: block;
    white-space: nowrap;
  }
  .search-area .search-summary .keyword-label {
    display: block;
    white-space: nowrap;
  }
  .search-area .search-summary .keyword--data {
    display: block;
  }

  .search-area .search-filter {
    position: relative;
    width: 100%;
    text-align: center;
    align-items: center;
    box-sizing: border-box;
    border-top: 1px dashed #ccc;
    padding-top: 8px;
  }

  .search-area .toggle-button {
    position: relative;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.5rem;
    padding: 8px 20px;
  }

  .search-results-area {
    .card-container {
      gap: 20px;
    }
    .card-image {
      height: 120px;
      min-height: 120px;
      max-height: 120px;
    }
    .card-main {
      padding: 16px;
    }

    .card-main h3 {
      font-size: 1.8rem;
    }

    .card-main h4 {
      margin: 8px 0 0 0;
      padding: 0;
      font-size: 1.3rem;
    }

    .card-description {
      margin: 16px 0 0 0;
      font-size: 1.4rem;
      margin-bottom: 1rem;
    }

    .card-detail-link {
      margin-top: 8px;
    }
  }
}

@media screen and (max-width: 480px) {
  .group {
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px dashed #ccc;
  }

  .group-title {
    width: autp;
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 4px;
  }
  .checkbox-container {
    padding: 1rem 0 1rem 0;
    gap: 0.5rem;
  }
}
