/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
a:link,
a:visited {
  color: #000000;
}

.elementor-menu-anchor {
	top: -150px;
	position: relative;
}

.kboard-default-poweredby { display: none !important; }
/* KSM main board section */
.ksm-board-section {
  width: 100%;
}

/* Board card base */
.ksm-board-card {
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Remove excessive KBoard spacing inside Elementor card */
.ksm-board-card .kboard,
.ksm-board-card .kboard-list,
.ksm-board-card .kboard-latest,
.ksm-board-card [class*="kboard"] {
  margin-top: 0;
}

/* KBoard latest list wrapper */
.ksm-board-card .kboard-latest,
.ksm-board-card .kboard-list {
  border: 0;
  background: transparent;
}

/* Hide unnecessary KBoard default headers if shown */
.ksm-board-card .kboard-search,
.ksm-board-card .kboard-control,
.ksm-board-card .kboard-pagination,
.ksm-board-card .kboard-category,
.ksm-board-card .kboard-list-header,
.ksm-board-card .kboard-list-footer {
  display: none !important;
}

/* General latest list style */
.ksm-board-card ul,
.ksm-board-card ol {
  list-style: none;
  margin: 14px 0 0 0;
  padding: 0;
}

.ksm-board-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed #dbe3f0;
  font-size: 15px;
  line-height: 1.5;
}

.ksm-board-card li:last-child {
  border-bottom: 0;
}

/* Links */
.ksm-board-card a {
  color: #111827;
  text-decoration: none;
}

.ksm-board-card a:hover {
  color: #0050a8;
  text-decoration: none;
}

/* Date text */
.ksm-board-card .date,
.ksm-board-card .kboard-date,
.ksm-board-card .kboard-latest-date,
.ksm-board-card time {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

/* If latest skin outputs table */
.ksm-board-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 0;
}

.ksm-board-card table th {
  display: none;
}

.ksm-board-card table td {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px dashed #dbe3f0;
  font-size: 15px;
}

.ksm-board-card table tr:last-child td {
  border-bottom: 0;
}

/* Hide columns often unnecessary on main page */
.ksm-board-card table td.kboard-list-user,
.ksm-board-card table td.kboard-list-vote,
.ksm-board-card table td.kboard-list-view,
.ksm-board-card table td.kboard-list-status,
.ksm-board-card table td.kboard-list-category {
  display: none;
}

/* Title column */
.ksm-board-card table td.kboard-list-title {
  width: auto;
}

/* Date column */
.ksm-board-card table td.kboard-list-date {
  width: 110px;
  text-align: right;
  color: #6b7280;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 767px) {
  .ksm-board-section {
    flex-direction: column;
  }

  .ksm-board-card {
    width: 100% !important;
    padding: 20px;
  }

  .ksm-board-card li,
  .ksm-board-card table td {
    font-size: 14px;
  }

  .ksm-board-card table td.kboard-list-date {
    width: 88px;
    font-size: 13px;
  }
}

/* 임원 소개 테이블 (t1) */
table.t1 {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 0 none !important; 
  background: #fff;
  font-size: 14px;
  /* 줄 간격을 1.2에서 1.1로 소폭 축소 */
  line-height: 1.1; 
  color: #111;
}

table.t1 th,
table.t1 td {
  border: 0 none !important; 
  /* 상하 패딩을 12px에서 10px로 약 15% 줄여 행 높이 축소 */
  padding: 10px 10px; 
  text-align: center;
  vertical-align: middle;
  word-break: keep-all;
}

table.t1 thead th {
  background: #dfe8f6;
  font-size: 15px;
  font-weight: 700;
  border-top: 0 none !important; 
}

table.t1 tbody td {
  background: #fff;
  font-weight: 600;
}

table.t1 th, table.t1 td {
  width: auto;
}

/* --- 열이 3개일 때 (첫 번째 열이 뒤에서 3번째일 때) --- */
table.t1 th:first-child:nth-last-child(3),
table.t1 th:first-child:nth-last-child(3) ~ th,
table.t1 td:first-child:nth-last-child(3),
table.t1 td:first-child:nth-last-child(3) ~ td {
  width: 33.33%;
}

/* --- 열이 2개일 때 (첫 번째 열이 뒤에서 2번째일 때) --- */
/* 1. 첫 번째 열: 33.3% */
table.t1 th:first-child:nth-last-child(2),
table.t1 td:first-child:nth-last-child(2) {
  width: 33.33%;
}
/* 2. 두 번째 열: 66.7% */
table.t1 th:first-child:nth-last-child(2) + th,
table.t1 td:first-child:nth-last-child(2) + td {
  width: 66.67%;
}

/* 선택: hover 효과 */
table.t1 tbody tr:hover td {
  background: #f7f9fc;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  table.t1 thead th {
    font-size: 15px;
  }
  table.t1 th,
  table.t1 td {
    /* 모바일에서도 상하 패딩을 8px 정도로 조절 */
    padding: 8px 8px;
  }
}