/* Timeline Styling */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #2e4ad8;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  /* margin: 2rem 0; */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #2e4ad8;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 1;
}

/* Timeline Content */
.timeline-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.timeline-content h2 {
  font-size: 1.5rem;
  color: #2e4ad8;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .timeline:before {
    left: 4%;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .timeline-item:before {
    left: 4%;
  }

  .timeline-content {
    max-width: 100%;
  }
}



/*Key Tips For Creating An Effective PhD Research Design*/
/* Section Styling */
.tips-section {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.tips-section h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Tips Container */
.tips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Tip Card */
.tip-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  flex: 1 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Icon Styling */
.tip-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgb(106, 90, 205);
}

/* Tip Heading */
.tip-card h2 {
  font-size: 1.25rem;
  color: rgb(106, 90, 205);
  margin-bottom: 0.5rem;
}

/* Tip Paragraph */
.tip-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive Design */

/* Small screens (phones and smaller tablets) */
@media (max-width: 768px) {
  .tip-card {
    flex: 1 1 calc(100% - 1rem);
    /* Full width for small screens */
    max-width: calc(100% - 1rem);
  }

  .tips-section h1 {
    font-size: 1.75rem;
    /* Smaller heading for small screens */
  }

  .tip-card .icon {
    font-size: 2rem;
    /* Slightly smaller icons */
  }

  .tip-card h2 {
    font-size: 1rem;
  }

  .tip-card p {
    font-size: 0.875rem;
  }
}

/* Large screens (desktops and wider) */
@media (min-width: 1200px) {
  .tip-card {
    flex: 1 1 calc(20% - 1rem);
    /* More compact layout on larger screens */
    max-width: calc(20% - 1rem);
  }

  .tips-section h1 {
    font-size: 2.5rem;
    /* Larger heading for large screens */
  }

  .tip-card .icon {
    font-size: 3rem;
    /* Larger icons */
  }

  .tip-card h2 {
    font-size: 1.5rem;
  }

  .tip-card p {
    font-size: 1.125rem;
  }
}


/*Steps For Implementation/ Design*/

.step-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}


.step {
  background: #fff;
  width: 250px;
  height: 300px;
  perspective: 1000px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.step:hover .step-back {
  transform: rotateY(0);
}

.step:hover .step-front {
  transform: rotateY(180deg);
}


.step-front,
.step-back {
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.step-front {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  transform: rotateY(0);
}

.step-front h3 {
  margin: 0;
  font-size: 1.5rem;
}

.step-front p {
  font-size: 1rem;
}


.step-back {
  background: #fafafa;
  color: #333;
  text-align: center;
  transform: rotateY(180deg);
  font-size: 0.95rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Media Queries */

/* Tablets */
@media (max-width: 768px) {
  .step-container {
    gap: 1rem;
  }

  .step {
    width: 200px;
    height: 250px;
  }

  .step-front h3 {
    font-size: 1.3rem;
  }

  .step-front p {
    font-size: 0.9rem;
  }
}

/* Phones */
@media (max-width: 576px) {
  .step {
    width: 180px;
    height: 230px;
  }

  .step-front h3 {
    font-size: 1.2rem;
  }

  .step-front p {
    font-size: 1.5rem;
  }

  .step-back {
    font-size: 1.1rem;
    
  }
}



/*Benefits of Research Implementation/ Design*/
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flex.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.flex.cards li {
  flex: 1 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  box-sizing: border-box;
  background-color: #f4f4f4;
  padding: 1rem;
  border: 1px solid 4043c8;
  border-radius: 8px;
  text-align: center;
}
/* Media Queries */

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .flex.cards li {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
  
  h1 {
    font-size: 1.8rem;
  }

  .flex.cards li h5 {
    font-size: 1.2rem;
  }

  .flex.cards li p {
    font-size: 0.95rem;
  }
}

/* Mobile Phones (576px to 767px) */
@media (max-width: 767px) {
  .flex.cards li {
    flex: 1 1 calc(100% - 1rem);
    max-width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  .flex.cards li h5 {
    font-size: 1.5rem;
  }

  .flex.cards li p {
    font-size: 1rem;
  }
}

/* Extra Small Mobile Phones (Below 576px) */
@media (max-width: 576px) {
  .wrapper {
    padding: 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .flex.cards li h5 {
    font-size: 1.5rem;
  }

  .flex.cards li p {
    font-size: 1rem;
  }
}