@charset "UTF-8";

@import url("/css/pretendard.css");

/* =========================================================
   1. Root Variables & Base
   ========================================================= */
:root {
  --navy: #0a337f;
  --navy-dark: #003366;
  --blue-bright: #33ccff;
  --orange: #f4791f;
  --red: #cc0000;
  --green-card: #4dbe8f;
  --blue-card: #6da9ef;
  --teal-card: #50c5be;
  --pink-card: #fc93b7;
  --yellow-card: #dfde7a;
  --gold-card: #ebb00b;
  --bg: #ffffff;
  --bw-bg: #f1f5f9;
  --text: #333333;
  --muted: #737373;
  --border: #e3e6ea;
  --borderc: #cccccc;  
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

/* =========================================================
   2. Top Bar & Navigation
   ========================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 4px; }
.brand .logo-img { height: 60px; width: auto; }

.top-links { display: flex; gap: 27px; font-size: 13px; color: #333333; }
.top-links a { display: flex; gap: 6px; font-weight: 300;  transition: transform .25s ease; }
.top-links a:hover {
  transform: translateY(-3px);
}

.top-links img { width: 17px; }

.mainnav {
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.mainnav .wrap {
  display: flex;
  align-items: stretch;
  flex: 1;
  margin: 0 auto;
  position: relative;
  padding-right: 60px;
}
.mainnav > .wrap > ul { display: flex; flex: 1; }
.mainnav > .wrap > ul > li { flex: 1; position: relative; }

.menu-btn {
  position: absolute;
  right: 10px; top: -20px;
  width: 48px; height: 48px;
  background: var(--blue-bright);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  border-radius: 5px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(10, 20, 40, 0.1);
}

.mainnav a {
  display: flex; align-items: center; justify-content: center;
  height: 50px; font-size: 18px; font-weight: 600; color: #fff;
  transition: background .15s;
  gap: 5px;
}
.mainnav a:hover { background: rgba(255, 255, 255, 0.08); }
.mainnav > .wrap > ul > li.on > a {
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}
.mainnav > .wrap > ul > li.on > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--blue-bright);
}
.mainnav .mypage a { color: #fff; font-weight: 800; }
.mainnav > .wrap > ul > li.footinfo-menu { display: none; }
.mainnav > .wrap > ul > ul.mypage-menu { display: none; }

.mainnav .submenu {
  display: block;
  position: absolute; top: 100%; left: 0;
  min-width: 100%; width: max-content; max-width: 240px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(18, 44, 80, 0.18);
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.mainnav li.has-sub:hover .submenu,
.mainnav li.has-sub:focus-within .submenu,
.mainnav li.has-sub.open .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mainnav .submenu li { flex: none; }
.mainnav .submenu a {
  height: auto; display: block; padding: 10px 20px;
  color: var(--text); font-size: 14px; font-weight: 500;
  border: none; justify-content: flex-start; white-space: nowrap;
}
.mainnav .submenu a:hover { background: #f2f5f9; color: var(--navy); }

.hamburger { width: 24px; height: 20px; position: relative; }
.hamburger i {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #fff; border-radius: 2px;
}
.hamburger i:nth-child(1) { top: 0; }
.hamburger i:nth-child(2) { top: 9px; }
.hamburger i:nth-child(3) { top: 18px; }

/* =========================================================
   3. Main Content Layout
   ========================================================= */
.content { padding-top: 28px; padding-bottom: 16px; overflow: hidden; }

/* Top Grid */
.grid-top {
  display: grid;
  grid-template-columns: 2fr 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

/* Hero Section */
.hero {
  grid-column: 1;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(10, 20, 40, 0.1);
}
.hero-slide {
  position: absolute; inset: 0;
  padding: 32px 20px 45px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #333333; text-align: center; letter-spacing: -1px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease;
  touch-action: pan-y; word-break: keep-all; line-height: 1.2;
}
.hero-slide.slide-1 {
  background: url(../images/main/main_bg_202602_evts.jpg) center/cover,
              linear-gradient(180deg, #98d0f6 0%, #e4e7e9 55%, #fff1b9 100%);
}
.hero-slide.slide-2 {
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue-bright) 100%);
  color: #fff;
}
.hero-slide.slide-2 .kicker { color: #cfe0f5; }
.hero-slide.slide-2:hover .cta {
  background: var(--blue-bright); color: var(--navy);
  box-shadow: 0 6px 14px rgba(51, 204, 255, 0.35);
}
.hero-slide.slide-2 h3 { font-size: 26px; margin-top: 20px; }
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }

.hero .kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 300; color: #666; margin-bottom: 8px;
  text-align: center; letter-spacing: 0px;
}
.hero h2 { font-size: 40px; font-weight: 600; margin: 2px 0; }
.hero h3 { font-size: 38px; font-weight: 400; margin-bottom: 12px; }
.hero .logo-img { height: 100px; width: auto; filter: brightness(0) invert(1) opacity(0.7); margin: 10px; }
.hero .theme {
  display: inline-block; background: #ecea61; color: #3a3410;
  font-weight: 400; font-size: 18px; padding: 7px 20px; border-radius: 20px; margin-bottom: 16px;
  width: fit-content;
}
.hero .datetime { font-size: 23px; font-weight: 500; color: #434343; margin-bottom: 8px; }
.hero .place { font-size: 21px; font-weight: 500; color: #434343; }
.hero .cta {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 500;
  padding: 5px 40px; border-radius: 24px; font-size: 16px; width: fit-content;
  box-shadow: 0 6px 14px rgba(244, 121, 31, 0.35);
  transition: background .2s ease, box-shadow .2s ease;
}
.hero-slide:hover .cta {
  background: var(--navy);
  box-shadow: 0 6px 14px rgba(10, 51, 127, 0.35);
}
.hero-dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 15px; z-index: 5;
}
.hero-dots .dot {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10, 51, 127, 0.28);
  transition: background .2s ease, transform .2s ease;
}
.hero-dots .dot.active { background: var(--navy); transform: scale(1.25); }

/* Right Column (Cards & Login) */
.top-right { grid-column: 2 / 4; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border-radius: 6px; color: var(--navy); padding: 26px 12px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 150px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(10, 20, 40, 0.1); }
.card .icon {
  width: 64px; height: 60px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 0px;
}
.card.c1 .icon { background: url(../images/icon/card-c1.png) no-repeat; }
.card.c2 .icon { background: url(../images/icon/card-c2.png) no-repeat; }
.card.c3 .icon { background: url(../images/icon/card-c3.png) no-repeat; }
.card.c4 .icon { background: url(../images/icon/card-c4.png) no-repeat; }
.card.c5 .icon { background: url(../images/icon/card-c5.png) no-repeat; }
.card.c6 .icon { background: url(../images/icon/card-c6.png) no-repeat; }

.card .kr { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.card .en { font-size: 14px; letter-spacing: 0.3px; opacity: 0.9; }
.card.c1 { background: var(--green-card); }
.card.c2 { background: var(--blue-card); }
.card.c3 { background: var(--teal-card); }
.card.c4 { background: var(--pink-card); }
.card.c5 { background: var(--yellow-card); }
.card.c6 { background: var(--gold-card); }

/* Login Box */
.login-box {
  background: var(--navy); border-radius: 6px; padding: 22px 24px; margin-top: 14px;
}
.login-box .login-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.login-box .login-head span:first-child { color: #fff; font-weight: 600; font-size: 20px; }
.login-box .login-head .links { font-size: 14px; color: #c8d3e2; }
.login-box .login-head .links a { margin: 0 4px; }
.login-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.login-fields input {
  flex: 1 1 90px; min-width: 0; border: none; border-radius: 4px; padding: 11px 12px;
  font-size: 13px; background: #fff; color: #333;
}
.login-fields input::placeholder { color: #9aa4b2; }
.login-btn {
  flex: 1 1 auto; background: var(--blue-bright); color: var(--navy); font-weight: 600;
  font-size: 13px; border: none; border-radius: 4px; padding: 0 20px; min-width: 180px; height: 38px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.login-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(10, 20, 40, 0.1); }
.login-btn-link { display: inline-flex; align-items: center; justify-content: center; min-width: 0; text-decoration: none; }
.login-btn-out { background: #fff; color: var(--navy); }
.login-btn-admin { background: var(--red); color: #fff; }

/* Bottom Grid (Notice / Gallery / Side Links) */
.grid-bottom {
  display: grid;
  grid-template-columns: 2fr 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 22px;
}
.panel { background: var(--bg); border-radius: 6px; overflow: hidden; }
.album { background: var(--bw-bg); }
.panel-head { display: flex; align-items: center; }
.panel-head .tab {
  width: 50%; border-top: 2px solid var(--borderc); border-right: 2px solid var(--borderc);
  border-bottom: 2px solid var(--navy); border-radius: 6px 6px 0 0; padding: 10px 20px;
  font-size: 20px; font-weight: 700; color: var(--muted); cursor: pointer;
  background: #fff; font-family: inherit; margin-bottom: -2px; margin-left: -2px;
}
.panel-head .tab:first-child { margin-left: 0; }
.panel-head .tab.active {
  color: var(--text); border: 2px solid var(--navy); border-bottom: 0px solid #fff; z-index: 1; padding-top: 12px;
}
.panel-head .plus, .album-head .plus {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  margin-left: auto; padding: 2px 5px; color: var(--navy); font-size: 40px; font-weight: 200;
}
.panel-head .plus:hover, .album-head .plus:hover { color: var(--borderc); }

.notice-list { padding: 20px 20px; border: 2px solid var(--navy); border-radius: 0 6px 6px 6px; }
.notice-list li {
  display: flex; align-items: center; gap: 12px; padding: 4px 8px; font-size: 16px;
  margin: 0 -8px; border-left: 3px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.notice-list li:hover { background: #eef4fb; }
.date-badge {
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 300; padding: 4px;
  border-radius: 8px; white-space: nowrap; width: 100px; min-width: 75px; text-align: center;
  transition: background .15s ease;flex-shrink:0;font-variant-numeric: tabular-nums;
}
.notice-list li:hover .date-badge { background: var(--navy-dark); }
.notice-list li span.title { color: #3b4552; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.notice-list li:hover span.title { color: var(--navy); font-weight: 500; }
.notice-list li a { display: flex; align-items: center; gap: 20px; width: 100%; }

.album-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.album-head span.album-title { font-size: 20px; font-weight: 700; color: var(--text); }
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 16px; }
.album-grid figure { text-align: center; }
.album-grid figure a { display: block; border-radius: 5px; transition: transform .15s ease, box-shadow .15s ease; }
.album-grid figure a:hover { transform: translateY(-3px); }
.album-grid .thumb {
  aspect-ratio: 4 / 3; width: 100%; border-radius: 5px; overflow: hidden;
  background: linear-gradient(135deg,#26374d,#3a5273); display: flex; align-items: center; justify-content: center;
  color: #dfe6ee; font-size: 11px; text-align: center; padding: 6px;
}
.album-grid .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.album-grid figcaption { padding: 10px 5px; font-size: 15px; color: #3b4552; transition: color .15s ease; }
.album-grid figure:hover figcaption { color: var(--navy); }
.album-grid figcaption .d { justify-content: center; display: flex; align-items: center; gap: 5px; color:#999; font-weight: 400; font-size: 13px; margin-top: 6px; }
.album-grid figcaption .d img { width: 13px; height: 13px; display: block; }

.side-links { display: flex; flex-direction: column; gap: 5px; line-height: 1.1; }
.side-link {
  display: flex; align-items: center; gap: 15%; background: #fff; border-radius: 6px;
  padding: 13px 5% 13px 15%; font-weight: 600; font-size: 16px; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.side-link:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(10, 20, 40, 0.1); }
.side-link .ic {
  width: 50px; height: 45px; font-size: 0px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .15s ease, box-shadow .15s ease;
}
.side-link:hover .ic { transform: scale(1); }
.side-link.l1 .ic { background: url(../images/icon/side-l1.png) no-repeat; }
.side-link.l2 .ic { background: url(../images/icon/side-l2.png) no-repeat; }
.side-link.l3 .ic { background: url(../images/icon/side-l3.png) no-repeat; }
.side-link.l4 .ic { background: url(../images/icon/side-l4.png) no-repeat; }
.side-link.l1, .side-link.l3 { background: #d6f5ff; }
.side-link.l2, .side-link.l4 { background: #fff3ca; }

/* =========================================================
   4. Affiliated Societies Strip & Footer
   ========================================================= */
.strip { background: #f1f1f1; padding: 30px 0; margin-top: 50px; overflow: hidden; }
.strip .wrap { display: flex; align-items: center; padding: 0 !important; }
.strip .arrow {
  width:30px;height:80px;border:0px solid var(--border); margin:5px;
  display:flex;align-items:center;justify-content:center;color:#9aa4b2;flex-shrink:0;
  cursor:pointer;transition:background .15s,color .15s;
}
.strip .arrow:hover { background: var(--bg); border-radius: 5px; }
.rolling-viewport { flex: 1; overflow: hidden; }
.strip-logos { display: flex; gap: 14px; width: max-content; will-change: transform; }
.strip-logos .item { flex: 0 0 250px; width: 250px; height: 80px; border-radius: 6px; overflow: hidden; background: #f6f7f8; }
.strip-logos .item a { display: block; width: 100%; height: 100%; }
.strip-logos .item img { width: 100%; height: 100%; object-fit: cover; display: block; }

footer { background: #333333; color: #ccc; padding: 34px 0; margin-top: 0; overflow: hidden; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
footer .finfo { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.9; } 
footer .finfo .fbrand .logo-img { height: 60px; width: auto; filter: brightness(0) invert(1) opacity(0.7); margin: 20px 30px; }
footer .finfo address { color: #ccc; font-style: normal; }
footer .policy-btn {
  border: 1px solid #444a54; color: #c3c8d0; font-size: 13px; padding: 8px 14px; border-radius: 4px;
  white-space: nowrap; background: none; font-family: inherit; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
footer .policy-btn:hover { border-color: var(--muted); color: #fff; }

/* =========================================================
   5. Floating Components (Popups & Top Button)
   ========================================================= */
.popup-layer {
  position: fixed; top: 110px; left: 24px; width: 290px; background: #fff;
  border-radius: 8px; overflow: hidden; box-shadow: 0 16px 34px rgba(10, 20, 40, 0.28); z-index: 500;
}
.popup-body {
  padding: 22px 20px 18px; color: #fff; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.popup-layer.p1 .popup-body { background: linear-gradient(160deg, #1e9fe0, #173a68); }
.popup-layer.p2 .popup-body { background: linear-gradient(160deg, #3fae6a, #1c5c3b); }
.popup-layer.p3 .popup-body { background: linear-gradient(160deg, #f4791f, #8a3d10); }
.popup-body .tag { font-size: 11px; font-weight: 600; opacity: 0.85; margin-bottom: 8px; }
.popup-body h4 { font-size: 18px; font-weight: 800; line-height: 1.35; margin-bottom: 6px; }
.popup-body p { font-size: 12px; opacity: 0.9; line-height: 1.5; }
.popup-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: #f4f5f7; border-top: 1px solid var(--border);
}
.popup-foot button {
  background: none; border: none; font-family: inherit; cursor: pointer;
  font-size: 12px; color: #6b7684; padding: 4px;
}
.popup-foot .popup-close { font-weight: 600; color: #3b4552; }

/* Top Button */
#scrollTopBtn {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 48px; height: 48px; background-color: var(--blue-bright); color: #ffffff;
  border: none; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #005b88; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
#scrollTopBtn.show { opacity: 1; visibility: visible; }

/* =========================================================
   6. Overlay Menus (Sitemap & Mobile Menu)
   ========================================================= */
/* Sitemap Overlay */
.sitemap-overlay {
  position: fixed; inset: 0; background: rgba(12, 24, 45, 0.6); z-index: 800;
  display: flex; align-items: flex-start; justify-content: center; padding: 90px 20px 40px;
  opacity: 1; transition: opacity .25s ease, display .25s ease allow-discrete;
}
.sitemap-overlay[hidden] { opacity: 0; display: none; }
@starting-style { .sitemap-overlay:not([hidden]) { opacity: 0; } }

.sitemap-panel {
  background: #fff; border-radius: 10px; width: 100%; max-width: 1200px; padding: 36px 40px 30px;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.3); max-height: calc(100vh - 130px);
  overflow-y: auto; opacity: 1; transform: scale(1) translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}
.sitemap-overlay[hidden] .sitemap-panel { opacity: 0; transform: scale(0.94) translateY(-14px); }
@starting-style { .sitemap-overlay:not([hidden]) .sitemap-panel { opacity: 0; transform: scale(0.94) translateY(-14px); } }

.sitemap-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; font-size: 22px; cursor: pointer; color: var(--muted);
  transition: transform .15s ease, box-shadow .15s ease; padding: 0 0 3px 1px;
}
.sitemap-close:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 20, 40, 0.1); }
.sitemap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.sitemap-col h4 {
  font-size: 18px; font-weight: 700; color: var(--navy); padding-bottom: 12px; margin-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.sitemap-col ul li { padding: 6px 0; }
.sitemap-col ul li a { font-size: 15px; color: var(--text); font-weight: 400; }
.sitemap-col ul li a:hover { color: var(--blue-bright); }

/* Mobile Side Menu */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(12, 24, 45, 0.55); z-index: 800; }
.mobile-menu-overlay[hidden] { display: none; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(84vw, 340px);
  background: #fff; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column;
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
}
.mobile-menu-close { background: none; border: none; color: #fff; font-size: 25px; cursor: pointer; }
.mobile-menu-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.mobile-menu-list details { border-bottom: 1px solid var(--border); }
.mobile-menu-list summary {
  padding: 15px 20px; font-size: 20px; font-weight: 600; color: var(--text); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-list summary::-webkit-details-marker { display: none; }
.mobile-menu-list summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.mobile-menu-list details[open] summary::after { transform: rotate(-135deg); }
.mobile-menu-list summary a { font-weight: 600; color: inherit; flex: 1; }
.mobile-menu-list .sub-list { padding: 0 20px 12px 32px; }
.mobile-menu-list .sub-list li { padding: 0; font-size: 18px; color: var(--muted); }
.mobile-menu-list .sub-list li a {
  display: block; padding: 9px 12px; margin: 0 -12px; border-radius: 6px; color: inherit;
}
.mobile-menu-list .sub-list li a:hover { background: #f2f5f9; color: var(--navy); }
.mobile-menu-list .plain-link {
  display: block; padding: 15px 20px; font-size: 18px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border);
}


/* Policy Popup (개인정보취급방침 등) — 사이트맵 오버레이와 같은 열림/닫힘 방식 */
.policy-overlay {
  position: fixed; inset: 0; background: rgba(12, 24, 45, 0.6); z-index: 900;
  display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px 40px;
  opacity: 1; transition: opacity .25s ease, display .25s ease allow-discrete;
}
.policy-overlay[hidden] { opacity: 0; display: none; }
@starting-style { .policy-overlay:not([hidden]) { opacity: 0; } }

.policy-panel {
  background: #fff; border-radius: 10px; width: 100%; max-width: 860px; padding: 35px;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.3); max-height: calc(100vh - 100px);
  overflow-y: auto; opacity: 1; transform: scale(1) translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}
.policy-overlay[hidden] .policy-panel { opacity: 0; transform: scale(0.94) translateY(-14px); }
@starting-style { .policy-overlay:not([hidden]) .policy-panel { opacity: 0; transform: scale(0.94) translateY(-14px); } }

.policy-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; font-size: 22px; cursor: pointer; color: var(--muted);
  transition: transform .15s ease, box-shadow .15s ease; padding: 0 0 3px 1px;
}
.policy-close:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 20, 40, 0.1); }


.policy-content h2 {
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 22px;
  padding-bottom: 20px; border-bottom: 2px solid var(--navy);
}
.policy-content dl { margin-bottom: 22px;}
.policy-content dt {
  font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; margin-top:20px;}
.policy-content dd { font-size: 14px; color: var(--text); line-height: 1.5; padding-left:15px; word-break:break-all; }
.policy-content dd p { margin-bottom: 8px; }
.policy-content dd .sub-label { font-weight: 700; color: var(--text); margin-top: 12px; }
.policy-content dd ul { margin: 4px 0 8px 18px; }
.policy-content dd ul li { list-style: disc; margin-bottom: 4px; }
.policy-content dd ol { margin: 4px 0 8px 20px; }
.policy-content dd ol li { list-style: decimal; margin-bottom: 4px; }
.policy-content dd a { color: var(--navy); text-decoration: underline; }
.policy-content .policy-dates {
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px;
}

.policy-content.rule-content dt {
  color: var(--text);
  padding-left: 15px;
  font-size: 17px;
}
.policy-content.rule-content dd {
  padding-left: 30px;
  font-size: 16px;
}
.policy-content.rule-content .policy-dates {
  text-align: right;
  border-top: none;
  padding-top: 0;
  font-variant-numeric: tabular-nums;
}


/* =========================================================
   7. Media Queries (Responsive Breakpoints)
   ========================================================= */

/* [Desktop Small / Tablet Landscape] ~ 1200px */
@media (max-width: 1200px) {
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* [Tablet Portrait / Mobile Switch Point] ~ 960px */
@media (max-width: 960px) {
  /* Layout Changes */
  .grid-top, 
  .grid-bottom {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-column: 1;
    height: auto;
    min-height: 360px;
  }
  .top-right {
    grid-column: 1;
  }

  /* Navigation & Topbar */
  .mainnav > .wrap > ul { display: none; }
  .mainnav .wrap { align-items: center; justify-content: center; padding: 0; }
  .topbar .top-links { display: none; }
  .mainnav .top-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 16px; font-size: 12px; color: #eef2f8;
  }
  .mainnav .top-links a { color: #eef2f8; font-size: 12px; font-weight:300; }
  .mainnav .top-links img { filter: brightness(0) invert(1) opacity(0.8); }

  .topbar .menu-btn { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; }
  .menu-btn { top: 20px; right: 10px; }

  /* Side Links Grid */
  .side-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Footer & Popups */
  footer .finfo { display: block; }
  footer .finfo .fbrand .logo-img { margin: 0 0 20px 0; }

  .popup-layer {
    left: 50% !important; right: auto !important; top: auto !important;
    transform: translateX(-50%); width: min(88vw, 320px);
  }
  .popup-layer.p1 { top: 84px !important; }
  .popup-layer.p2 { top: 220px !important; }
  .popup-layer.p3 { top: 356px !important; }

  /* Menu Toggle Controls */
  .sitemap-overlay { display: none !important; }
}

/* [Tablet Menu Visibility Check] */
@media (min-width: 961px) {
  .mobile-menu-overlay { display: none !important; }
}

/* [Mobile] ~ 768px */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* [Mobile Small] ~ 480px */
@media (max-width: 480px) {
  .hero-slide.slide-1 .kicker { font-size: 12px; text-align: left; }
  .hero h2 { font-size: 36px; margin: 2px 0; }
  .hero h3 { font-size: 35px; margin-bottom: 12px; }
  .hero .datetime { font-size: 18px; margin-bottom: 5px; }
  .hero .place { font-size: 18px; }
  
  .side-link { font-size:18px;}
  .side-links {grid-template-columns: 1fr;}
  
  .cards {grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .login-btn { flex: 1 1 auto; }
  .date-badge {width:75px;}
  .notice-list { padding:16px;}
  .notice-list li a { gap: 14px;}
  
  
}