html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: 'GmarketSansMedium', sans-serif, dotum, '돋움', gulim, '굴림', Arial, AppleGothic, verdana, helvetica;
    font-weight: 400;
    letter-spacing: -0.7px;
	word-break:keep-all;
    list-style: none;
}

@font-face {
  font-family: 'GmarketSans';
  src: url('/app/assets/fonts/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-color: #00a3ff;
  --dark-blue: #0e1a4f;
  --light-gray: #f8f9fa;
  --brand-color-dark: #0093e6; /* slightly darker than --brand-color */
}

* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'GmarketSans', 'Noto Sans KR', sans-serif;
}

body {
  overflow-x: hidden;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* HERO */
.hero-section {
  background: linear-gradient(to bottom, #001c3d, var(--dark-blue));
  background-image: url('/app/assets/images/kd_bg_mb.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
  padding: 60px 20px;
}

/* VIDEO */
.hero-section .hero-video-wrapper {
  width: 100%;
  max-width: 800px; /* limit video width to 800px */
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  background: #000;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9; /* modern browsers */
}

.hero-section .hero-video-wrapper .no-video-fallback {
  display: none;
  color: #fff;
  text-align: center;
  padding: 24px;
}

.hero-section .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-section .hero-video.current {
  transform: translateX(0);
  z-index: 2;
  opacity: 1;
}

.hero-section .hero-video.next {
  transform: translateX(100%);
  z-index: 1;
  opacity: 1;
}

.hero-section .hero-video.hidden-right {
  transform: translateX(100%);
}

.hero-section .hero-video.hidden-left {
  transform: translateX(-100%);
}
.contact-section .txt {
    margin-top:20px;
}

/* 작은 화면에서 비디오 크기 조정 */
@media screen and (max-width: 768px) {
  .hero-section .hero-video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    aspect-ratio: 16/9;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-section .hero-video {
  }
}

@media screen and (min-width: 1025px) {
  .hero-section .hero-video {
    max-width: min(1100px, 100%);
  }
}

.hero-logos img {
  height: 40px;
  margin: 0 10px;
}
.hero-title { font-size: 2.2rem; margin: 20px 0 10px; }
.hero-subtitle { font-size: 1.2rem; color: #f1c40f; }
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 25px;
}

/* COURSE */
.course-section {
  text-align: center;
  padding: 40px 20px;
}
.section-title {
  font-size: 1.8rem;
  color: var(--brand-color);
}

/* 광고 문구 애니메이션 */
.ad-copy-container {
  position: relative;
  height: 42px;
  margin: 12px auto 4px;
  overflow: hidden;
  max-width: 800px;
  padding: 0 20px;
}

.ad-copy {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  font-size: 1.15rem;
  color: #555;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease-out;
  font-weight: 500;
  letter-spacing: -0.3px;
  cursor: default;
}

.ad-copy.active {
  opacity: 1;
  transform: translateY(0);
}

.ad-copy-container:hover .ad-copy {
  animation-play-state: paused;
}

.course-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}
.course-card {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.course-thumb {
    position: relative;
}

.course-thumb img {
  width: 100%;
  display: block;
  height: 200px; /* fixed height so all thumbnails are uniform */
  object-fit: cover; /* crop & fill without distortion */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.course-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
}
.badge--pink { background: linear-gradient(135deg, #ff6b81, #f78fb3); }
.badge--purple { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

.course-body {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto; /* allow body to grow so button can be pushed to bottom */
}
.course-body label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}
.course-body input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}
.course-text {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 4.8em;  /* line-height 1.6 * 3줄 */
}
.course-link {
  display: block;
  text-align: center;
  background: var(--brand-color);
  color: white;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
}

/* Ensure all cards have consistent layout: button sticks to bottom */
.course-card {
  display: flex;
  flex-direction: column;
}
.course-body .course-link {
  margin-top: auto;
}

/* CONTACT */
.contact-section {
  padding: 40px 20px;
  text-align: center;
}
.contact-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form > label {
    text-align: start;
}


.form-input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.form-button {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease; /* smooth hover transition */
}
.form-button:hover {
  background: var(--brand-color-dark);
}
.btn_arrow {
font-size: 10px;
line-height: 15px;
justify-content: flex-start;
vertical-align: middle; 
}

/* training-section.css */
.training-section {font-family:'Noto Sans KR',sans-serif; background:#fff;}
.training-top { /* desktop layout: larger illustration + info card pulled closer */
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  padding: 40px 3%;
  background-color: #fafafa;
  border-radius: 12px;
  overflow: visible;
  min-height: 480px;
}
.illustration {
  flex: 0 0 62%;
  position: relative;
  z-index: 1;
}
.illustration img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0;
  margin-left: 20%;
}
.training-info {
  flex: 0 0 46%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 40px 30px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  margin-left: -20%;
  z-index: 2;
  position: relative;
}
.training-info table {width:100%; border-collapse:collapse;}
.training-info th {text-align:left; padding:10px 0; font-size:1.1rem; font-weight:700; width:30%; border-bottom:1px solid #eee;}
.training-info td {padding:10px 0; line-height:1.6; border-bottom:1px solid #eee;}
.training-info .highlight {color:#0056ff; font-weight:600; text-decoration:none;}
.training-info .strong {color:#222; font-weight:600;}
.training-info .note {color:#d00; font-size:0.9rem;}
.training-bottom {background:#0e1a4f; color:#fff; padding:50px 5%; text-align:center;}
.bottom-inner {max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
.info-left {flex:1 1 60%; text-align:left;}
.info-left .sub {margin:0; font-size:0.9rem; opacity:0.8;}
.info-left h2 {margin:8px 0 16px; font-size:1.8rem; font-weight:700;}
.info-left p {margin-bottom:24px; font-size:1rem; line-height:1.5;}
.btn-link {display:inline-block; background:#00a3ff; color:#fff; font-weight:600; padding:14px 36px; border-radius:8px; text-decoration:none;}
.info-right {flex:1 1 35%; display:flex; flex-direction:column; gap:20px;}
.card {background:#15236a; padding:20px; border-radius:10px; display:flex; align-items:flex-start; gap:24px;}
.card img {width:78px; height:78px; border-radius:50%; object-fit:cover; border:2px solid #fff;}
.card h3 {margin:0; font-size:1.1rem; font-weight:700; text-align:left;}
.card p {margin:4px 0 0; font-size:0.9rem; opacity:0.8; text-align:left;}


/* FOOTER */
.footer-section {
  background: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 40px 20px;
}
.footer-link {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}
.footer-copy {
  margin-bottom: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
  /* 모바일: 비디오를 숨기지 않고 축소하여 표시 (포스터 + 컨트롤로 사용자가 재생 가능) */
  .hero-section .hero-video {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    aspect-ratio: 16/9;
  }
  .hero-title { 
    font-size: 1.8rem; 
  }
  .hero-subtitle { 
    font-size: 1rem; 
  }
  .hero-badges {
    gap: 10px;
  }
  .hero-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .course-card {
    width: 100%;
    max-width: 340px;
  }
  .contact-form {
    padding: 0 15px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-section {
    padding: 80px 40px;
  }
  .course-grid {
    gap: 20px;
  }
  .course-card {
    width: calc(50% - 20px);
    max-width: 320px;
  }
  .contact-form {
    max-width: 500px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1399px) {
  .hero-section {
    padding: 100px 60px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.4rem;
  }
  .course-grid {
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
  }
  .course-card {
    width: calc(33.333% - 40px);
    max-width: 350px;
  }
  .contact-section {
    padding: 80px 20px;
  }
  .contact-form {
    max-width: 600px;
  }
}

@media screen and (min-width: 1400px) {
  .hero-section {
    padding: 120px 60px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
  .course-grid {
    gap: 30px;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
  }
  .course-card {
    width: calc(25% - 30px);
    max-width: 340px;
  }
  .contact-section {
    padding: 40px 20px;
  }
  .contact-form {
    max-width: 700px;
  }
}


/* 반응형 스타일 */
@media (max-width:1024px){
  .training-top {
    flex-direction: column;
    text-align: left;
    background-image: none;
    min-height: auto;
  }
  .illustration, .training-info {flex:1 1 100%; max-width:80%;}
  .illustration {text-align:center;}
  .illustration img {
    transform: none;
    max-width: 85%;
    margin: 0 auto;
  }
  .training-info {
    margin: 24px auto 0;
    margin-left: auto;
    padding: 28px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    width: 92%;
  }
  .bottom-inner {flex-direction:column; text-align:center;}
  .info-left {flex:1 1 100%; text-align:center;}
  .info-right {flex:1 1 100%;}
}

@media (max-width:768px){
  .training-info {padding:20px;}
  .training-info th, .training-info td {display:block; width:100%; border-bottom:none;}
  .training-info th {margin-top:10px; font-size:1rem;}
  .training-info td {font-size:0.95rem; line-height:1.5;}
  .info-left h2 {font-size:1.5rem;}
  .btn-link {padding:12px 24px; font-size:0.95rem;}
  .card {flex-direction:column; align-items:flex-start; text-align:left;}
  .card img {width:50px; height:50px;}
}

@media (max-width:480px){
  .training-info {padding:16px;}
  .info-left h2 {font-size:1.3rem;}
  .btn-link {width:100%; padding:12px; display:block;}
  .card p {font-size:0.85rem;}
}