/* Pretendard Font / Tommy Lee / Jul 18, 2025 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

body,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,table,th,td,form,fieldset,legend,input,textarea,button,select{margin:0;padding:0}
body,input,textarea,select,button,table{font-family:'pretendard','나눔고딕','nanumgothic','Nanum Gothic', 'nanum gothic',AppleGothic,sans-serif; font-size:12px}

body {
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-wrap: break-word;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.loaded {
    opacity: 1;
}
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
td {
    text-align: left;
}
.vertical {
	position: static;
	top: 0;
	height: auto;
	width: 100%;
	border-left: none;
}

p {
	padding:5px 0px;
}

.div_main{
	display:inline-block;
	border-left: none; /*solid 2px #c3c3c3 ;*/
	padding:0px 40px 10px 30px;
	height:270px;
    font-size: 14px;
	top:0px;
}

#menu-container{
    display: block !important; /* Hide Menu Container */
}

#divMenu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px 5px 10px !important;
}

.apply_btn {
	font-size:14pt;
	padding:10px 15px;
	color: #000;
	border: solid 1px #FFF;
	border-radius:15px;
	text-decoration: none;
}
.menu_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size:10pt;
    font-weight: bold;
    padding:8px 12px;
    margin-left:5px;
    color:#2f3a4a;
    border: solid 1px rgba(79, 96, 120, 0.35);
    border-radius:8px;
    background:#ffffff;
    text-decoration: none;
    cursor:pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.menu_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    filter: brightness(0.98);
}
.menu_btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.pastel-blue { background: #dfeeff; }
.pastel-pink { background: #ffe1eb; }
.pastel-slate { background: #e9edf3; }
.pastel-cyan { background: #dff7fb; }
.pastel-green { background: #e5f8ea; }
.pastel-yellow { background: #fff7e0; }
.pastel-purple { background: #f3e0ff; }

#divSubMenu {
    margin-top: 15px;
}

#divSubMenu > div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#divSubMenu .menu_btn {
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px;
}
.header-logo {
    display: flex;
	flex: 1 1 auto;
	text-align: left;
}
.header-logo img {
	height: 50px;
	cursor: pointer;
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-top: 10px;
}
.header-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size:10pt;
    font-weight: bold;
	padding:8px 12px;
	color:#585858;
	border: solid 1px #4e4e4e;
	border-radius:5px;
	background:#ffffff;
	cursor:pointer;
}
.header-action-btn:hover {
    background:#f8f8f8;
    color:#000;
}

.header-action-btn .material-symbols-outlined,
button.header-action-btn .material-symbols-outlined,
button .material-symbols-outlined {
    padding-right: 5px;
}

.div_wamc2025{
	font-size:16pt;
	cursor:pointer;
	margin-bottom:10px;
}

#divReferenceSite .divflexmargin:not(:last-of-type) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
    width: min(1200px, calc(100% - 24px)) !important;
    margin: 0 auto !important;
    justify-items: center !important;
    align-content: center !important;
    align-items: stretch !important;
}

#divReferenceSite .divflexmargin:not(:last-of-type) > div {
    width: min(100%, 360px) !important;
    min-height: 100% !important;
    justify-self: center !important;
    display: block !important;
}

@media (max-width: 1200px) {
    #divReferenceSite .divflexmargin:not(:last-of-type) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-items: center !important;
    }
}

@media (max-width: 720px) {
    #divReferenceSite .divflexmargin:not(:last-of-type) {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        justify-items: center !important;
    }
}


/* CSS */
/* 전체 컨테이너 설정 */
.grid-container {
  display: grid;
  gap: 18px;
  padding: 15px;
}

/* 기본 PC 화면: 무조건 가로 3개 정렬 */
@media (min-width: 1025px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 태블릿 화면 (1024px 이하): 가로 2개 정렬 */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* 모바일 화면 (768px 이하): 가로 1개 정렬 */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* Video Feedback Form Styles - same design concept as login/join */
.div_videofeedback {
    margin: 20px;
    display: flex;
    justify-content: center;
}

.videofeedback-panel {
    width: min(980px, 100%);
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.videofeedback-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.videofeedback-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 0 10px;
}

.videofeedback-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.videofeedback-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.videofeedback-field-row {
    flex-direction: row;
    align-items: center;
    padding: 5px 0;
}

.videofeedback-field label {
    min-width: 170px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.videofeedback-field input,
.videofeedback-field select,
.videofeedback-field textarea {
    font-size: 13px;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.videofeedback-field input:focus,
.videofeedback-field select:focus,
.videofeedback-field textarea:focus {
    border-color: #003ebb;
    box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

.videofeedback-field textarea {
    min-height: 180px;
    resize: vertical;
}

.videofeedback-field-row.textarea-row {
    align-items: flex-start;
}

.videofeedback-field-row.checkbox-row {
    align-items: center;
}

.videofeedback-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #222;
    min-height: 30px;
}

.videofeedback-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #003ebb;
}

/* hide nickname input and remove its wrapper spacing */
#commentInputSection > div:first-child { display: none !important; margin: 0 !important; }
#commentWriter { display: none !important; }

/* 댓글 패널: 화면 높이를 넘지 않도록 제한하고 내부 리스트에 스크롤 허용 */
.comment-panel {
  max-height: calc(100vh - 350px); /* 헤더/패딩 높이에 따라 값 조정 가능 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comment-panel #commentList {
  flex: 1 1 auto; /* 기존 inline style과 함께 동작하도록 보장 */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Login Form Styles */
.div_login{
	margin:20px;
	display:flex;
	justify-content:center;
	width:100%;
}

.board-panel {
	width: min(920px, calc(100vw - 80px));
	max-width: 920px;
	padding: 20px;
	background: rgba(255,255,255,0.95);
	border: 1px solid rgba(0,0,0,0.5);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	box-sizing: border-box;
	margin: 0 auto;
}

.board-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.board-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.board-title-row,
.board-category-row,
.board-link-row,
.board-content-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 0px;
}

.board-title-row label,
.board-category-row label,
.board-link-row label,
.board-content-row label {
	min-width: 120px;
	text-align: right;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

#board-title,
#board-category,
#board-link,
#board-content {
	font-size: 13px;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	outline: none;
	flex: 1;
	background: #fff;
	color: #222;
	box-sizing: border-box;
}

#board-title:focus,
#board-category:focus,
#board-link:focus,
#board-content:focus {
	border-color: #003ebb;
	box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

.board-content-row {
	align-items: flex-start;
}

#board-content {
	resize: vertical;
	min-height: 180px;
}

.board-link-row {
	align-items: center;
}

.board-link-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.board-link-input-wrap input {
	flex: 1;
	min-width: 0;
}

.board-preview-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 700;
	color: #173a72;
	background: #edf4ff;
	border: 1px solid #bfd4ff;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.board-preview-button .material-symbols-outlined {
	font-size: 18px;
	line-height: 1;
	padding-right: 0;
}

.board-preview-button:hover {
	background: #e2eeff;
	transform: translateY(-1px);
}

.board-settings-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 4px 0 0;
}

.board-settings-title {
	min-width: 120px;
	text-align: right;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.board-settings-options {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.board-setting-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #222;
}

.board-setting-check input {
	width: 16px;
	height: 16px;
	accent-color: #003ebb;
}

.board-footer-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	padding-top: 8px;
}

.board-status-box {
	display: none;
	width: min(430px, 100%);
	min-height: 55px;
	padding: 12px 14px;
	border: 1px solid #dfe7f5;
	border-radius: 12px;
	background: #f7faff;
	color: #2d3c58;
	box-sizing: border-box;
}

.board-status-box.is-visible {
	display: block;
}

.board-status-box.is-success {
	border-color: #bfe7c9;
	background: #f3fff6;
	color: #175a33;
}

.board-status-box.is-error {
	border-color: #ffc5cb;
	background: #fff5f6;
	color: #8d2337;
}

.board-status-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.board-status-box p {
	margin: 0;
	line-height: 1.6;
	font-size: 13px;
}

.board-submit-btn {
	margin-left: auto;
	align-self: flex-end;
}

.board-preview-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.board-preview-modal.is-open {
	display: flex;
}

.board-preview-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 19, 32, 0.45);
}

.board-preview-dialog {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100vw - 40px));
	/*height: min(78vh, 900px);*/
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(7, 31, 63, 0.12);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 22px 60px rgba(14, 23, 38, 0.28);
}

.board-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #edf2fb;
	background: #f8faff;
}

.board-preview-header h3 {
	margin: 0;
	font-size: 16px;
	color: #12355f;
}

.board-preview-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.board-preview-link-open,
.board-preview-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	background: #fff;
	color: #2b3a4d;
	border: 1px solid #dfe7f5;
}

.board-preview-link-open {
	background: #edf4ff;
	color: #173a72;
	border-color: #bfd4ff;
}

.board-preview-error {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: #fff8f3;
	border-bottom: 1px solid #ffe2ce;
	color: #8d3d00;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.board-preview-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 420px;
	padding: 20px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.board-preview-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 360px;
}

.board-preview-media iframe,
.board-preview-media img,
.board-preview-media video {
	display: block;
	max-width: min(92%, 1200px);
	max-height: min(74vh, 720px);
	width: auto;
	height: auto;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(16, 38, 68, 0.18);
	background: #fff;
	object-fit: contain;
}

.board-preview-media iframe {
	width: min(100%, 1100px);
	height: min(72vh, 700px);
	min-height: 380px;
}

.board-preview-media img,
.board-preview-media video {
	max-width: min(86vw, 760px);
	max-height: min(68vh, 620px);
}

.board-preview-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	text-align: center;
	color: #47607a;
	font-size: 15px;
	line-height: 1.6;
}


.login-panel {
	width:350px;
	padding: 20px;
	background: rgba(255,255,255,0.95);
	border: 1px solid rgba(0,0,0,0.5);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.login-brand {
	text-align: center;
}

.login-brand img {
	height: 58px;
	margin-bottom: 12px;
}

.login-brand h1 {
	font-size: 24px;
	font-weight: 700;
	color: #003ebb;
	margin-bottom: 10px;
}

.login-brand p {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.login-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.login-field-row {
	flex-direction: row;
	align-items: center;
	gap: 10px;
    padding: 5px 0px;
}

.login-field-row label {
	min-width: 85px;
    text-align: right;
}

.login-field label {
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.login-field input {
	font-size: 13px;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	outline: none;
	flex: 1;
}

.login-field input:focus {
	border-color: #003ebb;
	box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

.login-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 5px 0;
    height: 40px;
}

.login-field.remember-row {
	display: block;
	align-items: center;
	gap: 8px;
}

.login-links {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.login-links a {
	color: #424242;
	text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.login-links a:hover {
	text-decoration: none;
    color: #fd4848;
    font-weight: 700;
}

.login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
    padding: 5px 0px;
}

.button-full-width {
    width: 100%;
    max-width: 100%;
}

.email-send-row {
    align-items: center;
}

.email-send-btn {
    flex: 1 1 auto;
    min-width: 0;
}

.email-timer {
    display: inline-block;
    min-width: 56px;
    text-align: left;
    font-weight: 700;
}

.board-note,
.login-note {
	font-size: 14px;
	color: #555;
	text-align: center;
}

.board-result,
.login-result {
	font-size: 14px;
	text-align: center;
	min-height: 24px;
}

.login-social-btn {
	width: 100%;
	max-width: 240px;
}

/* Join (Sign Up) specific styles - keep separate from login styles */
.div_join{
	margin:20px;
	display:flex;
	justify-content:center;
	width:100%;
}

.join-panel {
    width: 350px;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.join-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.join-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.join-field-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 0px;
}

.join-field-row label {
    min-width: 85px;
    text-align: right;
}

.join-field label {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.join-field input {
    font-size: 13px;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    outline: none;
    flex: 1;
}

.join-field input:focus {
    border-color: #003ebb;
    box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

#join-email-code {
    width: 110px;
    flex: none;
}

#verify-email-code-btn {
    width: 105px;
    white-space: nowrap;
}

.join-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    height: 40px;
}

.join-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 5px 0px;
}

/* Logo Container */
#logo-container {
    display:block;
    margin: 0px auto;
    width:100%;
    max-width: 920px;
}

/* Menu */
.div_abouthangang{
	margin:20px;
	display:inline-block;
}

.div_videofeedback{
	margin:20px;
	display:inline-block;
}
.div_singapore2025{
	margin:20px;
    display:inline-block;
}

.div_korea2025kimcheon3{
	margin:20px;
    display:inline-block;
}

.div_2026gswaterpolo{
	margin:20px;
    display:inline-block;
}

.div_1stwisetalkconcert{
	margin:20px;
    font-size: 14px;
    display:inline-block;
}

.div_ReferenceSite{
	margin:20px;
    font-size: 14px;
    display:inline-block;
}

.div_competition{
	margin:20px;
	font-size:14px;
    display:inline-block;
}

.div_competitionrequlation{
	margin:20px;
	font-size:13px;
    display:inline-block;
}

/* Table */
.tableCompetiton{
	border-collapse: collapse;
	border-color:#ddd;
    width: 100%;

	td {
		padding: 5px 3px;
		text-align:center;
        font-size: 14px;
	}
}

.tableCompetitonRegulation{
	border-collapse: collapse;
	border-color:#ddd;
    font-size: 15px;

	td {
        color:#4e4e4e;
		padding: 7px 10px 7px 10px;
		text-align: left;
        word-wrap: break-word;
        vertical-align: top;
        line-height: 1.6;
	}

}

.tableCompetitonBeachRegulation{
	border-collapse: collapse;
	border-color:#ddd;
    font-size: 15px;

	td {
        color:#4e4e4e;
		padding: 7px 5px 7px 5px;
		text-align:left;
        word-wrap: break-word;
        vertical-align: top;
	}

}

/* TR */
.regulationENdisplay{
    display: "";
}

.regulationKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.appendicesENdisplay{
    display: "";
}
.appendicesKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.beachENdisplay{
    display: "";
}
.beachKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.regulationIndexENdisplay{
    display: none;
}

.regulationIndexKOdisplay{
    display: "block";
}

.regulationTitleENKOdisplay{
    display: "block";
}

.regulationTitleENdisplay{
    display: none;
}

.regulationTitleKOdisplay{
    display: none;
}

.appendicesIndexENdisplay{
    display: none;
}

.appendicesIndexKOdisplay{
    display: "block";
}

.appendicesTitleENKOdisplay{
    display: "block";
}

.appendicesTitleENdisplay{
    display: none;
}

.appendicesTitleKOdisplay{
    display: none;
}

.beachIndexENdisplay{
    display: none;
}

.beachIndexKOdisplay{
    display: "block";
}

.beachIndexENKOdisplay{
    display: "block";
}

.beachTitleENKOdisplay{
    display: "block";
}

.beachTitleENdisplay{
    display: none;
}

.beachTitleKOdisplay{
    display: none;
}
/* Title */
.competitonRegulationTitleMain{
    td{
        font-size: 20px;
        color:#003ebb;
        font-weight:bold;
        padding:10px 0px 0 0;
    }
}
.competitonRegulationTitleA{
    td{
        font-size: 17px;
        color:#cd5307;
        font-weight:bold;
        padding:30px 0px 0 0;
    }
}
.competitonRegulationTitleB{
    margin:0px;
    padding:0 0 5px 0;
    font-size: 15px;
    color:#3d3d3d;
    font-weight:bold;
}
.competitonRegulationP{
    margin:5px 0px;
    padding:0px 30px;
}

/* Appendices */
.appendicesSubTitle{
    font-size:16px;
    font-weight: bold;
    color:#00a28e;
}


/* ETC */
.divpopupimage{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border: solid 2px #4e4e4e;
    margin:0px;
    border-radius: 10px;
    background: #ffffff;
    padding: 20px;
}

.divflexmargin{
    display:flex;
    margin:5px 0px;

	.indexNum{
		font-size: 16px;
		padding: 5px 0px;
		width:40px;
	}

	.indexTitle{
		font-size: 15px;
		padding-left:10px;
	}
}

.divmargin{
    margin:10px 0px;
}

.aposition{
    color: #585858;
    text-decoration: none;
}



/* ==========================================================================
   📱 [모바일 스타일] 스마트폰 및 태블릿 최적화 (화면 가로폭 768px 이하)
   ========================================================================== */

@media (max-width: 768px) {
    .board-panel {
        max-width: 100%;
        margin: 0 auto;
    }

    .board-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .board-field-row label {
        min-width: 0;
        text-align: left;
    }

    .board-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .board-left-controls {
        justify-content: flex-start;
    }

    .board-guide-box {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .div_videofeedback {
        margin: 12px 0;
    }

    .videofeedback-panel {
        width: min(100%, 420px);
        padding: 16px;
    }

    .videofeedback-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .videofeedback-field label {
        min-width: 0;
        text-align: left;
    }

    .videofeedback-header-actions {
        justify-content: center;
    }

    .videofeedback-header-actions .header-action-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        min-width: 320px;
    }

    .vertical {
        height: auto;
    }

    .div_main {
        display: block;
        width: 100%;
        padding: 0 12px 10px 12px;
        box-sizing: border-box;
    }

    #divMenu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 8px 4px !important;
    }

    .header-bar {
        padding: 14px 12px;
    }

    .header-logo {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
/*
    .login-panel,
    .join-panel {
        width: min(100%, 420px);
        padding: 16px;
    }

    .login-field-row,
    .join-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .login-field-row label,
    .join-field-row label {
        min-width: 0;
        text-align: left;
    }

    .login-row,
    .join-row {
        height: auto;
        align-items: flex-start;
    }
*/
}

@media screen and (max-width: 768px) {

    /* 1. Basic Layout and Main Container Optimization */
    body {
        font-size: 13px; /* Mobile readability - slightly increase default font size */
    }

    .div_main {
        display: block;
        width: 100%;
        border-left: none; /* Mobile: remove left vertical line */
        border-top: solid 2px #c3c3c3; /* Change to top divider */
        padding: 15px 10px;
        height: auto; /* Release height limit to allow content to flow */
        box-sizing: border-box;
    }

    #menu-container{
        display: none !important; /* Hide Menu Container */
    }

    #divSubMenu_KO {
        display: none !important; /* Hide Sub Menu on Mobile */
    }

    #divIndex {
        display: none !important; /* Hide Index on Mobile */
    }

    /* 2. Main Menu Buttons in Grid Layout */
    #divMenu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 버튼 무조건 가로 2열 배치 */
        gap: 6px;
        padding: 15px 10px 5px 10px !important;
        box-sizing: border-box;
    }

    .menu_btn {
        /*display: block !important;*/
        text-align: center;
        margin-left: 0 !important; /* 기존 margin-left 리셋 */
        padding: 12px 5px !important; /* 손가락 터치 영역 확대 */
        font-size: 13px !important;  /* 가독성 확보 */
        border-radius: 6px;
        box-sizing: border-box;
        white-space: normal; /* 글자가 길면 자연스럽게 줄바꿈 */
        word-break: keep-all;
    }

    .menu_btn.download {
        padding: 5px 5px !important; /* 손가락 터치 영역 확대 */
    }

    /* 3. 경기 규정 하위 서브 메뉴 최적화 */
    #divSubMenu_KO > div {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 서브메뉴도 가로 2열 배치 */
        gap: 5px !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    #divSubMenu_KO > div > a {
        color: #000 !important;
    }

    #divSubMenu_KO .menu_btn {
        padding: 10px 4px !important;
        font-size: 12px !important;
    }

    /* 4. 본문 내용 블록 간격 축소 */
    .div_login, .div_singapore2025, .div_korea2025kimcheon3, 
    .div_2026gswaterpolo, .div_ReferenceSite, 
    .div_competition, .div_competitionrequlation {
        margin: 15px 10px !important;
        display: block !important; /* 가로 배열 해제하고 세로로 흐르게 */
        width: auto;
    }

    .div_login, div_1stwisetalkconcert, .div_abouthangang, .div_videofeedback {
        margin: 15px 10px !important;
        display: flex !important; /* 가로 배열 해제하고 세로로 흐르게 */
        justify-content: center;
        width: auto;
    }

    .tableCompetiton th, td {
        &:nth-child(5), &:nth-child(6), &:nth-child(7), &:nth-child(8) {
            display: none !important; /* 모바일에서는 5~8열 숨김 */
        }
        &:nth-child(2), &:nth-child(3), &:nth-child(4) {
            border-right: 1px solid #ddd !important; /* 4열 테두리 유지 */
        }
    }

    /* 6. 규정 내용 테이블(tableCompetitonRegulation 등) 최적화 */
    .tableRefereeSignal_KO th, td {
        &:nth-child(4), &:nth-child(5) {
            display: none !important; /* 모바일에서는 5~6열 숨김 */
        }
        &:nth-child(2) {
            border-right: 1px solid #ddd !important; /* 4열 테두리 유지 */
        }
    }

    .tableCompetitonRegulation, .tableCompetitonBeachRegulation {
        width: 100% !important;
        font-size: 14px !important;
    }

    .tableCompetitonRegulation td, .tableCompetitonBeachRegulation td {
        padding: 8px 6px !important;
        line-height: 1.5;
    }

    /* 7. 제목 및 문단 여백 모바일화 */
    .competitonRegulationTitleMain td {
        font-size: 18px !important;
    }
    
    .competitonRegulationTitleA td {
        font-size: 15px !important;
        padding-top: 20px !important;
    }

    .competitonRegulationP {
        padding: 0px 10px !important; /* 모바일 화면 좌우 여백 축소 */
        font-size: 13px;
    }

    /* 8. 기타 요소 및 팝업창 크기 조정 */
    .divpopupimage {
        width: 85% !important; /* 팝업이 화면 밖으로 나가지 않도록 고정 */
        box-sizing: border-box;
        padding: 15px;
    }

    .divflexmargin {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .divflexmargin .indexNum {
        font-size: 14px;
        width: 30px;
    }
    
    .divflexmargin .indexTitle {
        font-size: 14px;
        padding-left: 5px;
    }
}

@media (max-width: 1300px) {
    /* 6. 규정 내용 테이블(tableCompetitonRegulation 등) 최적화 */
    .tableRefereeSignal_KO th, td {
        &:nth-child(5) {
            display: none !important; /* 모바일에서는 5열 숨김 */
        }
        &:nth-child(2) {
            border-right: 1px solid #ddd !important; /* 4열 테두리 유지 */
        }
    }
}

@media (max-width: 480px) {
    .menu_btn {
        width: 100%;
        margin-left: 0;
    }

    .header-action-btn {
        width: 100%;
    }
/*
    .login-actions,
    .join-actions {
        flex-direction: column;
    }

    .login-actions button,
    .join-actions button,
    .login-actions .header-action-btn,
    .join-actions .header-action-btn {
        width: 100%;
    }

    .login-field input,
    .join-field input {
        width: 100%;
        box-sizing: border-box;
    }
*/
}

/* [초소형 스마트폰] 화면 가로폭 360px 이하 대응 */
@media screen and (max-width: 560px) {
    #divMenu, #divSubMenu_KO > div {
        grid-template-columns: repeat(1, 1fr) !important; /* 화면이 아주 좁으면 무조건 한 줄에 하나씩 */
    }

    #main2026GS1, #main2026USAJo1, #main2026UASJo2, #main2026KOR4thKimcheon1 {
        display: none !important; /* 초소형 화면에서는 로고 이미지 숨김 */
    }
}