@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

:root {
  --bg:         #000000;
  --bg2:        #0A0A0A;
  --bg3:        #111111;
  --card:       #1A1A1A;
  --card2:      #1a1a24;
  --border:     #222222;
  --border2:    #333333;
  --border3:    #2a2a35;
  --blue:       #2c02b8;
  --blue-dim:   #1d5bce;
  --blue-dark:  #220F70;
  --blue-bg:    rgba(44, 2, 184, 0.10);
  --blue-bg2:   rgba(44, 2, 184, 0.20);
  --blue-bdr:   rgba(44, 2, 184, 0.40);
  --orange:     #FB923C;
  --white:      #ffffff;
  --gray1:      #F7F7F7;
  --gray2:      #E4E4E4;
  --gray3:      #999999;
  --gray4:      #606060;
  --font: 'Wanted Sans Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ── 공통 유틸 ── */
.em-orange {
  font-style: normal;
  color: var(--orange);
  font-weight: inherit;
}

.em-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.em-emphasis {
  text-emphasis: filled dot;
  -webkit-text-emphasis: filled dot;
}

.text-emphasis {
  text-emphasis: filled dot;
  -webkit-text-emphasis: filled dot;
}

/* ── LAYOUT ── */
.section {
  padding: 100px 0;
}

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-wrap-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 56px;
  text-align: center;
}

.section-header--no-mb {
  margin-bottom: 0;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  word-break: keep-all;
}

.section-title--lg {
  font-size: 40px;
}

.section-desc {
  font-size: 16px;
  color: var(--gray2);
  font-weight: 500;
  margin-top: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.section-desc--white {
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0;
  margin-top: 0;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border: 1.5px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dim);
  /* transform: translateY(-1px); */
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 40px;
  border: 1.5px solid #eeeeee;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s;
}

.btn-outline--hero {
  width: 289px;
  height: 55px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  /* transform: translateY(-1px); */
}

/* 테두리 애니메이션 버튼 */
.btn-scb {
  position: relative;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  width: 289px;
  height: 55px;
  padding: 0;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 2, 184, 0.5);
  z-index: 1;
  transition: transform 0.2s;
}

/* .btn-scb:hover {
  transform: translateY(-2px);
} */

.btn-scb::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--blue);
  border-radius: 50px;
  z-index: -1;
  transition: background 0.2s;
}

.btn-scb:hover::before {
  background: var(--orange);
}

.btn-scb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  /* margin-left: -200px;
  margin-top: -200px; */
  background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(125, 138, 255, 0.8) 90%, #fff 100%);
  animation: spinGlow 2.5s linear infinite;
  z-index: -2;
  border-radius: 50%;
}

@keyframes spinGlow {
  /* to { transform: rotate(360deg); } */
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── HERO ── */
.hero {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero--bg {
  background: url('https://img.megastudyacademy.co.kr/campus/iws_html_img/event/20260312/MEGASTUDY-3759/bg.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(48, 116, 240, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
  z-index: 1;
}

/* 메가스터디 로고 배지 */
.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue);
  border-radius: 30px;
  padding: 10px 30px;
  margin-bottom: 20px;
  background: rgba(44, 2, 184, 0.05);
  gap: 8px;
}

.hero-megait-img {
  height: 22px;
  object-fit: contain;
}

/* 히어로 타이틀 */
.hero-title {
  font-size: 45px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-title__sub {
  font-weight: 600;
}

.hero-title__main {
  color: var(--orange);
  font-weight: 800;
  display: inline-block;
}

/* 프로그램 로고 */
.hero-programs {
  margin: 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.hero-programs__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-programs__col--left {
  align-items: flex-end;
  transform: translateX(-20px);
  gap: 20px;
}

.hero-programs__col--right {
  align-items: flex-start;
  gap: 25px;
}

.hero-prog-img {
  object-fit: contain;
}

.hero-prog-img--openai      { height: 60px;  animation-delay: 1.6s; }
.hero-prog-img--sheets      { height: 110px; animation-delay: 3.1s; }
.hero-prog-img--gemini      { height: 50px;  animation-delay: 2.6s; }
.hero-prog-img--appsscript  { height: 70px;  animation-delay: 2.1s; }

/* 히어로 버튼 그룹 */
.hero-btns-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.hero-btns {
  margin-top: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 600px;
  max-width: 100%;
}

/* ── NEWS (Slide 7+8) ── */
/* .news-section {
  background: var(--bg2);
}

.news-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bg2);
}

.news-col {
  background: var(--bg2);
  padding: 72px 52px;
  text-align: center;
}

.news-col--left {
  text-align: left;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-portrait {
  width: 100%;
  max-width: 350px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 24px;
  object-position: center 20%;
}

.big-quote-mark {
  font-size: 80px;
  line-height: 0.7;
  color: #7d8aff;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 12px;
}

.big-quote-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  word-break: keep-all;
  margin-bottom: 24px;
  color: var(--white);
}

.big-quote-source {
  font-size: 12px;
  color: var(--gray3);
  font-weight: 500;
  margin-bottom: 30px;
}

.news-body-text {
  font-size: 16px;
  color: var(--gray2);
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
}

.pain-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 15px 35px;
  margin-bottom: 20px;
  text-align: left;
}

.pain-box-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.news-articles {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.news-article {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.news-article:first-child {
  border-top: 1px solid var(--border);
}

.news-article-source {
  font-size: 12px;
  font-weight: 700;
  color: #7D8AFF;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-article-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray1);
  line-height: 1.4;
  word-break: keep-all;
}

.news-article-date {
  font-size: 12px;
  color: var(--gray3);
  margin-top: 3px;
}

.news-resolve {
  margin-top: 40px;
  background: var(--blue);
  border-radius: 10px;
  padding: 16px 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
} */
 .news-section {
  background: var(--bg2);
}

.news-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bg2);
}

.news-col {
  background: var(--bg2);
  text-align: center;
}

.news-col--left {
  padding: 60px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-col--right {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
}

.big-quote-mark {
  display: block;
  font-size: 45px;
  line-height: 1;
  color: #7d8aff;
  margin-bottom: 8px;
}

.big-quote-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--white);
}

.news-portrait {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 24px;
  object-position: center 20%;
}

.big-quote-source {
  font-size: 12px;
  color: var(--gray3);
  font-weight: 500;
  margin-bottom: 30px;
}

.news-body-text {
  font-size: 16px;
  color: var(--gray2);
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
  margin-bottom: 0;
}

.pain-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 15px 35px;
  margin-top: 113.4px;
  margin-bottom: 20px;
  text-align: left;
}

.pain-box-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.em-orange {
  color: #FB923C;
  font-style: normal;
}

.news-articles {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.news-article {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.news-article:first-child {
  border-top: 1px solid var(--border);
}

.news-article-source {
  font-size: 12px;
  font-weight: 700;
  color: #7D8AFF;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-article-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray1);
  line-height: 1.4;
  word-break: keep-all;
}

.news-article-date {
  font-size: 12px;
  color: var(--gray3);
  margin-top: 3px;
}

.news-resolve-wrap {
  padding-bottom: 60px;
}

.news-resolve {
  max-width: 800px;
  background: #2C02B8;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 700;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  word-break: keep-all;
  text-align: center;
}

/* ── BENEFITS ── */
.benefits-section {
  background: #000000;
  border-bottom: none;
  padding-bottom: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-card {
  background: var(--card2);
  border: 1px solid var(--border3);
  border-radius: 16px;
  padding: 35px 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.benefit-card:hover {
  /* transform: translateY(-12px); */
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 164, 0.15);
}

.benefit-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #2a2a35;
}

.benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.benefit-body {
  font-size: 16px;
  color: #aaaaaa;
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
}

.benefit-quote {
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 8px;
}

/* ── TARGET ── */
.target-section {
  background: #000000;
  padding-top: 100px;
}

.target-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

.target-row-card {
  background: var(--card2);
  border: 1px solid var(--border3);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 25px 60px;
  gap: 40px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  cursor: default;
}

.target-row-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(44, 2, 184, 0.4);
}

.target-row-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.target-row-img img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: contain;
}

.target-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.target-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.target-body {
  font-size: 18px;
  color: #aaaaaa;
  line-height: 1.3;
}

/* ── BEFORE / AFTER ── */
.ba-section {
  background: var(--bg2);
  text-align: center;
}

/* [수정 1] ba-rows: max-width 제거, 반응형 안전하게 */
.ba-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.ba-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ba-box {
  border-radius: 16px;
  padding: 25px 30px;
  width: 100%;
}

.ba-box.before-box {
  background: #111111;
  border: 1px solid #222222;
}

.ba-box.after-box {
  background: var(--blue-dark);
  border: 1px solid #3F1DCC;
}

.ba-img-wrap {
  margin: 10px 0;
}

.ba-img-wrap img {
  height: 150px;
  object-fit: contain;
}

.ba-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 6px;
}

.ba-badge.b-badge {
  background: #1A1A1A;
  color: var(--gray2);
  border: 1px solid #333333;
}

.ba-badge.a-badge {
  background: #4B36D1;
  color: #fff;
}

.ba-box-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  word-break: keep-all;
  margin-top: 10px;
}

.before-box .ba-box-text {
  color: var(--gray2);
}

.ba-arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-arrow-svg {
  color: var(--blue);
}

/* ── CURRICULUM ── */
.curriculum-section {
  background: var(--blue);
  padding-top: 100px;
}

.curri-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 40px;
  margin-bottom: 0;
  width: 100%;
}

.curri-tabs button {
  padding: 23px 40px;
  border-radius: 16px 16px 0 0;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
  background: var(--blue-dark);
  color: #7d8aff;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.curri-tabs button.active {
  background: #16141f;
  color: var(--white);
}

#tab-c2:not(.active) {
  background: #431111;
  color: #EF4444;
}

.curri-tabs button:hover, #tab-c2:not(.active):hover {
  background: #16141f;
  color: var(--white);
}

.curri-layout {
  position: relative;
}

.curri-content {
  display: none;
}

.curri-content.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #16141f;
  border-radius: 0 0 20px 20px;
  padding: 30px 20px 20px;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* 커리큘럼 내부 그리드 */
.curri-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  align-items: stretch;
}

.curri-thumb {
  height: 100%;
}

.curri-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.curri-info-box {
  background: #252433;
  border-radius: 12px;
  padding: 25px 20px;
  height: 100%;
}

.curri-steps-box {
  background: #252433;
  border-radius: 12px;
  padding: 25px 20px;
  width: 100%;
}

.curri-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.curri-label {
  display: block;
  width: fit-content;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
}

.curri-label--inline {
  display: inline-flex;
  margin-bottom: 5px;
}

/* c2 탭 전용 색상 오버라이드 */
#c2 .curri-label { background: #EF4444; }
#c2 .curri-target-list li::before { color: #EF4444; }
#c2 .step-num { background: #431111; color: #EF4444; }

.curri-target-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 0;
}

.curri-target-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray2);
  line-height: 1.4;
  word-break: keep-all;
}

.curri-target-list li::before {
  content: '✓';
  color: #7d8aff;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: -1px;
}

.curri-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
}

.curri-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}
.curri-step span.icon{
  font-size: 20px; 
  margin-right: 12px; 
  transform: translateY(-2px);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #7d8aff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 16px;
  color: var(--gray1);
  line-height: 1.4;
  word-break: keep-all;
  margin-top: 0;
}

/* ── BONUS ── */
.bonus-section {
  background: var(--bg2);
}

.bonus-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.bonus-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 300px;
  height: 290px;
  background: var(--bg3);
  padding: 30px 35px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  display: flex;
  justify-content: center;
  transition: border-color 0.2s;
}

.bonus-card:hover {
  border-color: var(--blue-bdr);
}

.bonus-logo {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: auto;
}

.bonus-logo img {
  width: 180px;
  height: 130px;
  border-radius: 12px;
  display: block;
}

.bonus-title {
  font-size: clamp(12px, 3.8vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ── FAQ ── */
.faq-section {
  background: #000000;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  line-height: 1.5;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  user-select: none;
}

.faq-q-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(44, 2, 184, 0.5);
  color: #7d8aff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  word-break: keep-all;
}

.faq-toggle {
  font-size: 24px;
  color: #fff;
  font-weight: 500;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--orange);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px;
  color: var(--gray2);
  line-height: 1.5;
  word-break: keep-all;
  padding: 0 42px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 42px 20px;
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(180deg, #0A0A0A 0%, #16141F 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('https://img.megastudyacademy.co.kr/campus/iws_html_img/event/20260312/MEGASTUDY-3759/bottom_bg.png') center bottom / cover no-repeat;
  opacity: 0.1;
  z-index: -1;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-size: 22px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.cta-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -1.5px;
  white-space: nowrap;
  margin-bottom: 50px;
}

.cta-btns {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}
.cta-btns a{
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  padding: 20px 45px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.cta-bottom-phone {
  background: var(--blue-dark); 
}

.cta-bottom-phone:hover {
  /* transform: translateY(-3px) scale(1.02); */
  box-shadow: 0 15px 50px #220f70;
  filter: brightness(1.1);
}

.cta-bottom-outline {
  background: var(--blue);
}

.cta-bottom-outline:hover {
  background: rgba(44, 2, 184, 0.3);
  /* transform: translateY(-3px) scale(1.02); */
}


/* ── FLOATING BANNER ── */
.floating-banner {
  position: fixed;
  bottom: 75px;
  left: 50%;
  background: rgba(51, 51, 51, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 20px 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 612px;
  height: 80px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-banner-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.floating-banner-btn {
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 4px 14px var(--blue-bg2);
}

.floating-banner-btn:hover {
  background: var(--orange);
  /* transform: translateY(-1px); */
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── HERO ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  opacity: 0;
  animation: fadeInUp 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-inner > .hero-programs {
  opacity: 1;
  animation: none;
}

.hero-prog-img {
  opacity: 0;
  animation: fadeInUp 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-inner .hero-logo-badge  { animation-delay: 0.4s; }
.hero-inner .hero-title        { animation-delay: 0; }
.hero-inner .hero-btns-wrapper { animation-delay: 0.5s; }

/* ── BA SECTION ANIMATIONS ── */
.ba-section .section-header, .ba-row > * {
  opacity: 0;
  transform: translateY(20px);
}

.ba-section.visible .section-header, .ba-section.visible .ba-row > * {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ba-section.visible .ba-row:nth-child(1) .before-box{transition-delay: 0.2s;}
.ba-section.visible .ba-row:nth-child(1) .ba-arrow-col{transition-delay: 0.4s;}
.ba-section.visible .ba-row:nth-child(1) .after-box{transition-delay: 0.6s;}

.ba-section.visible .ba-row:nth-child(2) .before-box{transition-delay: 0.2s;}
.ba-section.visible .ba-row:nth-child(2) .ba-arrow-col{transition-delay: 0.4s;}
.ba-section.visible .ba-row:nth-child(2) .after-box{transition-delay: 0.6s;}

.ba-section.visible .ba-row:nth-child(3) .before-box{transition-delay: 0.2s;}
.ba-section.visible .ba-row:nth-child(3) .ba-arrow-col{transition-delay: 0.4s;}
.ba-section.visible .ba-row:nth-child(3) .after-box{transition-delay: 0.6s;}