/* =========================================================
   TML BLOG - MAIN LAYOUT
   File: assets/css/app.css

   File ini hanya mengatur:
   - Blog container
   - Layout utama
   - Grid artikel
   - Sidebar
   - Responsive

   Styling CARD ada di:
   assets/css/card.css
========================================================= */


/* =========================================================
   BLOG CONTAINER
========================================================= */

.tml-blog {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    padding: 50px 24px;

    box-sizing: border-box;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.tml-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 30px;

    align-items: start;

    width: 100%;
}


/* =========================================================
   POSTS AREA
========================================================= */

.tml-posts {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    width: 100%;

    min-width: 0;

    align-items: start;

    box-sizing: border-box;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tml-sidebar {
    width: 100%;

    min-width: 0;

    box-sizing: border-box;
}


/* =========================================================
   NO RESULTS
========================================================= */

.tml-no-results {
    width: 100%;

    padding: 40px 30px;

    background: #ffffff;

    border: 1px solid #edf0f3;

    border-radius: 14px;

    text-align: center;

    box-sizing: border-box;
}

.tml-no-results h3 {
    margin: 0 0 10px;

    color: #13294b;

    font-size: 22px;

    line-height: 1.4;
}

.tml-no-results p {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 1100px) {

    .tml-blog {
        padding-left: 20px;
        padding-right: 20px;
    }


    .tml-layout {
        grid-template-columns:
            minmax(0, 1fr)
            260px;

        gap: 22px;
    }


    .tml-posts {
        gap: 20px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .tml-posts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .tml-sidebar {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tml-blog {
        padding: 35px 16px;
    }


    .tml-posts {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .tml-no-results {
        padding: 30px 20px;
    }


    .tml-no-results h3 {
        font-size: 20px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .tml-blog {
        padding-left: 12px;
        padding-right: 12px;
    }


    .tml-posts {
        gap: 16px;
    }

}

/* =========================================================
   PAGINATION
========================================================= */

.tml-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    width: 100%;

    margin-top: 35px;

    padding: 0;

    box-sizing: border-box;
}

.tml-pagination a,
.tml-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #e4e7ec;

    border-radius: 8px;

    background: #ffffff;

    color: #344054;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.tml-pagination a:hover {
    border-color: #ff5a16;

    background: #ff5a16;

    color: #ffffff;
}

.tml-pagination .current {
    border-color: #ff5a16;

    background: #ff5a16;

    color: #ffffff;
}

.tml-pagination .dots {
    border-color: transparent;

    background: transparent;

    color: #98a2b3;

    cursor: default;
}


/* MOBILE */

@media (max-width: 650px) {

    .tml-pagination {
        gap: 5px;

        margin-top: 28px;
    }

    .tml-pagination a,
    .tml-pagination span {
        min-width: 34px;
        height: 34px;

        padding: 0 8px;

        font-size: 12px;
    }

}

/* =========================================================
   EMPTY STATE
========================================================= */

.tml-no-results {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 320px;

    padding: 45px 25px;

    background: #ffffff;

    border: 1px solid #edf0f3;

    border-radius: 14px;

    text-align: center;

    box-sizing: border-box;
}


/* ICON */

.tml-no-results-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 18px;

    border-radius: 50%;

    background: #fff4ee;

    font-size: 25px;

    line-height: 1;
}


/* TITLE */

.tml-no-results-title {
    margin: 0 0 10px;

    color: #13294b;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.4;
}


/* TEXT */

.tml-no-results-text {
    max-width: 430px;

    margin: 0 0 22px;

    color: #667085;

    font-size: 13px;

    line-height: 1.7;
}

.tml-no-results-text strong {
    color: #344054;

    font-weight: 600;
}


/* BUTTON */

.tml-no-results-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 18px;

    border-radius: 8px;

    background: #ff5a16;

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.tml-no-results-button:hover {
    background: #e94d0d;

    color: #ffffff;

    transform: translateY(-1px);
}


/* MOBILE */

@media (max-width: 650px) {

    .tml-no-results {
        min-height: 280px;

        padding: 35px 20px;
    }

    .tml-no-results-title {
        font-size: 18px;
    }

    .tml-no-results-text {
        font-size: 12px;
    }

}

/* =========================================================
   TML MAIN + SIDEBAR LAYOUT
========================================================= */

.tml-layout {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) 300px !important;

    gap: 30px !important;

    width: 100%;

    align-items: start;

    box-sizing: border-box;
}

.tml-main-content {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tml-layout > .tml-sidebar {
    display: block !important;

    width: 100% !important;

    min-width: 0;

    grid-column: 2;

    grid-row: 1;

    box-sizing: border-box;
}


/* =========================================================
   POSTS
========================================================= */

.tml-main-content > .tml-posts {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .tml-layout {
        grid-template-columns: 1fr !important;
    }

    .tml-layout > .tml-sidebar {
        grid-column: 1;

        grid-row: auto;

        margin-top: 30px;
    }

}

/* =========================================================
   BREADCRUMB
========================================================= */

.tml-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    width: 100%;

    margin: 0 0 18px;
    padding: 0;

    color: #98a2b3;

    font-size: 11px;
    line-height: 1.5;
}

.tml-breadcrumb-item {
    color: #667085;

    text-decoration: none;

    transition: color 0.2s ease;
}

.tml-breadcrumb-item:hover {
    color: #ff5a16;
}

.tml-breadcrumb-separator {
    color: #c4c9d1;

    user-select: none;
}

.tml-breadcrumb-current {
    color: #98a2b3;

    font-weight: 500;
}

/* =========================================================
   BLOG PAGE TITLE
========================================================= */

.tml-blog-title {
    margin: 0 0 20px;

    padding: 0;

    color: #13294b;

    font-size: 32px;
    font-weight: 700;

    line-height: 1.25;
}


/* MOBILE */

@media (max-width: 650px) {

    .tml-blog-title {
        margin-bottom: 16px;

        font-size: 26px;
    }

}

/* =========================================================
   SINGLE POST
========================================================= */

.tml-single-page {
    display: block !important;

    width: 100% !important;
    max-width: 1240px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 24px !important;
    padding-right: 24px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   LAYOUT SINGLE POST
========================================================= */

.tml-single-layout {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        300px !important;

    gap: 36px !important;

    width: 100% !important;
    max-width: 100% !important;

    align-items: start !important;
}

/* =========================================================
   LAYOUT SINGLE MAIN CONTENT
========================================================= */

.tml-single-main {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;
}

.tml-single-post {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}

/* =========================================================
   POST
========================================================= */

.tml-single-post {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   CATEGORY
========================================================= */

.tml-single-category {
    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    margin: 0 0 14px;

    border-radius: 30px;

    background: #ff5a16;

    color: #ffffff !important;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;

    text-decoration: none !important;
}

.tml-single-category:hover {
    background: #e84d0c;

    color: #ffffff !important;
}


/* =========================================================
   TITLE
========================================================= */

.tml-single-title {
    margin: 0 0 15px !important;

    padding: 0 !important;

    color: #13294b !important;

    font-size: 40px !important;

    font-weight: 700 !important;

    line-height: 1.25 !important;

    letter-spacing: -0.5px;
}


/* =========================================================
   META
========================================================= */

.tml-single-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 0 0 25px;

    color: #98a2b3;

    font-size: 12px;

    line-height: 1.5;
}

.tml-single-meta span {
    display: inline-flex;

    align-items: center;
}

/* =========================================================
   SINGLE FEATURED IMAGE
========================================================= */

.tml-single-image {
    width: 100% !important;

    aspect-ratio: 16 / 9 !important;

    margin: 0 0 30px;

    overflow: hidden;

    border-radius: 14px;

    background: #f3f4f6;
}

.tml-single-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    object-position: center !important;

    margin: 0 !important;
}

@media (max-width: 650px) {

    .tml-single-image {
        aspect-ratio: 16 / 9 !important;

        border-radius: 10px;

        margin-bottom: 24px;
    }

}

/* =========================================================
   CONTENT
========================================================= */

.tml-single-content {
    width: 100%;

    color: #344054;

    font-size: 16px;

    line-height: 1.85;
}

.tml-single-content p {
    margin-top: 0;

    margin-bottom: 20px;
}


.tml-single-content a {
    color: #ff5a16;

    text-decoration: underline;
}


.tml-single-content img {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 25px auto;
}


.tml-single-content h2 {
    margin: 38px 0 15px;

    color: #13294b;

    font-size: 27px;

    line-height: 1.35;
}


.tml-single-content h3 {
    margin: 30px 0 13px;

    color: #13294b;

    font-size: 21px;

    line-height: 1.4;
}


.tml-single-content h4 {
    margin: 25px 0 12px;

    color: #13294b;

    font-size: 18px;
}


.tml-single-content ul,
.tml-single-content ol {
    margin: 0 0 22px;

    padding-left: 25px;
}


.tml-single-content li {
    margin-bottom: 8px;
}


.tml-single-content blockquote {
    margin: 25px 0;

    padding: 18px 22px;

    border-left: 4px solid #ff5a16;

    border-radius: 0 8px 8px 0;

    background: #f8f9fb;

    color: #475467;

    font-size: 17px;

    font-style: italic;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tml-single-sidebar {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .tml-single-layout {
        grid-template-columns:
            minmax(0, 1fr)
            270px;

        gap: 24px;
    }

    .tml-single-title {
        font-size: 34px !important;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .tml-single-layout {
        grid-template-columns: 1fr;
    }

    .tml-single-sidebar {
        margin-top: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tml-single-page {
        padding: 0 16px;
    }

    .tml-single-title {
        font-size: 28px !important;

        line-height: 1.3 !important;
    }

    .tml-single-meta {
        margin-bottom: 20px;

        font-size: 11px;
    }

    .tml-single-image {
        margin-bottom: 24px;

        border-radius: 10px;
    }

    .tml-single-content {
        font-size: 15px;

        line-height: 1.8;
    }

    .tml-single-content h2 {
        font-size: 23px;
    }

    .tml-single-content h3 {
        font-size: 19px;
    }

}

/* =========================================================
   SINGLE POST - BREAK OUT FROM ELEMENTOR CONTAINER
========================================================= */

.tml-single-page {
    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 0 24px !important;

    box-sizing: border-box !important;
}


/* INNER CONTENT */

.tml-single-layout {
    width: 100% !important;
    max-width: 1240px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        300px !important;

    gap: 36px !important;

    box-sizing: border-box !important;
}


/* MAIN */

.tml-single-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}


/* POST */

.tml-single-post {
    width: 100% !important;
    max-width: none !important;
}


/* IMAGE */

.tml-single-image {
    width: 100% !important;
}


/* CONTENT */

.tml-single-content {
    width: 100% !important;
    max-width: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .tml-single-page {
        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding: 0 20px !important;
    }

    .tml-single-layout {
        grid-template-columns: 1fr !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tml-single-page {
        padding: 0 16px !important;
    }

}

/* =========================================================
   SINGLE POST META
========================================================= */

.tml-single-meta {
    display: flex !important;

    align-items: center !important;

    flex-wrap: wrap;

    gap: 9px;

    margin: 0 0 25px;

    color: #98a2b3;

    font-size: 12px;

    line-height: 1.5;
}


.tml-single-meta > span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}


.tml-meta-icon {
    font-size: 11px;

    line-height: 1;

    opacity: 0.85;
}


.tml-meta-author {
    color: #667085;

    font-weight: 500;
}


.tml-meta-date,
.tml-meta-reading {
    color: #98a2b3;
}


.tml-meta-separator {
    color: #d0d5dd;

    user-select: none;
}


/* MOBILE */

@media (max-width: 650px) {

    .tml-single-meta {
        gap: 6px;

        font-size: 11px;
    }

    .tml-meta-separator {
        display: inline-flex;
    }

}

/* =========================================================
   SINGLE POST TAGS
========================================================= */

.tml-single-tags {
    display: flex;

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 35px;

    padding-top: 22px;

    border-top: 1px solid #edf0f3;
}


.tml-tags-label {
    padding-top: 6px;

    color: #667085;

    font-size: 12px;

    font-weight: 600;
}


.tml-tags-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.tml-tag {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border: 1px solid #e4e7ec;

    border-radius: 30px;

    background: #ffffff;

    color: #667085 !important;

    font-size: 11px;

    line-height: 1;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.tml-tag:hover {
    background: #ff5a16;

    border-color: #ff5a16;

    color: #ffffff !important;
}


@media (max-width: 650px) {

    .tml-single-tags {
        margin-top: 28px;

        padding-top: 18px;
    }

}

/* =========================================================
   RELATED ARTICLES
========================================================= */

.tml-related {
    width: 100%;

    margin-top: 50px;

    padding-top: 30px;

    border-top: 1px solid #edf0f3;
}


.tml-related-header {
    margin-bottom: 22px;
}


.tml-related-title {
    margin: 0 !important;

    color: #13294b !important;

    font-size: 24px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;
}


.tml-related-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* CARD */

.tml-related-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #edf0f3;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.tml-related-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}


/* IMAGE */

.tml-related-image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f3f4f6;
}


.tml-related-image img {
    display: block !important;

    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}


.tml-related-card:hover
.tml-related-image img {
    transform: scale(1.04);
}


/* BODY */

.tml-related-body {
    padding: 15px;
}


/* CATEGORY */

.tml-related-category {
    display: inline-flex;

    margin-bottom: 8px;

    color: #ff5a16 !important;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;

    text-decoration: none !important;
}


/* TITLE */

.tml-related-card-title {
    margin: 0 0 10px !important;

    font-size: 15px !important;

    line-height: 1.4 !important;

    font-weight: 700 !important;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;
}


.tml-related-card-title a {
    color: #13294b !important;

    text-decoration: none !important;
}


.tml-related-card-title a:hover {
    color: #ff5a16 !important;
}


/* DATE */

.tml-related-date {
    color: #98a2b3;

    font-size: 10px;

    line-height: 1.4;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .tml-related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

}


@media (max-width: 500px) {

    .tml-related-grid {
        grid-template-columns: 1fr;
    }

    .tml-related {
        margin-top: 35px;

        padding-top: 25px;
    }

}