/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.5.15,
* Autoprefixer: v10.5.0
* Browsers: last 4 version
*/

.heroSectionSingleBlogInfoWrapper {
    position: absolute;
    left: var(--spaceX);
    bottom: 5rem;
    z-index: 2;
    border-radius: var(--radius-box);
    padding: 1.25rem;
    background-color: var(--background);
}
.blog-author .authorMedia {
    width: 2.5rem;
    aspect-ratio: 1 / 1;
}

.authorMedia {}

.blog-author {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.blog-author .authorMedia img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
}

.blog-author p {
    margin: 0;
    font-size: .75rem;
    font-weight: 700;
}

.blog-duration-date-tags-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1rem;
}

.blog-duration-date-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
}

.blog-duration-date-tags-wrapper .category-tabs {
    gap: 1rem;
}
.blog-duration-date-tags-wrapper .category-tabs .cat-tab {
    background-color: var(--yellow);
    color: var(--dark-gray);
    font-weight: 700;
    font-size: .75rem;
}
.blog-duration-date-wrap p {
    margin: 0;
    font-size: .75rem;
    font-weight: 700;
}
.post-meta {
    margin-bottom: calc(var(--margin-block) / 2);
}
.post-meta .blog-duration-date-tags-wrapper {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}
section.post-header h2 {
    margin-block: 1.5rem;
}
section.singleBlogContentSidebarWrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[10];
    grid-template-columns: repeat(10,1fr);
    margin-bottom: var(--margin-block);
}

.singleBlogContentWrapper {
    position: relative;
    -ms-grid-column: 1;
    -ms-grid-column-span: 8;
    grid-column: 1 / 9;
    -webkit-padding-end: 2rem;
    padding-inline-end: 2rem;
    display: block;
}

aside.postSidebarWrapper {
    -ms-grid-column: 9;
    -ms-grid-column-span: 2;
    grid-column: 9 / 11;
    position: relative;
}

.post-body img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-box);
}
aside.postSidebarWrapper .sidebarItems {
    position: sticky;
    top: var(--headerHeight);
    left: 0;
}

.post-toc.tableChartContainer {
    border: 1px solid var(--gray);
    background: var(--gray-two);
    padding: 1.5rem;
    border-radius: var(--radius-box);
    margin-bottom: 1.5rem;
}
.toc-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .75rem;
    color: var(--yellow);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.toc-header p,.post-highlight-box .highlight-box-header span {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}
.toc-list.tableChartWrapper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 1rem;
    -webkit-padding-start: unset;
    padding-inline-start: unset;
}

.toc-item.sub-section {
    position: relative;
    -webkit-padding-start: 1.25rem;
    padding-inline-start: 1.25rem;
    cursor: pointer;
    font-size: .75rem;
}

.toc-item.sub-section::before {
    content: '';
    position: absolute;
    top: 50%;
    background-color: var(--medium-gray);
    right: 0;
    width: 8px;
    height: 8px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 50%;
    -webkit-transition: background-color 0.3s ease-in;
    transition: background-color 0.3s ease-in;
}

.toc-item.sub-section.active::before {
    background-color: var(--yellow);
}

.toc-item.sub-section .tableChartWrap {
    opacity: .7;
    -webkit-transition: all linear 0.3s;
    transition: all linear 0.3s;
}

.toc-item.sub-section.active .tableChartWrap {
    opacity: 1;
    font-weight: 700;
}

.post-highlight-box {
    padding: 1.5rem;
    border-radius: var(--radius-box);
    border: 1px solid var(--dark-yellow);
    background-color: var(--warm-yellow);
}
.post-highlight-box .highlight-box-header span {
    color: var(--yellow);
    display: block;
    margin-bottom: 1rem;
}
.post-highlight-box p {
    margin: 0;
    opacity: .7;
    font-size: .75rem;
}
.post-body {}

.post-body blockquote.post-quote {
    background-color: var(--dark-gray);
    margin-inline: 0;
    padding: 1rem 1.25rem;
    color: var(--medium-yellow);
    font-weight: 700;
    border-right: 3px solid var(--medium-yellow);
}

section.post-footer {
    position: relative;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-block: 1.5rem;
}
.post-share {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
}
.post-share-icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .65rem;
}
.post-share a {
    width: 2.25rem;
    height: 2.25rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    background-color: var(--medium-gray-350);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    -webkit-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;
}
.post-share a:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--gray);
}
.post-tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
}
.post-tags .tag {
    border-radius: var(--radius-box);
    border: 1px solid var(--medium-yellow);
    font-size: 0.75rem;
    padding: 5px 12px;
    color: var(--medium-yellow);
    -webkit-transition: background-color 0.3s ease-in,color 0.3s ease-in;
    transition: background-color 0.3s ease-in,color 0.3s ease-in;
}
.post-tags .tag:hover {
    background-color: var(--medium-yellow);
    color: var(--gray);
}
section.related-posts h2,section.post-comments h2 {
    margin-bottom: calc(var(--margin-block) / 2);
}
.post-comments {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: var(--margin-bottom);
}
.comment-form-wrap {
    background-color: var(--gray-two);
    border-radius: var(--radius-box);
    padding: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray);
}

.comment-form-label {
    font-size: 0.95rem;
    color: #cccccc;
    text-align: right;
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 14px 16px;
    resize: vertical;
    direction: rtl;
    text-align: right;
    outline: none;
    -webkit-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.comment-form textarea::-webkit-input-placeholder {
    color: #555555;
}

.comment-form textarea::-moz-placeholder {
    color: #555555;
}

.comment-form textarea:-ms-input-placeholder {
    color: #555555;
}

.comment-form textarea::-ms-input-placeholder {
    color: #555555;
}

.comment-form textarea::placeholder {
    color: #555555;
}

.comment-form textarea:focus {
    border-color: #f5c518; /* yellow accent */
}

.comment-form .btn--primary {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 10px;
    background-color: #f5c518;
    color: #111111;
    font-size: .75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    gap: 3rem;
}

.comment-form .btn--primary:hover {
    background-color: #e0b415;
}

/* arrow icon inside button — matches design */
.comment-form .btn--primary::before {
    content: "←";
    font-size: 1rem;
}

/* ----------------------------------------
   Comments List
   ---------------------------------------- */

.comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 16px;
}

/* ----------------------------------------
   Comment Item
   ---------------------------------------- */

.comment-item {
    background-color: var(--gray-two);
    border-radius: var(--radius-box);
    padding: 1.5rem;
    border: 1px solid var(--gray);
}

/* Top row: avatar + author info + date */
.comment-item .comment-avatar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.comment-item .comment-avatar > div:first-child {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

/* Avatar image — circular placeholder */
.comment-item .comment-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    background-color: #2a2a2a;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Fallback avatar icon when no image */
.comment-item .comment-avatar img[src=""],
.comment-item .comment-avatar img:not([src]) {
    content: "";
    background-color: #2a2a2a;
    border-radius: 50%;
}

.comment-author-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}

.comment-author-name {
    font-size: 0.75rem;
    color: var(--yellow);
    line-height: 1.4;
}

.comment-author-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

/* Date — aligned to left in RTL layout (far end) */
.comment-date {
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: .5;
    position: relative;
}

/* dot separator between role and date */
.comment-item .comment-avatar {
    position: relative;
}

/* Comment text */
.comment-text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    opacity: .8;
}
.comment-author-position {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1.5rem;
}

.comment-date::before {
    content: '';
    width: 4px;
    height: 4px;
    position: absolute;
    background-color: var(--foreground);
    display: block;
    right: -11px;
    border-radius: 50%;
    opacity: .5;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media only screen and (max-width: 768px){
    .comment-item .comment-avatar {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
        gap: 10px;
    }
    .comment-date {
        -ms-flex-item-align: end;
        align-self: flex-end;
    }
}
@media only screen and (min-width: 640px) and (max-width: 768px){}
@media only screen and (min-width: 769px) and (max-width: 1199px){}
@media only screen and (min-width: 1200px) and (max-width: 1399px){}
@media only screen and (min-width: 1400px) and (max-width: 1700px){}