/**
 * Blogs / News Frontend Styles
 * Strict Brand Colors:
 * Primary Gold: #F9AD1B
 * Deep Forest Green: #344C36
 */

:root {
    --tm-brand-gold: #F9AD1B;
    --tm-brand-green: #344C36;
    --tm-brand-green-hover: #263828;
    --tm-text-dark: #18181B;
    --tm-text-muted: #6B7280;
    --tm-card-bg: #FFFFFF;
    --tm-card-border: #E5E7EB;
    --tm-font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tm-font-text: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tm-blogs-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: var(--tm-font-text);
}

/* Typography Font Assignments for Blogs */
.tm-blogs-heading,
.tm-blogs-page-heading,
.tm-blog-card-title,
.tm-blogs-subtitle,
.tm-view-all-blogs-btn,
.tm-single-blog-title,
.tm-blog-author-name,
.tm-related-title,
.tm-related-card-title,
.tm-blog-badge,
.tm-single-blog-category {
    font-family: var(--tm-font-primary) !important;
}

.tm-blogs-page-intro,
.tm-blog-card-excerpt,
.tm-blog-meta-item,
.tm-single-blog-content p,
.tm-single-blog-content li,
.tm-blog-author-bio,
.tm-read-more-btn,
.tm-blog-author-role {
    font-family: var(--tm-font-text) !important;
}

.tm-blogs-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Home Blogs Section (Exact Match to User's Uploaded Screenshot)
   ========================================================================== */

.tm-home-blogs-section {
    padding: 60px 0;
    width: 100%;
}

.tm-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 24px;
}

.tm-blogs-subtitle {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-brand-green);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tm-dash-accent {
    color: var(--tm-brand-gold);
    font-weight: 900;
    font-size: 18px;
    margin-right: 4px;
}

.tm-blogs-main-heading {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--tm-text-dark);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

.tm-heading-line1 {
    display: block;
}

.tm-heading-line2.tm-italic-gold {
    color: var(--tm-brand-gold);
    font-style: italic;
    font-weight: 600;
}

/* Capsule Button on Top Right (Exact Design Match) */
.tm-blogs-capsule-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--tm-brand-green);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 9999px;
    padding: 6px 6px 6px 26px;
    font-size: 15px;
    font-weight: 700;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(52, 76, 54, 0.2);
    transition: all 0.3s ease;
}

.tm-blogs-capsule-btn:hover {
    background-color: var(--tm-brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(52, 76, 54, 0.3);
}

.tm-capsule-arrow {
    width: 38px;
    height: 38px;
    background-color: var(--tm-brand-gold);
    color: var(--tm-brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tm-blogs-capsule-btn:hover .tm-capsule-arrow {
    transform: translateX(4px);
}

/* 3 Columns Blog Grid */
.tm-blogs-grid {
    display: grid;
    gap: 30px;
}

.tm-blogs-grid.tm-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .tm-blogs-grid.tm-grid-3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .tm-blogs-grid.tm-grid-3cols {
        grid-template-columns: 1fr;
    }
}

/* Individual Blog Card */
.tm-blog-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease;
}

.tm-blog-card:hover {
    transform: translateY(-5px);
}

/* Media Wrap with Floating Circle Arrow (Matches Screenshot) */
.tm-blog-media-wrap {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F3F4F6;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.tm-blog-card-media {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tm-blog-thumb-img,
.tm-blog-thumb-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tm-blog-card:hover .tm-blog-thumb-img,
.tm-blog-card:hover .tm-blog-thumb-svg {
    transform: scale(1.04);
}

/* Floating Gold Arrow Circle (Matches Screenshot) */
.tm-blog-float-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    background-color: var(--tm-brand-gold);
    color: #18181B !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 2;
}

.tm-float-arrow {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

.tm-blog-card:hover .tm-blog-float-btn {
    background-color: var(--tm-brand-green);
    color: #ffffff !important;
    transform: scale(1.1);
}

.tm-blog-card:hover .tm-float-arrow {
    transform: translate(2px, -2px);
}

/* Card Body */
.tm-blog-card-body {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Yellow Badge Pills: Category & Date (Exact Match) */
.tm-blog-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tm-badge-pill {
    background-color: var(--tm-brand-gold);
    color: #18181B;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    padding: 4px 14px;
    display: inline-block;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Blog Title */
.tm-blog-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.tm-blog-card-title a {
    color: var(--tm-text-dark) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.tm-blog-card:hover .tm-blog-card-title a {
    color: var(--tm-brand-green) !important;
}

/* Blog Excerpt */
.tm-blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tm-text-muted);
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Read More Link (Matches Screenshot) */
.tm-blog-bottom-row {
    margin-top: auto;
}

.tm-blog-read-more {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tm-brand-green) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
    display: inline-block;
}

.tm-blog-read-more:hover {
    color: var(--tm-brand-gold) !important;
}

/* ==========================================================================
   All Blogs Page ([all_blogs])
   ========================================================================== */

.tm-all-blogs-page {
    padding: 60px 0 100px 0;
    width: 100%;
}

.tm-blogs-page-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.tm-blogs-page-heading {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--tm-text-dark);
    margin: 14px 0 16px 0;
    line-height: 1.15;
}

.tm-blogs-page-intro {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--tm-text-muted);
    margin: 0;
}

/* Single Blog Post Enhancements */
.single-post .entry-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--tm-text-dark);
    line-height: 1.25;
}

.single-post .entry-content a {
    color: var(--tm-brand-green);
    font-weight: 600;
}

.single-post .entry-content a:hover {
    color: var(--tm-brand-gold);
}

/* ==========================================================================
   Single Blog Post Template (Exact Match to User's Uploaded Screenshot)
   ========================================================================== */

.tm-single-blog-main {
    background: #FFFFFF !important;
    padding-top: clamp(120px, 12vw, 160px) !important;
    padding-bottom: 90px !important;
    width: 100%;
    box-sizing: border-box !important;
}

/* Fallback if active theme handles the single container */
.single-post .site-main,
.single-post #primary,
.single-post article .tm-single-blog-container {
    padding-top: clamp(120px, 12vw, 160px) !important;
}

.tm-single-blog-article {
    width: 100%;
}

.tm-single-blog-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: var(--tm-font-text);
}

.tm-single-blog-container * {
    box-sizing: border-box;
}

/* 1. Hero Featured Image (Top - Matches Screenshot) */
.tm-single-blog-hero-media {
    text-align: center;
    margin-bottom: 30px;
}

.tm-single-blog-featured-img {
    max-width: 520px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.tm-single-blog-default-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-single-feat-chair-svg {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Meta Bar (Centered Below Image) */
.tm-single-blog-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: #6B7280;
    margin-bottom: 24px;
}

.tm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tm-meta-icon {
    color: #9CA3AF;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* 3. Article Title (H1) */
.tm-single-blog-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin: 0 0 32px 0;
    letter-spacing: -0.02em;
}

/* 4. Article Content */
.tm-single-blog-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #374151;
}

.tm-single-blog-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 16px 0;
    line-height: 1.3;
}

.tm-single-blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 14px 0;
    line-height: 1.35;
}

.tm-single-blog-content p {
    margin: 0 0 22px 0;
}

.tm-single-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.tm-single-blog-content ul,
.tm-single-blog-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

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

.tm-single-blog-content blockquote {
    border-left: 4px solid #F9AD1B;
    background: #FFFBEB;
    padding: 14px 22px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1F2937;
    margin: 28px 0;
}

/* 5. "Share this post..." Social Share Row */
.tm-single-blog-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 45px 0 32px 0;
    padding-top: 26px;
    border-top: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 14px;
}

.tm-share-label {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
}

.tm-share-btns {
    display: flex;
    gap: 10px;
}

.tm-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tm-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tm-share-fb {
    background-color: #3B5998 !important;
}

.tm-share-tw {
    background-color: #1DA1F2 !important;
}

.tm-share-li {
    background-color: #CC181E !important;
}

/* 6. Author Bio Card Box */
.tm-single-blog-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tm-author-avatar-col {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.tm-author-circle-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.tm-author-info-col {
    flex-grow: 1;
}

.tm-author-display-name {
    margin: 0 0 6px 0;
    font-size: 17.5px;
    font-weight: 700;
    color: #111827;
}

.tm-author-biography {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
}

/* 7. Previous / Next Post Navigation */
.tm-single-blog-pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 50px;
}

.tm-nav-anchor {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-nav-arrow-label {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.5px;
}

.tm-nav-post-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    transition: color 0.2s;
}

.tm-nav-anchor:hover .tm-nav-post-name {
    color: #F9AD1B;
}

/* 8. "Related Posts..." Section */
.tm-single-blog-related-section {
    margin-bottom: 50px;
}

.tm-related-heading {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.tm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tm-related-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tm-related-media-wrap {
    position: relative;
    height: 170px;
    background: #F3F4F6;
    overflow: visible;
}

.tm-related-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.tm-related-thumb-img,
.tm-related-media-link svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-related-cat-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10B981;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tm-related-avatar-badge {
    position: absolute;
    bottom: -16px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    overflow: hidden;
    z-index: 3;
    background: #E5E7EB;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tm-rel-author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-related-card-content {
    padding: 24px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tm-related-card-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tm-related-card-title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.tm-related-card-title a:hover {
    color: #344C36 !important;
}

.tm-related-card-excerpt {
    font-size: 12.5px;
    line-height: 1.55;
    color: #6B7280;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.tm-related-read-more {
    font-size: 11.5px;
    font-weight: 700;
    color: #10B981 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
}

.tm-related-read-more:hover {
    color: #F9AD1B !important;
}

.tm-related-card-footer {
    font-size: 11.5px;
    color: #9CA3AF;
    border-top: 1px solid #F3F4F6;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-bullet {
    font-weight: bold;
}

/* 9. Comments Section */
.tm-single-blog-comments-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.tm-single-blog-comments-wrapper #reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.tm-single-blog-comments-wrapper #commentform p {
    margin-bottom: 16px;
}

.tm-single-blog-comments-wrapper #commentform textarea {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 14px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.tm-single-blog-comments-wrapper #commentform textarea:focus {
    border-color: #344C36;
}

.tm-single-blog-comments-wrapper #commentform input[type="text"],
.tm-single-blog-comments-wrapper #commentform input[type="email"],
.tm-single-blog-comments-wrapper #commentform input[type="url"] {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.tm-single-blog-comments-wrapper #commentform input:focus {
    border-color: #344C36;
}

.tm-single-blog-comments-wrapper #commentform #submit,
.tm-single-blog-comments-wrapper .submit .submit {
    background-color: #2563EB !important;
    background: #2563EB !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-transform: uppercase;
}

.tm-single-blog-comments-wrapper #commentform #submit:hover {
    background-color: #1D4ED8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .tm-single-blog-meta-bar {
        gap: 12px;
        font-size: 12.5px;
    }

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

    .tm-single-blog-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

