.category-buttons button {
  padding: 10px 15px;
  margin: 5px;
  background-color: #64b5f6;
  color: #ffffff;
  border: none;
  cursor: pointer;
}
.file-list {
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  height: 40px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 18px;
}
.file-card a {
  text-decoration: none;
  color: #333;
  flex-grow: 1;
}
.download-icon {
  font-size: 24px;
  cursor: pointer;
}

.reference_container {
  background: white;
  /* padding: 0rem 5rem; */
  display: flex;
  width: 80%;
  max-width: 1220px;
  place-self: anchor-center;
}
.center_content {
  background: white;
  padding: 3rem;
  border-radius: 8px;

  .title {
    font-weight: 600;
    font-size: 25px;
    border-bottom: 1px solid #e0e0e0;
  }
}
.left_content {
  width: -webkit-fill-available;
  /* width: calc(100% - 200px ); */
  background: white;
  padding: 2rem;
  padding-top: 0;
  border-radius: 8px;

  .title {
    font-weight: 600;
    font-size: 25px;
    margin: 0;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
  }
}

.reference_card {
  display: grid;
  grid-auto-flow: column;
  padding: 1em 0;
  gap: 20px;
  cursor: pointer; /* 클릭 가능함을 표시 */
  transition: background-color 0.2s ease; /* 호버 효과 */

  .img_card {
    width: 300px; /* 가로 2배로 확대 */
    height: 150px; /* 세로는 그대로 */
    border: 5px solid #ebebeb;
  }

  .img_card img {
    width: 100%;
    height: 100%;
  }

  .big_title {
    color: #3d3d3d;
    font-size: 20px; /* 25px -> 20px (20% 축소) */
    line-height: 23px; /* 29px -> 23px (20% 축소) */
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 5px; /* 간격 축소 */
  }
  .sub_title {
    font-size: 16px; /* 21px -> 16px (24% 축소) */
    line-height: 19px; /* 25px -> 19px (24% 축소) */
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 8px; /* 간격 축소 */
  }
  .msg {
    color: #626262;
    font-size: 14px;
    font-family: "Roboto", Arial, Tahoma, sans-serif;
    line-height: 1.4; /* 1.6 -> 1.4 (줄간격 축소) */

    /* 텍스트 말줄임 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2줄만 표시 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.reference_card:hover {
  background-color: #f8f9fa; /* 호버 시 배경색 변화 */
}

.right_tab {
  width: 200px;
  min-width: 15%;
  border-left: 1px solid #e0e0e0;
  padding: 0 2rem;
}
.tab_title {
  font-weight: 600;
  font-size: 25px;
}

.tab_content {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  flex-direction: column;
  .tab {
    width: calc(100% - 10px);
    max-width: none;
  }
}

@media (max-width: 1190px) {
  .reference_container {
    display: flex;
    width: 100%;
    flex-direction: column-reverse;
  }
  .reference_card {
    padding: 4rem 0;
  }
  .right_tab {
    width: calc(100% - 4rem);
    background: none;
    border-left: 0;
    border-left: 0;
    border-bottom: 1px solid #efefef;
  }
  .tab_content {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  .left_content {
    .title {
      display: none;
    }
  }
  /* .reference_container {
        width: 100%;
    } */
}

@media (max-width: 600px) {
  .reference_card {
    grid: none;
    padding: 2rem 0; /* 5rem -> 2rem으로 축소 */
    border-bottom: 1px solid #e0e0e0;
    hr {
      display: none;
    }
  }
  .img_card {
    place-self: center;
    width: 280px !important; /* 모바일에서는 280px로 조정 */
    height: 140px !important; /* 비율에 맞게 세로도 조정 */
  }
}

/* from contact.html */
.contact_container {
  width: 80%;
  place-self: anchor-center;
}
.container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact textarea,
.contact_container button {
  font: 400 12px/16px "Roboto", Helvetica, Arial, sans-serif;
}
#contact {
  padding: 25px 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
#contact h3 {
  display: block;
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 10px;
}
#contact h4 {
  margin: 5px 0 15px;
  display: block;
  font-size: 13px;
  font-weight: 400;
}
fieldset {
  border: medium none !important;
  display: flex;
  align-items: center;
  margin: 0 0 9px;
  padding: 0;
  width: 100%;
}
.req {
  color: red;
}
#contact label {
  width: 100px;
  display: block;
  font-weight: 600;
  color: #626262;
}
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact textarea {
  width: calc(100% - 122px);
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px;
}
#contact input[type="text"]:hover,
#contact input[type="email"]:hover,
#contact input[type="tel"]:hover,
#contact input[type="url"]:hover,
#contact textarea:hover {
  -webkit-transition: border-color 0.3s ease-in-out;
  -moz-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
  border: 1px solid #aaa;
}
#contact textarea {
  height: 100px;
  max-width: 100%;
  resize: none;
}
.contact_container button,
.modal_btn {
  cursor: pointer;
  width: 100%;
  border: none;
  color: #fff;
  margin: 0 0 5px;
  padding: 10px;
  font-size: 15px;
  background: #f3a84a;
  padding: 1rem;
}
form.was-validated *:invalid {
  border-color: red !important;
}
form.was-validated #agree:invalid + label {
  color: red !important;
}
.contact_container button:hover,
.modal_btn:hover {
  background: #ffb037;
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}
.contact_container button:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.copyright {
  text-align: center;
}
#contact input:focus,
#contact textarea:focus {
  outline: 0;
  border: 1px solid #aaa;
}
.checkbox_content {
  display: flex;
  column-gap: 10px;
  flex-wrap: wrap;
  width: calc(100% - 100px);
  padding: 0.2rem 0;
  row-gap: 0.2rem;
  div {
    display: flex;
  }
}
.checkbox_content_box {
  div {
    margin: 0;
    padding: 0.5rem;
    height: 100px;
    color: #626262;
    overflow: auto;
    background: #f7f7f7;
  }
}
#contact .checkbox_label {
  width: auto !important;
  font-weight: 500;
  font-size: 1rem;
}
::-webkit-input-placeholder {
  color: #888;
}
:-moz-placeholder {
  color: #888;
}
::-moz-placeholder {
  color: #888;
}
:-ms-input-placeholder {
  color: #888;
}
.thanks-card {
  background-color: #ffeed4;
  border-left: 6px solid #dd9933;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}
.quote-icon {
  font-size: 1.8rem;
  color: #dd9933;
  margin-top: 0.25rem;
}
.thanks-message {
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}
.thanks-message strong {
  font-weight: bold;
  color: #2d2d2d;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid #eee;
}
.info-table tr {
  border-bottom: 1px solid #e4e4e4;
}
.info-table tr:nth-child(even) {
  td {
    font-weight: 500;
  }
}
.info-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}
.info-table td:first-child {
  background-color: #fff;
  font-weight: 600;
  width: 180px;
  color: #444;
  text-align: left;
}
.info-table td:last-child {
  color: #333;
  text-align: left;
}
.kakao-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.kakao-section:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.kakao-text {
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}
.title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 2rem 0;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}
@media screen and (max-width: 768px) {
  .title {
    font-size: 1.5rem;
  }
  .kakao-section {
    margin-bottom: 1rem;
  }
  .kakao-text {
    font-size: 1rem;
  }
}
@media screen and (max-width: 600px) {
  .center_content {
    padding: 1rem;
  }
  .contact_container {
    width: 100%;
  }
  .title {
    font-size: 1.3rem;
  }
  .kakao-text {
    font-size: 1rem;
  }
}

/* from refer-001.html */
.reference_detail_container {
  background: white;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}
.detail_content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}
.detail_title {
  color: #3d3d3d;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
}
.detail_subtitle {
  color: #666;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}
.detail_image_section {
  text-align: center;
  margin: 2rem 0;
}
.detail_main_image {
  max-width: 100%;
  height: auto;
  border: 5px solid #ebebeb;
  border-radius: 8px;
}
.detail_description {
  color: #333;
  line-height: 1.8;
  margin: 2rem 0;
}
.detail_description h3 {
  color: #2c3e50;
  font-size: 20px;
  margin: 2rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid #3498db;
}
.detail_description ul {
  margin: 1rem 0;
  padding-left: 2rem;
}
.detail_description li {
  margin: 0.5rem 0;
}
.inquiry_section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid #e9ecef;
}
.inquiry_section h3 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 1rem;
}
.inquiry_section p {
  color: #666;
  font-size: 16px;
  margin-bottom: 2rem;
}
.inquiry_button {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}
@media (max-width: 600px) {
  .reference_detail_container {
    padding: 0 1rem;
  }
  .detail_content {
    padding: 1rem;
  }
  .detail_title {
    font-size: 24px;
  }
  .detail_subtitle {
    font-size: 16px;
  }
  .inquiry_button {
    padding: 0.8rem 1.5rem;
    font-size: 16px;
  }
}

/* from refer-002.html */
.detail_description h3 {
  border-left: 4px solid #27ae60;
}
.inquiry_button {
  background: linear-gradient(135deg, #27ae60, #229954);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #229954, #1e8449);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* from refer-003.html */
.detail_description h3 {
  border-left: 4px solid #e74c3c;
}
.detail_description h4 {
  font-size: 16px;
  margin: 1rem 0 0.5rem 0;
}
.inquiry_button {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* from refer-004.html */
.detail_description h3 {
  border-left: 4px solid #0ea5e9;
}
.inquiry_button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* from refer-005.html */
.detail_description h3 {
  border-left: 4px solid #f39c12;
}
.inquiry_button {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

/* from refer-006.html */
.detail_description h3 {
  border-left: 4px solid #8b4513;
}
.inquiry_button {
  background: linear-gradient(135deg, #8b4513, #654321);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}
.inquiry_button:hover {
  background: linear-gradient(135deg, #654321, #5d2f02);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

/* from resources.html */
.featured-docs {
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 0;
  box-sizing: border-box;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}
.doc-card {
  flex: 1 1 48%;
  min-width: 260px;
  max-width: 480px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.doc-card:hover {
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
  transform: translateY(-4px) scale(1.025);
}
.file-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  gap: 12px;
}
.fa-file-pdf {
  color: #dc3545;
  font-size: 2rem;
  flex-shrink: 0;
}
.file-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-title {
  font-weight: bold;
  font-size: 1.08rem;
  margin-bottom: 2px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-description {
  color: #888;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-download {
  color: #1976d2;
  font-size: 1.5rem;
  margin-left: 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.fa-download:hover {
  color: #0d47a1;
}
#searchInput {
  width: 100%;
  max-width: 600px;
  min-width: 200px;
  box-sizing: border-box;
  padding: 16px 18px;
  font-size: 1.15rem;
  border: 2px solid #1976d2;
  border-radius: 8px;
  margin: 18px 0 24px 0;
  outline: none;
  transition: border-color 0.2s;
  display: block;
}
#searchInput:focus {
  border-color: #0d47a1;
  background: #f3f8fd;
}
