
/* ========================================
   COMPANY RESOURCES
======================================== */

.resources-page {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
}

.resources-inner {
  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 30px;
}

/* CONTACT SUB VISUAL */

.sub-contact {
  background-image: url('../images/sub_contact.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* BLUE LINE */

.resources-visual-line {
  width: 100%;
  height: 12px;
  background: var(--color-blue-nav);
}

/* ========================================
   SECTION
======================================== */

.resources-section {
  padding: 90px 0 100px;
  background: var(--color-black);
}

.resources-title {
  margin: 0 0 30px;
  text-align: center;
  font-size: var(--font-visual);
  font-weight: 700;
  line-height: 1.4;
}

/* NOTICE */

.resources-notice {
  margin: 0 0 15px;
  text-align: right;
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--color-white);
}

.resources-notice a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   TABLE
======================================== */

.resources-table-wrap {
  width: 100%;
}

.resources-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.resources-table thead {
  background: var(--color-surface-raised);
}

.resources-table th {
  padding: 18px 20px;
  font-size: var(--font-base);
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
}

.resources-table td {
  padding: 19px 20px;
  border-bottom: 1px solid var(--color-border-dark);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-light);
  text-align: center;
}

.resources-table td:nth-child(3) {
  text-align: left;
}

.resources-table tbody tr {
  transition: background 0.25s ease;
}

.resources-table tbody tr:hover {
  background: var(--color-surface-raised);
}

/* TITLE LINK */

.resources-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--color-gray-light);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resources-file-link:hover {
  color: var(--color-blue-bright);
}

.resources-file-link span {
  flex-shrink: 0;
  font-size: var(--font-sm);
}

/* ========================================
   UPLOAD BUTTON
======================================== */

.resources-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.resources-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  min-width: 230px;
  min-height: 48px;
  padding: 12px 22px;

  border: 1px solid var(--color-blue-nav);
  border-radius: 10px;

  background: linear-gradient(
    180deg,
    var(--color-blue-dark) 0%,
    var(--color-blue-nav) 100%
  );

  color: var(--color-white);
  font-size: var(--font-base);
  font-weight: 600;
  text-decoration: none;

  transition: border-color 0.3s ease;
}

.resources-upload-button:hover {
  border-color: var(--color-blue-bright);
  background: linear-gradient(
    180deg,
    var(--color-blue-panel) 0%,
    var(--color-blue-nav) 100%
  );
}

.resources-upload-button .arrow {
  display: block;
  width: 0;
  height: 0;
  flex-shrink: 0;

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--color-white);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

  .resources-section {
    padding: 75px 0 85px;
  }

  .resources-table th,
  .resources-table td {
    padding: 18px 12px;
    font-size: var(--font-xs);
  }

  .resources-notice {
    font-size: var(--font-xs);
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .resources-inner {
    padding: 0 20px;
  }

  .resources-visual-line {
    height: 8px;
  }

  .resources-section {
    padding: 55px 0 70px;
  }

  .resources-title {
    margin-bottom: 20px;
    font-size: var(--font-title-sm);
  }

  .resources-notice {
    margin-bottom: 25px;
    font-size: var(--font-xs);
    text-align: left;
  }

  /* TABLE TO CARDS */

  .resources-table,
  .resources-table tbody,
  .resources-table tr,
  .resources-table td {
    display: block;
    width: 100%;
  }

  .resources-table thead,
  .resources-table colgroup {
    display: none;
  }

  .resources-table tbody {
    display: grid;
    gap: 15px;
  }

  .resources-table tbody tr {
    padding: 20px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background: var(--color-surface);
  }

  .resources-table td {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 6px 0;
    border: 0;

    text-align: left;
    font-size: var(--font-xs);
  }

  .resources-table td::before {
    content: attr(data-label);
    flex: 0 0 55px;
    color: var(--color-gray);
    font-weight: 600;
  }

  .resources-table td:nth-child(3) {
    font-size: var(--font-base);
  }

  .resources-file-link {
    color: var(--color-white);
  }

  /* BUTTON */

  .resources-actions {
    margin-top: 30px;
  }

  .resources-upload-button {
    min-width: 200px;
    min-height: 46px;
    padding: 11px 18px;
    font-size: var(--font-xs);
  }

}
