/*-------------------######################### Blog Page Css Start ####################-----------------------------*/

/* ===== Blog head banner (unchanged - existing hero background) ===== */
#bloghead_sec{
    width: 100%;
    height: 50vh;
    background: url('https://trssoftwaresolutions.com/wp-content/uploads/2025/01/blog_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Category / Tag archive heading ===== */
.archiveHeading {
    text-align: center;
    margin: 45px 0 25px;
}
.archiveHeading h1 {
    color: #111111;
    font-size: 2rem;
    font-weight: 700;
    text-transform: capitalize;
}
@media (max-width: 700px) {
    .archiveHeading h1 {
        font-size: 1.5rem;
    }
}

/* ===== Blog grid wrapper ===== */
.blogGrid {
    padding-top: 20px;
}

/* ===== Meta line: category • date ===== */
.blogPost-meta {
    font-size: .78rem;
    font-weight: 700;
    color: #888;
    margin-bottom: .6rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.blogPost-category {
    display: inline-block;
    background: #222221;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .7rem;
    letter-spacing: .04em;
}
.blogPost-dot {
    margin: 0 6px;
    color: #ccc;
}

/* ===== Two column layout: posts + sidebar ===== */
.blogGridWrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.blogGridMain {
    flex: 1;
    min-width: 0; /* prevents flex item from overflowing */
}

/* ===== Post list - one post per row ===== */
.blogGridRow {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================================================
   SIDEBAR
========================================================= */
.blogSidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px;
}

.sidebarWidget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px 6px #dddddd57;
    padding: 22px 24px;
}

.sidebarWidget-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f45a2a;
    color: #111111;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ----- Search widget ----- */
.sidebarSearch .search-form {
    position: relative;
    width: 100%;
}
.sidebarSearch .search-form label {
    display: block;
    width: 100%;
    margin: 0;
}
.sidebarSearch input[type="search"],
.sidebarSearch .search-field {
    width: 100%;
    padding: 13px 50px 13px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    background: #f7f7f7;
    font-size: .9rem;
    color: #333;
    transition: border-color .2s ease, background .2s ease;
    box-sizing: border-box;
}
.sidebarSearch input[type="search"]::placeholder,
.sidebarSearch .search-field::placeholder {
    color: #999;
}
.sidebarSearch input[type="search"]:focus,
.sidebarSearch .search-field:focus {
    outline: none;
    border-color: #f45a2a;
    background: #ffffff;
}
.sidebarSearch input[type="submit"],
.sidebarSearch .search-submit {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background-color: #f45a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    line-height: 40px !important;
    font-size: 0 !important;
    color: transparent !important;
    cursor: pointer;
    transition: background-color .2s ease;
}
.sidebarSearch input[type="submit"]:hover,
.sidebarSearch .search-submit:hover {
    background-color: #222221;
}

/* ----- Categories widget ----- */
.sidebarCategories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebarCategories li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: .9rem;
    color: #555;
}
.sidebarCategories li:last-child {
    border-bottom: none;
}
.sidebarCategories a {
    color: #333;
    transition: color .2s ease;
}
.sidebarCategories a:hover {
    color: #f45a2a;
}

/* ----- Recent posts widget ----- */
.sidebarRecent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebarRecent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.sidebarRecent-thumb {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
}
.sidebarRecent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebarRecent-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: #eeeeee;
}
.sidebarRecent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebarRecent-info a {
    color: #222222;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color .2s ease;
}
.sidebarRecent-info a:hover {
    color: #f45a2a;
}
.sidebarRecent-date {
    color: #999999;
    font-size: .75rem;
}

/* ----- Popular Tags widget ----- */
.sidebarTags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebarTag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f7f7f7;
    border-radius: 20px;
    color: #333333;
    font-size: .82rem;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.sidebarTag-pill:hover {
    background: #f45a2a;
    color: #ffffff;
}
.sidebarTag-count {
    font-size: .72rem;
    font-weight: 700;
    color: #999999;
}
.sidebarTag-pill:hover .sidebarTag-count {
    color: #ffe4d6;
}

/* ----- Explore More widget (Services / Technologies / Industries) ----- */
.sidebarExplore-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebarExplore-list a {
    display: block;
    padding: 10px 16px;
    background: #f7f7f7;
    border-radius: 8px;
    color: #222222;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}
.sidebarExplore-list a:hover {
    background: #f45a2a;
    color: #ffffff;
}

/* ===== Post card - horizontal: image left, content right ===== */
.blogPost {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px 6px #dddddd57;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.blogPost:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* ===== Image wrapper - fixed size left side, consistent aspect ratio, no awkward cropping ===== */
.blogPost-thumb {
    display: block;
    overflow: hidden;
    flex: 0 0 340px;
    aspect-ratio: 16 / 10;
    padding-left: 15px;
    background: #ffffff; /* shows behind image if it doesn't perfectly fill (letterbox), avoids harsh crop look */
}
.blogPost-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
}
.blogPost:hover .blogPost-thumb img {
    transform: scale(1.06);
}

.blogPost-content {
    padding: 26px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blogPost-content h3 {
    font-size: 1.35rem;
    line-height: 1.9rem;
    margin: .4rem 0 .8rem;
    text-transform: capitalize;
    transition: color 0.2s ease;
}
.blogPost-content a:hover h3 {
    color: #FC9046;
}
.blogPost-content p {
    font-size: .88rem;
    line-height: 1.4rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 1rem;
    flex: 1;
}

/* ===== Read More link ===== */
.blogPost-readmore {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: .85rem;
    font-weight: 700;
    color: #f45a2a;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.blogPost-readmore:hover {
    border-color: #f45a2a;
    color: #000;
}

/* ===== Pagination ===== */
.blogPagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 3rem;
}
.blogPagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 0 10px 4px #dddddd57;
    color: #000;
    font-weight: 700;
    font-size: .9rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.blogPagination .page-numbers.current,
.blogPagination .page-numbers:hover {
    background: #f45a2a;
    color: #fff;
    box-shadow: none;
}

/* ===== Diagonal CTA banner ===== */
#blogCtaSection {
    position: relative;
    background: linear-gradient(120deg, #003b5c 0%, #005f8f 60%, #0b7bab 100%);
    padding: 70px 0;
    margin-top: 60px;
    overflow: hidden;
}
.blogCta-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 260px solid #f5a100;
    border-right: 180px solid transparent;
    opacity: 0.9;
}
.blogCta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.blogCta-inner h2 {
    color: #fff;
    font-size: 2.1rem;
    line-height: 2.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.blogCta-inner h2 span {
    color: #ff8029;
}
.blogCta-btn {
    display: inline-block;
    background: #f45a2a;
    color: #fff;
    padding: 14px 38px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}
.blogCta-btn:hover {
    background: #fff;
    color: #f45a2a;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .blogGridWrap {
        flex-direction: column;
    }
    .blogSidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
    .blogPost-thumb {
        flex: 0 0 260px;
    }
    .blogCta-corner {
        border-top: 180px solid #f5a100;
        border-right: 120px solid transparent;
    }
}
@media (max-width: 700px) {
    .blogPost {
        flex-direction: column;
    }
    .blogPost-thumb {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .blogPost-content {
        padding: 20px;
    }
    .blogCta-inner h2 {
        font-size: 1.5rem;
        line-height: 2.1rem;
    }
}

/*-------------------######################### Blog Page Css End ####################-----------------------------*/



/* =========================================================
   SINGLE BLOG POST PAGE
========================================================= */


/* =========================
   MAIN SECTION
========================= */

.singleBlogSection {
    width: 100%;
    padding: 70px 0 60px;
    background: #ffffff;
}


/* =========================
   BLOG ARTICLE
========================= */

.singleBlogPost {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================
   CATEGORY + DATE
========================= */

.singleBlogMeta {
    width: 100%;
    text-align: center;

    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;

    color: #888888;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.singleBlogCategory {
    display: inline-block;

    padding: 5px 13px;

    background: #222221;
    color: #ffffff;

    border-radius: 4px;

    font-size: 11px;
    line-height: 1.4;
}


.singleBlogDot {
    display: inline-block;

    margin: 0 7px;

    color: #cccccc;
}


.singleBlogDate {
    color: #888888;
}


/* =========================
   BLOG TITLE
========================= */

.singleBlogTitle {
    width: 100%;
    max-width: 950px;

    margin: 0 auto 15px;

    text-align: center;

    color: #111111;

    font-size: 48px;
    line-height: 1.2;

    font-weight: 700;
}


/* =========================
   AUTHOR
========================= */

.singleBlogAuthor {
    width: 100%;

    margin-bottom: 40px;

    text-align: center;

    color: #777777;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   FEATURED IMAGE
========================= */

.singleBlogFeatured {
    width: 100%;

    margin-bottom: 45px;

    overflow: hidden;

    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 0 15px 6px #dddddd57;
}


.singleBlogFeatured img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* =========================
   BLOG CONTENT
========================= */

.singleBlogContent {
    width: 100%;
    /* max-width: 900px; */

    margin: 0 auto;

    color: #333333;

    font-size: 16px;
    line-height: 1.8;
}


/* Paragraph */

.singleBlogContent p {
    margin-top: 0;
    margin-bottom: 22px;

    color: #333333;

    font-size: 16px;
    line-height: 1.8;
}


/* Headings */

.singleBlogContent h2 {
    margin-top: 45px;
    margin-bottom: 18px;

    color: #111111;

    font-size: 30px;
    line-height: 1.35;

    font-weight: 700;
}


.singleBlogContent h3 {
    margin-top: 35px;
    margin-bottom: 15px;

    color: #111111;

    font-size: 24px;
    line-height: 1.4;

    font-weight: 700;
}


.singleBlogContent h4 {
    margin-top: 28px;
    margin-bottom: 12px;

    color: #111111;

    font-size: 20px;
    line-height: 1.4;

    font-weight: 700;
}


/* Lists */

.singleBlogContent ul,
.singleBlogContent ol {
    margin: 20px 0;

    padding-left: 25px;
}


.singleBlogContent li {
    margin-bottom: 8px;

    line-height: 1.7;
}


/* Links */

.singleBlogContent a {
    color: #f45a2a;

    text-decoration: none;
}


.singleBlogContent a:hover {
    color: #000000;
}


/* Images inside blog content */

.singleBlogContent img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 25px 0;

    border-radius: 8px;
}


/* =========================
   BLOCKQUOTE
========================= */

.singleBlogContent blockquote {
    margin: 30px 0;

    padding: 20px 25px;

    background: #f7f7f7;

    border-left: 4px solid #f45a2a;

    color: #444444;

    font-size: 17px;
    line-height: 1.7;

    font-style: italic;
}


/* =========================
   TABLES
========================= */

.singleBlogContent table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;
}


.singleBlogContent th,
.singleBlogContent td {
    padding: 12px 15px;

    border: 1px solid #dddddd;

    text-align: left;
}


/* =========================
   TAGS
========================= */

.singleBlogTags {
    width: 100%;
    max-width: 900px;

    margin: 45px auto 0;

    padding-top: 25px;

    border-top: 1px solid #eeeeee;
}


.singleBlogTagsTitle {
    display: inline-block;

    margin-right: 8px;

    color: #222222;

    font-size: 14px;

    font-weight: 700;
}


.singleBlogTags a {
    display: inline-block;

    margin: 4px;
    padding: 6px 13px;

    background: #f5f5f5;

    border-radius: 20px;

    color: #333333;

    font-size: 13px;

    text-decoration: none;

    transition: all 0.2s ease;
}


.singleBlogTags a:hover {
    background: #f45a2a;

    color: #ffffff;
}


/* =========================
   PREVIOUS / NEXT
========================= */

.singleBlogNavigation {
    width: 100%;
    max-width: 1100px;

    margin: 60px auto 0;

    padding-top: 25px;

    border-top: 1px solid #eeeeee;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.singleBlogPrev,
.singleBlogNext {
    max-width: 48%;
}


.singleBlogNavigation a {
    color: #333333;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


.singleBlogNavigation a:hover {
    color: #f45a2a;
}


/* =========================
   POST NOT FOUND
========================= */

.singleBlogNoPost {
    width: 100%;

    padding: 80px 20px;

    text-align: center;
}


.singleBlogNoPost h2 {
    margin-bottom: 10px;

    font-size: 32px;

    color: #111111;
}


.singleBlogNoPost p {
    color: #666666;
}


/* =========================
   CTA
========================= */

.singleBlogCTA {
    position: relative;

    width: 100%;

    margin-top: 60px;

    padding: 70px 0;

    overflow: hidden;

    background: linear-gradient(
        120deg,
        #003b5c 0%,
        #005f8f 60%,
        #0b7bab 100%
    );
}


/* Orange corner */

.singleBlogCTACorner {
    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 0;

    border-top: 260px solid #f5a100;
    border-right: 180px solid transparent;

    opacity: 0.9;
}


.singleBlogCTAInner {
    position: relative;

    z-index: 2;

    max-width: 720px;

    margin: 0 auto;

    text-align: center;
}


.singleBlogCTAInner h2 {
    margin: 0 0 30px;

    color: #ffffff;

    font-size: 34px;
    line-height: 1.4;

    font-weight: 700;
}


.singleBlogCTAInner h2 span {
    color: #ff8029;
}


.singleBlogCTAButton {
    display: inline-block;

    padding: 14px 38px;

    background: #f45a2a;
    color: #ffffff;

    border-radius: 30px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}


.singleBlogCTAButton:hover {
    background: #ffffff;

    color: #f45a2a;

    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */


@media (max-width: 991px) {

    .singleBlogSection {
        padding: 60px 0 50px;
    }

    .singleBlogTitle {
        font-size: 38px;
    }

    .singleBlogContent {
        font-size: 15px;
    }

    .singleBlogContent p {
        font-size: 15px;
    }

    .singleBlogCTACorner {
        border-top-width: 180px;
        border-right-width: 120px;
    }

}


@media (max-width: 700px) {

    .singleBlogSection {
        padding: 45px 0;
    }

    .singleBlogTitle {
        font-size: 30px;
        line-height: 1.25;
    }

    .singleBlogAuthor {
        margin-bottom: 30px;
    }

    .singleBlogFeatured {
        margin-bottom: 35px;

        border-radius: 8px;
    }

    .singleBlogContent {
        font-size: 15px;
        line-height: 1.75;
    }

    .singleBlogContent p {
        font-size: 15px;
        line-height: 1.75;
    }

    .singleBlogContent h2 {
        font-size: 26px;
    }

    .singleBlogContent h3 {
        font-size: 21px;
    }

    .singleBlogNavigation {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .singleBlogPrev,
    .singleBlogNext {
        max-width: 100%;
    }

    .singleBlogCTA {
        padding: 55px 20px;
    }

    .singleBlogCTAInner h2 {
        font-size: 25px;
        line-height: 1.5;
    }

}