﻿[data-gjs-type="wrapper"] {
    padding-bottom: 50px;
    margin-bottom: 100px;
}

[data-gjs-type="container"]:empty:before {
    background-color: #ddd;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 10px;
    opacity: 0.3;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    content: "Container";
}

[data-gjs-type="row"]:empty:before {
    background-color: #ddd;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 10px;
    opacity: 0.3;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    content: "Row";
}

[data-gjs-type="column"]:empty:before {
    background-color: #ddd;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 10px;
    opacity: 0.3;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    content: "Column";
}

.gjs-link-box {
    vertical-align: top;
    padding: 0px;
    max-width: 100%;
}

.gjs-link-box img {
    max-width: 100%;
    vertical-align: middle;
}

/* Fix for img size calculation - https://github.com/aFarkas/lazysizes/#automatically-setting-the-sizes-attribute */
img[data-sizes="auto"] {
    display: block;
    width: 100%;
}

.fit-cover {
    -webkit-object-fit: cover;
    object-fit: cover;
}

/* Fix for contenteditable in Safari */
[contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

/* Paging styles */
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}


/*
 * ====================
 * Blog Specific Styles
 * ==================== 
 */


/* Blog post content links (not headings) */
.blog-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .blog-content a:hover,
    .blog-content a:focus {
        color: var(--primary-accent);
        text-decoration: underline;
    }

/* Category links in sidebar */
.list-unstyled a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .list-unstyled a:hover,
    .list-unstyled a:focus {
        color: var(--primary-accent);
        text-decoration: none;
    }

/* Category links: muted by default, orange on hover */
.list-unstyled a {
    color: #444;
    transition: color 0.2s;
}

    .list-unstyled a:hover,
    .list-unstyled a:focus {
        color: var(--primary);
    }

/* Read More: always orange */
.post-read-more {
    color: var(--primary);
    font-weight: 500;
}

    .post-read-more:hover,
    .post-read-more:focus {
        color: var(--primary-accent);
    }

/* Link primary utility class for "Read More" links */
.link-primary {
    color: var(--primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .link-primary:hover,
    .link-primary:focus {
        color: var(--primary-accent) !important;
        text-decoration: none;
    }

/* Pagination styles */
.pagination .page-link {
    color: #888;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}

    .pagination .page-link:hover,
    .pagination .page-link:focus {
        color: var(--primary);
        background: #f9f9f9;
        border-color: var(--primary-accent);
    }

.pagination .page-item.active .page-link {
    color: #fff !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    z-index: 1;
}

.pagination .page-item.disabled .page-link {
    color: #ddd;
    background: #fff;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

/* Sidebar sticky offset to avoid navbar overlap (more specific selector) */
.sticky-top.sidebar-sticky {
    top: 112px !important;
    z-index: 1010;
}

/* Widget heading for sidebar sections */
.widget-heading {
    margin-bottom: 0.5rem;
    /* Add custom styles here, e.g.: */
    /* font-size: 1.1rem; */
    /* font-weight: 600; */
    /* color: var(--primary); */
}

/* Blog-specific classes for custom templates */
.post-item {
    margin-bottom: 2rem; /* replaces mb-4 */
}

.post-image {
    display: block;
    /* Add custom image spacing or styles here */
}

.post-title {
    margin-bottom: 0.5rem;
    line-height: 1;
    /* Add custom title styles here */
}

.post-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    margin-bottom: 1rem;
    /* Add custom excerpt styles here */
}

.post-publish-date {
    margin-right: 1rem;
    /* Add custom date styles here */
}

.post-category {
    /* Add custom category badge styles here */
}

.post-read-more {
    margin-left: 0;
    /* Add custom read more link styles here */
}

.post-author {
    color: #888 !important;
    font-weight: 500;
    font-size: 1rem;
}

.blog-paging {
    margin-top: 3rem;
    /* Add custom pagination spacing here */
}

/* Blog breadcrumb links */
.blog-breadcrumb {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 0.2rem;
}

    .blog-breadcrumb a {
        color: #888;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .blog-breadcrumb a:hover,
        .blog-breadcrumb a:focus {
            color: var(--primary-accent);
            text-decoration: underline;
        }

/* Blog previous/next post navigation links */
.blog-post-nav-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .blog-post-nav-link:hover,
    .blog-post-nav-link:focus {
        color: var(--primary-accent);
        text-decoration: underline;
    }

/* Blog content typography improvements for readability */
.blog-content {
    line-height: 1.7;
}

    .blog-content h2,
    .blog-content h3,
    .blog-content h4 {
        line-height: 1.25;
        margin-top: 2.2rem;
        margin-bottom: 1rem;
        font-weight: 700;
        font-family: inherit;
    }

    .blog-content h2 {
        font-size: 2rem;
    }

    .blog-content h3 {
        font-size: 1.35rem;
    }

    .blog-content h4 {
        font-size: 1.1rem;
    }

    .blog-content p,
    .blog-content ul,
    .blog-content ol {
        margin-bottom: 1.2rem;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }

.blog-main {
    /*padding: 0 0 3rem 0;
    max-width: 700px;*/
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 2.5rem;
}

/* Blog post title typography */
.post-title {
    line-height: 1.4;
}

.post-title-large {
    line-height: 1.35;
}

/* Blog index post meta line */
.post-meta {
    font-size: 0.88rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em;
}

    .post-meta .post-category,
    .post-meta .post-featured {
        color: #aaa;
        background: #f3f3f3;
        border-radius: 0.3em;
        font-size: 0.85em;
        padding: 0.2em 0.5em;
        font-weight: 500;
        margin-left: 0.2em;
        box-shadow: none;
    }

.post-featured {
    background: #f9e3d6;
    color: #f98357;
    border-radius: 0.3em;
    font-size: 0.85em;
    padding: 0.2em 0.5em;
    font-weight: 500;
    margin-left: 0.2em;
}

.post-author {
    color: #aaa !important;
    font-weight: 400;
    font-size: 0.88rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    line-height: 1.25;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: inherit;
}

.blog-content h2 {
    font-size: 2rem;
}

.blog-content h3 {
    font-size: 1.35rem;
}

.blog-content h4 {
    font-size: 1.1rem;
}

.blog-content p,
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.2rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
}

.blog-main-card {
    padding-top: 1.5rem;
}

.social-sharing .share-btn {
    color: #666;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem; /* Slightly larger for square */
    height: 2rem; /* Matches width for square */
    border-radius: 0.375rem; /* Rounded corners instead of 50% */
    background-color: #f8f9fa;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    margin-right: 0.3rem;
    line-height: 1;
    vertical-align: middle;
}

    .social-sharing .share-btn:last-child {
        margin-right: 0;
    }

    .social-sharing .share-btn:hover {
        color: #fff; /* White text on hover */
        background: var(--primary);
    }

.social-sharing .fab, .social-sharing .fas {
    pointer-events: none;
    line-height: 1;
    vertical-align: middle;
    font-size: 1rem; /* Consistent icon size */
    width: 1em;
    height: 1em;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-sharing .d-flex {
    gap: 0 !important;
}

/* Blog-specific responsive adjustments */
@media (max-width: 768px) {
    .featured-post .card-img-top {
        height: 200px;
    }

    .sidebar-widget {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-content h1 {
        font-size: 1.75rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.25rem;
    }
}

/*
 * =========================
 * Blog Specific Styles End
 * ========================= 
 */

