/* Blog detail + listing page styles (hero override, footer card, sidebar). Loaded on blog pages only. */

/* Blog hero overrides (scoped — does NOT affect course/live-event hero) */
.blog-hero .event-hero__title {
    font-size: 2rem;
    text-transform: none;
}
@media (max-width: 991px) {
    .blog-hero .event-hero__title { font-size: 1.6rem; }
}

/* Blog post footer — unified tags + share + author card (scoped to blog detail) */
.blog-post-footer {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    margin-top: 24px;
    overflow: hidden;
}
.blog-post-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: #138b4c;
}
.blog-post-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px;
}
.blog-post-footer__label {
    display: block;
    font-size: 11px;
    color: #888780;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.blog-post-footer__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-post-footer__tag {
    background: #eaf6ef;
    color: #138b4c;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
}
.blog-post-footer__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f4f8f5;
}
.blog-post-footer__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #138b4c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.blog-post-footer__author-label {
    font-size: 12px;
    color: #138b4c;
}
.blog-post-footer__author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0d2d52;
}

/* Blog footer share icons → uniform green circles (matches accent card) */
.blog-post-footer__share .shareon > * {
    border-radius: 50% !important;
    background-color: #138b4c !important;
    margin: 0 4px 0 0;
}
.blog-post-footer__share .shareon > :hover { opacity: 0.85; }

/* Blog sidebar — search (green button) + categories (left-accent rows). Scoped to blog detail page */
.blog-sidebar .sidebar-search-form form {
    display: flex;
    align-items: center;
    position: static;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 4px 4px 4px 8px;
}
.blog-sidebar .sidebar-search-form input {
    width: auto;
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    font-size: 13px;
}
.blog-sidebar .sidebar-search-form button {
    position: static;
    background: #138b4c;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}
.blog-sidebar .shop-cat-list ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    color: #3d4a5c;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-sidebar .shop-cat-list ul li a i { color: #138b4c; }
.blog-sidebar .shop-cat-list ul li a:hover,
.blog-sidebar .shop-cat-list ul li.active a {
    border-left-color: #138b4c;
    background: #eaf6ef;
    color: #138b4c;
}

/* Blog sidebar fixes — tighter padding + correctly aligned search button */
.blog-sidebar .blog-widget {
    padding: 18px;
    margin-bottom: 20px;
}
.blog-sidebar .sidebar-search-form form {
    gap: 6px;
    padding: 5px 5px 5px 10px;
}
.blog-sidebar .sidebar-search-form input {
    padding: 8px 4px;
}
.blog-sidebar .sidebar-search-form button {
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Categories widget title icon */
.blog-sidebar .widget-title .cat-title-icon {
    color: #138b4c;
    margin-right: 8px;
    font-size: 0.9em;
}

/* Mobile: match the title block's side padding on the blog body text so
   heading and paragraphs align with a little left/right breathing room. */
@media (max-width: 767.98px) {
    .blog__details-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}
