/* == Styles for sub2.html ==================== */

/* 공통 섹션 스타일 */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #767676;
  margin-top: 0;
  margin-bottom: 50px;
}

/* ----------------------------- */
/* 1. Hero 섹션 */
.hero-section {
  position: relative;
  background-color: #222;
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url("../images/em.png");
}

.hero-main-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 2rem;
  color: #ebebeb;
  margin-top: 0;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
}

.cta-buttons.fade-in-start {
  animation: fadeInButton 1s ease-out forwards;
}

.btn {
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #990e17;
  color: #fff;
}
.btn-primary:hover {
  background-color: #701e20;
}

.btn-secondary {
  background-color: #fff;
  color: #990e17;
  border-color: #990e17;
}
.btn-secondary:hover {
  background-color: #f8f9fa;
}

/* Hero 텍스트 애니메이션 */
@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-main-title span,
.hero-subtitle span {
  display: inline-block;
  opacity: 0;
  animation: flowIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInButton {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------- */
/* 2. Why KHU MBA? 섹션 */
.why-mba-section {
  padding: 80px 0;
  background-color: #fff;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.value-item {
  flex: 1 1 22%;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.value-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.value-icon {
  width: 48px;
  height: 48px;
  color: #990e17;
  margin-bottom: 20px;
}

/* ----------------------------- */
/* 3. 과정 안내 섹션 */
.course-info-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.info-blocks {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-block {
  flex: 1;
  text-align: center;
  position: relative;
}

.info-block:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-70%) scale(0.8, 2);
  font-size: 2.5rem;
  color: #ddd;
  font-weight: 100;
  line-height: 1;
  display: inline-block;
}

.info-label {
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 8px;
}

.info-value {
  margin: 0;
  font-size: 1rem;
  color: #767676;
}

/* ----------------------------- */
/* 4. 졸업 후 진로 섹션 */
.career-path-section {
  padding: 80px 0;
  background-color: #fff;
}

.career-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.flow-start {
  background-color: #990e17;
  color: #fff;
  padding: 60px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
}

.flow-arrow {
  font-size: 2.5rem;
  color: #ccc;
  font-weight: bold;
}

.flow-outcomes {
  display: flex;
  gap: 20px;
  flex-grow: 1;
}

.outcome-group {
  flex: 1;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.outcome-group h4 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-size: 1.2rem;
}

.outcome-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #767676;
}

.outcome-group li {
  margin-bottom: 8px;
}

/* ----------------------------- */
/* 5. 경영컨설팅전공 소개 섹션 */
.intro-section {
  background: #fff;
  padding: 80px 20px;
}

.intro-text {
  max-width: 1280px;
  margin: 0 auto 60px auto;
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
}

.intro-text p {
  margin-bottom: 20px;
}

/* 교육목표 / 전공의 강점 카드 공통 스타일 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1280px; /* 본문(intro-text)과 동일한 최대 너비 설정 */
  margin: 0 auto; /* 좌우 여백을 auto로 주어 중앙 정렬 */
}

.feature-card {
  background: #fff;
  border-left: 5px solid #990e17;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #990e17;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* ---
  curriculum.html (커리큘럼 페이지) 추가 스타일 
  (sub2.css의 기존 스타일을 기반으로 가공)
--- */

/* 1. 테이블 스타일 (학문적 구조) */

/* 테이블을 감싸는 wrapper (중앙 정렬 및 최대 너비 설정) */
.table-wrapper {
  max-width: 1280px; /* .intro-text 와 동일한 너비 */
  margin: 30px auto 0 auto;
  overflow-x: auto; /* 화면이 좁을 때 좌우 스크롤 */
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse; /* 테두리 한 줄로 */
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.curriculum-table th,
.curriculum-table td {
  padding: 15px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}

/* 테이블 헤더 - .outcome-group의 배경색(#f8f9fa) 참조 */
.curriculum-table thead th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 700;
  text-align: center;
}

/* 테이블 본문 (tbody)의 첫 번째 칸 (구분) */
.curriculum-table tbody th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #555;
  width: 15%;
  text-align: center;
}

.curriculum-table tbody td {
  color: #666;
}

/* 2. 단계별 학습 체계 (설명 카드) */

/* 카드 wrapper - .feature-grid 와 동일한 너비/정렬 */
.steps-wrapper {
  max-width: 1280px;
  margin: 30px auto 0 auto;
}

/* .feature-card 스타일과 동일하게 적용 */
.step-card {
  background: #fff;
  border-left: 5px solid #990e17; /* .feature-card와 동일한 포인트 컬러 */
  padding: 30px 25px; /* 단일 카드이므로 패딩을 좀 더 넉넉하게 */
  border-radius: 10px;
  margin-bottom: 25px; /* 카드 간 간격 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* .feature-card와 동일한 그림자 */
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-5px); /* .feature-card와 동일한 호버 효과 */
}

.step-card h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem; /* .feature-card h3(18px)보다 약간 크게 */
  font-weight: 700;
  color: #990e17; /* .feature-card와 동일한 포인트 컬러 */
}

/* .intro-text p 스타일과 동일하게 적용 */
.step-card p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

/* ----------------------------- */
/* 반응형 스타일 */
@media (max-width: 992px) {
  .career-flow {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .flow-outcomes {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .value-item {
    flex-basis: 100%;
  }
  .info-blocks {
    flex-direction: column;
    gap: 30px;
  }
  .info-block:not(:last-child)::after {
    content: "";
  }
  .curriculum-table {
    font-size: 0.9rem;
  }
  .curriculum-table th,
  .curriculum-table td {
    padding: 10px 8px;
  }
  .step-card h4 {
    font-size: 1.15rem;
  }
  .step-card p {
    font-size: 0.95rem;
  }
}
