/* ==========================================================
   BLOG SECTION
========================================================== */

.tr-blog {

    padding: 110px 20px;

    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #ffffff 100%
    );

}


/* ==========================================================
   HOMEPAGE BLOG GRID
========================================================== */

.tr-blog-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 32px;

    margin-top: 55px;

}


/* ==========================================================
   HOMEPAGE BLOG CARD
========================================================== */

.tr-blog-card {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);

    transition: all .35s ease;

}


.tr-blog-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 22px 45px rgba(15, 23, 42, .12);

    border-color: #0A2E73;

}


/* ==========================================================
   HOMEPAGE BLOG IMAGE
========================================================== */

.tr-blog-image {

    overflow: hidden;

    display: block;

}


.tr-blog-image img {

    width: 100%;

    height: 320px;

    object-fit: cover;

    object-position: center top;

    display: block;

    transition: transform .4s ease;

}


.tr-blog-card:hover .tr-blog-image img {

    transform: scale(1.05);

}


/* ==========================================================
   HOMEPAGE BLOG CONTENT
========================================================== */

.tr-blog-content {

    padding: 30px;

}


.tr-blog-meta {

    font-size: 14px;

    font-weight: 500;

    color: #64748b;

    margin-bottom: 16px;

}


.tr-blog-content h3 {

    margin-bottom: 16px;

    font-size: 24px;

    line-height: 1.4;

    font-weight: 700;

}


.tr-blog-content h3 a {

    color: #0f172a;

    text-decoration: none;

    transition: color .3s ease;

}


.tr-blog-content h3 a:hover {

    color: #0A2E73;

}


.tr-blog-content p {

    color: #64748b;

    line-height: 1.8;

    margin-bottom: 22px;

}


/* ==========================================================
   HOMEPAGE BLOG READ MORE
========================================================== */

.tr-read-more {

    color: #0A2E73;

    font-weight: 700;

    text-decoration: none;

    transition: all .3s ease;

}


.tr-read-more:hover {

    color: #2563eb;

}


/* ==========================================================
   HOMEPAGE BLOG BUTTON
========================================================== */

.tr-blog-button {

    text-align: center;

    margin-top: 55px;

}


/* ==========================================================
   WORDPRESS BLOG / POST LISTING
   Used by index.php and archive.php
========================================================== */

.tr-post-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;

    align-items: stretch;

}


/* ==========================================================
   BLOG POST CARD
========================================================== */

.tr-post-card {

    display: flex;

    flex-direction: column;

    height: 100%;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}


.tr-post-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 22px 45px rgba(15, 23, 42, .12);

    border-color: #0A2E73;

}


/* ==========================================================
   BLOG POST IMAGE
========================================================== */

.tr-post-card__image {

    display: block;

    width: 100%;

    overflow: hidden;

}


.tr-post-card__image img {

    display: block;

    width: 100%;

    height: 260px;

    object-fit: cover;

    object-position: center;

    transition: transform .4s ease;

}


.tr-post-card:hover .tr-post-card__image img {

    transform: scale(1.05);

}


/* ==========================================================
   BLOG POST CONTENT
========================================================== */

.tr-post-card__content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 28px;

}


/* ==========================================================
   BLOG POST TITLE
========================================================== */

.tr-post-card__title {

    margin: 0 0 12px;

    font-size: 23px;

    line-height: 1.4;

    font-weight: 700;

}


.tr-post-card__title a {

    color: #0f172a;

    text-decoration: none;

}


.tr-post-card__title a:hover {

    color: #0A2E73;

}


/* ==========================================================
   BLOG POST META
========================================================== */

.tr-post-card__meta {

    margin-bottom: 15px;

    color: #64748b;

    font-size: 14px;

    font-weight: 500;

}


/* ==========================================================
   BLOG POST EXCERPT
========================================================== */

.tr-post-card__excerpt {

    margin-bottom: 24px;

    color: #64748b;

    font-size: 16px;

    line-height: 1.75;

}


.tr-post-card__excerpt p {

    margin: 0;

}


/* ==========================================================
   BLOG POST BUTTON
========================================================== */

.tr-post-card .tr-btn {

    margin-top: auto;

    align-self: flex-start;

}


/* ==========================================================
   BLOG PAGINATION
========================================================== */

.tr-pagination {

    margin-top: 55px;

    text-align: center;

}


.tr-pagination .nav-links {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

}


.tr-pagination a,
.tr-pagination span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;

    min-height: 42px;

    padding: 8px 14px;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    color: #0A2E73;

    background: #ffffff;

    text-decoration: none;

    font-weight: 600;

}


.tr-pagination .current {

    background: #0A2E73;

    color: #ffffff;

    border-color: #0A2E73;

}


/* ==========================================================
   BLOG NO RESULTS
========================================================== */

.tr-no-results {

    max-width: 700px;

    margin: 0 auto;

    padding: 50px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .tr-post-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .tr-blog {

        padding: 70px 20px;

    }


    .tr-blog-grid {

        gap: 24px;

    }


    .tr-blog-content {

        padding: 24px;

    }


    .tr-blog-content h3 {

        font-size: 21px;

    }


    .tr-post-grid {

        grid-template-columns: 1fr;

        gap: 24px;

    }


    .tr-post-card__image img {

        height: 220px;

    }


    .tr-post-card__content {

        padding: 24px;

    }


    .tr-post-card__title {

        font-size: 21px;

    }


    .tr-post-card__excerpt {

        font-size: 15px;

        line-height: 1.7;

    }


    .tr-post-card .tr-btn {

        width: 100%;

        justify-content: center;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .tr-post-card__content {

        padding: 22px;

    }


    .tr-post-card__image img {

        height: 200px;

    }

}

/* ==========================================================
   SINGLE BLOG POST
========================================================== */

.tr-single {
    padding: 80px 20px 100px;
    background: #f8fafc;
}

.tr-single > .tr-container {
    max-width: 900px;
    margin: 0 auto;
}

.tr-single__article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.tr-single__header {
    padding: 45px 50px 30px;
}

.tr-single__title {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
}

.tr-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
}

.tr-single__separator {
    color: #94a3b8;
}

.tr-single__featured-image {
    width: 100%;
    overflow: hidden;
}

.tr-single__featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.tr-single__content {
    padding: 40px 50px;
    color: #334155;
    font-size: 17px;
    line-height: 1.85;
}

.tr-single__content > *:first-child {
    margin-top: 0;
}

.tr-single__content > *:last-child {
    margin-bottom: 0;
}

.tr-single__content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.3;
}

.tr-single__content h3 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.4;
}

.tr-single__content p {
    margin-bottom: 20px;
}

.tr-single__content a {
    color: #0A2E73;
    font-weight: 600;
}

.tr-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.tr-single__content ul,
.tr-single__content ol {
    margin-bottom: 24px;
    padding-left: 25px;
}

.tr-single__content li {
    margin-bottom: 8px;
}

.tr-single__content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #0A2E73;
    background: #f8fafc;
    color: #475569;
}

.tr-single__footer {
    padding: 25px 50px 35px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.tr-single__categories,
.tr-single__tags {
    margin-bottom: 8px;
}

.tr-single__categories a,
.tr-single__tags a {
    color: #0A2E73;
    text-decoration: none;
}

.tr-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.tr-post-navigation__previous,
.tr-post-navigation__next {
    min-width: 0;
}

.tr-post-navigation a {
    display: block;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0A2E73;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.tr-post-navigation a:hover {
    border-color: #0A2E73;
    color: #2563eb;
}


/* ==========================================================
   SINGLE BLOG MOBILE
========================================================== */

@media (max-width: 767px) {

    .tr-single {
        padding: 50px 16px 70px;
    }

    .tr-single > .tr-container {
        width: 100%;
    }

    .tr-single__article {
        border-radius: 14px;
    }

    .tr-single__header {
        padding: 28px 22px 22px;
    }

    .tr-single__title {
        font-size: 32px;
        line-height: 1.25;
    }

    .tr-single__meta {
        font-size: 14px;
    }

    .tr-single__featured-image img {
        max-height: 300px;
    }

    .tr-single__content {
        padding: 28px 22px;
        font-size: 16px;
        line-height: 1.8;
    }

    .tr-single__content h2 {
        font-size: 26px;
    }

    .tr-single__content h3 {
        font-size: 22px;
    }

    .tr-single__footer {
        padding: 22px;
    }

    .tr-post-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}