/* ==============================
   상상코칭 첫번째 스크롤 모션 섹션
   기존 CSS 충돌 방지용 신규 클래스
============================== */

.sgIntroScroll {
  position: relative;
  height: 180vh;
  background: #f3f3f3;
}

.sgIntroSticky {
  position: sticky;
  top: 0;
  height: 130vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sgIntroText {
  text-align: center;
  margin-bottom: 88px;
  z-index: 2;
}

.sgIntroText p {
  margin: 0 0 6px;
  font-size: 44px;
  font-weight: 500;
  color: #111;
  line-height: 1.3;
}

.sgIntroText h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

.sgIntroText h2 span {
  color: #d01818;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sgIntroPhotoWrap {
  position: relative;
  width: 100%;
  /*max-width: 1100px;*/
  height: 800px;
  border-radius: 20px!important;
  overflow: hidden;
  transform-origin: center center;
  transition: none;
}

.sgIntroPhoto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 로고 오버레이 */
.sgIntroLogoOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.sgIntroLogo {
  width: 220px;
  max-width: 40%;
  opacity: 0;
  transform: scale(0.4);
  transition: none;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.18));
}

.sgIntroLogo.is-popped {
  animation: sgLogoPop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

@keyframes sgLogoPop {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.12); }
  80%  { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==============================
   두번째 섹션 - 티칭에 코칭을 더하다
============================== */

.sgTeachSection {
  background: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
}

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

/* 상단 텍스트 */
.sgTeachHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 72px;
}

.sgTeachHeaderLeft {
  flex: 0 0 auto;
}

.sgTeachLabel {
  font-size: 25px;
  font-weight: 500;
  color: #1a5bc4;
  margin: 0 0 14px;
}

.sgTeachTitle {
  font-size: 44px;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin: 0;
}

.sgTeachHeaderRight {
  flex: 1;
  padding-top: 36px;
}

.sgTeachDesc {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* 슬라이더 */
.sgTeachSliderWrap {
  width: 100%;
  overflow: hidden;
}

.sgTeachSliderTrack {
  display: flex;
  gap: 24px;
  will-change: transform;
  cursor: grab;
}

.sgTeachSliderTrack:active {
  cursor: grabbing;
}

.sgTeachSlide {
  flex: 0 0 calc(33.333% - 16px);
  border-radius: 16px!important;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f0ede8;
}

.sgTeachSlideImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sgTeachSlide:hover .sgTeachSlideImg {
  transform: scale(1.04);
}

/* 모바일 */
@media (max-width: 768px) {
  .sgIntroScroll {
    height: 170vh;
  }
	
.sgIntroSticky {
  height: 85vh;
}
	

  .sgIntroText {
    margin-bottom: 42px;
    padding: 0 20px;
  }

  .sgIntroText p {
    font-size: 23px;
  }

  .sgIntroText h2 {
    font-size: 23px;
  }

  .sgIntroPhotoWrap {
    width: 86%;
    height: 260px;
    border-radius: 0px!important;
  }

  /* 티칭 섹션 모바일 */
  .sgTeachSection {
    padding: 60px 0 56px;
  }

  .sgTeachInner {
    padding: 0 20px;
  }

  .sgTeachHeader {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .sgTeachHeaderRight {
    padding-top: 0;
  }

  .sgTeachTitle {
    font-size: 23px;
  }

  .sgTeachLabel {
    font-size: 18px;
  }

  .sgTeachDesc {
    font-size: 16px;
  }

  /* 모바일 슬라이드: 1장씩 꽉 차게 */
  .sgTeachSlide {
    flex: 0 0 80vw;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .sgTeachSliderTrack {
    gap: 16px;
  }
}

/* ==============================
   세번째 섹션 - 교육에 깊이를 더하다
============================== */

.sgDepthSection {
  background: #f3f3f3;
  padding: 100px 0 80px;
}

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

/* 상단 타이틀 */
.sgDepthHeader {
  text-align: center;
  margin-bottom: 80px;
}

.sgDepthLabel {
  font-size: 25px;
  font-weight: 500;
  color: #e87722;
  margin: 0 0 16px;
}

.sgDepthTitle {
  font-size: 44px;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin: 0;
}

/* 각 행 공통 */
.sgDepthRow {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 80px;
}

.sgDepthRow:last-child {
  margin-bottom: 0;
}

/* 이미지 */
.sgDepthImg {
  flex: 0 0 46%;
  min-width: 0;
}

.sgDepthImg img {
  width: 100%;
  border-radius: 16px!important;
  display: block;
}

/* 텍스트 */
.sgDepthText {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.sgDepthTextRev {
  text-align: right;
}

.sgDepthPoint {
  font-size: 16px;
  font-weight: 600;
  color: #e87722;
  margin: 0 0 12px;
}

.sgDepthSubTitle {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
 padding-bottom	: 0px;
}

.sgDepthDesc {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── AOA 스크롤 모션 ── */
.sgAoa {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sgAoa.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 모바일 */
@media (max-width: 768px) {
  .sgDepthSection  { padding: 60px 0 56px; }
  .sgDepthInner    { padding: 0 20px; }
  .sgDepthHeader   { margin-bottom: 48px; }
  .sgDepthTitle    { font-size: 23px; }
  .sgDepthLabel    { font-size: 18px; }

  /* 모바일: 모든 행 세로 전환 */
  .sgDepthRow {
    flex-direction: column !important;
    gap: 24px;
    margin-bottom: 56px;
  }

  .sgDepthImg {
    flex: none;
    width: 100%;
    order: 1; /* 이미지 항상 위 */
  }

.sgDepthText {
    order: 2;
    text-align: left !important; /* sgDepthTextRev 등 어떤 클래스도 오버라이드 */
  }

  .sgDepthPoint,
  .sgDepthSubTitle,
  .sgDepthDesc {
    text-align: left !important;
  }

  .sgDepthSubTitle { font-size: 20px; }
  .sgDepthDesc     { font-size: 16px; }
}

@media (max-width: 768px) {
  /* 기존 내용 유지하고 아래 두 줄만 추가 */
  .sgDepthTextRev {
    text-align: left !important;
  }
}

/* ==============================
   네번째 섹션 - 브랜드 자동 흐름 슬라이더
============================== */

.sgBrandSection {
  background: #fff;
  padding: 100px 0;
  overflow: hidden;
}

.sgBrandHeader {
  text-align: center;
  margin-bottom: 80px;
}

.sgBrandHeader p {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 500;
  color: #1a5bc4;
}

.sgBrandHeader h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
}

/* 각 줄 래퍼 */
.sgBrandRow {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 20px;
  /* 양쪽 페이드 마스크 */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.sgBrandRow:last-child {
  margin-bottom: 0;
}

/* 트랙 – 두 벌 나란히 배치해 무한 루프 */
.sgBrandTrack {
  display: flex;
  gap: 16px;
  will-change: transform;
  /* 애니메이션은 JS로 제어하지 않고 CSS animation 사용 */
}

.sgBrandTrack--fwd {
  animation: sgBrandScrollFwd 30s linear infinite;
}

.sgBrandTrack--rev {
  animation: sgBrandScrollRev 30s linear infinite;
}

@keyframes sgBrandScrollFwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes sgBrandScrollRev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* 카드 아이템 */
.sgBrandItem {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* 모바일 */
@media (max-width: 768px) {
  .sgBrandSection {
    padding: 56px 0;
  }

  .sgBrandHeader {
    margin-bottom: 48px;
    padding: 0 20px;
  }

  .sgBrandHeader p {
    font-size: 18px;
  }

  .sgBrandHeader h2 {
    font-size: 23px;
  }

  .sgBrandRow {
    margin-bottom: 14px;
  }

  .sgBrandItem {
    min-width: 100px;
  }

  .sgBrandItem img {
    height: 70px;
  }

  .sgBrandTrack--fwd {
    animation-duration: 50s;
  }

  .sgBrandTrack--rev {
    animation-duration: 50s;
  }
}
