/* Ontario Blog Redesign CSS */
:root {
    --blog-theme-red: #DA3A3A;
    --blog-header-color: #1E1E1E;
    --blog-content-color: #565656;
    --blog-bg-secondary: #FFFFFF;
    --border-radius-image-blog: 20px;
    --header_font: 'Inter', sans-serif;
    --content_font: 'Inter', sans-serif;
}

.blog-wrap {
    font-family: var(--content_font);
    background-color: transparent;
    color: var(--blog-content-color);
}

/* Blog Module Container */
.gt3_module_blog {
    margin-bottom: 64px;
}

.gt3_blog_items_wrapper {
    display: block;
}

/* Blog Post Preview - Type 2 (Horizontal) */
.blog_post_preview {
    margin-bottom: 64px;
    animation: blogFadeIn .5s ease forwards;
    opacity: 0;
}

@keyframes blogFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog_post_preview .item_wrapper {
    background: transparent;
    border-radius: 7px;
    overflow: hidden;
    /* transition: box-shadow .3s ease; */
}

/* Items Type 2 Layout */
.gt3_module_blog.items1.items_type2 .blog_post_preview .blog_content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.gt3_module_blog.items1.items_type2 .blog_post_preview .blog_post_media {
    width: 50%;
    margin: 0;
    border-radius: var(--border-radius-image-blog);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}

.gt3_module_blog.items1.items_type2 .blog_post_preview .blog_post_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gt3_module_blog.items1.items_type2 .blog_post_preview .blog_post_media:hover img {
    transform: scale(1.05);
}

/* Overlay elements on media */
.blog_post_media .post_category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.blog_post_media .post_category a {
    display: inline-block;
    font-size: 10px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 6px 10px;
    background-color: #fff;
    color: var(--blog-header-color);
    border-radius: 4px;
    text-decoration: none;
}

.blog_post_media .post_category a:hover {
    background-color: var(--blog-theme-red);
    color: #fff;
}

.blog_post_media .gt3_post_time_reading {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 6px 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    z-index: 5;
}

/* Content block */
.gt3_module_blog.items1.items_type2 .blog_post_preview .blog_content_wrap {
    flex: 1 1 auto;
    width: 50%;
    padding-left: 40px;
}

.blog_post_preview .blogpost_title {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 16px;
}

.blog_post_preview .blogpost_title a {
    color: var(--blog-header-color);
    text-decoration: none;
    transition: color .3s;
}

.blog_post_preview .blogpost_title a:hover {
    color: var(--blog-theme-red);
}

.blog_post_preview .listing_meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-content-color);
    margin-bottom: 20px;
}

.blog_post_preview .excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--blog-content-color);
    margin-bottom: 24px;
}

/* Button - Read More */
.gt3_module_button_list a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--blog-header-color);
    background-color: #f4f5f7;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.gt3_module_button_list a:hover {
    background-color: var(--blog-header-color);
    color: #fff;
}

/* Sidebar Styles */
.blog-sidebar-card {
    background: #f4f5f7;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.featured-widget-transparent {
    background: transparent !important;
}

.about-widget {
    text-align: left;
}

.blog-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--blog-header-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.blog-sidebar-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blog-theme-red);
}

/* About Widget Additions */
.about-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.about-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--blog-header-color);
}

.about-role {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.05em;
}

.about-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.about-socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.about-socials a {
    color: #000;
    transition: opacity 0.2s;
    display: inline-block;
}

.about-socials a:hover {
    opacity: 0.7;
}

/* Featured Large Layout */
.blog-featured-large {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
}

.blog-featured-large-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-featured-large:hover .blog-featured-large-img {
    transform: scale(1.05);
}

.blog-featured-large-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    color: #fff;
}

.blog-featured-large-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #fff;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.blog-featured-large-meta {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Categories List */
.blog-categories-list li {
    margin-bottom: 12px;
}

.blog-sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    color: var(--blog-content-color);
    text-decoration: none;
    transition: color .2s;
}

.blog-sidebar-cat-link:hover {
    color: var(--blog-theme-red);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .gt3_module_blog.items1.items_type2 .blog_post_preview .blog_content {
        flex-direction: column;
        align-items: flex-start;
    }
    .gt3_module_blog.items1.items_type2 .blog_post_preview .blog_post_media {
        width: 100%;
        margin-bottom: 30px;
    }
    .gt3_module_blog.items1.items_type2 .blog_post_preview .blog_content_wrap {
        width: 100%;
        padding-left: 0;
    }
}

/* Category Navigation (Horizontal Bar) */
.blog-topbar.blog-categories-ontario {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.post_cats_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 0 30px;
    -webkit-overflow-scrolling: touch;
    animation: catReveal .3s ease-out .1s both;
}

@keyframes catReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gt3-category__item {
    display: inline-block;
}

.gt3-category__item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1E1E1E;
    text-decoration: none;
    border-radius: 9999px;
    background: #f4f5f7;
    transition: all .2s ease;
    white-space: nowrap;
}

.gt3-category__item-link:hover {
    background: #e8eaef;
    transform: translateY(-1px);
}

.gt3-category__item-link.active,
.gt3-category__item-link--all.active {
    background: #1E1E1E !important;
    color: #fff !important;
}

.gt3-category__item-link--all.active {
    background: #1E1E1E !important;
    color: #fff !important;
}

.gt3-category__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.gt3-category__label {
    line-height: 1.2;
}

.gt3-category__count {
    font-size: 11px;
    color: #888;
    margin-left: 2px;
}

/* Category Description & Breadcrumbs */
.blog-category-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--blog-content-color);
    margin-bottom: 40px;
    max-width: 800px;
}

.gt3-post-title_wrapper {
    margin-bottom: 40px;
}

.gt3_page_title_cats {
    margin-bottom: 15px;
}

.blog_content blockquote {
    position: relative;
    padding: 40px 60px;
    background-color: #f5f7fa;
    border-radius: 20px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--blog-header-color);
    margin: 40px 0;
    border: none;
}

.blog_content blockquote cite {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 15px;
    font-style: normal;
}

@media (max-width: 768px) {
    .post_cats_wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 16px 0 24px;
        gap: 8px;
    }
    .gt3-category__item-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    .gt3-category__icon {
        width: 40px;
        height: 40px;
    }
    .blog_content blockquote {
        padding: 30px;
        font-size: 20px;
    }
}

/* Reading Progress & Social Share (Single Post) */
.reading-progress-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 30px;
    background: transparent;
}

.reading-progress-ring {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.ring-progress {
    transition: stroke-dashoffset 0.1s linear;
}

.reading-progress-text {
    position: absolute;
    text-align: center;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    top: 0;
    left: 0;
}

.post-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #1E1E1E;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.post-share-icons a:hover {
    background: #f4f5f7;
    color: var(--blog-theme-red);
}
