/* Single blog post */
/* ---------------- */
.single-post .post-single-img img {
    width: 100%;
    border: 1px solid var(--white_smoke);
    border-radius: 10px;
}
.single-post h2:not(:first-child) {
    /* Add a divider for each H2 section */
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid var(--white_smoke);
}
.single-post h3 {
    color: #5C6B7E;
}
.single-post h4 {
    color: #8795A7;
}

/* Subheader */
.single-post .postdate.headerfont {
    color: var(--white);
    background: var(--secondary);
}
.single-post .subhead,
.single-post .subhead a {
    font-size: 14px;
}
.single-post .subhead > span {
    white-space: nowrap;
}
.single-post .last-updated-time,
.single-post .postedintop,
.single-post .reading-time {
    display: inline-block;
}
.single-post .last-updated-time {
    color: var(--pine_green);
    font-weight: 600;
}

/* Buy me a coffee button (shortcode) */
.single-post .buy-me-coffee {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.single-post .coffee-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--pine_green);
    color: var(--white_smoke);
    font-weight: normal;
    font-size: 1em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite ease-in-out;
    -webkit-animation: pulse 2s infinite ease-in-out; /* For Safari */
    touch-action: manipulation; /* Optimize for touch devices */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
/* Keyframe animation for attention */
@keyframes pulse {
    0% {
        background-color: var(--pine_green);
        transform: scale(1);
    }
    50% {
        background-color: var(--pine_green_50);
        transform: scale(1.05);
    }
    100% {
        background-color: var(--pine_green);
        transform: scale(1);
    }
}
/* Vendor prefix for Safari */
@-webkit-keyframes pulse {
    0% {
        background-color: var(--pine_green);
        -webkit-transform: scale(1);
    }
    50% {
        background-color: var(--pine_green_50);
        -webkit-transform: scale(1.05);
    }
    100% {
        background-color: var(--pine_green);
        -webkit-transform: scale(1);
    }
}
.single-post .coffee-button:hover {
    color: var(--white);
    background-color: var(--pine_green_50);
    transform: scale(1.05);
}
.single-post .coffee-button:active {
    color: var(--white);
    background-color: var(--pine_green_50);
}
.single-post .coffee-icon {
    position: relative;
    top: -2px;
    margin-right: 8px;
    font-size: 1.5em;
}
.single-post .coffee-note {
    font-size: 0.8em;
    line-height: 1.5em;
    color: var(--color_gray);
    margin: 5px 0 0;
    text-align: center;
    /* max-width: 300px; */
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .single-post .coffee-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* Post Tags */
.posttags,
.posttags a {
    font-size: 14px;
}
.single-post .icon-tag,
.page-template-page-blog-grid .icon-tag { /* Blog page */
    margin-right: 5px;
}

/* Author box */
/* ---------- */
/* Author profile */
.ar-author-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.ar_author_image {
    width: 120px;
    height: 120px;
}

.ar-author-details {
    flex: 1;
    min-width: 200px;
}

.ar-author-name {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.ar-author-name a {
    color: var(--heading);
}

.ar-author-occupation {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.ar-author-description {
    line-height: 1.6;
}

.ar-author-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.ar-social-btn a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9em;
}

.ar-social-btn a:hover {
    color: var(--white);
}

.ar-social-btn a:active {
    color: var(--white);
}

/* Latest Posts */
.ar-author-latestposts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ar-author-latestposts ul {
    list-style: none;
    padding: 0;
    flex: 1;
    min-width: 200px;
}

.ar-author-latestposts li {
    margin-bottom: 10px;
}

.ar-author-latestposts ul {
    list-style-type: disc;
    padding-left: 20px;
}

.ar-recentpost-date {
    color: var(--color_gray);
    font-size: 0.9em;
    margin-left: 5px;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
    .ar-author-profile,
    .ar-author-latestposts {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ar-author-latestposts {
        text-align: left;
    }

    .wp_author_image {
        width: 100px;
        height: 100px;
    }

    .ar-author-follow {
        justify-content: center;
    }
}


/* Similar posts carousel */
/* ---------------------- */
.blog_carousel .blog_item {
    min-height: 300px;
}
.kt-slickslider .slick-next:before, .kt-slickslider .slick-prev:before, .kt-slickslider-thumbs .slick-next:before, .kt-slickslider-thumbs .slick-prev:before {
    color: var(--white);
}


/* Shared on AI tools */
/* ------------------ */
.single-post .ar-custom-share-buttons {
    display: flex;
    gap:5px;
    margin-top:10px;
}
.single-post .ar-custom-share-buttons svg {
    display: inline-flex;
    margin-right: 5px;
    width: 32px;
    height: 32px;
}
.ar-custom-share-buttons a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color:var(--white);
    border-radius: 4px;
    text-decoration: none;
}
.ar-custom-share-buttons a:hover,
.ar-custom-share-buttons a:focus {
    color:var(--white);
}
.ar-custom-share-buttons a.chatgpt {
    background-color: #181818;
}
.ar-custom-share-buttons a.chatgpt:hover {
    background-color: #333333;
}
.ar-custom-share-buttons a.perplexity {
    background-color: #0098a1;
}
.ar-custom-share-buttons a.perplexity:hover {
    background-color: #106875;
}
