/* --- General Blog Area --- */
main.blog-content-area {
  max-width: 900px; /* Slightly narrower for typical blog readability */
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: rgba(38, 38, 38, 0.5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  text-align: left; /* Default text align for the container */
}

main.blog-content-area h1 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  color: #ffffff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
}

.blog-intro {
  text-align: center;
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Arial', sans-serif;
}

/* --- Blog Post Cards (Listing Page) --- */
#blog-posts-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-card {
  background-color: rgba(50, 50, 50, 0.6);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  text-decoration: none; /* If the card itself is a link */
  color: inherit; /* Inherit text color */
  display: block; /* Make it block for full width clickable area */
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(175, 64, 255, 0.2); /* Theme color shadow */
}

.blog-post-card-image {
  width: 100%;
  height: 200px; /* Or aspect-ratio: 16/9; */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.blog-post-card h2 { /* Title in card */
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  color: var(--hover-btn-color, #af40ff);
  margin: 0 0 0.5rem 0;
  font-family: 'Yatra One', sans-serif;
  line-height: 1.3;
}

.blog-post-meta {
  font-size: 0.85rem;
  color: #b0b0b0;
  margin-bottom: 0.8rem;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.blog-post-meta .label {
  font-weight: 600;
  color: #c0c0c0;
  margin-right: 0.3em;
}

.blog-post-meta .category-tag,
.blog-post-meta .tag {
  background-color: #555;
  color: #eee;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-excerpt {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  line-height: 1.6;
  color: #d0d0d0;
  margin-bottom: 1rem;
}

.read-more-link {
  display: inline-block;
  color: var(--link-blue, #8bbaff);
  text-decoration: underline;
  font-weight: bold;
  font-family: 'Yatra One', sans-serif;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: var(--link-blue-hover, #b0d0ff);
}

/* --- Single Post View --- */
.single-post-view #single-post-content h1.post-title { /* Title of the single post */
  font-size: clamp(1.8rem, 5vw, 2.8rem); /* Larger title for single post */
  color: #ffffff;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-bottom: none; /* No border for single post title unless desired */
  padding-bottom: 0;
  line-height: 1.2;
}

.single-post-view .post-cover-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.single-post-view .blog-post-meta { /* Meta for single post */
  margin-bottom: 1.5rem; /* More space below meta */
  font-size: 0.9rem;
}

.single-post-view .post-full-content {
  font-family: 'Arial', 'Helvetica Neue', sans-serif; /* Standard readable font */
  font-size: 1.05rem; /* Slightly larger for readability */
  line-height: 1.8;
  color: #e0e0e0;
  white-space: pre-line; /* If content is plain text with newlines */
  word-wrap: break-word;
}

/* Add styles for h2, h3, p, ul, ol, blockquote etc. within .post-full-content if your content is HTML */
.single-post-view .post-full-content h2 {
  font-size: 1.6rem;
  color: #e5e5e5;
  margin: 2rem 0 0.8rem 0;
  font-family: 'Yatra One', sans-serif;
}

.single-post-view .post-full-content p {
  margin-bottom: 1.2em;
}

.single-post-view .post-full-content a {
  color: var(--link-blue, #8bbaff);
  text-decoration: underline;
}

.single-post-view .post-full-content a:hover {
  color: var(--link-blue-hover, #b0d0ff);
}

.single-post-view .post-full-content ul,
.single-post-view .post-full-content ol {
  margin-bottom: 1.2em;
  padding-left: 30px;
}

.single-post-view .post-full-content li {
  margin-bottom: 0.5em;
}

.single-post-view .post-full-content blockquote {
  border-left: 3px solid var(--hover-btn-color, #af40ff);
  margin: 1.5em 0 1.5em 1em;
  padding: 0.5em 1em;
  color: #c0c0c0;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.1);
}

.post-tags-container {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed #555;
}

.post-tags-container .label {
  font-weight: bold;
  color: #c0c0c0;
  margin-right: 0.5em;
}

.back-to-blog {
  margin-top: 2.5rem;
  text-align: center;
}

/* Loading/Error Messages */
.loading-message,
.error-message {
  text-align: center;
  font-style: italic;
  color: #ccc;
  padding: 2rem 0;
  font-size: 1.1rem;
}

.error-message {
  color: #ff6b6b;
  font-weight: bold;
}

/* --- Single Post View - Image Gallery --- */
.single-post-view .post-cover-image-container.single-image-cover {
    margin-bottom: 1.5rem;
    text-align: center; /* Center the single image if it's not full width */
}

.single-post-view .post-cover-image.clickable-image {
    cursor: pointer;
    max-width: 100%; /* Ensure it doesn't overflow */
    height: auto;    /* Maintain aspect ratio */
    max-height: 450px; /* Or your preferred max height for single cover */
    object-fit: cover; /* Or 'contain' if you prefer to see the whole image */
    border-radius: 6px;
    display: inline-block; /* Allows centering with text-align on parent */
    transition: opacity 0.2s ease-in-out;
}
.single-post-view .post-cover-image.clickable-image:hover {
    opacity: 0.85;
}


.single-post-view .blog-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* Space between thumbnails */
  margin-bottom: 1.5rem; /* Space below the gallery */
  justify-content: flex-start; /* Align thumbnails to the start */
}

.single-post-view .blog-gallery-thumbnail {
  height: 100px; /* Adjust size as needed */
  width: auto;
  max-width: 150px; /* Max width for a thumbnail */
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #555;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.single-post-view .blog-gallery-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(var(--hover-btn-color-rgb, 175, 64, 255), 0.6); /* Use your theme color */
}

/* --- Share Buttons --- */
.share-buttons-container {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #555; /* Optional separator */
    text-align: center; /* Center the native share button or the list heading */
}

.share-buttons-container .share-links-heading {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Style for the single button when Web Share API is used */
.share-button.native-share-button {
    background-color: var(--hover-btn-color, #af40ff);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block; /* To allow centering */
}

.share-button.native-share-button:hover {
    background-color: var(--primary-btn-color, #8e33cc); /* Darker shade */
}

/* Styles for the list of manual share links */
.manual-share-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center links if they wrap */
    gap: 0.75rem; /* Space between links */
}

.manual-share-links li {
    display: inline-block; /* Or flex item if you prefer */
}

.manual-share-links .share-link {
    display: inline-block;
    padding: 0.6em 1em;
    border-radius: 5px;
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid #666;
}

.manual-share-links .share-link:hover {
    color: white;
}

/* Individual platform styling (basic examples, you can use icons here) */
.manual-share-links .twitter-share { background-color: #1DA1F2; border-color: #1DA1F2; }
.manual-share-links .twitter-share:hover { background-color: #0c85d0; }

.manual-share-links .facebook-share { background-color: #1877F2; border-color: #1877F2;}
.manual-share-links .facebook-share:hover { background-color: #1056ad;}

.manual-share-links .linkedin-share { background-color: #0A66C2; border-color: #0A66C2;}
.manual-share-links .linkedin-share:hover { background-color: #004182;}

.manual-share-links .email-share { background-color: #777; border-color: #777;}
.manual-share-links .email-share:hover { background-color: #555;}

.manual-share-links .whatsapp-share { background-color: #25D366; border-color: #25D366;}
.manual-share-links .whatsapp-share:hover { background-color: #1DAA50;}

/* Responsive adjustments for share buttons if needed */
@media (max-width: 480px) {
    .manual-share-links {
        flex-direction: column; /* Stack links vertically on very small screens */
        align-items: center;
    }
    .manual-share-links .share-link {
        width: 100%; /* Make links full width if stacked */
        max-width: 250px; /* But not too wide */
        text-align: center;
        margin-bottom: 0.5rem; /* Add some space if stacked */
    }
    .manual-share-links li {
        width: 100%;
        max-width: 250px;
    }
}

/* Responsive */
@media (max-width: 768px) {
  main.blog-content-area {
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
  }

  .blog-post-card {
    padding: 1.2rem;
  }

  .single-post-view #single-post-content h1.post-title {
    font-size: 1.6rem;
  }
}