/* hero for Tips page  */
.tips-intro {
  background: linear-gradient(270deg, #7f42a7, #5300a0);
  background-size: 400% 400%;
  animation: backgroundLoop 5s ease infinite;
  color: white;
  padding: 3.5rem 1.5rem; 
  text-align: center;
}

.tips-intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.tips-intro-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.underline {
  width: 60px;
  height: 4px;
  background-color: white;
  margin: 1rem auto 1.5rem auto;
  border-radius: 2px;
}

.tips-intro-content p{
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-top: 0.5rem;
}


@keyframes backgroundLoop {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.timeline{
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 3rem 0;
}

.timeline-item {
  background: #f1f0f1;
  border-left: 5px solid #5300a0;
  border-radius: 8px;
  padding: 2rem 2rem 2rem 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.timeline-icon{
  position: absolute;
  top: 2rem;
  left: -1.4rem;
  background: #5300a0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.timeline-content p{
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}


.responsive-video {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  margin: 0 auto; 
  max-width: 800px; 
  width: 100%; 

}

.responsive-video iframe {
  position: absolute;
  width: 100%; 
  height: 100%;
}


/* Second Section */
.tips-advanced {
  background: linear-gradient(270deg, #7f42a7, #5300a0);
  background-size: 400% 400%;
  animation: heroBackgroundLoop 5s ease infinite; 
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.tips-advanced .tips-advanced-content{
  max-width: 800px;
  margin: 0 auto;
}

.tips-advanced .tips-advanced-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.tips-advanced .tips-advanced-content p{
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.8;
}

@keyframes heroBackgroundLoop {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.tips-advanced .tips-advanced-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.tips-advanced .tips-advanced-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.tips-main{
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.tips-category {
  margin-bottom: 4rem;
}

.tips-category h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #5300a0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tip-card{
  background: #f1f0f1;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.tip-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

@media(max-width: 768px) {
  .tips-advanced .tips-advanced-content h1 {
    font-size: 2.2rem;
  }
  .tips-grid {
    gap: 1.5rem;
  }
  .timeline {
    padding: 2rem 1rem;
  }

  .timeline-item {
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  }

  .timeline-icon {
    top: 1.5rem;
    left: -1.2rem;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .timeline-content h2 {
    font-size: 1.5rem;
  }

  .timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
}


