.template-demo-section {
  /* margin: 60px 0; */
  /* margin: 80px 0; */
  /* background: #fff; */
  /* background: linear-gradient(to bottom, #f8f9fa, #ffffff); */
  /* max-width: 1100px; */
  /* margin: 0 auto; */
  background: #f9f9f9;
  padding-bottom: 40px;
}

.industry-news {
  /* margin: 80px 0; */
  padding-top: 80px;
  padding-bottom: 40px;
  background: #f9f9f9;
}

.news-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 18px;
  margin: 0;
}

.news-title a {
  color: #333;
  text-decoration: none;
}

.news-title a:hover {
  color: #3CB034;
}

.why-choose-us {
  /* margin: 80px 0; */
  padding-top: 80px;
  padding-bottom: 40px;
  /* background: #f9f9f9; */
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.advantage-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.advantage-card ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.advantage-card li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cta-button {
  background: #3CB034;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #2e9c26;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #333;
  /* margin-top: 80px; */
  margin-bottom: 40px;
  font-weight: 700; 
}
.section-subtitle{
  text-align: center; 
  font-size: 18px; 
  color: #666; 
  /* max-width: 800px;  */
  margin: 0 auto 60px;
}

.template-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 5px 10px;
  background: transparent;
  color: #666;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  margin: 0 5px;
  position: relative;
}

.tab-btn:hover {
  color: #3CB034;
}

.tab-btn.active {
  color: #3CB034;
  border-bottom-color: #3CB034;
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3CB034;
  animation: tabUnderline 0.3s ease-out;
}

@keyframes tabUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.template-content {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  background: #ffffff;
}

.template-demo-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.demo-description {
  flex: 0 0 45%;
  padding: 25px;
  background: rgba(250, 250, 250, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.demo-description h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 22px;
  font-weight: 600;
}

.demo-description p {
  color: #555;
  line-height: 2.8;
  margin-bottom: 18px;
  font-size: 15px;
}

.demo-description ul {
  padding-left: 20px;
  color: #666;
}

.demo-description li {
  margin-bottom: 8px;
}

.demo-preview {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 273px;
  height: 591px;
  border-radius: 40px;
  background: #f1f1f1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



/* .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
} */

/* .section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
} */

.template-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

/* .tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s;
} */

/* .tab-btn.active {
  background: #2D9EFC;
  color: white;
} */

.template-content {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.template-demo-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.demo-description {
  flex: 1;
}

.demo-preview {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* .iphone-frame {
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
} */

/* .iphone-frame img {
  width: 100%;
  height: auto;
  display: block;
} */

@media (min-width: 768px) {
  .template-demo-layout {
    flex-direction: row;
  }
  
  .demo-description {
    padding-right: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .template-demo-layout {
    flex-direction: row;
  }
  
  .demo-description {
    padding-right: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}