/* ========================================
   제이가빈헤어 채용 사이트 — style.css
   색상/디자인 톤 유지, 구조·반응형 정리
   ======================================== */

:root {
  --color-bg: #f5f5f5;
  --color-surface: rgba(255, 255, 255, 0.95);
  --color-white: #ffffff;
  --color-text: #333;
  --color-text-soft: #444;
  --color-muted: #666;
  --color-muted-2: #777;
  --color-muted-3: #888;
  --color-border: #ddd;
  --color-border-soft: #e5e5e5;
  --color-heading: #2f3e1f;
  --color-heading-alt: #1c2d1f;
  --color-primary: #1a4616;
  --color-primary-2: #1e4c1b;
  --color-accent: #6B8E23;
  --color-mint-bg: #e8f5e9;
  --color-mint-soft: #f7fbf9;
  --color-mint-card: #e8f2ec;
  --color-dot: #7dcea0;
  --color-footer-bg: #eeeeee;
  --color-card: #f8f8f8;
  --color-info: #f4f4f4;
  --color-quote-bg: #f9f9f9;
  --shadow-section: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.08);
  --radius-section: 16px;
  --radius-card: 12px;
  --max-content: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Helvetica Neue", "Segoe UI", "Roboto", "Noto Sans KR", "Pretendard", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
.recruit-button,
.branch-card,
.graduate-card {
  -webkit-tap-highlight-color: transparent;
}

section {
  padding: 60px 20px;
  max-width: var(--max-content);
  margin: 40px auto;
  background-color: var(--color-surface);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-section);
}

h1,
h2,
h3 {
  color: var(--color-heading);
  margin-top: 0;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h2.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.5px;
}

p {
  line-height: 1.7;
  margin-bottom: 16px;
  word-break: keep-all;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: bold; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-24 { margin-bottom: 24px; }
.muted { color: var(--color-muted); }
.accent-green { color: var(--color-accent); }
.brand-green { color: var(--color-heading); }

/* ---------- Hero / Apply ---------- */
.apply-section {
  text-align: center;
  background-color: transparent;
  box-shadow: none;
}

.apply-section > img {
  max-width: 220px;
  width: 100%;
  margin: 0 auto 24px;
}

.apply-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.hero-video-wrap {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  background: #000;
}

.hero-video {
  width: 100%;
  object-fit: cover;
  max-height: 520px;
  background: #000;
}

/* ---------- Recruit table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recruit-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 15px;
}

.recruit-table thead tr {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: left;
}

.recruit-table th,
.recruit-table td {
  padding: 12px;
  vertical-align: top;
}

.recruit-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Recruit buttons ---------- */
.recruit-button-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.recruit-button {
  background-color: var(--color-primary-2);
  color: var(--color-white);
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.recruit-button:hover {
  transform: scale(1.03);
}

/* ---------- Modals (shared) ---------- */
.modal-overlay,
#faqModal,
#image-modal,
#graduateModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.modal-overlay {
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.modal-overlay.is-hidden {
  display: none !important;
}

.modal-content {
  background: var(--color-white);
  max-width: 600px;
  width: 100%;
  padding: 30px;
  border-radius: var(--radius-section);
  position: relative;
  animation: fadeInUp 0.4s ease;
  max-height: min(80vh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-muted-3);
  cursor: pointer;
  width: 40px;
  height: 40px;
}

#faqModal {
  display: none;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

#faqModal.show {
  display: flex !important;
}

#faqModal .modal-content {
  animation: slideDownFade 0.4s ease-out;
  max-width: 700px;
  max-height: 90vh;
  padding: 30px 24px;
  border-radius: var(--radius-card);
}

.faq-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.faq-tabs button {
  padding: 8px 14px;
  border-radius: 6px;
  background: #eee;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.faq-content {
  font-size: 15px;
  line-height: 1.8;
}

.faq-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-strong-gap {
  margin-top: 30px;
}

/* ---------- Cards: branch ---------- */
.branch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.branch-card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-4px);
}

.branch-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.branch-card p {
  margin: 0;
  padding: 12px;
  font-weight: bold;
  text-align: center;
}

/* ---------- Graduate cards (main) ---------- */
.graduate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.graduate-card {
  background-color: #fefefe;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  text-align: center;
}

.graduate-card:hover {
  transform: translateY(-4px);
}

.graduate-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.graduate-card p {
  margin: 0;
  padding: 12px;
  font-weight: bold;
  color: var(--color-text);
  font-size: 16px;
}

/* ---------- Content sections ---------- */
.ideal-candidate,
.vision {
  text-align: center;
}

.welfare-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  text-align: left;
}

.welfare-list li {
  margin-bottom: 14px;
}

.brand-lead {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}

.brand-slogan {
  font-size: 24px;
  color: var(--color-accent);
}

.brand-hanja {
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
}

.section-divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.vision-heading {
  margin-top: 30px;
  font-size: 22px;
}


.curriculum-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto 24px;
  cursor: pointer;
}

.curriculum-box {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffffdd;
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.curriculum-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--color-heading);
  text-align: center;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.curriculum-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-weight: bold;
  font-size: 14px;
  color: var(--color-muted-3);
  text-align: center;
}

/* ---------- Curriculum zoom ---------- */
#image-modal {
  display: none;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

#image-modal img {
  max-width: min(92vw, 1000px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  cursor: zoom-out;
}

/* ---------- Graduate modal ---------- */
.graduate-modal {
  display: none;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.graduate-modal.open {
  display: flex;
}

.graduate-modal-panel {
  position: relative;
  width: min(720px, 94vw);
  height: min(860px, 88vh);
  background: var(--color-white);
  border-radius: var(--radius-section);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.graduate-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-muted-3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.graduate-modal-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--color-bg);
}

/* ---------- CEO ---------- */
.ceo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-section);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  max-width: var(--max-content);
  margin: 40px auto;
}

.ceo > img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  flex-shrink: 0;
}

.ceo-text {
  flex: 2 1 500px;
  min-width: 0;
}

.ceo-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-heading-alt);
  text-align: left;
}

.ceo-body {
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.ceo-quote {
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid var(--color-heading);
  background: var(--color-quote-bg);
  font-style: italic;
  color: var(--color-text);
  border-radius: 8px;
}

.ceo-list {
  margin-top: 28px;
  padding-left: 20px;
  font-size: 15px;
  color: #555;
  text-align: left;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--color-muted-3);
  background-color: var(--color-footer-bg);
  margin-top: 40px;
}

/* ========================================
   Branch detail pages
   ======================================== */
body.page-branch {
  background-color: var(--color-white);
  color: var(--color-text);
  padding: 20px;
}

.page-branch h1 {
  font-size: 24px;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 20px;
}

.main-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius-card);
  margin: 0 auto 30px;
}

.info {
  background-color: var(--color-info);
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto 30px;
  max-width: 900px;
}

.info p {
  margin: 10px 0;
  line-height: 1.6;
}

.copy-btn {
  font-size: 13px;
  padding: 4px 10px;
  margin-left: 8px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* ========================================
   Graduate detail pages
   ======================================== */
body.page-graduate {
  background: var(--color-bg);
  padding: 40px 20px;
}

.graduate-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-section);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.graduate-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.page-graduate h1 {
  font-size: 24px;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 12px;
}

.meta {
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.testimonial {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-soft);
  text-align: left;
  margin-top: 20px;
}

.testimonial.center {
  text-align: center;
}

.page-graduate blockquote {
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid var(--color-heading);
  background: var(--color-quote-bg);
  font-style: italic;
  color: var(--color-text);
  border-radius: 8px;
}

.page-graduate ul {
  margin-top: 28px;
  padding-left: 20px;
  font-size: 15px;
  color: #555;
}

.back-btn {
  display: block;
  margin: 40px auto 0;
  padding: 12px 20px;
  background: var(--color-heading);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
}

.back-btn:hover {
  background-color: #1e3814;
}

/* 모달(iframe) 안에서 열릴 때 */
body.page-graduate.is-embed {
  padding: 16px 12px 24px;
  background: var(--color-white);
  min-height: 100%;
}

body.page-graduate.is-embed .graduate-container {
  box-shadow: none;
  max-width: none;
  padding: 12px 8px 24px;
  border-radius: 0;
}

body.page-graduate.is-embed .back-btn {
  display: none;
}

.qa-block {
  margin-top: 40px;
}

.qa-title {
  font-size: 18px;
  color: var(--color-heading-alt);
  margin-bottom: 16px;
}

.qa-q {
  margin: 10px 0 6px;
}

.qa-a {
  margin: 0 0 18px;
}

/* ========================================
   Tablet
   ======================================== */
@media (max-width: 900px) {
  .graduate-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .graduate-card img {
    height: 240px;
  }

  h1.section-title {
    font-size: 32px;
  }

  h2.section-title {
    font-size: 24px;
  }
}

/* ========================================
   Mobile
   ======================================== */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  section {
    padding: 36px 16px;
    margin: 16px 12px;
    border-radius: var(--radius-card);
  }

  h1.section-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  h2.section-title {
    font-size: 20px;
    letter-spacing: -0.3px;
  }

  h3 {
    font-size: 17px;
  }

  p {
    font-size: 14px;
    line-height: 1.65;
  }

  .apply-section > img {
    max-width: 140px;
    margin-bottom: 16px;
  }

  .apply-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .hero-video-wrap {
    margin: 20px auto;
    border-radius: var(--radius-card);
  }

  .hero-video {
    max-height: 240px;
  }

  .recruit-button {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    padding: 12px 16px;
    white-space: normal;
  }

  .recruit-table {
    font-size: 13px;
  }

  .recruit-table th,
  .recruit-table td {
    padding: 10px 8px;
  }

  .modal-content,
  #faqModal .modal-content {
    padding: 24px 16px;
    font-size: 14px;
    max-height: 85vh;
    border-radius: var(--radius-card);
  }

  .faq-title {
    font-size: 18px;
    padding-right: 28px;
  }

  .branch-cards {
    grid-template-columns: 1fr;
  }

  .graduate-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .graduate-card img {
    height: 360px;
  }

  .ceo {
    padding: 32px 16px;
    margin: 16px 12px;
    flex-direction: column;
    text-align: center;
  }

  .ceo > img {
    width: 110px;
    height: 110px;
  }

  .ceo-title {
    text-align: center;
  }

  .ceo-quote {
    text-align: left;
  }

  .curriculum-grid {
    grid-template-columns: 1fr;
  }

  .brand-lead {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 20px;
  }

  .vision-heading {
    font-size: 18px;
  }


  body.page-branch {
    padding: 16px 12px;
  }

  .page-branch h1 {
    font-size: 20px;
  }

  .info {
    padding: 16px;
  }

  .info p {
    font-size: 14px;
  }

  .copy-btn {
    display: inline-block;
    margin: 6px 0 0 0;
  }

  body.page-graduate {
    padding: 20px 12px;
  }

  .graduate-container {
    padding: 24px 16px;
    border-radius: var(--radius-card);
    box-shadow: none;
    width: 100%;
  }

  .graduate-image {
    width: 140px;
    height: 140px;
  }

  .page-graduate h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .testimonial {
    font-size: 15px;
    line-height: 1.7;
  }

  .back-btn {
    font-size: 15px;
    padding: 12px;
  }

  .graduate-modal-panel {
    width: 96vw;
    height: 90vh;
    border-radius: 12px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  section {
    margin: 12px 8px;
    padding: 28px 12px;
  }

  h1.section-title {
    font-size: 22px;
  }

  h2.section-title {
    font-size: 18px;
  }

}
