/* Article Detail Styles */
.article-detail {
  padding: 40px 0;
  background: #f9fafc;
}

.article-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 25px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.category-badge {
  background: linear-gradient(135deg, #004080, #0077cc);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.date, .read-time {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-weight: 700;
}

.article-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-author img {
  border-radius: 50%;
  object-fit: cover;
}

.article-author div {
  display: flex;
  flex-direction: column;
}

.article-author span:first-child {
  font-weight: 600;
  color: #333;
}

.article-author span:last-child {
  font-size: 0.9rem;
  color: #666;
}

.article-hero {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.95rem;
}

.article-body {
  line-height: 1.8;
  color: #333;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #004080;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f8;
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: #0056b3;
  font-weight: 600;
}

.article-body h4 {
  font-size: 1.2rem;
  margin: 25px 0 12px;
  color: #0066cc;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.article-body blockquote {
  border-left: 4px solid #004080;
  padding: 15px 20px;
  margin: 25px 0;
  background: #f8fafd;
  font-style: italic;
}

.article-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #eaeaea;
}

.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tag-label {
  font-weight: 600;
  color: #333;
}

.tag {
  background: #f0f4f8;
  color: #004080;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #004080;
  color: white;
  text-decoration: none;
}

.sharing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.share-label {
  font-weight: 600;
  color: #333;
}

.social-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f4f8;
  color: #004080;
  transition: all 0.3s ease;
}

.social-share:hover {
  background: #004080;
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
}

.article-cta {
  background: #f8fafd;
  padding: 25px;
  border-radius: 10px;
  margin: 40px 0;
  text-align: center;
  border-left: 4px solid #004080;
}

.article-cta p {
  margin: 0;
  font-size: 1.1rem;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #004080;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f8;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-article {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-article:hover {
  background: #f8fafd;
  text-decoration: none;
  transform: translateX(5px);
}

.related-article img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.related-article h4 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #333;
  font-weight: 600;
}

.related-article span {
  font-size: 0.85rem;
  color: #666;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.subscribe-form button {
  background: #004080;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background: #00264d;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  margin-bottom: 10px;
}

.services-list a {
  display: block;
  padding: 10px 15px;
  background: #f8fafd;
  border-radius: 6px;
  color: #004080;
  transition: all 0.3s ease;
}

.services-list a:hover {
  background: #004080;
  color: white;
  text-decoration: none;
  padding-left: 20px;
}

/* Animation for elements when they come into view */
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .article-content {
    padding: 30px;
  }
  
  .article-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .article-sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .article-content {
    padding: 25px;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-excerpt {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .article-detail {
    padding: 20px 0;
  }
  
  .article-content {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .article-header h1 {
    font-size: 1.8rem;
  }
  
  .article-meta {
    gap: 10px;
  }
  
  .article-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .article-body h2 {
    font-size: 1.6rem;
  }
  
  .article-body h3 {
    font-size: 1.3rem;
  }
  
  .tags, .sharing {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .related-article {
    flex-direction: column;
    text-align: center;
  }
  
  .related-article img {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .article-header h1 {
    font-size: 1.6rem;
  }
  
  .article-excerpt {
    font-size: 1rem;
  }
  
  .article-body h2 {
    font-size: 1.4rem;
  }
  
  .article-body h3 {
    font-size: 1.2rem;
  }
  
  .article-body p, .article-body li {
    font-size: 1rem;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}

@keyframes pulse {
      0% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.05); opacity: 1; }
      100% { transform: scale(1); opacity: 0.8; }
    }
    
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
      100% { transform: translateY(0px); }
    }
    
    @keyframes glow {
      0% { box-shadow: 0 0 5px rgba(0, 100, 255, 0.5); }
      50% { box-shadow: 0 0 20px rgba(0, 100, 255, 0.8); }
      100% { box-shadow: 0 0 5px rgba(0, 100, 255, 0.5); }
    }
    
    .ai-phone {
      position: relative;
      animation: float 6s ease-in-out infinite;
    }
    
    .ai-chip {
      animation: pulse 4s ease-in-out infinite;
    }
    
    .ai-glow {
      animation: glow 3s ease-in-out infinite;
    }
    
    .feature-highlight {
      transition: all 0.3s ease;
      border-left: 4px solid #004080;
      padding-left: 15px;
    }
    
    .feature-highlight:hover {
      background-color: rgba(0, 100, 255, 0.05);
      transform: translateX(5px);
    }
    
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin: 30px 0;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      overflow: hidden;
    }
    
    .comparison-table th, .comparison-table td {
      padding: 15px;
      text-align: left;
      border-bottom: 1px solid #eaeaea;
    }
    
    .comparison-table th {
      background-color: #004080;
      color: white;
      font-weight: 600;
    }
    
    .comparison-table tr:nth-child(even) {
      background-color: #f9f9f9;
    }
    
    .comparison-table tr:hover {
      background-color: #f0f7ff;
    }
    
    .phone-model {
      font-weight: 700;
      color: #004080;
    }
    
    .ai-feature-badge {
      display: inline-block;
      background: linear-gradient(135deg, #004080, #0077cc);
      color: white;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
      margin: 0 5px 5px 0;
      animation: pulse 3s infinite;
    }
    
    .future-prediction {
      background-color: #f0f7ff;
      border-radius: 10px;
      padding: 20px;
      margin: 20px 0;
      border-left: 5px solid #004080;
    }
    
    .prediction-timeline {
      position: relative;
      padding: 30px 0;
      margin: 40px 0;
    }
    
    .timeline-item {
      padding: 20px;
      margin: 20px 0;
      border-radius: 10px;
      background: white;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      position: relative;
      border-left: 4px solid #004080;
    }
    
    .timeline-year {
      position: absolute;
      left: -100px;
      top: 20px;
      background: #004080;
      color: white;
      padding: 8px 15px;
      border-radius: 20px;
      font-weight: 600;
    }
    
    @media (max-width: 768px) {
      .timeline-year {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 10px;
        display: inline-block;
      }
    }
    
    .conclusion-box {
      background: linear-gradient(135deg, #004080, #0077cc);
      color: white;
      padding: 30px;
      border-radius: 10px;
      margin: 40px 0;
      box-shadow: 0 10px 30px rgba(0, 100, 255, 0.3);
    }
    
    /* Responsive adjustments */
    @media (max-width: 992px) {
      .ai-phone {
        max-width: 300px;
        margin: 0 auto;
        display: block;
      }
    }
    
    @media (max-width: 768px) {
      .comparison-table {
        font-size: 0.9rem;
      }
      
      .comparison-table th, .comparison-table td {
        padding: 10px;
      }
    }