/* Post Template Styles */
.post-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  line-height: 1.6;
  color: #333;
}

.post-header {
  margin-bottom: 30px;
  margin-top: 50px;
  text-align: left;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: #4a89dc;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 15px 0;
  color: #222;
}

.post-meta {
  display: flex;
  justify-content: left;
  gap: 20px;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.post-meta i {
  margin-right: 5px;
}

.featured-image {
  margin: 25px 0;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
}

h2,
h3,
h4 {
  margin: 1.8em 0 1em;
  color: #222;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.5rem;
}

.content-highlight {
  background-color: #f8f9fa;
  border-left: 4px solid #4a89dc;
  padding: 15px 20px;
  margin: 25px 0;
  border-radius: 0 4px 4px 0;
}

/* App Recommendation Box */
.app-recommendation {
  display: flex;
  gap: 15px;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 15px;
  margin: 25px 0;
  align-items: center;
}

.app-image img {
  width: 320px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
}

.app-details {
  flex: 1;
  margin-left: 50px;
}

.app-details h3 {
  font-size: 1.2rem;
  margin: 0 0 5px;
}

.app-details p {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #555;
}

.install-btn {
  display: inline-block;
  background: #4a89dc;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.install-btn:hover {
  background: #3a79cc;
}

/* Lists */
.feature-list {
  margin: 20px 0;
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 5px;
}

/* Content Tips */
.content-tip {
  display: flex;
  gap: 12px;
  background: #fff9e6;
  border-left: 4px solid #ffcc00;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.tip-icon {
  font-size: 1.2rem;
}

.content-tip p {
  margin: 0;
}

/* Poll */
.content-poll {
  background-color: #f5f7fa;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.content-poll h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.poll-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poll-options button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.poll-options button:hover {
  background: #4a89dc;
  color: #fff;
  border-color: #4a89dc;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  margin: 50px 0;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
  border-top: 3px solid #4a89dc;
}

.author-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
  font-size: 1.1rem;
}

.author-bio {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.author-social {
  display: flex;
  gap: 12px;
}

.author-social a {
  color: #666;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.author-social a:hover {
  color: #4a89dc;
}

/* Related Posts */
.related-posts {
  margin: 60px 0 40px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #222;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #4a89dc;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.related-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.related-post:hover {
  transform: translateY(-5px);
}

.related-post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.related-content {
  padding: 20px;
}

.related-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-content h3 a {
  color: #222;
  text-decoration: none;
}

.related-content h3 a:hover {
  color: #4a89dc;
}

.related-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  color: #4a89dc;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.2s;
}

.read-more:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, #4a89dc 0%, #5d9cec 100%);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  margin: 50px 0;
}

.newsletter-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.newsletter-cta p {
  margin-bottom: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #222;
}

/* Ad Units */
.ad-unit {
  background: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  overflow: hidden;
  color: #999;
}

.ad-leaderboard {
  width: 100%;
  height: 90px;
}

.ad-rectangle {
  width: 300px;
  height: 250px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.8rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin: 0 auto 15px;
  }

  .app-recommendation {
    flex-direction: column;
    text-align: center;
  }

  .app-image {
    margin-bottom: 10px;
  }
  .app-details {
    margin-left: 0;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }

  .newsletter-form button {
    margin-top: 10px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.6rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .poll-options {
    flex-direction: column;
  }

  .poll-options button {
    width: 100%;
  }
}
