/* General & Grid System */
.ielts-junior-wrapper {
  color: #262626;
  line-height: 28px;
}

.ielts-junior-wrapper .error-text {
  color: white !important;
  font-size: 12px;
  line-height: 16px;
}

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

.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: 1024px) {
  .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-highlight-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  margin-bottom: 40px;
  margin-top: 0;
}

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

@media (min-width: 1024px) {
  .section-title {
    margin-bottom: 60px;
  }
  .section-highlight-title {
    font-size: 40px;
    line-height: 56px;
  }
}
/* Banner Section */
.banner-section {
  margin-bottom: 40px;
}
.banner-inner {
  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-background img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.banner-img-mobile {
  display: block;
}
.banner-img-desktop {
  display: none;
}
.banner-content-row {
  position: relative;
  padding-top: 120px;
}
.banner-content {
  position: relative;
  z-index: 1;
  color: white;
}
.banner-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 56px;
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .banner-section {
    margin-bottom: 80px;
  }
  .banner-img-mobile {
    display: none;
  }
  .banner-img-desktop {
    display: block;
  }
  .banner-title {
    font-size: 60px;
    margin-bottom: 32px;
  }
}

/* Consultation Form */
.consultation-form-block {
  background-color: #ba2027;
  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: #a40000;
    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);
  }
}

/* Features Section */
.features-section {
  margin-bottom: 40px;
}
.features-image-wrapper {
  display: flex;
  align-items: center;
  order: -1; /* Puts image first on mobile */
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.feature-icon {
  flex-shrink: 0;
}
.feature-text {
  flex: 1;
}
.feature-title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #262626;
}
@media (min-width: 1024px) {
  .features-section {
    margin-bottom: 80px;
  }
  .features-image-wrapper {
    order: 1; /* Puts image last on desktop */
  }
  .feature-title {
    font-size: 24px;
  }
}

/* Roadmap Section */
.roadmap-section {
  margin-bottom: 40px;
}

.roadmap-section .section-subtitle {
  text-align: left;
  margin-bottom: 40px;
}

.roadmap-tabs-container {
  position: relative;
  margin-bottom: 48px;
}

.roadmap-tabs {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  overflow-x: auto;
  overflow-y: hidden;
}
.roadmap-stage {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.roadmap-tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 176px;
  padding: 16px 0;
  border-radius: 8px;
  /* box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease-in-out;
  background-color: #f5f5f5;
  color: #737373;
  border: none;
  cursor: pointer;
  position: relative;
}
.roadmap-tab-button:hover {
  background-color: #e5e7eb;
}
.roadmap-tab-button.active {
  background-color: #a40000;
  color: white;
}

.roadmap-tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  transform: translateX(-78px);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #a40000;
  transition: all 0.5s ease-in-out;
}

.roadmap-tab-button .tab-title {
  font-weight: 400;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 28px;
  text-align: left;
}
.roadmap-tab-button .tab-subtitle {
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
  text-align: left;
}

.roadmap-section .section-title {
  text-align: left;
}

.roadmap-content-wrapper {
  margin-top: 80px;
}
.roadmap-content {
  display: none;
  background-color: #e2edff;
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 24px;
}
.roadmap-content.active {
  display: block;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.content-block {
  margin-bottom: 24px;
}
.content-title {
  font-weight: 700;
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 16px;
}
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-list li {
  display: flex;
  align-items: flex-start;
}
.content-list .arrow-icon {
  margin-top: 8px;
  margin-right: 8px;
  flex-shrink: 0;
}
.content-list span {
  color: #4b5563;
}
.content-list .list-disc {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 16px;
}

.deadline-info-section {
  margin-bottom: 40px;
}
.deadline-info-row {
  gap: 24px;
}
.deadline-info-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  margin-bottom: 24px;
}
.deadline-info-list {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 24px; /* pl-6 */
}

@media (min-width: 1024px) {
  .roadmap-content {
    padding: 40px;
  }
  .deadline-info-section {
    margin-bottom: 80px;
  }
  .roadmap-section .section-title {
    text-align: center;
    margin-bottom: 16px;
  }

  .deadline-info-row {
    gap: 0;
  }
  .deadline-info-title {
    font-size: 40px;
    line-height: 56px;
    margin-bottom: 40px;
  }
  .deadline-info-list {
    list-style-position: inside;
    padding-left: 16px; /* lg:pl-4 */
  }
  .roadmap-tab-button .tab-title {
    text-align: center;
  }
  .roadmap-tab-button .tab-subtitle {
    text-align: center;
  }
  .roadmap-section .section-subtitle {
    text-align: center;
    margin-bottom: 60px;
  }
}

.path-content-title {
  font-weight: 600;
  font-size: 18;
  margin-bottom: 16px;
}

.path-extra-info {
  margin-top: 2.5rem;
}

.path-extra-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 5. Signup Banner */
.signup-banner-section {
  margin-bottom: 2.5rem;
}
.signup-banner-section img {
  width: 100%;
}
@media (min-width: 1024px) {
  .signup-banner-section {
    margin-bottom: 5rem;
  }

  .path-content-title {
    font-size: 24px;
    line-height: 36px;
  }
}

/* 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: 1024px) {
  .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 */
  }
}

.roadmap-timeline-track {
  display: block;
  position: absolute;
  top: 118px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #69a6ff;
  transform: translateY(-50%);
}
.roadmap-timeline-dot {
  display: block;
  position: absolute;
  top: 110px; /* Adjust to center on the track */
  width: 16px;
  height: 16px;
  background-color: #69a6ff;
  border-radius: 50%;
  border: 2px solid white;
}

@media (min-width: 1024px) {
  .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: 1024px) {
  .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;
  }
}
