
/* =========================================================
   OJSHUB TOOLS - MINHUB BLOG INTEGRATED CSS
   Version : 3.1
   PHP     : 8.2 Compatible
   Scope   : .ojshub-blog
   ========================================================= */


/* =========================================================
   01. BASE LAYOUT
   ========================================================= */

.ojshub-blog {
    background: #f6f8fc;
    color: #172c4a;
    min-height: 65vh;
    padding: 30px 0 70px;
    font-family: inherit;
}

.ojshub-blog * {
    box-sizing: border-box;
}

.ojshub-blog a {
    text-decoration: none;
}

.ojshub-blog .blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.ojshub-blog .wrap {
    max-width: 1160px;
    margin: 0 auto;
}


/* =========================================================
   02. BLOG HERO
   ========================================================= */

.ojshub-blog .hero {
    text-align: center;
    background: linear-gradient(
        130deg,
        #eaf2ff,
        #ffffff
    );
    border: 1px solid #e0e9f8;
    border-radius: 24px;
    padding: 54px 24px;
    margin: 8px 0 30px;
}

.ojshub-blog .hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 10px 0;
    color: #102b51;
    line-height: 1.2;
}

.ojshub-blog .hero p {
    color: #657991;
    line-height: 1.7;
    margin: 0;
}

.ojshub-blog .eyebrow {
    color: #2466c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   03. SEARCH BAR
   ========================================================= */

.ojshub-blog .searchbar {
    display: flex;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto 27px;
}

.ojshub-blog .searchbar input {
    flex: 1;
    min-width: 0;
    padding: 14px 17px;
    border: 1px solid #d9e4f3;
    border-radius: 11px;
    background: #ffffff;
    color: #172c4a;
    font: inherit;
    outline: none;
}

.ojshub-blog .searchbar input:focus {
    border-color: #1769d8;
    box-shadow: 0 0 0 3px rgba(23, 105, 216, 0.10);
}

.ojshub-blog .searchbar button {
    border: 0;
    border-radius: 10px;
    background: #1769d8;
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 750;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ojshub-blog .searchbar button:hover {
    background: #1158b8;
}


/* =========================================================
   04. CATEGORY FILTERS
   ========================================================= */

.ojshub-blog .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.ojshub-blog .filters a {
    padding: 9px 15px;
    border: 1px solid #dce6f3;
    background: #ffffff;
    border-radius: 99px;
    font-size: 13px;
    color: #36516f;
    transition: all 0.2s ease;
}

.ojshub-blog .filters a:hover {
    background: #eaf2ff;
    border-color: #bcd4f5;
}

.ojshub-blog .filters a.selected {
    background: #1769d8;
    border-color: #1769d8;
    color: #ffffff;
}


/* =========================================================
   05. ARTICLE GRID
   ========================================================= */

.ojshub-blog .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ojshub-blog .card {
    background: #ffffff;
    border: 1px solid #e4eaf4;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(21, 55, 96, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ojshub-blog .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(21, 55, 96, 0.09);
}

.ojshub-blog .card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.ojshub-blog .image-placeholder {
    height: 190px;
    background: linear-gradient(
        130deg,
        #16437b,
        #3889df
    );
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    padding: 20px;
}

.ojshub-blog .cardbody {
    padding: 22px;
}

.ojshub-blog .card h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 11px 0;
    color: #142d4e;
}

.ojshub-blog .card h2 a,
.ojshub-blog .card h3 a {
    color: #142d4e;
}

.ojshub-blog .card h2 a:hover,
.ojshub-blog .card h3 a:hover {
    color: #1769d8;
}

.ojshub-blog .card p {
    color: #6d7f96;
    line-height: 1.7;
    font-size: 14px;
}

.ojshub-blog .read {
    display: inline-block;
    margin-top: 8px;
    font-weight: 750;
    color: #1469ce;
}

.ojshub-blog .read:hover {
    color: #104d9d;
}


/* =========================================================
   06. EMPTY ARTICLE STATE
   ========================================================= */

.ojshub-blog .empty {
    text-align: center;
    padding: 65px 20px;
    color: #7c8ca0;
    background: #ffffff;
    border: 1px solid #e4eaf4;
    border-radius: 16px;
}


/* =========================================================
   07. ARTICLE DETAIL CONTAINER
   ========================================================= */

.ojshub-blog .article-wrap {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e4eaf4;
    border-radius: 18px;
    padding: 38px 42px;
}

.ojshub-blog .article-wrap h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.25;
    color: #152e52;
    margin: 18px 0;
}

.ojshub-blog .back {
    display: inline-block;
    margin-bottom: 22px;
    color: #1769d8;
    font-weight: 500;
}

.ojshub-blog .back:hover {
    color: #104d9d;
}

.ojshub-blog .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #73849b;
    font-size: 13px;
}

.ojshub-blog .lead {
    font-size: 18px;
    color: #64768c;
    line-height: 1.8;
}

.ojshub-blog .hero-img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 14px;
    margin: 22px 0;
}


/* =========================================================
   08. ARTICLE BODY TYPOGRAPHY
   ========================================================= */

.ojshub-blog .article-body {
    font-size: 16px;
    line-height: 1.9;
    color: #314862;
    overflow-wrap: anywhere;
}

.ojshub-blog .article-body p {
    margin: 0 0 20px;
    line-height: 1.9;
}

.ojshub-blog .article-body h2,
.ojshub-blog .article-body h3 {
    margin: 30px 0 12px;
    color: #152e52;
    line-height: 1.4;
}

.ojshub-blog .article-body ul,
.ojshub-blog .article-body ol {
    margin: 12px 0 22px;
    padding-left: 26px;
}

.ojshub-blog .article-body li {
    margin-bottom: 8px;
}

.ojshub-blog .article-body a {
    color: #1769d8;
    text-decoration: underline;
}

.ojshub-blog .article-body blockquote {
    margin: 25px 0;
    padding: 15px 22px;
    background: #f4f8ff;
    border-left: 4px solid #1769d8;
    border-radius: 0 10px 10px 0;
}


/* =========================================================
   09. ARTICLE IMAGE SETTINGS
   ========================================================= */

.ojshub-blog .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    vertical-align: middle;
}

/* Image alignment */

.ojshub-blog .article-body p[align="left"] {
    text-align: left;
}

.ojshub-blog .article-body p[align="center"] {
    text-align: center;
}

.ojshub-blog .article-body p[align="right"] {
    text-align: right;
}

.ojshub-blog .article-body p[style*="text-align: center"] {
    text-align: center;
}

.ojshub-blog .article-body p[style*="text-align: right"] {
    text-align: right;
}

/* Image sizes using data-width */

.ojshub-blog .article-body img[data-width="25"] {
    width: 25% !important;
}

.ojshub-blog .article-body img[data-width="40"] {
    width: 40% !important;
}

.ojshub-blog .article-body img[data-width="50"] {
    width: 50% !important;
}

.ojshub-blog .article-body img[data-width="60"] {
    width: 60% !important;
}

.ojshub-blog .article-body img[data-width="75"] {
    width: 75% !important;
}

.ojshub-blog .article-body img[data-width="100"] {
    width: 100% !important;
}

/* Compatibility with older image width attributes */

.ojshub-blog .article-body img[width="25"] {
    width: 25% !important;
}

.ojshub-blog .article-body img[width="40"] {
    width: 40% !important;
}

.ojshub-blog .article-body img[width="50"] {
    width: 50% !important;
}

.ojshub-blog .article-body img[width="60"] {
    width: 60% !important;
}

.ojshub-blog .article-body img[width="75"] {
    width: 75% !important;
}

.ojshub-blog .article-body img[width="100"] {
    width: 100% !important;
}


/* =========================================================
   10. ARTICLE TABLES
   ========================================================= */

.ojshub-blog .article-body table {
    border-collapse: collapse;
    width: 100%;
    display: block;
    overflow-x: auto;
    margin: 20px 0;
}

.ojshub-blog .article-body th,
.ojshub-blog .article-body td {
    border: 1px solid #dce5f1;
    padding: 10px 12px;
    text-align: left;
}

.ojshub-blog .article-body th {
    background: #f1f5f9;
    font-weight: 700;
}


/* =========================================================
   11. SHARE ARTICLE
   ========================================================= */

.ojshub-blog .shareline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid #e7edf5;
    margin-top: 35px;
    padding-top: 20px;
}

.ojshub-blog .shareline a,
.ojshub-blog .shareline button {
    border: 1px solid #dce6f3;
    background: #ffffff;
    border-radius: 9px;
    padding: 9px 13px;
    color: #1769d8;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.ojshub-blog .shareline a:hover,
.ojshub-blog .shareline button:hover {
    background: #eff5ff;
}


/* =========================================================
   12. RELATED ARTICLES
   ========================================================= */

.ojshub-blog .related {
    margin-top: 45px;
}

.ojshub-blog .related > h2 {
    font-size: 22px;
    color: #152e52;
    margin-bottom: 20px;
}

.ojshub-blog .related .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ojshub-blog .related .card img,
.ojshub-blog .related .image-placeholder {
    height: 120px;
}

.ojshub-blog .related .cardbody {
    padding: 14px;
}

.ojshub-blog .related h3 {
    font-size: 15px;
    line-height: 1.45;
    margin: 8px 0;
}


/* =========================================================
   13. ARTICLE DETAIL TWO-COLUMN LAYOUT
   ========================================================= */

.ojshub-blog .ojshub-article-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 790px)
        minmax(250px, 310px);
    align-items: start;
    gap: 24px;
    max-width: 1150px;
    margin: 0 auto;
}

.ojshub-blog .ojshub-article-grid .article-wrap {
    max-width: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 36px;
}


/* =========================================================
   14. ARTICLE SIDEBAR
   ========================================================= */

.ojshub-blog .ojshub-article-sidebar {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 18px;
}

.ojshub-blog .ojshub-side-card {
    background: #ffffff;
    border: 1px solid #e4eaf4;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(21, 55, 96, 0.04);
}

.ojshub-blog .ojshub-side-card h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 8px 0 10px;
    color: #142e52;
}

.ojshub-blog .ojshub-side-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #687e97;
    margin: 0 0 16px;
}


/* =========================================================
   15. SIDEBAR TOOLS NAVIGATION
   ========================================================= */

.ojshub-blog .ojshub-tools-list {
    display: grid;
    gap: 7px;
}

.ojshub-blog .ojshub-tools-list a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
    border: 1px solid #edf1f8;
    border-radius: 10px;
    color: #1d416e;
    font-size: 13px;
    background: #f9fbff;
    transition: all 0.2s ease;
}

.ojshub-blog .ojshub-tools-list a span {
    flex: 1;
}

.ojshub-blog .ojshub-tools-list a:hover {
    background: #eaf2ff;
    border-color: #c8dcf7;
    color: #1769d8;
}

.ojshub-blog .ojshub-all-tools {
    display: block;
    margin-top: 16px;
    color: #1769d8;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   16. SIDEBAR RECENT ARTICLES
   ========================================================= */

.ojshub-blog .ojshub-side-article {
    display: block;
    border-top: 1px solid #edf1f7;
    padding: 13px 0;
    color: #173457;
}

.ojshub-blog .ojshub-side-article strong {
    display: block;
    font-size: 13px;
    line-height: 1.55;
}

.ojshub-blog .ojshub-side-article small {
    display: block;
    margin-top: 5px;
    color: #7a8aa0;
}

.ojshub-blog .ojshub-side-article:hover strong {
    color: #1769d8;
}


/* =========================================================
   17. PAGINATION V3
   ========================================================= */

.ojshub-blog .pagination,
.ojshub-blog .minhub-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 36px 0;
}

.ojshub-blog .pagination a,
.ojshub-blog .minhub-pages a {
    display: inline-flex;
    min-width: 39px;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1741a0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ojshub-blog .pagination a:hover,
.ojshub-blog .minhub-pages a:hover:not(.current) {
    background: #eff3ff;
    border-color: #bfd0ee;
}

.ojshub-blog .minhub-pages a.current {
    background: #635bff;
    border-color: #635bff;
    color: #ffffff;
}


/* =========================================================
   18. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ojshub-blog .ojshub-article-grid {
        grid-template-columns: 1fr;
        max-width: 780px;
    }

    .ojshub-blog .ojshub-article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ojshub-blog .ojshub-article-grid .article-wrap {
        padding: 30px;
    }
}

@media (max-width: 850px) {

    .ojshub-blog .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ojshub-blog .related .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   19. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ojshub-blog {
        padding: 18px 0 45px;
    }

    .ojshub-blog .blog-layout {
        padding: 0 14px;
    }

    .ojshub-blog .hero {
        padding: 35px 18px;
        border-radius: 18px;
    }

    .ojshub-blog .hero h1 {
        font-size: 30px;
    }

    .ojshub-blog .searchbar {
        flex-direction: column;
    }

    .ojshub-blog .searchbar button {
        width: 100%;
    }

    .ojshub-blog .cards,
    .ojshub-blog .related .cards {
        grid-template-columns: 1fr;
    }

    .ojshub-blog .card img {
        height: 200px;
    }

    .ojshub-blog .article-wrap {
        padding: 22px 18px;
    }

    .ojshub-blog .article-wrap h1 {
        font-size: 28px;
    }

    .ojshub-blog .article-body {
        font-size: 15px;
        line-height: 1.8;
    }

    .ojshub-blog .article-body p {
        line-height: 1.8;
    }

    .ojshub-blog .ojshub-article-grid .article-wrap {
        padding: 22px 18px;
    }

    .ojshub-blog .ojshub-article-sidebar {
        grid-template-columns: 1fr;
    }

    .ojshub-blog .ojshub-side-card {
        padding: 20px;
    }

    .ojshub-blog .article-meta {
        gap: 8px 12px;
        font-size: 12px;
    }

    .ojshub-blog .lead {
        font-size: 16px;
    }

    .ojshub-blog .hero-img {
        max-height: 300px;
    }

    .ojshub-blog .shareline {
        gap: 8px;
    }

    .ojshub-blog .related {
        margin-top: 35px;
    }

    .ojshub-blog .related .card img,
    .ojshub-blog .related .image-placeholder {
        height: 180px;
    }
}


/* =========================================================
   20. SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .ojshub-blog .blog-layout {
        padding: 0 10px;
    }

    .ojshub-blog .article-wrap,
    .ojshub-blog .ojshub-article-grid .article-wrap {
        padding: 18px 14px;
    }

    .ojshub-blog .article-wrap h1 {
        font-size: 25px;
    }

    .ojshub-blog .filters a {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ojshub-blog .minhub-pages a {
        min-width: 35px;
        min-height: 35px;
        padding: 7px 10px;
    }
}
