/* SINGLE POST V2 STYLES */

/* Main Wrapper */
.tlb-single-wrapper {
    width: 100%;
    max-width: none;
    margin: 40px auto;
    padding: 0;
}

/* Header */
.tlb-single-header {
    margin-bottom: 40px;
    text-align: center;
}
.tlb-single-header-inner {
    max-width: 800px;
    margin: 0 auto;
}
.tlb-single-cat {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #1a1a1a !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.tlb-single-cat:hover {
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}
.tlb-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2c3338;
    margin: 0;
}
@media (max-width: 767px) {
    .tlb-single-title {
        font-size: 1.8rem;
    }
}

/* Post Meta Information */
.tlb-single-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
@media (max-width: 550px) {
    .tlb-single-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
        gap: 12px;
        padding: 15px 20px;
        width: 100%;
    }
}
.tlb-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 600;
}
.tlb-meta-item svg {
    color: #FDB931; /* Gold accent for the icons */
    filter: drop-shadow(0 2px 4px rgba(253, 185, 49, 0.3));
}

/* Body Layout */
.tlb-single-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 991px) {
    .tlb-single-body {
        grid-template-columns: 1fr;
    }
}

/* Main Content Area */
.tlb-single-main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 0; /* CRITICAL: Prevent CSS Grid blowout from wide content */
}
@media (max-width: 767px) {
    .tlb-single-main {
        padding: 20px;
    }
}

/* Content Formatting */
.tlb-single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tlb-single-content img {
    width: calc(100% - 100px); /* 50px margin on each side */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .tlb-single-content img {
        width: calc(100% - 20px); /* Smaller margins on mobile */
    }
}
.tlb-single-content p {
    margin-bottom: 20px;
}
/* Fix for sliced images inside p tags touching each other */
.tlb-single-content p:has(img:only-child) {
    margin-bottom: 0;
    line-height: 0;
    text-align: center;
}
.tlb-single-content iframe {
    max-width: 100%;
}

/* WPDM package card */
.tlb-single-content .tlb-wpdm-package {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 20px;
    border: 1px solid rgba(194, 153, 77, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(203, 168, 96, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 234, 0.96));
    box-shadow: 0 14px 30px rgba(48, 34, 12, 0.07);
}

.tlb-single-content .tlb-wpdm-package__head {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.tlb-single-content .tlb-wpdm-package__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 223, 151, 0.38), rgba(255, 247, 227, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tlb-single-content .tlb-wpdm-package__icon-wrap .wpdm_icon,
.tlb-single-content .tlb-wpdm-package__icon-wrap img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.tlb-single-content .tlb-wpdm-package__copy {
    min-width: 0;
}

.tlb-single-content .tlb-wpdm-package__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 223, 151, 0.28);
    color: #9f6d13;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tlb-single-content .tlb-wpdm-package__title {
    margin: 0;
    color: #1b1611;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.08rem, 1.55vw, 1.42rem);
    line-height: 1.14;
    letter-spacing: -0.025em;
    text-transform: none;
    overflow-wrap: anywhere;
    max-width: 920px;
}

.tlb-single-content .tlb-wpdm-package__vip-title,
.tlb-single-content .tlb-wpdm-package__normal-title {
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tlb-single-content .tlb-wpdm-package__normal-title {
    display: none;
}

body.logged-in .tlb-single-content .tlb-wpdm-package__vip-title {
    display: none;
}

body.logged-in .tlb-single-content .tlb-wpdm-package__normal-title {
    display: -webkit-box;
}

.tlb-single-content .tlb-wpdm-package__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 10px;
    color: #6e665b;
    font-size: 0.86rem;
    font-weight: 700;
}

.tlb-single-content .tlb-wpdm-package__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(188, 149, 81, 0.12);
}

.tlb-single-content .tlb-wpdm-package__foot {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(194, 153, 77, 0.14);
}

.tlb-single-content .tlb-wpdm-package__action {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.tlb-single-content .tlb-wpdm-package .wpdm-download-link,
.tlb-single-content .tlb-wpdm-package .btn,
.tlb-single-content .tlb-wpdm-package .btn-primary,
.tlb-single-content .tlb-wpdm-package .btn-danger,
.tlb-single-content .tlb-wpdm-package .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #171310 0%, #2c2117 100%) !important;
    color: #fff4dc !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    box-shadow: 0 10px 22px rgba(38, 26, 10, 0.12);
}

.tlb-single-content .tlb-wpdm-package .wpdm-download-link:hover,
.tlb-single-content .tlb-wpdm-package .btn:hover,
.tlb-single-content .tlb-wpdm-package .btn-primary:hover,
.tlb-single-content .tlb-wpdm-package .btn-danger:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.tlb-single-content .tlb-wpdm-package__hint {
    color: #6e665b;
    font-size: 0.86rem;
    line-height: 1.55;
}

body:not(.logged-in) .tlb-single-content .tlb-wpdm-package__hint {
    display: none;
}

.tlb-single-content .tlb-wpdm-package__hint strong {
    color: #211911;
}

.tlb-single-content .tlb-wpdm-gate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(193, 153, 82, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(203, 168, 96, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 242, 232, 0.95));
}

.tlb-single-content .tlb-wpdm-gate.is-denied {
    border-color: rgba(179, 94, 61, 0.16);
}

.tlb-single-content .tlb-wpdm-gate__copy {
    display: grid;
    gap: 6px;
}

.tlb-single-content .tlb-wpdm-gate__copy strong {
    color: #1d1712;
    font-size: 0.98rem;
}

.tlb-single-content .tlb-wpdm-gate__copy span {
    color: #6a6155;
    line-height: 1.55;
}

.tlb-single-content .tlb-wpdm-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.tlb-single-content .tlb-wpdm-gate__login,
.tlb-single-content .tlb-wpdm-gate__vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 15px;
    font-weight: 800;
}

.tlb-single-content .tlb-wpdm-gate__login {
    background: linear-gradient(135deg, #171310 0%, #2c2117 100%);
    color: #fff4dc;
}

.tlb-single-content .tlb-wpdm-gate__vip {
    border: 1px solid rgba(185, 149, 84, 0.22);
    background: rgba(255, 255, 255, 0.88);
    color: #2b2114;
}

.tlb-single-content .tlb-wpdm-package__action .w3eden,
.tlb-single-content .tlb-wpdm-package__action #wpdmlogin {
    width: 100%;
}

.tlb-single-content .tlb-wpdm-package__action #wpdmlogin {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#custom_html-8,
.widget:has(.tlb-wpdm-sidebar-auth) {
    padding: 16px !important;
    border: 1px solid rgba(194, 153, 77, 0.14) !important;
    background:
        radial-gradient(circle at top right, rgba(204, 171, 104, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 231, 0.96)) !important;
    box-shadow: 0 18px 36px rgba(45, 31, 11, 0.08) !important;
    border-radius: 24px !important;
}

#custom_html-8 > .widget-title,
.widget:has(.tlb-wpdm-sidebar-auth) > .widget-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #171310 0%, #2d2117 100%) !important;
    color: #fff4dc !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: 0 12px 24px rgba(38, 26, 10, 0.14) !important;
}

#custom_html-8 > .widget-title::after,
.widget:has(.tlb-wpdm-sidebar-auth) > .widget-title::after {
    content: "";
    width: 34px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe5a0 0%, #ffc63f 100%);
    box-shadow: 0 0 0 4px rgba(255, 222, 142, 0.08);
}

#custom_html-8 .textwidget,
.widget:has(.tlb-wpdm-sidebar-auth) .textwidget {
    margin: 0;
}

.tlb-wpdm-sidebar-auth {
    width: 100%;
}

.tlb-wpdm-sidebar-auth #wpdmlogin {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tlb-wpdm-sidebar-auth__card {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tlb-wpdm-sidebar-auth__form {
    display: grid;
    gap: 10px;
}

.tlb-wpdm-sidebar-auth__fields .form-group {
    margin-bottom: 8px;
}

.tlb-wpdm-sidebar-auth__fields .input-wrapper label {
    display: block;
    margin-bottom: 6px;
    color: #7a7166;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: none;
}

.tlb-wpdm-sidebar-auth__fields .input-wrapper,
.tlb-wpdm-sidebar-auth__fields .input-wrapper.input-withvalue {
    padding: 8px 10px !important;
    border: 1px solid rgba(191, 155, 84, 0.2) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 238, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(45, 31, 11, 0.04) !important;
}

.tlb-wpdm-sidebar-auth__fields .input-wrapper:focus-within {
    border-color: rgba(199, 155, 71, 0.42) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 0 0 4px rgba(203, 164, 87, 0.1),
        0 14px 28px rgba(45, 31, 11, 0.08) !important;
}

.tlb-wpdm-sidebar-auth .form-control {
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #e9f0fc !important;
    box-shadow: none !important;
    color: #1b1712 !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.tlb-wpdm-sidebar-auth .form-control::placeholder {
    color: #8f877c !important;
    opacity: 1;
}

.tlb-wpdm-sidebar-auth .form-control:focus {
    background: #eef4ff !important;
    box-shadow: none !important;
    transform: none !important;
}

.tlb-wpdm-sidebar-auth__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 4px;
}

.tlb-wpdm-sidebar-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #5e564b;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.tlb-wpdm-sidebar-auth__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #c79b47;
}

.tlb-wpdm-sidebar-auth__forgot {
    color: #a05d00;
    font-size: 0.82rem;
    font-weight: 700;
}

.tlb-wpdm-sidebar-auth .btn,
.tlb-wpdm-sidebar-auth .btn *,
.tlb-wpdm-sidebar-auth #loginform-submit,
.tlb-wpdm-sidebar-auth #loginform-submit * {
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.tlb-wpdm-sidebar-auth__submit,
.tlb-wpdm-sidebar-auth #loginform-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #18130f 0%, #2b2016 100%) !important;
    color: #fff7ea !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow:
        0 12px 24px rgba(38, 26, 10, 0.14),
        0 0 0 3px rgba(206, 174, 116, 0.06) !important;
}

.tlb-wpdm-sidebar-auth__submit i,
.tlb-wpdm-sidebar-auth #loginform-submit i {
    margin-right: 8px;
    font-size: 0.95rem !important;
}

.tlb-wpdm-sidebar-auth__register {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #ffe6a0 0%, #ffc640 100%) !important;
    color: #5c3b00 !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(232, 188, 76, 0.22) !important;
}

.tlb-wpdm-sidebar-auth__member-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.tlb-wpdm-sidebar-auth__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 223, 151, 0.42), rgba(255, 247, 227, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.tlb-wpdm-sidebar-auth__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlb-wpdm-sidebar-auth__member-copy h3 {
    margin: 0 0 4px;
    color: #16120e;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.12rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: none;
}

.tlb-wpdm-sidebar-auth__member-copy p {
    margin: 0;
    color: #6a6155;
    line-height: 1.55;
}

.tlb-wpdm-sidebar-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 223, 151, 0.3);
    color: #9f6d13;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tlb-wpdm-sidebar-auth .alert {
    margin: 0;
    padding: 14px 15px;
    border: 1px solid rgba(194, 153, 77, 0.14);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(45, 31, 11, 0.05);
}

.tlb-wpdm-sidebar-auth .alert-danger {
    background: rgba(255, 240, 238, 0.96);
    color: #7a2419;
}

.tlb-wpdm-sidebar-auth .alert-success,
.tlb-wpdm-sidebar-auth .alert-info {
    background: rgba(245, 239, 227, 0.95);
    color: #5f4f38;
}

.tlb-wpdm-sidebar-auth__member-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tlb-wpdm-sidebar-auth__account,
.tlb-wpdm-sidebar-auth__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.tlb-wpdm-sidebar-auth__account {
    background: linear-gradient(135deg, #18130f 0%, #2b2016 100%);
    color: #fff7ea;
    box-shadow: 0 12px 24px rgba(38, 26, 10, 0.14);
}

.tlb-wpdm-sidebar-auth__logout {
    border: 1px solid rgba(185, 149, 84, 0.22);
    background: rgba(255, 255, 255, 0.88);
    color: #2b2114;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) .wpdmlogin-logo,
#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin > form > h3,
#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin > form > p {
    display: none !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .login-form {
    display: grid;
    gap: 10px;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .input-wrapper,
#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .input-wrapper.input-withvalue {
    padding: 8px 10px !important;
    border: 1px solid rgba(191, 155, 84, 0.2) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 238, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(45, 31, 11, 0.04) !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .input-wrapper label {
    display: block;
    margin-bottom: 6px;
    color: #7a7166;
    font-size: 0.82rem;
    font-weight: 700;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .form-control {
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #e9f0fc !important;
    box-shadow: none !important;
    color: #1b1712 !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.95rem !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .login-form-meta-text {
    margin: 0 !important;
    align-items: center;
    font-size: 0.8rem !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin #loginform-submit,
#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .wpdm-reg-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px !important;
    padding: 0 16px !important;
    border-radius: 15px !important;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    text-transform: none !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin #loginform-submit {
    border: 0 !important;
    background: linear-gradient(135deg, #18130f 0%, #2b2016 100%) !important;
    color: #fff7ea !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    box-shadow:
        0 12px 24px rgba(38, 26, 10, 0.14),
        0 0 0 3px rgba(206, 174, 116, 0.06) !important;
}

#custom_html-8 .w3eden:not(.tlb-wpdm-sidebar-auth) #wpdmlogin .wpdm-reg-link {
    border: 0 !important;
    background: linear-gradient(135deg, #ffe6a0 0%, #ffc640 100%) !important;
    color: #5c3b00 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(232, 188, 76, 0.22) !important;
}

@media (max-width: 767px) {
    .tlb-single-content .tlb-wpdm-package {
        padding: 18px;
        border-radius: 22px;
    }

    .tlb-single-content .tlb-wpdm-package__title {
        font-size: 1.02rem;
        line-height: 1.18;
    }

    .tlb-single-content .tlb-wpdm-package__head {
        grid-template-columns: 1fr;
    }

    .tlb-single-content .tlb-wpdm-package__icon-wrap {
        width: 56px;
        height: 56px;
    }

    .tlb-single-content .tlb-wpdm-gate,
    .tlb-single-content .tlb-wpdm-gate__actions {
        grid-template-columns: 1fr;
    }

    .tlb-single-content .tlb-wpdm-gate {
        display: grid;
    }

    .tlb-single-content .tlb-wpdm-gate__actions {
        justify-content: stretch;
    }

    .tlb-single-content .tlb-wpdm-gate__login,
    .tlb-single-content .tlb-wpdm-gate__vip,
    .tlb-single-content .tlb-wpdm-package .wpdm-download-link,
    .tlb-single-content .tlb-wpdm-package .btn,
    .tlb-single-content .tlb-wpdm-package .btn-primary,
    .tlb-single-content .tlb-wpdm-package .btn-danger,
    .tlb-single-content .tlb-wpdm-package .btn-sm {
        width: 100%;
    }

    #custom_html-8,
    .widget:has(.tlb-wpdm-sidebar-auth) {
        padding: 14px !important;
        border-radius: 20px !important;
    }

    #custom_html-8 > .widget-title,
    .widget:has(.tlb-wpdm-sidebar-auth) > .widget-title {
        padding: 11px 12px !important;
        border-radius: 16px !important;
        font-size: 0.82rem !important;
    }

    .tlb-wpdm-sidebar-auth__member-actions {
        grid-template-columns: 1fr;
    }

    .tlb-wpdm-sidebar-auth__member-head {
        grid-template-columns: 1fr;
    }
}

/* VIP Promo Box (If not VIP) */
.tlb-single-vip-promo {
    background: linear-gradient(135deg, #2c3338 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.tlb-promo-content h3 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}
.tlb-promo-content p {
    color: #a0aec0;
    margin: 0;
}
.tlb-btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #1a1a1a !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 20px;
    transition: all 0.2s;
}
.tlb-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}
@media (max-width: 600px) {
    .tlb-single-vip-promo {
        flex-direction: column;
        text-align: center;
    }
    .tlb-btn-gold {
        margin: 20px 0 0 0;
    }
}

/* Action Bar */
.tlb-single-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 767px) {
    .tlb-single-action-bar {
        flex-direction: column;
        gap: 20px;
    }
}
.tlb-single-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,0,0,0.04);
    color: #4a5568;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.tlb-single-tags a:hover {
    background: #FFD700;
    color: #1a1a1a;
}
.tlb-single-share {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tlb-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    color: #2c3338;
    transition: all 0.2s;
}
.tlb-share-btn:hover {
    background: #1877F2;
    color: #fff;
    transform: translateY(-2px);
}
.tlb-share-btn:nth-child(2):hover {
    background: #0088cc;
}
.tlb-report-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tlb-report-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Comments */
.tlb-single-comments {
    margin-top: 50px;
}
.tlb-single-comments #respond {
    background: rgba(0,0,0,0.02);
    padding: 30px;
    border-radius: 16px;
}
.tlb-single-comments .comment-list {
    list-style: none;
    padding: 0;
}
.tlb-single-comments .comment-body {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Sidebar */
.tlb-single-sidebar {
    position: sticky;
    top: 40px;
}
.tlb-single-sidebar .widget {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}
.tlb-single-sidebar .widget-title,
.tlb-single-sidebar .widget > span.widget-title {
    font-size: 1.25rem;
    color: #2c3338;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(253, 185, 49, 0.3);
    font-weight: 700;
    display: block;
}
.tlb-single-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tlb-single-sidebar .widget ul li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    font-size: 0.95rem;
    color: #4a5568;
}
.tlb-single-sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.tlb-single-sidebar .widget ul li a {
    color: #2c3338;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.tlb-single-sidebar .widget ul li a:hover {
    color: #FDB931;
}
.tlb-widget-related {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tlb-related-card {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.tlb-related-card__thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.tlb-related-card__thumb .tlb-resource-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 2px 6px;
    transform: scale(0.9);
}
.tlb-related-card__copy h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2c3338;
    font-weight: 600;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tlb-related-card:hover .tlb-related-card__copy h4 {
    color: #FDB931;
}

/* Override Custom Widget: Top 10 */
.tlb-single-sidebar .anb-top-widget {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border: none !important;
    margin: -30px -30px -30px -30px !important; /* Stretch to fill parent widget */
    position: relative;
    z-index: 2;
}
.tlb-single-sidebar .anb-top-widget h3 {
    background: transparent !important;
    color: #2c3338 !important;
    padding: 20px 0 15px 0 !important;
    margin: 0 25px 25px 25px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(253, 185, 49, 0.3) !important;
}
.tlb-single-sidebar .anb-top-widget .top-list {
    list-style: none !important;
    padding: 0 25px 25px 25px !important;
    margin: 0 !important;
    border: none !important;
}
.tlb-single-sidebar .anb-top-widget .top-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed rgba(0,0,0,0.1) !important;
    background: transparent !important;
}
.tlb-single-sidebar .anb-top-widget .top-item.highlight {
    background: transparent !important;
}
.tlb-single-sidebar .anb-top-widget .top-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.tlb-single-sidebar .anb-top-widget .rank {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 8px !important;
    background: rgba(253, 185, 49, 0.15) !important;
    color: #d39e00 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
}
/* Style top 3 ranks differently for a premium feel */
.tlb-single-sidebar .anb-top-widget .top-item:nth-child(1) .rank {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%) !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3) !important;
}
.tlb-single-sidebar .anb-top-widget .top-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #e2e2e2 0%, #c0c0c0 100%) !important;
    color: #1a1a1a !important;
}
.tlb-single-sidebar .anb-top-widget .top-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #ffb88c 0%, #de7e5d 100%) !important;
    color: #fff !important;
}
.tlb-single-sidebar .anb-top-widget .content {
    flex-grow: 1 !important;
    min-width: 0 !important; /* Prevent flex overflow */
}
.tlb-single-sidebar .anb-top-widget .title a {
    color: #2c3338 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
}
.tlb-single-sidebar .anb-top-widget .title a:hover {
    color: #FDB931 !important;
}
.tlb-single-sidebar .anb-top-widget .views {
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-top: 4px !important;
}
.tlb-single-sidebar .anb-top-widget .trend {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-left: 10px !important;
}
.tlb-single-sidebar .anb-top-widget .trend.up { color: #16a34a !important; }
.tlb-single-sidebar .anb-top-widget .trend.down { color: #dc2626 !important; }

/* Related Posts in Main Content */
.tlb-single-related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.tlb-related-head h3 {
    font-size: 1.5rem;
    color: #2c3338;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
}
.tlb-related-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 991px) {
    .tlb-related-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Post */
.tlb-related-hero {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.tlb-related-hero:hover {
    transform: translateY(-5px);
}
.tlb-related-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}
.tlb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}
.tlb-related-hero .tlb-resource-badge {
    position: absolute !important;
    top: 15px !important;
    left: auto !important;
    right: 15px !important;
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
}
.tlb-related-hero .tlb-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    z-index: 2;
}
.tlb-hero-meta {
    color: #FDB931;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.tlb-hero-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Grid */
.tlb-related-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 550px) {
    .tlb-related-grid-small {
        grid-template-columns: 1fr;
    }
}
.tlb-related-grid-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.tlb-related-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.tlb-related-item-img {
    display: block;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}
.tlb-hover-action {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}
.tlb-hover-action span {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(253, 185, 49, 0.4);
}
.tlb-related-grid-item:hover .tlb-hover-action {
    opacity: 1;
}
.tlb-related-grid-item:hover .tlb-hover-action span {
    transform: translateY(0);
}
.tlb-related-item-img .tlb-resource-badge {
    position: absolute !important;
    top: 10px !important;
    left: auto !important; /* Fix stretch issue */
    right: 10px !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}
.tlb-related-item-img .tlb-resource-badge.is-free {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 134, 55, 0.95)) !important;
    color: #fff !important;
}
.tlb-related-item-copy {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tlb-related-item-copy h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1;
}
.tlb-related-item-copy a {
    color: #2c3338;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tlb-related-item-copy a:hover {
    color: #FDB931;
}
.tlb-related-meta {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Next/Prev Navigation */
.tlb-single-navigation {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.tlb-nav-link {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}
.tlb-nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.tlb-nav-empty {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}
.tlb-nav-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    transition: background 0.3s;
}
.tlb-nav-link:hover .tlb-nav-overlay {
    background: rgba(0,0,0,0.4);
}
.tlb-nav-content {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
}
.tlb-nav-next .tlb-nav-content {
    text-align: right;
}
.tlb-nav-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #FDB931;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.tlb-nav-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@media (max-width: 767px) {
    .tlb-single-navigation {
        flex-direction: column;
    }
}

/* Trending Carousel */
.tlb-single-trending-carousel {
    margin-top: 60px;
    margin-bottom: 40px;
}
.tlb-trending-header h2 {
    font-size: 1.8rem;
    color: #2c3338;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tlb-trending-track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 25px; /* Space for scrollbar and shadow */
    cursor: grab;
}
.tlb-trending-track-wrapper:active {
    cursor: grabbing;
}
/* Premium Scrollbar for Desktop */
@media (pointer: fine) {
    .tlb-trending-track-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    .tlb-trending-track-wrapper::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
    }
    .tlb-trending-track-wrapper::-webkit-scrollbar-thumb {
        background: #FDB931;
        border-radius: 4px;
    }
    .tlb-trending-track-wrapper::-webkit-scrollbar-thumb:hover {
        background: #e5a72c;
    }
}
/* Hide scrollbar on mobile but keep edge-to-edge design */
@media (max-width: 767px) {
    .tlb-trending-track-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tlb-trending-track-wrapper::-webkit-scrollbar {
        display: none;
    }
}
.tlb-trending-track {
    display: flex;
    gap: 20px;
}
.tlb-trending-item {
    flex: 0 0 calc(25% - 15px); /* 4 items per view */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.tlb-trending-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
@media (max-width: 1024px) {
    .tlb-trending-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}
@media (max-width: 768px) {
    .tlb-trending-item {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 480px) {
    .tlb-trending-item {
        flex: 0 0 calc(85%); /* Show peek of next item */
    }
}
.tlb-trending-img {
    display: block;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}
.tlb-trending-copy {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tlb-trending-copy h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1;
}
.tlb-trending-copy a {
    color: #2c3338;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tlb-trending-copy a:hover {
    color: #FDB931;
}
.tlb-trending-img .tlb-resource-badge {
    position: absolute !important;
    top: 10px !important;
    left: auto !important;
    right: 10px !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}
.tlb-trending-img .tlb-resource-badge.is-free {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 134, 55, 0.95)) !important;
    color: #fff !important;
}

/* =========================================
   ARCHIVE / CATEGORY VIBE
   ========================================= */
body.category .tlb-archive-context-strip {
    margin-top: 24px;
}

body.category .tlb-archive-context-strip .tlb-home-shell {
    width: min(1320px, calc(100% - 32px));
}

.tlb-archive-context-strip__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 26px;
    border-radius: 26px;
    border: 1px solid rgba(199, 155, 71, 0.2);
    background:
        radial-gradient(circle at top right, rgba(201, 162, 87, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 251, 244, 0.98), rgba(248, 241, 227, 0.98));
    box-shadow:
        0 18px 42px rgba(49, 34, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.tlb-archive-context-strip__card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #f2c24b 0%, #c7902c 55%, #8e5821 100%);
}

.tlb-archive-context-strip__copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.tlb-archive-context-strip__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a6a2d;
}

.tlb-archive-context-strip__eyebrow:before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

.tlb-archive-context-strip__title-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.tlb-archive-context-strip__title {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #24180c;
}

.tlb-archive-context-strip__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b5f52;
}

.tlb-archive-context-strip__metric {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(199, 155, 71, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-align: center;
}

.tlb-archive-context-strip__metric-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #9a6a2d;
}

.tlb-archive-context-strip__metric-label {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a6b58;
}

body.blog .tlb-home-site-header,
body.archive .tlb-home-site-header {
    background:
        linear-gradient(90deg, rgba(212, 174, 108, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(251, 246, 238, 0.96), rgba(245, 238, 226, 0.94));
}

body.blog .tlb-home-site-footer,
body.archive .tlb-home-site-footer {
    background:
        radial-gradient(circle at top right, rgba(201, 162, 87, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(251, 246, 238, 0.98), rgba(245, 238, 226, 0.96));
}

.tlb-archive-view {
    background: transparent;
}
.tlb-archive-wrapper {
    width: 100%;
    max-width: none;
    margin: 60px auto;
    padding: 0;
}
.tlb-archive-page-header {
    text-align: center;
    margin-bottom: 50px;
}
.tlb-archive-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3338;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.tlb-archive-desc {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bento Hero Grid */
.tlb-archive-hero {
    margin-bottom: 60px;
}
.tlb-archive-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 500px;
}
.tlb-hero-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.tlb-hero-main .tlb-hero-img, .tlb-hero-sub .tlb-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tlb-hero-main .tlb-hero-img:hover, .tlb-hero-sub .tlb-hero-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
/* Main Hero Overlay Specifics if any */
.tlb-archive-hero .tlb-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 35%, transparent 80%);
}
.tlb-archive-hero .tlb-hero-content {
    position: absolute;
    bottom: 35px;
    left: 35px;
    right: 35px;
    color: #fff;
    z-index: 2;
}
.tlb-hero-sub .tlb-hero-content {
    bottom: 25px;
    left: 25px;
    right: 25px;
}
.tlb-hero-meta {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #FDB931;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}
.tlb-hero-content h2 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.tlb-hero-sub .tlb-hero-content h2 {
    font-size: 1.3rem;
}
.tlb-hero-img .tlb-resource-badge {
    position: relative;
    top: 25px;
    right: 25px;
    z-index: 2;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.tlb-hero-sub .tlb-resource-badge {
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    padding: 3px 8px;
}

@media (max-width: 768px) {
    .tlb-archive-context-strip__card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 20px 22px;
        border-radius: 22px;
    }
    .tlb-archive-context-strip__title-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .tlb-archive-context-strip__desc {
        font-size: 0.9rem;
        line-height: 1.55;
    }
    .tlb-archive-context-strip__metric {
        min-width: 0;
        width: 100%;
        text-align: left;
    }
    .tlb-archive-context-strip__metric-label {
        letter-spacing: 0.08em;
    }
    .tlb-archive-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .tlb-hero-main {
        grid-column: 1;
        grid-row: 1;
        height: 350px;
    }
    .tlb-hero-sub {
        height: 250px;
    }
    .tlb-archive-title {
        font-size: 2rem;
    }
}

/* Main Grid container reusing trending item styles */
.tlb-archive-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
@media (max-width: 1024px) {
    .tlb-archive-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .tlb-archive-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .tlb-archive-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .tlb-archive-wrapper {
        margin: 34px auto;
        padding: 0;
    }
    .tlb-archive-page-header {
        margin-bottom: 30px;
    }
    .tlb-archive-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }
    .tlb-archive-desc {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .tlb-archive-hero {
        margin-bottom: 36px;
    }
    .tlb-hero-main {
        height: 280px;
    }
    .tlb-hero-sub {
        height: 180px;
    }
    .tlb-hero-content {
        bottom: 18px;
        left: 18px;
        right: 18px;
    }
    .tlb-hero-content h2 {
        font-size: 1.18rem;
    }
    .tlb-hero-sub .tlb-hero-content h2 {
        font-size: 0.98rem;
    }
    .tlb-trending-item {
        border-radius: 14px;
    }
    .tlb-trending-copy {
        padding: 12px;
    }
    .tlb-trending-copy h4 {
        margin-bottom: 8px;
        font-size: 0.88rem;
        line-height: 1.35;
    }
}

/* Pagination */
.tlb-archive-pagination {
    margin-top: 60px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}
.tlb-archive-pagination .nav-links {
    display: inline-flex;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    gap: 5px;
    align-items: center;
}
.tlb-archive-pagination a.page-numbers,
.tlb-archive-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 1rem;
    color: #2c3338;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0;
}
.tlb-archive-pagination a.page-numbers:hover {
    background: #f0f0f0;
    color: #FDB931;
}
.tlb-archive-pagination span.current {
    background: linear-gradient(135deg, #FDB931, #f9a006);
    color: #fff;
    box-shadow: 0 4px 12px rgba(253,185,49,0.4);
}
.tlb-archive-pagination .next, .tlb-archive-pagination .prev {
    background: transparent;
    padding: 0 10px;
}
.tlb-archive-pagination .next svg, .tlb-archive-pagination .prev svg {
    display: block;
    transition: transform 0.2s;
}
.tlb-archive-pagination .next:hover svg {
    transform: translateX(3px);
}
.tlb-archive-pagination .prev:hover svg {
    transform: translateX(-3px);
}
.tlb-archive-pagination .screen-reader-text {
    display: none;
}
