/* Single Post Styles */

/* Single Post Main */
.single-post-main {
  background: #f8f9fa;
  margin-bottom: 150px;
}

/* Post Hero Section */
.single-post-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  overflow: hidden;
}

.post-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 26, 74, 0.85) 0%, rgba(30, 58, 138, 0.85) 100%);
  z-index: 2;
}

.post-hero-content {
  position: relative;
  z-index: 3;
  padding: 120px 0 80px;
}

.post-hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb */
.post-breadcrumb {
  margin-bottom: 30px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
  color: #d4af37;
}

.breadcrumb-separator {
  margin: 0 10px;
  opacity: 0.7;
}

.current-post {
  opacity: 0.8;
}

/* Post Meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.post-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-category a {
  background: #d4af37;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.post-category a:hover {
  background: #b8941f;
}

.post-date,
.post-author,
.reading-time {
  opacity: 0.9;
}

/* Post Title */
.post-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Post Excerpt */
.post-excerpt {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Social Share */
.social-share {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px;
}

.share-label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.share-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.share-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.share-btn.facebook:hover { background: rgba(59, 89, 152, 0.8); }
.share-btn.twitter:hover { background: rgba(29, 161, 242, 0.8); }
.share-btn.linkedin:hover { background: rgba(0, 119, 181, 0.8); }
.share-btn.email:hover { background: rgba(212, 175, 55, 0.8); }

/* Post Content Section */
.single-post-content {
  padding: 80px 0;
}

.post-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* Main Content */
.post-main-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.post-content-wrapper {
  padding: 50px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content-wrapper h1,
.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4,
.post-content-wrapper h5,
.post-content-wrapper h6 {
  color: #0a1a4a;
  font-weight: 700;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.post-content-wrapper h2 { font-size: 2.2rem; }
.post-content-wrapper h3 { font-size: 1.8rem; }
.post-content-wrapper h4 { font-size: 1.5rem; }

.post-content-wrapper p {
  margin-bottom: 25px;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
  margin: 25px 0;
  padding-left: 30px;
}

.post-content-wrapper li {
  margin-bottom: 10px;
}

.post-content-wrapper blockquote {
  background: #f8f9fa;
  border-left: 4px solid #d4af37;
  padding: 25px 30px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: #666;
}

.post-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Post Tags */
.post-tags {
  padding: 30px 50px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.post-tags h4 {
  color: #0a1a4a;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-list a {
  background: white;
  color: #666;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.tags-list a:hover {
  background: #0a1a4a;
  color: white;
  border-color: #0a1a4a;
}

/* Author Bio */
.author-bio {
  padding: 40px 50px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #d4af37;
}

.author-info {
  flex: 1;
}

.author-name {
  color: #0a1a4a;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.author-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.author-posts a {
  color: #0a1a4a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.author-posts a:hover {
  color: #d4af37;
}

/* Sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h4 {
  color: #0a1a4a;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Table of Contents */
.toc-widget {
  display: none;
  position: sticky;
  top: 100px;
}

#table-of-contents {
  font-size: 0.9rem;
}

#table-of-contents ul {
  list-style: none;
  padding: 0;
}

#table-of-contents li {
  margin-bottom: 8px;
}

#table-of-contents a {
  color: #666;
  text-decoration: none;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

#table-of-contents a:hover {
  color: #0a1a4a;
}

/* Related Posts */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-post {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.related-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content h5 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.related-post-content a {
  color: #0a1a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-content a:hover {
  color: #d4af37;
}

.related-post-meta {
  font-size: 0.8rem;
  color: #999;
}

/* Newsletter Widget */
.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-newsletter-form input {
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.sidebar-newsletter-form input:focus {
  border-color: #0a1a4a;
}

.sidebar-newsletter-form button {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 26, 74, 0.3);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
}

.cta-widget h4 {
  color: white;
  margin-bottom: 15px;
}

.cta-widget p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-button {
  background: #d4af37;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

/* Post Footer Section */
.single-post-footer {
  background: white;
  padding: 60px 0;
}

.post-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: -60px; 
}

/* Post Navigation */
.post-navigation {
  margin-bottom: 60px;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.nav-link {
  display: block;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link:hover {
  background: white;
  border-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.nav-direction {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a1a4a;
  line-height: 1.3;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

/* Back to Blog */
.back-to-blog {
  text-align: center;
  margin-bottom: 60px;
}

.back-to-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-to-blog-btn:hover {
  color: #0a1a4a;
}

/* Post CTA Section */
.post-cta-section {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 60px;
}

.post-cta-content h3 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.post-cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn.primary {
  background: #d4af37;
  color: white;
}

.cta-btn.primary:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #0a1a4a;
}

/* Related Categories */
.related-categories {
  text-align: center;
}

.related-categories h4 {
  color: #0a1a4a;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.category-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-link {
  background: #f8f9fa;
  color: #666;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-link:hover {
  background: #0a1a4a;
  color: white;
  border-color: #0a1a4a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-hero-content {
    padding: 100px 0 60px;
  }
  
  .post-title {
    font-size: 2.2rem;
  }
  
  .post-excerpt {
    font-size: 1.1rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .post-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .post-content-wrapper {
    padding: 30px;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
  }
  
  .nav-next {
    text-align: left;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .post-cta-section {
    padding: 40px 30px;
  }
  
  .post-cta-content h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .post-hero-content {
    padding: 80px 0 50px;
  }
  
  .post-title {
    font-size: 1.8rem;
  }
  
  .post-content-wrapper {
    padding: 25px;
    font-size: 1rem;
  }
  
  .author-bio {
    padding: 25px;
  }
  
  .nav-link {
    padding: 20px;
  }
  
  .post-cta-content h3 {
    font-size: 1.8rem;
  }
}
