/* General Styles & Variables */
:root {
  --text-color-primary: #262626;
  --color-red: #a40000;
  --color-blue: #004aad;
  --color-blue-arrow: #428eff;
  --color-blue-light: #e2edff;
  --color-white: #ffffff;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --border-color-light: #slate-500/20;
  --border-color-active: #slate-500/50;
}

.ielts-junior-wrapper {
  color: var(--text-color-primary);
}

.ielts-junior-wrapper p {
  margin-top: 0;
  margin-bottom: 0;
}

.ielts-junior-wrapper h2 {
  margin-top: 0;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1246px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12,
.lg-col-5,
.lg-col-6,
.lg-col-7 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .lg-col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .lg-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .lg-col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

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

.text-center {
  text-align: center;
}
.desktop {
  display: none;
}
.mobile {
  display: block;
}
.desktop-break {
  display: none;
}
.mobile-break {
  display: block;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 40px;
    line-height: 56px;
    margin-bottom: 60px;
  }
  .desktop {
    display: block;
  }
  .mobile {
    display: none;
  }
  .desktop-break {
    display: block;
  }
  .mobile-break {
    display: none;
  }
}

/* Banner Section */
.banner-section {
  margin-bottom: 40px;
}
.banner-container {
  min-height: 718px;
  position: relative;
}
.banner-background {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
}
.banner-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.banner-content-row {
  position: relative;
  padding-top: 120px;
}
.banner-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}
.banner-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 56px;
  margin-bottom: 24px;
}
@media (min-width: 992px) {
  .banner-section {
    margin-bottom: 80px;
  }
  .banner-title {
    font-size: 60px;
    margin-bottom: 32px;
  }
}

/* Consultation Form */
.consultation-form-block {
  background-color: #a40000;
  padding: 32px 24px;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
  align-items: center;
}

.consultation-form-block .form-control:invalid {
  border-color: white;
}

.consultation-form-block option {
  color: #262626;
}

.error-text {
  color: white;
  font-size: 12px;
  line-height: 16px;
}
.form-title {
  font-weight: 700;
  color: white;
  font-size: 24px;
  line-height: 32px;
  flex-shrink: 0;
  margin: 0;
}
.form-fields-wrapper {
  width: 100%;
  flex-grow: 1;
}
.gr_fdknt {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.form-input:focus-visible {
  outline: none;
}

.form-input,
.form-select {
  width: 100%;
  padding: 8px 16px;
  border-radius: 0.375rem;
  background-color: transparent;
  color: white;
  border: 1px solid white;
}
.form-input::placeholder {
  color: white;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
.form-submit-button {
  width: 100%;
  padding: 8px 16px;
  border-radius: 0.375rem;
  background-color: white;
  color: #a40000;
  border: 1px solid white;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}
.form-title .title-break {
  display: none;
}

@media screen and (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .consultation-form-block .form-group {
    margin-bottom: 0;
  }
  .consultation-form-block {
    background-color: #ba2027;
    padding: 40px 64px;
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    margin-bottom: 80px;
  }
  .form-title {
    font-weight: 700;
    color: white;
    font-size: 32px;
    line-height: 44px;
    flex-shrink: 0;
    margin: 0;
  }
  .form-title .title-break {
    display: block;
  }
}

.invalid-feedback-white {
  color: white;
  font-size: 12px;
  line-height: 16px;
}

.form-submit-button {
  padding: 8px 16px;
  width: 100%;
  border-radius: 6px;
  background-color: white;
  color: #a40000;
  border: 1px solid white;
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .registration-section {
    margin-bottom: 80px;
  }
  .registration-form-container {
    flex-direction: row;
    padding: 40px 64px;
  }
  .registration-title .title-break {
    display: block;
  }
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Highlights Section */
.highlights-section {
  margin-bottom: 40px;
}
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.highlight-item {
  display: flex;
  gap: 1rem;
}
.highlight-icon {
  flex-shrink: 0;
}
.highlight-text {
  flex: 1;
}
.highlight-title {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}
.highlights-image-container {
  display: flex;
  align-items: center;
  order: -1;
}
@media (min-width: 992px) {
  .highlights-section {
    margin-bottom: 80px;
  }
  /* .highlights-list {
    gap: 40px;
  } */
  .highlight-title {
    font-size: 24px;
  }
  .highlights-image-container {
    order: 1;
  }
}

/* 4. Learning Path Section */
.learning-path-section {
  margin-bottom: 2.5rem;
}

.learning-path-section .section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  margin-bottom: 2.5rem;
}
@media (min-width: 992px) {
  .learning-path-section {
    margin-bottom: 5rem;
  }
  .learning-path-section .section-title {
    margin-bottom: 40px;
  }
  .section-subtitle {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px !important;
  }
}

.path-timeline-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

.path-wrapper {
  position: relative;
}

.path-tabs-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  padding: 0;
  overflow-x: auto;
  padding-bottom: 2.5rem;
  gap: 2rem;
}
.path-line {
  display: block;
  position: absolute;
  top: 108px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-blue-arrow);
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  .path-tabs-wrapper {
    overflow-x: visible;
    gap: 2.5rem;
  }
}

.path-tab-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}
.path-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 80px;
  border-radius: 0.5rem;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease-in-out;
  background-color: #f5f5f5;
  color: #737373;
  border: none;
  cursor: pointer;
  position: relative;
}
.path-tab-item:hover {
  background-color: #cccccc;
}
.path-tab-item.is-active {
  background-color: #a40000;
  color: white;
}
/* Triangle for active tab */
.path-tab-item.is-active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 45%;
  transform: rotate(180deg);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--color-red);
}

.path-tab-title {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 4px;
}
.path-tab-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
}

.path-dot {
  display: block;
  position: absolute;
  top: 108px; /* Same as line */
  margin-top: -8px; /* center it */
  width: 1rem;
  height: 1rem;
  background-color: var(--color-blue-arrow);
  border-radius: 9999px;
  border: 2px solid white;
}

@media (min-width: 992px) {
}

.path-content-area {
  margin-top: 3rem;
}
.path-content-panel {
  display: none;
}
.path-content-panel.is-active {
  display: block;
}
.path-content-grid {
  background-color: var(--color-blue-light);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.path-content-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .path-content-panel {
    padding-bottom: 0;
    padding-top: 0;
  }
  .path-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.path-content-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-gray-800);
  margin-bottom: 1rem;
}
.path-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.path-content-list ul {
  list-style: disc;
  list-style-position: inside;
  padding-left: 16px;
}

.path-content-list li {
  display: flex;
  align-items: flex-start;
  color: var(--color-gray-600);
}
.arrow-icon {
  flex-shrink: 0;
  margin-top: 7px;
  margin-right: 8px;
  width: 14px;
  height: 10px;
  background-color: var(--color-blue-arrow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.73598 0.203852C9.03761 -0.0800352 9.51226 -0.0656517 9.79615 0.235979L13.7962 4.48598C14.068 4.77477 14.068 5.22524 13.7962 5.51403L9.79615 9.76403C9.51226 10.0657 9.03761 10.08 8.73598 9.79615C8.43435 9.51226 8.41996 9.03761 8.70385 8.73598L11.5142 5.75H0.75C0.335786 5.75 0 5.41422 0 5C0 4.58579 0.335786 4.25 0.75 4.25H11.5142L8.70385 1.26403C8.41996 0.962395 8.43435 0.48774 8.73598 0.203852Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.73598 0.203852C9.03761 -0.0800352 9.51226 -0.0656517 9.79615 0.235979L13.7962 4.48598C14.068 4.77477 14.068 5.22524 13.7962 5.51403L9.79615 9.76403C9.51226 10.0657 9.03761 10.08 8.73598 9.79615C8.43435 9.51226 8.41996 9.03761 8.70385 8.73598L11.5142 5.75H0.75C0.335786 5.75 0 5.41422 0 5C0 4.58579 0.335786 4.25 0.75 4.25H11.5142L8.70385 1.26403C8.41996 0.962395 8.43435 0.48774 8.73598 0.203852Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center;
}
.path-extra-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Promo Banner Section */
.promo-banner-section {
  margin-bottom: 40px;
}
.promo-banner-section img {
  width: 100%;
}
@media (min-width: 992px) {
  .promo-banner-section {
    margin-bottom: 80px;
  }
}

/* Intro Section */
.intro-section {
  margin-bottom: 40px;
}

.intro-section h2 {
  margin-bottom: 16px;
}

.intro-row {
  gap: 24px;
}
.intro-section p {
  margin-bottom: 1em;
}
@media (min-width: 992px) {
  .intro-section {
    margin-bottom: 80px;
  }
  .intro-row {
    gap: 0;
  }
}

/* Lexical Chains Banner Section */
.lexical-chains-banner-section {
  position: relative;
  margin-bottom: 40px;
}
.desktop-banner-bg {
  display: none; /* hidden on mobile */
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  left: 0;
  top: 0;
}
.banner-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.content-container {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}
.text-wrapper {
  width: 100%;
}
.text-inner {
  position: relative;
  z-index: 1;
}
.lexical-chains-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #004aad;
  margin-bottom: 24px;
}
.lexical-chains-description {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
}
.lexical-chains-list {
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.lexical-chains-list li {
  font-weight: 600; /* font-semibold */
}
.mobile-banner-bg {
  display: block; /* block on mobile */
  position: relative;
  margin-top: 24px;
  width: 100%;
  height: 100%;
  z-index: 0;
  left: 0;
  top: 0;
}

@media (min-width: 992px) {
  .lexical-chains-banner-section {
    margin-bottom: 80px;
  }
  .desktop-banner-bg {
    display: block; /* lg:block */
  }
  .content-container {
    flex-direction: row;
  }
  .text-wrapper {
    width: 60%;
  }
  .text-inner {
    padding-top: 8rem; /* lg:pt-32 */
    padding-bottom: 12rem; /* lg:pb-48 */
  }
  .lexical-chains-title {
    font-size: 40px;
    line-height: 56px;
  }
  .mobile-banner-bg {
    display: none; /* lg:hidden */
  }
}

@media (min-width: 992px) {
  .roadmap-timeline-track {
    display: block;
    position: absolute;
    top: 108px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
    transform: translateY(-50%);
  }
  .roadmap-timeline-dot {
    display: block;
    position: absolute;
    top: 100px; /* Adjust to center on the track */
    width: 16px;
    height: 16px;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 2px solid white;
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Lexical Chains Benefits Section */
.benefits-section {
  margin-bottom: 40px;
}
.benefits-slider-grid {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 32px;
}
.benefits-timeline-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #d1d5db;
}
.timeline-item {
  position: relative;
  cursor: pointer;
  padding: 16px 24px;
}
.timeline-progress-bg {
  position: absolute;
  left: -2px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: rgba(100, 116, 139, 0.2);
}
.timeline-item.active .timeline-progress-bg {
  background-color: rgba(100, 116, 139, 0.5);
}
.timeline-progress-bar {
  height: 0;
  width: 100%;
  background-color: #004aad;
}
.timeline-progress-bar.animate {
  animation-name: fill-progress;
  animation-duration: 5s;
  animation-timing-function: linear;
}
.timeline-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(38, 38, 38, 0.5);
  transition: color 0.3s;
}
.timeline-item:hover .timeline-title,
.timeline-item.active .timeline-title {
  color: #262626;
}
.timeline-description {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s;
}
.timeline-item.active .timeline-description {
  height: auto;
  opacity: 1;
}

.benefits-image-panel {
  position: relative; /* Needed to stack images */
  width: 100%;
}
.slide-image-wrapper {
  transition: opacity 0.6s;
  visibility: hidden;
  max-height: 0;
  opacity: 0.5;
}
.slide-image-wrapper.active {
  visibility: visible;
  max-height: 100%;
  opacity: 1;
}
.slide-image {
  width: 100%;
}

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

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

@media (min-width: 992px) {
  .benefits-section {
    margin-bottom: 80px;
  }
  .benefits-slider-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
  }
  .benefits-timeline-nav {
    grid-column: span 5;
  }
  .benefits-image-panel {
    grid-column: span 6 / span 6;
    grid-column-start: 7;
  }
}
