/* General font settings */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}
body, .blog-content {
    font-weight: 400;
    color: #242424; /* Slightly darker gray for improved readability */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.58;
    letter-spacing: -0.003em;
}

/* Blog Title */
h1.display-4, .blog-content h1 {
    margin-bottom: 20px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    font-weight: bold;
    unicode-bidi: isolate;


}

/* Subtitle */
h2.subtitle, .blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #242424;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.35;
}

/* Section Headings */
.blog-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #242424;
    margin-top: 30px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-content h4, .blog-content h5, .blog-content h6 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #242424;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Strong text */
strong {
    color: #000;
    font-weight: 600;
}

/* Paragraph text */
.blog-content p {
    font-size: 21px;
    font-weight: 400;
    color: #242424;
    line-height: 1.58;
    letter-spacing: -0.003em;
    margin-bottom: 24px;
    text-rendering: optimizeLegibility;
}

/* List items */
.blog-content li {
    color: #242424;
    margin-bottom: 12px;
    font-size: 21px;
    line-height: 1.58;
}

/* Blockquote styling */
.blog-content blockquote {
    font-size: 21px;
    font-style: italic;
    color: #6a737d;
    border-left: 4px solid #dfe2e5;
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.58;
}

/* Image styling */
.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sidebar styling for tags and categories */
.sidebar-section p, .sidebar-section .badge {
    font-size: 16px;
    color: #586069;
}

/* Center-align all text in the blog content */
.blog-content {
    text-align: justify;
}

/* Optional: Keep the heading and subheading centered */
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content p {
    text-align: justify;
    margin: 0 auto;
}

/* Paragraph element spacing adjustments */
p {
    margin: 0 0 1em 0;
    padding: 0;
    unicode-bidi: isolate;
    color: #242424;
}

/* Improved spacing for lists */
ul, ol {
    margin-bottom: 24px;
}

/* Sidebars adjustments */
.sidebar {
    width: 25%; /* Adjusted width */
    float: right;
    margin-left: 20px;
    color: #586069;
}

/* Sidebar elements spacing */
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section .badge {
    background-color: #f6f8fa;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #0366d6;
    margin-right: 5px;
}
/* Blog Menu Styling */
.blog-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid silver;
    border-bottom: 1px solid silver;
    margin-bottom: 20px;
}

/* Left-aligned menu items */
.menu-left {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Right-aligned menu items */
.menu-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 10px;
}

/* Menu item styling */
.menu-item {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-item i {
    margin-right: 5px;
}

.menu-item:hover {
    color: #000;
}

.menu-item + .menu-item {
    margin-left: 20px;
}

    /* Share Popup */
.share-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    border-radius: 8px;
}

.share-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* Share Popup */
.share-popup {
    /* Existing styles */
}

/* Copy Notification */
.copy-notification {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show the notification */
.copy-notification.show {
    display: block;
    opacity: 1;
}

    .comment-slider {
    position: fixed;
    right: -100%;
    top: 0;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 20px;
}

.comment-slider.open {
    right: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slider-content {
    overflow-y: auto;
    height: calc(100% - 60px);
}

/* repeated */
.comment-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

#commentIcon {
    font-size: 1rem;
    margin-right: 10px;
}

#closeSlider {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.comment-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1), /* Bottom shadow */
                0px -2px 10px rgba(0, 0, 0, 0.05), /* Top shadow */
                -2px 0px 10px rgba(0, 0, 0, 0.05), /* Left shadow */
                2px 0px 10px rgba(0, 0, 0, 0.05); /* Right shadow */
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3; /* Optional: Adding a border for more definition */
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
}

.comment-box textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    resize: none;
    margin-bottom: 10px;
}

.comment-box textarea:focus {
    outline: none;
    border-bottom: 1px solid #000;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
}

.comment-actions .btn-cancel {
    background: none;
    border: none;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 15px;
}

.btn-respond {
    background-color: #d0e8d7;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-respond:hover {
    background-color: #c3dbcb;

}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 20px 0;
}

.comment-header {
    display: flex;
    align-items: center;
}

.comment-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-details .username {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.author-details .text-muted {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-content p {
    margin: 10px 0 0 0;
    font-size: 1rem;
    color: #333;
}

.comment-action-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action-item i {
    margin-right: 5px;
}

.comment-action-item:hover {
    color: #000;
}

.reply-link {
    font-size: 0.875rem;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.reply-link:hover {
    text-decoration: underline;
}

.comment-separator {
    margin: 20px 0;
    border: none;
    height: 1px;
    background-color: #e9ecef;
}

.ml-auto {
    margin-left: auto;
}

.reply-box {
    display: none;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.reply-box textarea {
    width: 100%;
    border: none;
    outline: none;
    background-color: #f9f9f9;
    resize: none;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.reply-box .btn-link {
    color: #555;
    text-decoration: none;
}

.reply-box .btn-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.reply-box .btn-success:hover {
    background-color: #c3e6cb;
    border-color: #b1dfbb;
}

    /* Default icon color (when not liked) */
.comment-actions .fa-heart {
    color: black; /* Default color */
    cursor: pointer;
}

/* Active icon color (when liked) */
.comment-actions .fa-heart.liked {
    color: black; /* Change this to black for liked state */
}

    /* Default menu icon color (when not liked) */
.menu-item .fa-heart {
    color: black; /* Default color */
    cursor: pointer;
}

/* Active menu icon color (when liked) */
.menu-item .fa-heart.liked {
    color: black; /* Ensure it stays black when liked */
}

    /* Like button count text color (default and active state) */
.comment-action-item span,
.menu-item span {
    color: black; /* Set the color to black */
}

/* Ensure the color remains black even when the icon is clicked/liked */
.comment-action-item a:hover span,
.comment-action-item a:active span,
.menu-item a:hover span,
.menu-item a:active span {
    color: black; /* Maintain black color when interacting */
}

    a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: black;
    text-decoration: underline;
}

a:visited {
    color: black;
}

.blog_container{
    margin-top: 8rem;
}

.img-thumbnail{
    width: 80px;
}

 #closePopup {
        position: absolute;
        top: 0px;
        right: 10px;
        font-size: 20px;
        color: black;
        cursor: pointer;
        z-index: 1000;
    }
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 1055;
  display: none;
  flex-direction: column;
  align-items: flex-end;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon i {
  font-size: 1.5rem;
}

/* Platform Colors */
.facebook { background: #3b5998; }
.instagram {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.copy { background: #666; }

.icon:hover {
  transform: scale(1.1);
}



