/* Single Blog Post Styles */

/* Main Container */
.single-blog-post {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Blog Post Container - 2 Column Grid */
.blog-post-container {
  display: grid;
  grid-template-columns: 25% 72%;
  gap: 3%;
  max-width: 1512px;
  margin: 0 auto;
  padding: 20px 40px 40px 40px;
}

/* Sidebar (23%) */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Post Metadata */
.post-metadata {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 0;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metadata-label,
.metadata-value {
  font-size: 12px;
  font-weight: 400;
  color: #000000;
  opacity: 0.5;
  text-transform: uppercase;
  line-height: 1;
}

.metadata-value {
  opacity: 1;
}

/* Table of Contents */
.table-of-contents {
  position: relative;
  margin: 0;
}

.toc-title {
  font-size: 30px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 25px 0;
  position: relative;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-radius: 20px;
  background-color: white;
}

.toc-item:last-child {
  margin-bottom: 0;
}

.toc-item svg {
  flex-shrink: 0;
  width: 18px;
  height: auto;
}

.toc-link {
  color: #000000;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: #3db87d;
}

/* Author Section */
.author-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 30px 20px;
  border-radius: 20px;
  background-color: white;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  flex-shrink: 0;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  opacity: .5;
  margin: 0 0 4px 0;
}

.author-position {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

.author-quote {
  font-size: 16px;
  font-style: italic;
  color: #000000;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  width: 100%;
}

.author-quote::before {
  content: '"';
  color: #000000;
}

.author-quote::after {
  content: '"';
  color: #000000;
}

.blog-sidebar-divider {
  width: 180px;
  height: 1px;
  background-color: #000000;
  opacity: .15;
}

/* Related Tours */
.related-tours-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.related-tours-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-tour-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-tour-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-tour-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-tour-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

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

.related-tour-content {
  padding: 16px;
}

.related-tour-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.related-tour-excerpt {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Main Content (70%) */
.blog-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Post Header */
.post-header {
  margin-bottom: 0;
}

.post-title {
  font-size: 80px;
  font-weight: 400;
  font-style: italic;
  color: #3DB87D;
  line-height: 1.2;
  margin: 0;
}

/* Featured Image */
.post-featured-image {
  height: 490px;
}

.featured-image {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Post Content */
.post-content {
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
}

.post-content p {
  opacity: .75;
}

.post-content p:first-child {
  font-size: 20px;
}

.post-content h2 {
  font-size: 48px;
  font-weight: 600;
  color: #3DB87D;
  margin: 48px 0 24px 0;
  line-height: 1.2;
  text-transform: uppercase;
  scroll-margin-top: 100px; /* For smooth scroll with fixed header */
}

.post-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 36px 0 18px 0;
  line-height: 1.4;
}

.post-content p {
  margin: 0 0 24px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
}

.post-content a {
  color: #3db87d;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: #2d8f5f;
}

.post-content blockquote {
  border-left: 4px solid #3db87d;
  padding: 16px 24px;
  margin: 32px 0;
  background: #f8f9fa;
  font-style: italic;
  color: #4b5563;
}

.post-content ul,
.post-content ol {
  margin: 0 0 24px 0;
  padding-left: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-post-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "featured"
      "sidebar"
      "content";
    gap: 32px;
    padding: 32px 20px;
  }

  .post-header {
    grid-area: header;
    order: 1;
  }

  .post-featured-image {
    grid-area: featured;
    order: 2;
  }

  .blog-sidebar {
    grid-area: sidebar;
    order: 3;
    gap: 32px;
  }

  .post-content {
    grid-area: content;
    order: 4;
  }

  .blog-main-content {
    display: contents; /* This makes child elements participate in the parent grid */
  }

  .post-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .blog-post-container {
    padding: 25px 15px;
    gap: 24px;
  }

  .post-featured-image {
    height: 220px;
  }

  .post-metadata {
    padding: 0;
    flex-direction: row;
    gap: 30px;
  }

  .author-image {
    width: 60px;
    height: 60px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-content h2 {
    font-size: 25px;
    margin: 32px 0 16px 0;
  }

  .related-tour-content {
    padding: 12px;
  }

  .toc-title::after {
    width: 40px;
    height: 30px;
  }
}

/* Global Blog Blocks */
.blog-global-blocks {
  width: 100%;
}
