.timeline {
  position: relative;
  margin: 80px auto;
  height: 720px;
  /* matches arrow2.svg height */
  display: flex;
  justify-content: center;
  align-items: center;
}

.pro22 {
  display: none;
}

.literacy-section1 {
  display: none;
}

/* Center SVG arrow */
.arrow-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Common item styles */
.timeline-item {
  position: absolute;
  width: 40%;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.timeline-item.left {
  justify-content: flex-end;
  text-align: right;
}

.timeline-item.right {
  justify-content: flex-start;
  text-align: left;
}

/* Icons */
.timeline-item .icon {
  flex-shrink: 0;
}

/* Text content */
.timeline-item .content {
  max-width: 280px;
  text-align: center;
}

.timeline-item .content h3 {
  font-size: 27px;
  font-family: "Itim", cursive;
  color: #000;
  margin: 0 0 5px;
}

.timeline-item .content .age {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-item .content p {
  font-size: 20px;
  font-family: "Itim", cursive;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

/* Adjusted positions (aligned with your arrow2.svg nodes) */
.seed {
  bottom: 40px;
  left: 2%;
}

.literacy-text h3 {
  color: #fff;
  font-family: "Itim", cursive;
  font-size: 24px !important;
}

.literacy-text p {
  color: #fff;
  font-family: "Itim", cursive;
  font-size: 15px !important;
}

.mind {
  bottom: 200px;
  right: -5%;
}

.voice {
  bottom: 360px;
  left: -4%;
}

.next {
  color: #fff;
  font-size: 36px;
  font-family: "Itim", cursive;
}

.next1 {
  color: #fff;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}

.next2 {
  color: #fff;
  font-size: 25px;
  font-family: "Roboto", sans-serif;
}

.eloquent {
  bottom: 520px;
  right: 0%;
}

.literacy-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.literacy-section .sub-heading {
  font-size: 16px;
  margin: 0;
  color: #000;
  font-family: "Roboto", sans-serif;
}

.top-top {
  top: -70px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
}

.literacy-section .main-heading {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0;
  font-family: "Poppins", sans-serif;
  color: #000;
}

.text-top {
  margin-bottom: 110px;
}

.literacy-section .small-heading {
  font-size: 16px;
  margin-bottom: 60px;
  color: #444;
}

.literacy-graphic {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.literacy-center {
  width: 83%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Common text block styling */
.literacy-text {
  position: absolute;
  color: #000;
  font-family: "Itim", cursive;
  line-height: 1.4;
}

.literacy-text h3 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
}

.literacy-text p {
  font-size: 13px;
  margin: 0;
}

/* Positioning around the SVG based on image layout */
.top-left {

  top: -10px;
  left: -150px;

  text-align: right;
}

.bottom-center {
 bottom: -64px;
    right: 145px;
  text-align: left;
}

.mid-center {
  bottom: -64px;
    left: 40px;
  text-align: right;
}

.mid-left {
  top: 125px;
  left: -170px;
  text-align: right;
}

.bottom-left {
  bottom: 100px;
  left: -105px;

  text-align: right;
}

.top-right {
  top: -11px;
  right: -200px;
  text-align: left;
}

.mid-right {
  top: 125px;
  right: -153px;
  text-align: left;
}

.bottom-right {
  bottom: 90px;
  right: -170px;
  text-align: left;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .top-left {
    top: -17px;
    left: -121px;
    text-align: right;
  }

  .bottom-left {
    bottom: 102px;
    left: -10px;
    text-align: right;
  }

  .bottom-right {
    bottom: 99px;
    right: 13px;
    text-align: left;
  }

  .top-left {
    top: -50px;
    left: -79px;
    text-align: right;
  }

  .mid-right {
    top: 135px;
    right: 4px;
    text-align: left;
  }

  .top-right {
    top: -11px;
    right: 26px;
    text-align: left;
  }

  .mid-left {
    top: 139px;
    left: -20px;
    text-align: right;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .mid-left {
    top: 157px;
    left: -50px;
    text-align: right;
  }

  .top-right {
    top: -11px;
    right: -70px;
    text-align: left;
  }

  .mid-right {
    top: 157px;
    right: -10px;
    text-align: left;
  }

  .bottom-right {
    bottom: 133px;
    right: -55px;
    text-align: left;
  }

  .top-left {
    top: -15px;
    left: -25px;

    text-align: right;
  }

  .bottom-left {
    bottom: 130px;
    left: 2px;
    text-align: right;
  }

  .literacy-center {
    width: 53% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .pro21 {
    display: none;
  }

  .literacy-text p {
    color: #fff;
    font-family: "Itim", cursive;
    font-size: 16px !important;
  }

  .next2 {
    color: #fff;
    font-size: 20px !important;
    font-family: "Roboto", sans-serif;
  }



  .target {
    max-width: 100px;
  }

  .literacy-section {
    display: none;
  }

  .eloquent {
    bottom: 820px !important;
    left: 1% !important;
  }

  .mind {
    bottom: 320px;
    left: 1% !important;
  }

  .seed {
    bottom: 40px;
    left: 1% !important;
  }

  .timeline {
    position: relative;
    margin: 40px auto;
    height: 1250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .timeline-item .content h3 {
    font-size: 20px !important;
    font-family: "Itim", cursive;
    color: #000;
    margin: 0 0 5px;
  }

  .timeline-item .content p {
    font-size: 16px !important;
    font-family: "Itim", cursive;
    color: #000;
    line-height: 26px !important;
    margin: 0;
  }

  .icon {
    width: 75px;
  }

  .voice {
    bottom: 540px;
    left: 1% !important;
  }

  .timeline-item {
    position: absolute;
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 2;
  }

  .timeline-item .content {
    max-width: 100%;
    text-align: left;
  }

  .timeline-item.left {
    justify-content: flex-end;
    text-align: left !important;
  }

  .literacy-section1 {
    text-align: center;
    padding: 80px 0;
    display: inline !important;
    position: relative;
    overflow: hidden;
  }

  .literacy-section1 .sub-heading {
    font-size: 16px;
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
  }

  .text-top {
    margin-bottom: 30px !important;
  }

  .literacy-text {
    position: relative !important;
    color: #000;
    font-family: "Itim", cursive;
    line-height: 20px;
    margin: 20px 0px;
  }

  .literacy-section {
    display: none;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .pro22 {
    display: inline;
    margin-top: 0px !important;
  }

  .arrow-line {
    position: absolute;
    top: 0;
    left: 10% !important;
    transform: translateX(-50%);
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .pro21 {
    display: none;
  }

  .literacy-section {
    display: none;
  }

  .eloquent {
    bottom: 775px !important;
    left: 0% !important;
  }

  .mind {
    bottom: 330px;
    left: 0% !important;
  }

  .seed {
    bottom: 100px;
    left: 0% !important;
  }

  .timeline {
    position: relative;
    margin: 40px auto;
    height: 1160px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .icon {
    width: 75px;
    margin-bottom: 10px;
  }

  .timeline-item img {
    margin-bottom: 20px;
  }

  .timeline-item .content h3 {
    font-size: 20px !important;
    font-family: "Itim", cursive;
    color: #000;
    margin: 0 0 5px;
  }

  .timeline-item .content p {
    font-size: 16px !important;
    font-family: "Itim", cursive;
    color: #000;
    line-height: 26px !important;
    margin: 0;
  }

  .icon {
    width: 75px;
    margin-bottom: 10px;
  }

  .timeline-item img {
    margin-bottom: 20px;
  }

  .voice {
    bottom: 560px;
    left: 0% !important;
  }

  .timeline-item {
    position: absolute;
    width: 100% !important;
    display: block;
    align-items: center;
    gap: 12px;
    z-index: 2;
  }

  .timeline-item .content {
    max-width: 75%;
    text-align: left;
  }

  .timeline-item.left {
    justify-content: flex-start;
    text-align: left !important;
  }

  .pro22 {
    display: inline;
    margin-top: 0px !important;
  }

  .arrow-line {
    position: absolute;
    top: 0;
    left: 5% !important;
    transform: translateX(-50%);
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .literacy-section1 {
    text-align: center;
    padding: 80px 0;
    display: inline !important;
    position: relative;
    overflow: hidden;
  }

  .literacy-section1 .sub-heading {
    font-size: 16px;
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .timeline-item {
    position: absolute;
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 2;
  }

  .literacy-section1 {
    text-align: center;
    padding: 80px 0;
    display: inline !important;
    position: relative;
    overflow: hidden;
  }

  .literacy-section1 .sub-heading {
    font-size: 16px;
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
  }

  .text-top {
    margin-bottom: 30px !important;
  }

  .literacy-text {
    position: relative !important;
    color: #000;
    font-family: "Itim", cursive;
    line-height: 20px;
    margin: 20px 0px;
  }

  .literacy-section {
    display: none;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .target {
    max-width: 100px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .pro21 {
    display: none;
  }

  .literacy-section1 {
    text-align: center;
    padding: 80px 0;
    display: inline !important;
    position: relative;
    overflow: hidden;
  }

  .literacy-section1 .sub-heading {
    font-size: 16px;
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
  }

  .text-top {
    margin-bottom: 30px !important;
  }

  .literacy-text {
    position: relative !important;
    color: #000;
    font-family: "Itim", cursive;
    line-height: 20px;
    margin: 20px 0px;
  }

  .literacy-section {
    display: none;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .timeline {
    position: relative;
    margin: 80px auto;
    height: 1500px !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .eloquent {
    bottom: 1100px !important;
    left: 1% !important;
  }

  .mind {
    bottom: 465px;
    left: 1% !important;
  }

  .seed {
    bottom: 180px;
    left: 1% !important;

  }

  .target {
    max-width: 100px;
  }

  .voice {
    bottom: 760px;
    left: 1% !important;
  }

  .timeline-item.left {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .pro22 {
    display: inline;
    margin-top: 0px !important;
  }

  .arrow-line {
    position: absolute;
    top: 0;
    left: 5% !important;
    transform: translateX(-50%);
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .timeline-item {
    position: absolute;
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 2;
  }

  .timeline-item .content {
    max-width: 75% !important;
    text-align: left;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .literacy-section1 {
    text-align: center;
    padding: 80px 0;
    display: inline !important;
    position: relative;
    overflow: hidden;
  }

  .text-top {
    margin-bottom: 30px !important;
  }

  .literacy-text {
    position: relative !important;
    color: #000;
    font-family: "Itim", cursive;
    line-height: 20px;
    margin: 20px 0px;
  }

  .literacy-section {
    display: none;
  }

  .literacy-center {
    width: 45% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .literacy-section1 .sub-heading {
    font-size: 16px;
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
  }

  .pro21 {
    display: none;
  }

  .literacy-section {
    display: none;
  }

  .target {
    max-width: 100px;
  }

  .timeline {
    position: relative;
    margin: 80px auto;
    height: 1300px !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .eloquent {
    bottom: 900px !important;
    left: 2% !important;
  }

  .mind {
    bottom: 325px;
    left: 2% !important;
  }

  .seed {
    bottom: 35px;
    left: 2% !important;
  }

  .voice {
    bottom: 610px;
    left: 2% !important;
  }

  .timeline-item.left {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .timeline-item .content {
    max-width: 75% !important;
    text-align: left;
  }

  .pro22 {
    display: inline;
    margin-top: 0px !important;
  }

  .arrow-line {
    position: absolute;
    top: 0;
    left: 5% !important;
    transform: translateX(-50%);
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .timeline-item {
    position: absolute;
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
  }
}