@import url('./reset.css');

/* 기본 색상과 간단한 리셋 */
:root {
  --primary: #003c8f;
  --primary-light: #0d47a1;
  --bg: #f5f5f5;
  --text: #333;
}

body {
  font-family: "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* 헤더 & 내비게이션 */
header {
  /* max-width: 1080px; */
  margin: 0 auto;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
nav ul { display: flex; list-style: none; gap: 18px; }
nav a { color: #fff; text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }

/* 메인, 섹션, 공통 */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main {max-width: 1080px; min-height: 60vh; margin-top:20px !important;  }
section { margin-bottom: 48px; }
section h1 { font-size: 2rem; font-weight: bold; }
section h2 { font-size: 1.5rem; margin-bottom: 16px; font-weight: 600; }
section h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600;}
ul.disc { margin-left: 20px; list-style: disc; }
a.link { color: var(--primary-light); text-decoration: underline; }
a.link:hover { opacity: 0.8; }

p { word-break: break-all; text-align: justify;}

/* 푸터 */
footer {
  /* max-width: 1080px; */
  margin: 0 auto;
  background: #222;
  color: #bbb;
  font-size: 0.9rem;
  padding: 24px 0;
  text-align: center;
}
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: #bbb; text-decoration: underline; }
footer a:hover { opacity: 0.8; }



/* header */

/* header 상단 */
.header-inner {
  padding: 14px 0;
}

.header-links {
  display: flex;
  gap: 10px;
}

/* nav 하단 */
.header-nav {
  border-top: 1px solid #dbdbdb;
  
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0 auto;
  padding: 12px 0;
  flex-wrap: wrap;
}

.header-nav .nav-list li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding: 6px 8px;
}

.header-nav .nav-list li a:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}


/* 카드(워크숍 일정) */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 0.95rem;
}
.card ul { margin-left: 18px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}


.btn-outline {
  border: 1px solid #ccc;
  padding: 6px 14px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.btn:disabled,
.btn[disabled] {
  background-color: #aaa;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-disabled {
  pointer-events: none;       /* 클릭 안 됨 */
  background: #ccc;           /* 회색 배경 */
  color: #666;                /* 글씨색도 흐리게 */
  cursor: not-allowed;        /* 마우스 커서 변경 */
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
}

/* 📄 공통 워크숍 프로그램 테이블 스타일 */
.workshop-program {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 0.95rem;
}

.workshop-program th,
.workshop-program td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.workshop-program th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.workshop-program .time {
  text-align: center;
  white-space: nowrap;
  font-weight: bold;
  color: #aa00aa;
}

.workshop-program .topic {
  font-weight: bold;
  background-color: #eef;
  color: #003399;
}

.workshop-program .discussion {
  background-color: #fee;
  color: #d00;
  font-weight: bold;
  text-align: center;
}

.workshop-program .session-title {
  background-color: #ddeeff;
  font-weight: bold;
  color: #000088;
}

.workshop-program .speaker {
  color: #228822;
  font-weight: normal;
}

.workshop-program .title {
  color: #0044aa;
}

.workshop-program .break {
  background-color: #f8f8f8;
  text-align: center;
  font-style: italic;
}


/* ───────────── 모바일 레이아웃 ───────────── */
@media (max-width: 768px) {
  html {font-size: 14px;  /* 전체 기준 폰트 크기 줄임 (기본은 보통 16px) */}
  header .container{padding: 5px 16px;}
  .header-nav .nav-list{gap:0px;}
  header a{font-size: 0.7rem;}
  h1{ font-size: 1.3rem !important; }
  h2{ font-size: 1.1rem !important; }
  p{font-size: 0.6rem !important;}
  legend{font-size: 0.9rem !important;}
  label{font-size: 0.7rem !important;}
  ol li, ul li{font-size: 0.6rem !important;}
  .logo-text{font-size: 1.3rem !important;}
  #lang-toggle-btn{font-size:.6rem; padding: 4px 8px !important;}
  .institude{ width:100px !important; height: 50px !important }
  .kasi{width: 100px !important;  max-height: 50px !important;}
  .kasi img{max-height: 40px !important; max-width: 80px !important;}
  .banner-title{font-size: 1.2rem !important; margin-bottom: 5px !important;}
  .banner-sub{font-size: 1rem !important; margin-bottom:10px !important;} 
    /* 🔻 이미지 flex 영역 반응형 설정 */
    .image-flex-container {
      flex-direction: column !important;
      align-items: center;
    }
  
    .image-flex-container img {
      width: 100% !important;
      height: auto !important;
      margin-bottom: 12px;
    }

    .registration-form{
      padding:16px !important;
    }
}