/* ==========================================
   DYNAMIC CATEGORY FILTER BAR & BADGES CSS
========================================== */

.tx-blog-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.tx-cat-filter-btn {
    font-family: var(--font-body, 'Poppins'), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    background: #FAFAFB;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tx-cat-filter-btn span {
    color: #888888;
    font-size: 11px;
}

.tx-cat-filter-btn:hover,
.tx-cat-filter-btn.active {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
}

.tx-cat-filter-btn:hover span,
.tx-cat-filter-btn.active span {
    color: #E51924;
}

/* Card Category Floating Badge */
.tx-blog-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.tx-card-cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-family: var(--font-body, 'Poppins'), sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 6px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   THRONIX STUDIO — BLOG & ARCHIVE RESPONSIVE LAYOUT ENGINE
   ========================================================================== */

/* Main Wrapper */
.tx-blog-main-wrapper {
    width: 100%;
    background-color: #FFFFFF;
    padding: 140px 0 100px 0;
    box-sizing: border-box;
}

/* Container */
.tx-blog-main-wrapper .tx-container {
    max-width: var(--container-max, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Header */
.tx-blog-hero {
    text-align: center;
    margin-bottom: 60px;
}

.tx-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8F9FA;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.tx-badge-dot {
    width: 6px;
    height: 6px;
    background: #E51924;
    border-radius: 50%;
    display: inline-block;
}

.tx-badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333333;
    text-transform: uppercase;
}

.tx-main-heading {
    font-family: var(--font-heading, 'Syne', sans-serif);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: bold;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 12px;
    line-height: 1.15;
}

.tx-sub-heading {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
    color: #666666;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout Grid: Content Area + Sidebar */
.tx-blog-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 40px !important;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.tx-blogs-grid-area {
    width: 100%;
    min-width: 0;
}

/* Blogs Grid: 2 Columns on Desktop */
.tx-blogs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100%;
}

/* Blog Card */
.tx-blog-card {
    background: #FAFAFB;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tx-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.tx-blog-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.tx-blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tx-blog-card:hover .tx-blog-img-wrap img {
    transform: scale(1.04);
}

.tx-blog-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.tx-blog-date {
    font-size: 13px;
    color: #E51924;
    margin-bottom: 10px;
    font-weight: 600;
}

.tx-blog-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tx-blog-title a {
    font-family: var(--font-heading);
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tx-blog-title a:hover {
    color: #E51924;
}

.tx-blog-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.tx-read-more {
    font-size: 13px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #111111;
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 50px;
    width: fit-content;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tx-read-more:hover {
    background-color: #E51924;
    color: #FFFFFF;
}

/* Sidebar Area */
.tx-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 110px;
    width: 100%;
    box-sizing: border-box;
}

.tx-sidebar-widget {
    background: #FAFAFB;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    width: 100%;
}

.tx-search-widget form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.tx-search-widget input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    padding-right: 48px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.tx-search-widget input[type="search"]:focus {
    border-color: #E51924;
}

.tx-search-widget button {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555555;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-sidebar-title {
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.tx-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-categories-list li a {
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.tx-categories-list li a:hover {
    color: #E51924;
}

.tx-categories-list li a span {
    color: #999999;
    font-size: 12px;
}

/* ==========================================================================
   TABLET RESPONSIVE (769px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .tx-blog-main-wrapper {
        padding: 120px 0 80px 0 !important;
    }

    .tx-blog-main-wrapper .tx-container {
        padding: 0 24px !important;
    }

    .tx-blog-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .tx-blogs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .tx-blog-sidebar {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        top: auto !important;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .tx-blog-main-wrapper {
        padding: 95px 0 60px 0 !important;
    }

    .tx-blog-main-wrapper .tx-container {
        padding: 0 16px !important;
    }

    .tx-blog-hero {
        margin-bottom: 35px !important;
    }

    .tx-about-badge {
        padding: 5px 14px !important;
        margin-bottom: 12px !important;
    }

    .tx-badge-text {
        font-size: 10px !important;
        letter-spacing: 1.5px !important;
    }

    .tx-main-heading {
        font-size: clamp(26px, 7vw, 36px) !important;
        margin-bottom: 10px !important;
    }

    .tx-sub-heading {
        font-size: 14px !important;
        padding: 0 10px !important;
    }

    .tx-blog-layout-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 35px !important;
    }

    .tx-blogs-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .tx-blog-card {
        border-radius: 16px !important;
        width: 100% !important;
    }

    .tx-blog-img-wrap {
        height: 190px !important;
    }

    .tx-blog-content {
        padding: 20px 18px !important;
    }

    .tx-blog-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .tx-blog-excerpt {
        font-size: 13.5px !important;
        margin-bottom: 18px !important;
    }

    .tx-read-more {
        font-size: 12px !important;
        padding: 10px 18px !important;
    }

    .tx-blog-sidebar {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        top: auto !important;
    }

    .tx-sidebar-widget {
        border-radius: 16px !important;
        padding: 20px 18px !important;
    }

    .tx-sidebar-title {
        font-size: 15px !important;
        margin-bottom: 14px !important;
    }

    .tx-search-widget input[type="search"] {
        padding: 12px 16px !important;
        padding-right: 42px !important;
        font-size: 13.5px !important;
    }

    .tx-categories-list li a {
        font-size: 13.5px !important;
    }
}

/* ==========================================================================
   THRONIX STUDIO — SINGLE BLOG POST PAGE LAYOUT & RESPONSIVE STYLING
   ========================================================================== */

/* Main Wrapper for Single Post */
.tx-single-page-wrapper {
    width: 100%;
    background-color: #FFFFFF;
    padding: 135px 0 80px 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Container for Single Post */
.tx-single-page-wrapper .tx-main-container {
    /* max-width: 960px;     */
    width: 100%;
    margin: 0 auto;
    /* padding: 0 24px;  */
    box-sizing: border-box;
}

/* Hero Title Section */
.tx-single-page-wrapper .tx-hero-banner-area {
    width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}

.tx-single-page-wrapper .tx-hero-inner {
    padding: 0;
}

.tx-single-page-wrapper .tx-hero-main-title {
    font-family: var(--font-heading, 'Roboto', sans-serif) !important;
    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    color: #0A0A0C !important;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Featured Media Container & Image */
.tx-single-page-wrapper .tx-featured-media-box {
    width: 100%;
    margin-bottom: 35px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    background-color: #F4F4F6;
}

.tx-single-page-wrapper .tx-featured-media-box img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Content Area Wrapper */
.tx-single-page-wrapper .tx-content-area-wrapper {
    box-sizing: border-box;
}

/* Article Body Typography */
.tx-single-page-wrapper .tx-post-article-content {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 16px;
    line-height: 1.8;
    color: #2D2D32;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tx-single-page-wrapper .tx-post-article-content p {
    margin: 0 0 22px 0;
    color: #333333;
}

.tx-single-page-wrapper .tx-post-article-content h1,
.tx-single-page-wrapper .tx-post-article-content h2,
.tx-single-page-wrapper .tx-post-article-content h3,
.tx-single-page-wrapper .tx-post-article-content h4,
.tx-single-page-wrapper .tx-post-article-content h5,
.tx-single-page-wrapper .tx-post-article-content h6 {
    font-family: var(--font-heading, 'Roboto', sans-serif) !important;
    font-weight: 800;
    text-transform: uppercase;
    color: #0A0A0C !important;
    letter-spacing: -0.3px;
    margin-top: 38px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.tx-single-page-wrapper .tx-post-article-content h2 {
    font-size: clamp(22px, 2.6vw, 30px);
}

.tx-single-page-wrapper .tx-post-article-content h3 {
    font-size: clamp(19px, 2.2vw, 24px);
}

.tx-single-page-wrapper .tx-post-article-content h4 {
    font-size: clamp(17px, 1.8vw, 20px);
}

.tx-single-page-wrapper .tx-post-article-content hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 35px 0 30px 0;
}

.tx-single-page-wrapper .tx-post-article-content ul,
.tx-single-page-wrapper .tx-post-article-content ol {
    padding-left: 24px;
    margin: 0 0 24px 0;
}

.tx-single-page-wrapper .tx-post-article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #333333;
}

.tx-single-page-wrapper .tx-post-article-content a {
    color: var(--primary-red, #E51924);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.tx-single-page-wrapper .tx-post-article-content a:hover {
    color: #0A0A0C;
}

.tx-single-page-wrapper .tx-post-article-content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: #F8F9FA;
    border-left: 4px solid var(--primary-red, #E51924);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: #444448;
}

.tx-single-page-wrapper .tx-post-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 20px 0;
    display: block;
}

/* Back Link Navigation */
.tx-single-page-wrapper .tx-back-navigation-wrap {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-start;
}

.tx-single-page-wrapper .tx-back-to-blogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0A0A0C;
    color: #FFFFFF !important;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tx-single-page-wrapper .tx-back-to-blogs-btn:hover {
    background: var(--primary-red, #E51924);
    color: #FFFFFF !important;
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(229, 25, 36, 0.25);
}

/* ==========================================================================
   SINGLE BLOG POST RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .tx-single-page-wrapper {
        padding: 115px 0 60px 0;
    }

    .tx-single-page-wrapper .tx-main-container {
        padding: 0 24px;
    }

    .tx-single-page-wrapper .tx-featured-media-box {
        margin-bottom: 30px;
        border-radius: 18px;
    }

    .tx-single-page-wrapper .tx-featured-media-box img {
        border-radius: 18px;
        max-height: 440px;
    }
}

/* Mobile Large / Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .tx-single-page-wrapper {
        padding: 105px 0 50px 0;
    }

    .tx-single-page-wrapper .tx-main-container {
        padding: 0 20px;
    }

    .tx-single-page-wrapper .tx-hero-banner-area {
        margin-bottom: 22px;
    }

    .tx-single-page-wrapper .tx-hero-main-title {
        font-size: clamp(24px, 5.5vw, 36px);
        line-height: 1.2;
    }

    .tx-single-page-wrapper .tx-featured-media-box {
        margin-bottom: 25px;
        border-radius: 16px;
    }

    .tx-single-page-wrapper .tx-featured-media-box img {
        border-radius: 16px;
        max-height: 360px;
    }

    .tx-single-page-wrapper .tx-post-article-content {
        font-size: 15.5px;
        line-height: 1.75;
    }
}

/* Mobile Small (max-width: 576px) */
@media (max-width: 576px) {
    .tx-single-page-wrapper {
        padding: 95px 0 45px 0;
    }

    .tx-single-page-wrapper .tx-main-container {
        padding: 0 16px;
    }

    .tx-single-page-wrapper .tx-hero-banner-area {
        margin-bottom: 18px;
    }

    .tx-single-page-wrapper .tx-hero-main-title {
        font-size: clamp(21px, 6.5vw, 28px);
        line-height: 1.22;
    }

    .tx-single-page-wrapper .tx-featured-media-box {
        margin-bottom: 22px;
        border-radius: 14px;
    }

    .tx-single-page-wrapper .tx-featured-media-box img {
        border-radius: 14px;
        max-height: 260px;
    }

    .tx-single-page-wrapper .tx-post-article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .tx-single-page-wrapper .tx-post-article-content h2 {
        font-size: clamp(19px, 5.5vw, 24px);
        margin-top: 30px;
        margin-bottom: 12px;
    }

    .tx-single-page-wrapper .tx-post-article-content h3 {
        font-size: clamp(17px, 4.5vw, 20px);
        margin-top: 26px;
        margin-bottom: 10px;
    }

    .tx-single-page-wrapper .tx-post-article-content p {
        margin: 0 0 18px 0;
    }

    .tx-single-page-wrapper .tx-back-navigation-wrap {
        margin-top: 40px;
        padding-top: 25px;
    }

    .tx-single-page-wrapper .tx-back-to-blogs-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 13.5px;
    }
}