/* CSS Reset & Normalize (modern minimal) */
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;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html {
  font-size: 16px; /* base size for scaling */
}
body {
  font-family: 'Noto Sans KR', '맑은 고딕', Arial, sans-serif;
  background: #23272B;
  color: #F9F6F1;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #F4B942;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #F9F6F1;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F4B942;
  margin-bottom: 12px;
}
h4, .h4, h5, h6 {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  color: #F9F6F1;
}
p, ul, ol, li, address {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-size: 1rem;
  color: #E1E6EA;
}
p {
  margin-bottom: 16px;
}
strong {
  color: #F4B942;
  font-weight: 700;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper, .content-grid, .text-image-section, .card-container {
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.text-section {
  background: #26303B;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
  padding: 32px 24px;
}

/* Industrial Modern Section Layout */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
/* Card Containers and Card Items */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #26303B;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(42,46,55,0.19);
  position: relative;
  padding: 28px;
  min-width: 270px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  border: 1px solid #2C3A47;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(42,46,55,0.32);
  border-color: #F4B942;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: #E1E6EA;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F9F6F1;
  color: #23272B;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(42,46,55,0.18);
  padding: 20px;
  min-width: 260px;
  margin-bottom: 24px;
  transition: transform 0.13s, box-shadow 0.13s;
  border: 1.5px solid #C0B491;
}
.testimonial-card p {
  color: #222831;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(42,46,55,0.32);
  transform: translateY(-3px) scale(1.01);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Button Styles */
.cta-button, a.cta-button {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: .6px;
  background: linear-gradient(90deg, #585f67 0%, #25405A 100%);
  color: #F4B942;
  border: none;
  border-radius: 30px;
  padding: 16px 42px;
  box-shadow: 0 2px 12px 0 rgba(34,40,48,0.12);
  transition: background 0.18s, color 0.14s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #F4B942 0%, #25405A 100%);
  color: #25405A;
  box-shadow: 0 6px 18px 2px rgba(34,40,48,0.19);
}

/* Navigation styles */
header {
  background: #23272B;
  border-bottom: 2.5px solid #353a40;
  position: sticky;
  z-index: 1200 !important;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 0;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.3px;
  color: #F4B942;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #F4B942;
  margin-top: 3px;
  transition: width 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff700;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

header img {
  width: 160px;
  min-width: 120px;
  height: auto;
  margin-right: 14px;
}

header .cta-button {
  margin-left: 32px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #F4B942;
  font-size: 2rem;
  border: none;
  margin-left: 24px;
  cursor: pointer;
  z-index: 1401;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F4B942;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23272B;
  z-index: 1400;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1), opacity 0.22s;
  opacity: 0;
  padding-top: 34px;
}
.mobile-menu.open {
  display: flex !important;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #F4B942;
  background: none;
  border: none;
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1410;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 38px;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #F4B942;
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 10px 10px 0;
  transition: color 0.14s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff700;
  background: rgba(244,185,66,0.13);
}

/* Section, Card, and Spacing Patterns */
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
li {
  line-height: 1.7;
  margin-bottom: 10px;
}
li img {
  margin-bottom: -5px;
  margin-right: 8px;
  width: 30px;
  height: auto;
}

/* Table Styles (for curriculum tables) */
table {
  width: 100%;
  background: #26303B;
  color: #F9F6F1;
  border-collapse: collapse;
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.97rem;
}
thead th, tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #2C3A47;
  text-align: left;
}
thead {
  background: #2B4762;
  color: #F4B942;
}
tbody tr:last-child td {
  border-bottom: none;
}
caption {
  caption-side: top;
  font-weight: 600;
  color: #F4B942;
  font-size: 1.1rem;
  margin-bottom: 9px;
}

/* FAQ Accordion Layout */
.faq-accordion {
  margin-bottom: 32px;
}
.faq-accordion dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-accordion dt {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  color: #F4B942;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.faq-accordion dd {
  background: #26303B;
  color: #F9F6F1;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  margin-left: 0;
}

/* Address and Contact Info */
address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
  color: #AAACB4;
  font-size: 0.97rem;
  margin-top: 18px;
}
address img {
  margin-right: 7px;
  width: 22px;
  height: auto;
  vertical-align: middle;
}

.address-block ul,
.phone-email-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.address-block li, .phone-email-block li {
  display: flex;
  align-items: center;
}
.address-block img {
  margin-right: 8px;
}

/* Instructor Profile Layout */
.instructor-profile {
  background: #23272B;
  border: 1px solid #2C3A47;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  color: #F9F6F1;
  box-shadow: 0 1px 6px 0 rgba(34,40,48,0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer Layout */
footer {
  background: #23272B;
  border-top: 2.5px solid #353a40;
  padding: 32px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 15px;
}
footer nav a {
  color: #F9F6F1;
  font-size: 0.96rem;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: underline;
  opacity: .88;
  transition: color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: #F4B942;
}
footer p {
  color: #888F9A;
  font-size: 0.93rem;
  margin-top: 12px;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #23272B;
  color: #F9F6F1;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.17);
  animation: slideUpBanner 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpBanner {
  from {transform: translateY(60px); opacity: 0;}
  to {transform: none; opacity: 1;}
}
.cookie-consent-banner p {
  color: #F9F6F1;
  flex: 1 1 auto;
  max-width: 600px;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-actions button {
  padding: 10px 20px;
  background: #F4B942;
  border: none;
  border-radius: 24px;
  color: #23272B;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  margin-right: 2px;
}
.cookie-actions button:last-child {
  background: #23272B;
  color: #F4B942;
  border: 1.5px solid #F4B942;
}
.cookie-actions button:hover, .cookie-actions button:focus {
  background: #25405A;
  color: #fff;
  outline: none;
}
.cookie-actions button:last-child:hover, .cookie-actions button:last-child:focus {
  background: #F9F6F1;
  color: #23272B;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  background: #222831;
  color: #F9F6F1;
  border-radius: 14px;
  box-shadow: 0 4px 40px rgba(34,40,48,0.33);
  z-index: 2010;
  min-width: 340px;
  max-width: 96vw;
  padding: 36px 28px 22px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.26s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  from {opacity: 0; transform: translate(-50%, 30px);}
  to {opacity: 1; transform: translate(-50%,0);}
}
.cookie-modal h3 {
  color: #F4B942;
  font-size: 1.18rem;
  margin-bottom: 15px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #F4B942;
  width: 20px; height: 20px;
}
.cookie-category.essential label {
  font-weight: bold;
  color: #E1E6EA;
}
.cookie-category.essential input[type=checkbox] {
  display: none;
}
.cookie-modal-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  padding: 10px 19px;
  border-radius: 24px;
  font-size: 1rem;
  border: none;
  background: #F4B942;
  color: #23272B;
  font-weight: 700;
  transition: background 0.14s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-footer button:last-child {
  background: #23272B;
  color: #F4B942;
  border: 1.5px solid #F4B942;
}
.cookie-modal-footer button:hover, .cookie-modal-footer button:focus {
  background: #25405A;
  color: #fff;
}

/* Confirmation (Thank you) Layout */
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: #2B333C;
  border-radius: 14px;
  margin: 34px 0;
  padding: 60px 0;
}

/* Animations and Hover Effects */
a, button, .cta-button, .main-nav a, .mobile-nav a {
  transition: color 0.13s, background 0.13s, box-shadow 0.17s, border 0.15s;
}

/* Responsive (Mobile-first, then up) */
@media (max-width: 1280px) {
  .container { max-width: 960px; }
}
@media (max-width: 992px) {
  .container { max-width: 740px; }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .main-nav, header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .text-section,
  .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 18px 4px !important;
  }
  .section {
    padding: 26px 8px;
  }
  .card {
    min-width: 95vw;
    padding: 18px;
    margin-bottom: 22px;
  }
  .testimonial-card {
    min-width: 85vw;
    font-size: 0.99rem;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 22px 10px 56px 10px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .cta-button { font-size: 1rem; padding: 12px 20px; }
  .testimonial-card, .card {
    padding: 15px;
  }
  .cookie-modal { min-width: 90vw; padding: 22px 10px; }
}

/* Miscellaneous visual elements for industrial modern style */
body, .content-wrapper, .text-section, header, footer {
  /* Subtle vertical steel grain background for industrial effect */
  background-image: repeating-linear-gradient(135deg, rgba(75,85,99,0.11) 0px, transparent 17px);
  background-blend-mode: darken;
}
.card, .testimonial-card, .instructor-profile, .section {
  box-shadow: 0 2px 16px 0 rgba(54, 59, 70, 0.13), 0 7px 35px 0 rgba(35, 40, 48, 0.09);
  border: 1.5px solid #333f50;
}
.testimonial-card {
  border-color: #908060;
  background: #F9F6F1;
  color: #23272B;
}

/* Industrial fonts fallback for headings */
@font-face {
  font-family: 'Nanum Gothic';
  src: local('Nanum Gothic'), local('Arial');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Sans KR';
  src: local('Noto Sans KR'), local('맑은 고딕'), local('Malgun Gothic'), sans-serif;
}

/* Visual dividers */
hr {
  border: none;
  border-top: 1.5px solid #353a40;
  margin: 32px 0;
}

/* Utility classes for spacing */
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.gap-3 { gap: 24px !important; }

/* Hide visually but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Accessibility: visible focus ring */
a:focus, button:focus {
  outline: 2.5px solid #F4B942;
  outline-offset: 2px;
}

/* Form Inputs (if present in the future) */
input, textarea, select {
  border: 1.5px solid #2C3A47;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  background: #26303B;
  color: #F9F6F1;
  margin-bottom: 10px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #F4B942;
  border-color: #F4B942;
  background: #23272B;
}

/* Shadow for hovering cards and buttons */
.card:hover, .cta-button:hover, .instructor-profile:hover {
  box-shadow: 0 6px 32px rgba(40,44,54,0.21), 0 1.5px 8px rgba(54,59,70,0.09);
}
/* Prevent content overlapping */
.card, .testimonial-card, .instructor-profile, .section, .content-wrapper, .container, .footer, header {
  z-index: 1;
}

/* Ensure no elements overlap via flexbox spacing & margin rules */
.card, .testimonial-card, .instructor-profile {
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 20px;
}
.content-wrapper > * + * {
  margin-top: 22px;
}

/* Hide main-nav on mobile, show mobile menu only */
@media (max-width: 768px) {
  .main-nav, header .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav, header .cta-button { display: flex !important; }
}

/* Utility for JavaScript to add when menu or modal is open (prevent background scroll) */
body.menu-open, body.modal-open {
  overflow: hidden;
}
