:root {
  --primary: #225874;
  --secondary: #eb6b2a;
  --accent: #f8b45c;
  --dark: #1a252f;
  --light: #f8f9fa;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --text: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.blog-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4560 100%);
  color: white;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.blog-detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(235, 107, 42, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(235, 107, 42, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb i {
  font-size: 0.8rem;
}

.blog-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  max-width: 900px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-details h4 {
  font-weight: 600;
  margin-bottom: 5px;
}

.author-details p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.category-tag {
  background: var(--secondary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

/* Main Content */
.blog-content-container {
  display: flex;
  gap: 40px;
  padding: 60px 0;
}

.blog-content {
  flex: 2;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.featured-image {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

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

.content-body {
  padding: 50px;
}

.content-intro {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--light-gray);
}

.content-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--dark);
  position: relative;
  padding-left: 20px;
}

.content-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: var(--secondary);
  border-radius: 5px;
}

.content-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--dark);
}

.content-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-body ul,
.content-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.highlight-box {
  background: rgba(34, 88, 116, 0.05);
  border-left: 4px solid var(--primary);
  padding: 25px;
  border-radius: 0 10px 10px 0;
  margin: 30px 0;
}

.highlight-box p {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
}

.code-block {
  background: #2d3748;
  color: #e2e8f0;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  overflow-x: auto;
  font-family: "Courier New", monospace;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: var(--gray);
  margin-top: 10px;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
}

.tag {
  background: var(--light-gray);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--secondary);
  color: white;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin: 40px 0;
}

.share-text {
  font-weight: 600;
  color: var(--dark);
}

.share-icons {
  display: flex;
  gap: 10px;
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-icon.facebook {
  background: #3b5998;
}

.share-icon.twitter {
  background: #1da1f2;
}

.share-icon.linkedin {
  background: #0077b5;
}

.share-icon:hover {
  transform: translateY(-3px);
}

/* Author Bio */
.author-bio {
  background: rgba(34, 88, 116, 0.03);
  padding: 30px;
  border-radius: 15px;
  margin: 50px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-bio-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.author-bio-content p {
  margin-bottom: 0;
  color: var(--gray);
}

/* Sidebar */
.blog-sidebar {
  flex: 1;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.categories-list {
  list-style: none;
}

.categories-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.categories-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories-list a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.categories-list a:hover {
  color: var(--secondary);
}

.categories-list span {
  background: var(--light-gray);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.recent-posts {
  list-style: none;
}

.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

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

.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}

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

.recent-post-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.recent-post-content h4 a {
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
}

.recent-post-content h4 a:hover {
  color: var(--secondary);
}

.recent-post-content .post-date {
  font-size: 0.85rem;
  color: var(--gray);
}

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

/* Newsletter Widget */
.newsletter-form {
  margin-top: 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.newsletter-form button {
  width: 100%;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #e05a1a;
}

/* Related Posts */
.related-posts {
  padding: 60px 0;
  background: #f8fafc;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--dark);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary);
  color: white;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--dark);
}

.card-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

.read-time {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--primary);
  gap: 8px;
}

/* Footer */
.blog-footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  margin: 60px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-content-container {
    flex-direction: column;
  }

  .blog-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-detail-header {
    padding: 120px 0 60px;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .content-body {
    padding: 30px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
