/* 사단법인 한국방송비평학회 (KSBC) 홈페이지 공통 스타일 */

:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1d33;
  --blue: #1e4d8c;
  --blue-light: #eaf1fb;
  --gold: #c9a34e;
  --text: #222831;
  --text-light: #5b6472;
  --border: #e2e6ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --max-width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.grid-container.col-sm-12 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-container.col-sm-12 .card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.card .button-group {
    margin-top: auto;
}
/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
  flex-shrink: 0;
}
.main-nav a {
  color: #e8edf5;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.main-nav a.active { background: var(--gold); color: var(--navy-dark); font-weight: 700; }
/* Dropdown submenu (�숉쉶�뚭컻) */
.main-nav .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  min-width: 170px;
  padding: 6px;
  z-index: 200;
}
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu {
  display: block;
}
.main-nav .dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}
.main-nav .dropdown-menu a:hover {
  background: var(--blue-light);
  text-decoration: none;
  color: var(--navy);
}
.main-nav .dropdown-menu a.active {
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
}
/* Sub-tabs bar (�숉쉶�뚭컻 �섏쐞 �섏씠吏� �곷떒) */
.subtabs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.subtabs .container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 24px;
}
.subtabs a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}
.subtabs a:hover { background: var(--blue-light); text-decoration: none; color: var(--navy); }
.subtabs a.active { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    display: none;
  }
  .main-nav .dropdown:hover .dropdown-menu,
  .main-nav .dropdown:focus-within .dropdown-menu {
    display: block;
  }
}
/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.hero p {
  color: #dbe5f3;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}
.hero .hero-en {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #b9c9e0;
  letter-spacing: 0.04em;
}
/* Page header (non-home pages) */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}
.page-header h1 { margin: 0 0 6px; font-size: 1.7rem; }
.page-header p { margin: 0; color: #c9d4e3; font-size: 0.92rem; }
/* Sections */
main { min-height: 60vh; }
.section {
  padding: 48px 0;
}
.section.alt { background: var(--bg-soft); }
.section h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.section h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: var(--navy);
}
.banner-section {
		padding-top: 72px;
		padding-bottom: 74px;
		background-color: #fcfcff;
}


/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.card h3 { margin-top: 0; color: var(--navy); }
.card p { margin: 0; color: var(--text-light); font-size: 0.94rem; }
/* Lists (notices, board, archive) */
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.item-list li {
  border-bottom: 1px solid var(--border);
}
.item-list a.item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 8px;
  color: var(--text);
}
.item-list a.item-row:hover { background: var(--blue-light); text-decoration: none; }
.item-title { font-weight: 500; flex: 1; }
.item-title .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.item-meta { color: var(--text-light); font-size: 0.85rem; white-space: nowrap; }
.empty-state {
  padding: 40px 8px;
  text-align: center;
  color: var(--text-light);
}
/* Detail view */
.detail-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-top: 20px;
  background: #fff;
}
.detail-box h3 { margin-top: 0; }
/* �숉쉶�� �몄궗留� �ъ쭊 �덉씠�꾩썐 */
.greeting-layout {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.greeting-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-soft);
}
.greeting-photo.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
}
.greeting-text {
  flex: 1;
  min-width: 260px;
}
@media (max-width: 640px) {
  .greeting-photo {
    width: 140px;
    height: 170px;
    margin: 0 auto;
  }
  .greeting-layout {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
}
.detail-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.detail-body { white-space: pre-wrap; }
.back-link { display: inline-block; margin-top: 20px; }
/* Table(��) */
table.info-table {
  width: 60%;
  border-collapse: collapse;
  margin: 16px 0;
}
table.info-table th, table.info-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.94rem;
}
table.info-table th {
  background: var(--bg-soft);
  color: var(--navy);
  width: 160px;
}
table.info-table th,
table.info-table td {
  text-align: center;
}
table.info-table th:first-child,
table.info-table td:first-child {
  width: 100px;
}
table.info-table th:nth-child(2),
table.info-table td:nth-child(2) {
  width: 150px;
}
table.info-table th {
  width: auto; /* 怨듭슜 洹쒖튃�� width:160px瑜� �� �쒖뿉�쒕쭔 臾댄슚�� */
}
/* �꾩썝吏� ��(3移�)留� 蹂꾨룄 �곸슜 */
table.info-table--org {
  table-layout: fixed;
}
table.info-table--org th,
table.info-table--org td {
  text-align: center;
}
table.info-table--org th:first-child,
table.info-table--org td:first-child {
  width: 80px;
}
table.info-table--org th:nth-child(2),
table.info-table--org td:nth-child(2) {
  width: 100px;
}
table.info-table--org th {
  width: auto; /* 怨듭슜 洹쒖튃�� width:160px瑜� �� �쒖뿉�쒕쭔 臾댄슚�� */
}
/* Org chart list */
.org-list { list-style: none; padding: 0; margin: 16px 0; }
.org-list li {
  padding: 10px 14px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
}
.org-list li strong { min-width: 90px; color: var(--navy); }
/* Timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0; }
.timeline li {
  padding: 10px 0 10px 20px;
  border-left: 2px solid var(--border);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .t-date { font-weight: 700; color: var(--navy); margin-right: 10px; }
/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn:hover { background: var(--blue); text-decoration: none; }
.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn.outline:hover { background: var(--blue-light); }
.note-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text);
  margin: 16px 0;
}
.banner-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;      /* �먰븯�� �듭씪 �믪씠濡� 議곗젅 媛��� */
  background: #fff;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* �대�吏� 鍮꾩쑉 �좎��섎ŉ 諛뺤뒪�� 留욎땄 (�섎┝ �놁쓬) */
  display: block;
}
.info-table thead th {
  background: #f0f0f0;
  color: var(--navy);
}
/* 踰꾪듉 洹몃９ */
 .button-group {
   display: flex;
   gap: 12px;
   justify-content: center;
}
/* 諛⑹넚鍮꾪룊�� 洹몃９ */
.award-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.award-layout .info-table {
  flex: 2;
  min-width: 280px;
  margin-top: 0;   /* �� 湲곕낯 margin-top:16px瑜� �곸뇙�� �ъ쭊 �곷떒怨� 留욎땄 */
}
.award-photo {
  flex: 1;
  min-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
}
.award-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.award-photo.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .award-layout { flex-direction: column; }
}
/* Logo */
.about-logo {
  width: 300px;
  max-width: 100%;
  display: block;
  margin: 12px 0 20px;
}




/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c4d4;
  padding: 32px 24px;
  font-size: 0.85rem;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #d7deea; }
/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: flex-start; margin-left: 0; }
  .hero { padding: 44px 20px; }
  .hero h1 { font-size: 1.5rem; }
  .item-list a.item-row { flex-direction: column; gap: 4px; }
  table.info-table { width: 100%; }
  .grid-container.col-sm-12 { grid-template-columns: 1fr; }
}
