/* Contract Section */
/* Contract Section */
/* Contract Section */

.contract-section {
  padding: 80px 0;
  background: #fff;
}

.contract-content {
  max-width: 800px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contract-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contract-content p:last-child {
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 100px;
}

/* 교육 철학 섹션 (ED Section) */
/* 교육 철학 섹션 (ED Section) */
/* 교육 철학 섹션 (ED Section) */

.ed-section {
  padding: 80px 0;
  background: #fff;
}

.ed-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary-yellow);
  margin-bottom: 0.5rem;
}

.ed-section .section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 4rem;
}

.ed-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ed-box1,
.ed-box2,
.ed-box3 {
  flex: 1;
  padding: 40px 30px;
  position: relative;
  min-height: 400px;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ed-box2 {
  background-position: 70%;
}

.ed-box3 {
  background-position: 70%;
}

.ed-box1 > .ed-box1-text1,
.ed-box2 > .ed-box2-text1,
.ed-box3 > .ed-box3-text1 {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px 20px;
  color: white;
  width: fit-content;
  max-width: 500px;
}

.ed-box1-text1 h3,
.ed-box2-text1 h3,
.ed-box3-text1 h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.3;
}

.ed-box1-text1 p,
.ed-box2-text1 p,
.ed-box3-text1 p {
  line-height: 1.6;
  color: white;
  margin-bottom: 1rem;
}

.ed-box1-text1 p:last-child,
.ed-box2-text1 p:last-child,
.ed-box3-text1 p:last-child {
  margin-bottom: 0;
}

.ed-box1-text2,
.ed-box2-text2,
.ed-box3-text2 {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.ed-box1-text2 p,
.ed-box2-text2 p,
.ed-box3-text2 p {
  color: white;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: right;
}

.ed-box1-text2 p:last-child,
.ed-box2-text2 p:last-child,
.ed-box3-text2 p:last-child {
  margin-bottom: 0;
}

.ed-box1 {
  background-image: url("../../asset/images/ed1.png");
}

.ed-box2 {
  background-image: url("../../asset/images/ed2.png");
}

.ed-box3 {
  background-image: url("../../asset/images/ed3.png");
}

/* 하이엔드 섹션 */
/* 하이엔드 섹션 */
/* 하이엔드 섹션 */

.highend-section {
  padding: 80px 0;
  background: #fff;
}

.highend-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary-yellow);
  margin-bottom: 0.5rem;
}

.highend-section .section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 4rem;
}

/* 첫 번째 행: 이미지(좌) + 텍스트(우) */
.highend-row-1 {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.highend-image-1 {
  flex: 3;
}

.highend-text-1 {
  text-align: right;
  flex: 2;
}

/* 두 번째 행: 텍스트(좌) + 이미지(우) */
.highend-row-2 {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.highend-text-2 {
  text-align: left;
  flex: 2;
}

.highend-image-2 {
  flex: 3;
}

/* 공통 이미지 박스 스타일 */
/* 공통 이미지 박스 스타일 */
/* 공통 이미지 박스 스타일 */

.image-box {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
}

.image-box-1 {
  background: url("../../asset/images/he1.png");
  background-size: cover;
  background-position: center;
}

.image-box-2 {
  background: url("../../asset/images/he2.png");
  background-size: cover;
  background-position: center;
  filter: contrast(1.1);
}

/* 공통 텍스트 스타일 */
/* 공통 텍스트 스타일 */
/* 공통 텍스트 스타일 */

.highend-text-1 h3,
.highend-text-2 h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.highend-text-1 p,
.highend-text-2 p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.highend-text-1 p:last-child,
.highend-text-2 p:last-child {
  margin-bottom: 0;
}

/* 메소드 섹션 */
/* 메소드 섹션 */
/* 메소드 섹션 */

.method-section {
  padding: 80px 0;
  background: #fff;
}

.method-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary-yellow);
  margin-bottom: 0.5rem;
}

.method-section .section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 4rem;
}

.card-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.method-card1,
.method-card2,
.method-card3,
.method-card4 {
  flex: 1 1 0;
  margin: 0 10px;
  border-radius: 10px;
  padding: 0px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-card-image1 img,
.method-card-image2 img,
.method-card-image3 img,
.method-card-image4 img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.method-card-text1,
.method-card-text2,
.method-card-text3,
.method-card-text4 {
  padding: 20px 20px 5px 20px;
}

.method-card-text1 h3,
.method-card-text2 h3,
.method-card-text3 h3,
.method-card-text4 h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.method-card-text1 p,
.method-card-text2 p,
.method-card-text3 p,
.method-card-text4 p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.method-card-text1 p:last-child,
.method-card-text2 p:last-child,
.method-card-text3 p:last-child,
.method-card-text4 p:last-child {
  margin-bottom: 0;
}

/* Slider Section */
/* Slider Section */
/* Slider Section */

.slider-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-container {
  position: relative;
  height: 100%;
}

.slider-wrapper {
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.has-background {
  background-color: transparent;
}

.slide:not(.has-background) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.slide-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* Slider Navigation - 숨김 처리 */
.slider-nav {
  display: none;
}

.slider-prev,
.slider-next {
  display: none;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* 솔루션 섹션 */
/* 솔루션 섹션 */
/* 솔루션 섹션 */

.solution-section {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.solution-section .section-title {
  color: var(--color-primary-yellow);
}

.solution-boxes {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.solution-box {
  flex: 1;
  padding: 40px 30px;
  color: #fff;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.solution-box h3,
.solution-box p {
  position: relative;
  z-index: 3;
}

/* 각 박스별 부분 오버레이 */
.box-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(5px);
  z-index: 2;
}

.box-2::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(5px);
  z-index: 2;
}

.box-3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
  backdrop-filter: blur(5px);
  z-index: 2;
}

/* 비정형 사각형 스타일 */
.box-1 {
  border-radius: 0;
  min-height: 640px;
  margin-top: -20px;
  margin-bottom: 20px;
}

.box-2 {
  border-radius: 0;
  min-height: 640px;
  margin-top: 40px;
  margin-bottom: -40px;
}

.box-3 {
  border-radius: 0;
  min-height: 640px;
}

.solution-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.solution-box p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.text-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .ed-section .section-title,
  .highend-section .section-title,
  .method-section .section-title,
  .solution-section .section-title {
    font-size: 1.5rem;
  }

  .ed-section .section-subtitle,
  .highend-section .section-subtitle,
  .method-section .section-subtitle,
  .solution-section .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .solution-section {
    padding: 60px 0;
  }

  .solution-boxes {
    flex-direction: column;
    gap: 0;
  }

  .solution-box {
    margin: 20px 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
  }

  .solution-box h3 {
    font-size: 1.2rem;
  }

  .solution-box p {
    font-size: 0.9rem;
  }

  .method-section {
    padding: 60px 0;
  }

  .card-container {
    flex-direction: column;
    gap: 20px;
  }

  .method-card1,
  .method-card2,
  .method-card3,
  .method-card4 {
    margin: 0 !important;
    width: 100%;
  }

  .method-card-image1 img,
  .method-card-image2 img,
  .method-card-image3 img,
  .method-card-image4 img {
    border-radius: 0 !important;
  }

  .method-card-text1 h3,
  .method-card-text2 h3,
  .method-card-text3 h3,
  .method-card-text4 h3 {
    font-size: 1.1rem;
  }

  .method-card-text1 p,
  .method-card-text2 p,
  .method-card-text3 p,
  .method-card-text4 p {
    font-size: 0.9rem;
  }

  .method-card-text1,
  .method-card-text2,
  .method-card-text3,
  .method-card-text4 {
    padding: 20px 20px 6px;
  }

  .highend-section {
    padding: 60px 0;
  }

  .highend-row-1,
  .highend-row-2 {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .highend-row-1 {
    margin-bottom: 4rem;
  }

  .highend-image-1,
  .highend-image-2,
  .highend-text-1,
  .highend-text-2 {
    flex: 1;
    width: 100%;
  }

  .image-box {
    height: 200px;
    border-radius: 0;
  }

  .highend-text-1 h3,
  .highend-text-2 h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .highend-text-1 p,
  .highend-text-2 p {
    font-size: 0.9rem;
  }

  .text-section .section-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
}
