.gioi-thieu-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CẤU TRÚC CHUNG --- */
.page-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.main-section-title {
  font-weight: 700;
  margin-bottom: 32px;
  font-size: 60px;
  line-height: 72px;
}

.sub-section-title {
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 40px;
  line-height: 56px;
  letter-spacing: -0.34px;
}

@media (max-width: 1023px) {
  .main-section-title {
    font-size: 40px;
    line-height: 56px;
    margin-bottom: 24px;
  }

  .sub-section-title {
    font-size: 32px;
    line-height: 44px;
  }
}

.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 32px;
  line-height: 44px;
}

.highlight-text {
  color: #a40000;
}

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

/* --- SECTION 1: GIỚI THIỆU --- */
.intro-section {
  background-color: #edf7ff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.intro-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.intro-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-block.reversed {
  flex-direction: column-reverse;
}

.intro-block-text {
  flex: 1;
}

.intro-block-image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.block-subtitle {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  margin-bottom: 1.5rem;
}

.history-section {
  margin-bottom: 2.5rem;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-decorator {
  width: 84px;
  height: 2px;
  margin-bottom: 0.75rem;
  background-color: #a40000;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-description {
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .history-section {
    margin-bottom: 5rem;
  }
}

/* --- SECTION 2: THÀNH TỰU --- */
.achievements-section {
  margin-bottom: 2.5rem;
}

.achievements-section .section-title {
  margin-bottom: 2.5rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2.5rem;
}

.achievement-item {
  text-align: center;
  border-color: #a40000;
}

.achievement-counter {
  font-size: 3rem;
  margin: 0 auto;
  font-weight: 700;
  color: #a40000;
}

.achievement-label {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* --- SECTION 3: KHÓA HỌC --- */
.courses-section {
  margin-bottom: 2.5rem;
}

.courses-section .section-title {
  margin-bottom: 2.5rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.courses-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.about-course-card {
  border-width: 1px;
  border-style: solid;
  border-radius: 1rem;
}

.about-course-card.reversed {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

.about-course-card-content {
  padding: 1.5rem;
}

.about-course-card-title {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-course-card-image-wrapper {
  display: flex;
  justify-content: center;
  flex: none;
}

.about-course-card-image-wrapper-offset {
  display: flex;
  justify-content: center;
  margin-top: -3rem;
}

/* Styling riêng cho từng thẻ khóa học */
.about-course-card.ielts-general {
  background-color: rgba(246, 230, 230, 0.6);
  border-color: #a40000;
}
.about-course-card.ielts-academic {
  background-color: #fffaea;
  border-color: #ffcd32;
  height: 100%;
}
.about-course-card.ielts-junior {
  background-color: rgba(240, 234, 249, 0.6);
  border-color: #6929c4;
}
.about-course-card.english-communication {
  background-color: rgba(233, 246, 237, 0.6);
  border-color: #24a148;
}

/* --- SECTION 4: TẦM NHÌN & SỨ MỆNH --- */
.vision-mission-section {
  margin-bottom: 2.5rem;
}

.vision-mission-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vision-mission-text {
  flex: 1;
}

.vision-mission-paragraph {
  margin-bottom: 1rem;
}

.vision-mission-image {
  flex-shrink: 0;
}

/* --- SECTION 5: GIÁ TRỊ CỐT LÕI --- */
.core-values-section {
  margin-bottom: 2.5rem;
}

.core-values-section .section-title {
  margin-bottom: 2.5rem;
}

.core-values-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.core-value-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.core-value-text-wrapper {
  position: relative;
  padding-left: 1.75rem;
}

.core-value-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.core-value-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.875rem; /* 14px */
  display: flex;
  align-items: start;
  height: 100%;
}

.core-value-title {
  color: #004aad;
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  margin-bottom: 0.5rem;
}

/* --- RESPONSIVE CHO MÀN HÌNH LỚN --- */
@media (min-width: 768px) {
  /* md breakpoint */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .achievement-item:nth-child(odd) {
    border-right-width: 1px;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  /* lg breakpoint */
  .intro-section,
  .achievements-section,
  .courses-section,
  .vision-mission-section,
  .about-core-values-section {
    margin-bottom: 5rem;
  }

  .section-title {
    font-size: 40px;
    line-height: 56px;
    margin-bottom: 2rem;
  }

  .intro-container {
    gap: 3rem;
  }

  .intro-block {
    flex-direction: row;
    gap: 3rem;
  }

  .intro-block.reversed {
    flex-direction: row;
  }

  .block-subtitle {
    font-size: 40px;
    line-height: 56px;
  }

  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .achievement-item:nth-child(odd) {
    border-right-width: 0;
  }
  .achievement-item:not(:nth-child(3n)) {
    border-right-width: 1px;
  }

  .about-course-card.reversed {
    flex-direction: row;
  }
  .about-course-card-content {
    padding: 2.5rem 1.875rem;
  }

  .vision-mission-container {
    flex-direction: row;
    gap: 3rem;
    align-items: start;
  }

  .core-value-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    align-items: center;
  }
}

/* About Us - Core Values Section */
.about-core-values-section {
  margin-bottom: 40px;
}

.about-core-values-section .section-title {
  margin-bottom: 32px;
  text-align: left !important;
}

.about-core-values-slider-grid {
  display: grid;
  grid-template-columns: 1fr;
  place-items: start;
  gap: 32px;
}
.about-core-values-timeline-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.about-timeline-item {
  position: relative;
  cursor: pointer;
  padding: 16px 24px 16px 0;
}

.about-timeline-progress-bg {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background-color: rgba(100, 116, 139, 0.2);
}
.about-timeline-item.active .about-timeline-progress-bg {
  background-color: rgba(100, 116, 139, 0.5);
}
.about-timeline-progress-bar {
  height: 2px;
  width: 0;
  background-color: #174ea2;
}
.about-timeline-progress-bar.animate {
  animation-name: fill-progress;
  animation-duration: 5s;
  animation-timing-function: linear;
}
.about-timeline-item-content {
  display: flex;
  flex-direction: column;
}
.about-timeline-title {
  font-size: 24px;
  font-weight: 700;
  color: #d4d4d4;
  transition: color 0.3s;
}
.about-timeline-item:hover .about-timeline-title,
.about-timeline-item.active .about-timeline-title {
  color: #262626;
}
.about-timeline-description {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s;
}
.about-timeline-item.active .about-timeline-description {
  padding-top: 12px;
  height: auto;
  opacity: 1;
}

.about-timeline-mobile-image {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s;
}
.about-timeline-item.active .about-timeline-mobile-image {
  margin-top: 16px;
  height: auto;
  opacity: 1;
}
.about-timeline-mobile-image img {
  width: 100%;
  height: auto;
}

.about-core-values-image-panel {
  display: none; /* Hidden on mobile */
}
.about-slide-image-wrapper {
  transition: opacity 0.6s;
  visibility: hidden;
  max-height: 0;
  opacity: 0.5;
}
.about-slide-image-wrapper.active {
  visibility: visible;
  max-height: 100%;
  opacity: 1;
}
.about-slide-image {
  width: 100%;
}

.deadline-info-image img {
  width: 100%;
  height: 100%;
}

@keyframes fill-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .about-timeline-item {
    padding: 24px 0;
  }
  .about-timeline-title {
    font-size: 18px !important;
    line-height: 28px !important;
  }
}

@media (min-width: 1024px) {
  .about-core-values-section {
    margin-bottom: 80px;
  }
  .about-core-values-section .section-title {
    margin-bottom: 40px;
    text-align: center;
  }
  .about-core-values-slider-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
  }
  .about-core-values-timeline-nav {
    grid-column: span 5;
  }
  .about-timeline-mobile-image {
    display: none; /* Hide mobile images on desktop */
  }
  .about-core-values-image-panel {
    display: block; /* Show image panel on desktop */
    position: relative;
    grid-column: span 7;
    padding-left: 40px;
  }
}
