/**
 * Blog Styles
 * Following theme patterns with brand colors
 *
 * Colors:
 * - Green: #9DCC4C
 * - Blue: #29A7F0
 * - White: #FFFFFF
 * - Dark headers: #222222
 * - Borders: #E8E8E8
 */

/* ========================================
   BASE WRAPPER
   ======================================== */

.tctm-blog-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, 'SF Pro', 'Segoe UI', sans-serif;
}

/* ========================================
   HERO SECTION
   ======================================== */

.tctm-blog-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
}

.tctm-blog-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.tctm-blog-hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

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

.tctm-blog-featured {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 8px 30px rgba(22, 59, 98, 0.15);
    background: #ffffff;
}

.tctm-blog-featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    color: inherit;
}

.tctm-blog-featured-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.tctm-blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tctm-blog-featured:hover .tctm-blog-featured-image img {
    transform: scale(1.05);
}

.tctm-blog-featured-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 64px;
}

.tctm-blog-featured-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #29A7F0;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-blog-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #222222;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-blog-featured-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tctm-blog-featured-title {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 16px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.tctm-blog-featured:hover .tctm-blog-featured-title {
    color: #29A7F0;
}

.tctm-blog-featured-excerpt {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.tctm-blog-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.tctm-blog-featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tctm-blog-featured-meta i {
    color: #94a3b8;
}

.tctm-blog-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #29A7F0;
    transition: gap 0.2s ease;
}

.tctm-blog-featured:hover .tctm-blog-featured-cta {
    gap: 12px;
}

/* ========================================
   FILTER BAR
   ======================================== */

.tctm-blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E8E8E8;
}

.tctm-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tctm-blog-category-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tctm-blog-category-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.tctm-blog-category-btn.active {
    background: #29A7F0;
    color: #ffffff;
    border-color: #29A7F0;
}

.tctm-blog-search {
    flex-shrink: 0;
}

.tctm-blog-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tctm-blog-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
}

.tctm-blog-search-input {
    padding: 10px 14px 10px 40px;
    font-size: 14px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    width: 280px;
    transition: all 0.2s ease;
}

.tctm-blog-search-input:focus {
    outline: none;
    border-color: #29A7F0;
    box-shadow: 0 0 0 3px rgba(41, 167, 240, 0.1);
}

.tctm-blog-search-input::placeholder {
    color: #94a3b8;
}

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

.tctm-blog-content {
    display: flex;
    gap: 30px;
}

.tctm-blog-main {
    flex: 1;
    min-width: 0;
}

.tctm-blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.tctm-blog-listing-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

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

.tctm-blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   BLOG CARD
   ======================================== */

.tctm-blog-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 100px 0px rgba(22, 59, 98, 0.3);
    transition: all 0.3s ease;
}

.tctm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 120px 0px rgba(22, 59, 98, 0.35);
}

.tctm-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tctm-blog-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.tctm-blog-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tctm-blog-card:hover .tctm-blog-card-thumbnail img {
    transform: scale(1.05);
}

.tctm-blog-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #94a3b8;
    font-size: 32px;
}

.tctm-blog-card-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #29A7F0;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-blog-card-content {
    padding: 20px;
}

.tctm-blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #64748b;
}

.tctm-blog-card-date,
.tctm-blog-card-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tctm-blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tctm-blog-card:hover .tctm-blog-card-title {
    color: #29A7F0;
}

.tctm-blog-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tctm-blog-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #E8E8E8;
}

.tctm-blog-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.tctm-blog-card-author-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

/* ========================================
   LOADING STATE
   ======================================== */

.tctm-blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 15px;
    grid-column: 1 / -1;
}

.tctm-blog-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8E8E8;
    border-top-color: #29A7F0;
    border-radius: 50%;
    animation: tctm-blog-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes tctm-blog-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   NO POSTS MESSAGE
   ======================================== */

.tctm-blog-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.tctm-blog-no-posts i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.tctm-blog-no-posts h3 {
    font-size: 20px;
    color: #334155;
    margin: 0 0 8px 0;
}

.tctm-blog-no-posts p {
    margin: 0;
    font-size: 15px;
}

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

.tctm-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.tctm-blog-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tctm-blog-page-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: #29A7F0;
    color: #29A7F0;
}

.tctm-blog-page-btn.active {
    background: #29A7F0;
    color: #ffffff;
    border-color: #29A7F0;
}

.tctm-blog-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tctm-blog-page-ellipsis {
    color: #94a3b8;
    padding: 0 4px;
}

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

.tctm-blog-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tctm-blog-sidebar-block {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E8E8E8;
}

.tctm-sidebar-block-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 20px;
    color: #29A7F0;
    margin-bottom: 16px;
}

.tctm-sidebar-icon-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.tctm-sidebar-block-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 8px 0;
}

.tctm-sidebar-block-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.tctm-sidebar-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tctm-sidebar-btn-primary {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-sidebar-btn-primary:hover {
    background: #1e96dc;
    transform: translateY(-1px);
}

.tctm-sidebar-btn-yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #222222;
}

.tctm-sidebar-btn-yellow:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tctm-sidebar-btn-silver {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}

.tctm-sidebar-btn-silver:hover {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.tctm-sidebar-btn-gold {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #222222;
}

.tctm-sidebar-btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tctm-sidebar-btn-titanium {
    background: linear-gradient(135deg, #0B1F3A, #103B72);
    color: #ffffff;
}

.tctm-sidebar-btn-titanium:hover {
    background: linear-gradient(135deg, #103B72, #1e4a8a);
}

.tctm-sidebar-btn-partner {
    background: #ffffff;
    color: #29A7F0;
    border: 1px solid #29A7F0;
}

.tctm-sidebar-btn-partner:hover {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-sidebar-btn-coaching {
    background: linear-gradient(135deg, #9DCC4C, #7db33a);
    color: #ffffff;
}

.tctm-sidebar-btn-coaching:hover {
    background: linear-gradient(135deg, #7db33a, #6a9932);
}

.tctm-sidebar-btn-live {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
}

.tctm-sidebar-btn-live:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.tctm-sidebar-icon-live {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
}

.tctm-sidebar-sunday-live {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #c4b5fd;
}

.tctm-sidebar-preview-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.tctm-sidebar-upgrade-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #9DCC4C;
    background: rgba(157, 204, 76, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-sidebar-cta-gray {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-color: #cbd5e1;
}

.tctm-sidebar-cta-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

.tctm-sidebar-cta-premium {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-color: #fcd34d;
}

.tctm-sidebar-cta-yellow {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

.tctm-sidebar-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tctm-sidebar-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #E8E8E8;
}

.tctm-sidebar-benefits-list li:last-child {
    border-bottom: none;
}

.tctm-sidebar-benefits-list i {
    color: #9DCC4C;
    font-size: 12px;
}

.tctm-sidebar-titanium-stats .tctm-sidebar-benefits-list i {
    color: #fbbf24;
}

/* ========================================
   DETAIL PAGE - HERO
   ======================================== */

.tctm-blog-detail-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tctm-blog-detail-hero-content {
    max-width: 800px;
}

.tctm-blog-detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tctm-blog-detail-category {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #29A7F0;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-blog-detail-title {
    font-size: 40px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.tctm-blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.tctm-blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tctm-blog-detail-meta i {
    color: #94a3b8;
}

/* ========================================
   DETAIL PAGE - MEMBER NOTIFICATION
   ======================================== */

.tctm-blog-member-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 8px;
    margin-top: 10px;
    gap: 15px;
}

.tctm-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tctm-notification-icon {
    font-size: 18px;
}

.tctm-notification-message {
    font-size: 14px;
    font-weight: 500;
}

.tctm-notification-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

/* Notification Styles */
.tctm-notification-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.tctm-notification-info .tctm-notification-cta {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-notification-info .tctm-notification-cta:hover {
    background: #1e96dc;
}

.tctm-notification-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.tctm-notification-warning .tctm-notification-cta {
    background: #f59e0b;
    color: #ffffff;
}

.tctm-notification-warning .tctm-notification-cta:hover {
    background: #d97706;
}

.tctm-notification-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.tctm-notification-success .tctm-notification-cta {
    background: #9DCC4C;
    color: #ffffff;
}

.tctm-notification-success .tctm-notification-cta:hover {
    background: #7db33a;
}

.tctm-notification-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    color: #78350f;
}

.tctm-notification-premium .tctm-notification-cta {
    background: linear-gradient(135deg, #0B1F3A, #103B72);
    color: #ffffff;
}

.tctm-notification-premium .tctm-notification-cta:hover {
    background: linear-gradient(135deg, #103B72, #1e4a8a);
}

/* ========================================
   DETAIL PAGE - FEATURED IMAGE
   ======================================== */

.tctm-blog-detail-featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.tctm-blog-detail-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* ========================================
   DETAIL PAGE - CONTENT WRAPPER
   ======================================== */

.tctm-blog-detail-content-wrapper {
    display: flex;
    gap: 40px;
}

.tctm-blog-detail-content-wrapper.with-sidebar .tctm-blog-detail-article {
    flex: 1;
    max-width: calc(100% - 360px);
}

.tctm-blog-detail-content-wrapper.full-width .tctm-blog-detail-article {
    max-width: 800px;
    margin: 0 auto;
}

.tctm-blog-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ========================================
   DETAIL PAGE - ARTICLE CONTENT
   ======================================== */

.tctm-blog-detail-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    /*max-width: 720px;*/
}

.tctm-blog-detail-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin: 40px 0 16px 0;
}

.tctm-blog-detail-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 32px 0 12px 0;
}

.tctm-blog-detail-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 24px 0 10px 0;
}

.tctm-blog-detail-content p {
    margin: 0 0 20px 0;
}

.tctm-blog-detail-content a {
    color: #29A7F0;
    text-decoration: underline;
}

.tctm-blog-detail-content a:hover {
    color: #1e96dc;
}

.tctm-blog-detail-content ul,
.tctm-blog-detail-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.tctm-blog-detail-content li {
    margin-bottom: 8px;
}

.tctm-blog-detail-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    background: #f8fafc;
    border-left: 4px solid #29A7F0;
    font-style: italic;
    color: #475569;
}

.tctm-blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.tctm-blog-detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.tctm-blog-detail-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 15px;
}

.tctm-blog-detail-content pre code {
    background: transparent;
    padding: 0;
}

/* ========================================
   DETAIL PAGE - INLINE CTA
   ======================================== */

.tctm-blog-inline-cta-wrapper {
    margin: 40px 0;
}

.tctm-blog-inline-cta {
    border-radius: 10px;
    padding: 24px;
    margin: 0;
}

.tctm-inline-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tctm-inline-cta-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
}

.tctm-inline-cta-text {
    flex: 1;
}

.tctm-inline-cta-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.tctm-inline-cta-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.tctm-inline-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* CTA Style A - Gray (Free -> Silver) */
.tctm-cta-style-a {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
}

.tctm-cta-style-a .tctm-inline-cta-icon {
    background: #ffffff;
    color: #64748b;
}

.tctm-cta-style-a .tctm-inline-cta-text h4,
.tctm-cta-style-a .tctm-inline-cta-text p {
    color: #334155;
}

.tctm-cta-style-a .tctm-inline-cta-btn {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}

.tctm-cta-style-a .tctm-inline-cta-btn:hover {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

/* CTA Style B - Blue (Silver -> Gold) */
.tctm-cta-style-b {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
}

.tctm-cta-style-b .tctm-inline-cta-icon {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-cta-style-b .tctm-inline-cta-text h4,
.tctm-cta-style-b .tctm-inline-cta-text p {
    color: #1e40af;
}

.tctm-cta-style-b .tctm-inline-cta-btn {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #222222;
}

.tctm-cta-style-b .tctm-inline-cta-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* CTA Style C - Green (Gold -> Titanium) */
.tctm-cta-style-c {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
}

.tctm-cta-style-c .tctm-inline-cta-icon {
    background: #9DCC4C;
    color: #ffffff;
}

.tctm-cta-style-c .tctm-inline-cta-text h4,
.tctm-cta-style-c .tctm-inline-cta-text p {
    color: #166534;
}

.tctm-cta-style-c .tctm-inline-cta-btn {
    background: linear-gradient(135deg, #0B1F3A, #103B72);
    color: #ffffff;
}

.tctm-cta-style-c .tctm-inline-cta-btn:hover {
    background: linear-gradient(135deg, #103B72, #1e4a8a);
}

/* CTA Style D - Yellow (Cold -> Free) */
.tctm-cta-style-d {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
}

.tctm-cta-style-d .tctm-inline-cta-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.tctm-cta-style-d .tctm-inline-cta-text h4,
.tctm-cta-style-d .tctm-inline-cta-text p {
    color: #92400e;
}

.tctm-cta-style-d .tctm-inline-cta-btn {
    background: linear-gradient(135deg, #29A7F0, #1e96dc);
    color: #ffffff;
}

.tctm-cta-style-d .tctm-inline-cta-btn:hover {
    background: linear-gradient(135deg, #1e96dc, #1a85c7);
}

/* CTA Style Titanium */
.tctm-cta-style-titanium {
    background: linear-gradient(135deg, #0B1F3A, #103B72);
    border: none;
}

.tctm-cta-style-titanium .tctm-inline-cta-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

.tctm-cta-style-titanium .tctm-inline-cta-text h4,
.tctm-cta-style-titanium .tctm-inline-cta-text p {
    color: #ffffff;
}

.tctm-cta-style-titanium .tctm-inline-cta-btn {
    background: linear-gradient(135deg, #9DCC4C, #7db33a);
    color: #ffffff;
}

.tctm-cta-style-titanium .tctm-inline-cta-btn:hover {
    background: linear-gradient(135deg, #7db33a, #6a9932);
}

/* ========================================
   DETAIL PAGE - AUTHOR BOX
   ======================================== */

.tctm-blog-author-box {
    margin: 40px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
}

.tctm-author-box-inner {
    display: flex;
    gap: 24px;
}

.tctm-author-avatar {
    flex-shrink: 0;
}

.tctm-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.tctm-author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 32px;
}

.tctm-author-info {
    flex: 1;
}

.tctm-author-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tctm-author-name {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    margin: 4px 0 12px 0;
}

.tctm-author-bio {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.tctm-author-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #29A7F0;
    background: #ffffff;
    border: 1px solid #29A7F0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tctm-author-cta-btn:hover {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-author-cta-btn.tctm-author-cta-primary {
    background: #9DCC4C;
    color: #ffffff;
    border-color: #9DCC4C;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tctm-author-cta-btn.tctm-author-cta-primary:hover {
    background: #7db33a;
    border-color: #7db33a;
}

/* ========================================
   DETAIL PAGE - BACK LINK
   ======================================== */

.tctm-blog-detail-back {
    margin: 40px 0 0 0;
    padding-top: 30px;
    border-top: 1px solid #E8E8E8;
}

.tctm-blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tctm-blog-back-link:hover {
    color: #29A7F0;
}

.tctm-blog-back-link i {
    transition: transform 0.2s ease;
}

.tctm-blog-back-link:hover i {
    transform: translateX(-4px);
}

/* ========================================
   DETAIL PAGE - RELATED POSTS
   ======================================== */

.tctm-blog-related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E8E8E8;
}

.tctm-blog-related-title {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 30px 0;
    text-align: center;
}

.tctm-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========================================
   ERROR STATE
   ======================================== */

.tctm-blog-error {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.tctm-blog-error h2 {
    font-size: 28px;
    color: #222222;
    margin: 0 0 12px 0;
}

.tctm-blog-error p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 24px 0;
}

.tctm-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tctm-blog-btn-primary {
    background: #29A7F0;
    color: #ffffff;
}

.tctm-blog-btn-primary:hover {
    background: #1e96dc;
}

/* ========================================
   RESPONSIVE - TABLET (1024px)
   ======================================== */

@media (max-width: 1024px) {
    .tctm-blog-featured-link {
        grid-template-columns: 1fr;
    }

    .tctm-blog-featured-content {
        padding: 24px;
    }

    .tctm-blog-featured-title {
        font-size: 24px;
    }

    .tctm-blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tctm-blog-content {
        flex-direction: column;
    }

    .tctm-blog-sidebar {
        width: 100%;
        position: static;
    }

    .tctm-blog-sidebar-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tctm-blog-sidebar-block {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }

    .tctm-blog-detail-content-wrapper {
        flex-direction: column;
    }

    .tctm-blog-detail-content-wrapper.with-sidebar .tctm-blog-detail-article {
        max-width: 100%;
    }

    .tctm-blog-detail-sidebar {
        width: 100%;
        position: static;
    }

    .tctm-blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tctm-blog-detail-title {
        font-size: 32px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px)
   ======================================== */

@media (max-width: 768px) {
    .tctm-blog-wrapper {
        padding: 0 15px;
    }

    .tctm-blog-featured-content {
        padding: 20px;
    }

    .tctm-blog-featured-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .tctm-blog-featured-excerpt {
        font-size: 15px;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tctm-blog-featured-meta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .tctm-blog-hero {
        padding: 30px 20px;
    }

    .tctm-blog-hero-title {
        font-size: 28px;
    }

    .tctm-blog-hero-subtitle {
        font-size: 16px;
    }

    .tctm-blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tctm-blog-categories {
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .tctm-blog-category-btn {
        flex-shrink: 0;
    }

    .tctm-blog-search-input {
        width: 100%;
    }

    .tctm-blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tctm-blog-sidebar-inner {
        flex-direction: column;
    }

    .tctm-blog-sidebar-block {
        flex: 1 1 100%;
    }

    .tctm-blog-detail-hero {
        padding: 24px 20px;
    }

    .tctm-blog-detail-title {
        font-size: 26px;
    }

    .tctm-blog-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .tctm-blog-member-notification {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .tctm-notification-content {
        flex-direction: column;
    }

    .tctm-blog-detail-content {
        font-size: 16px;
    }

    .tctm-blog-detail-content h2 {
        font-size: 24px;
    }

    .tctm-blog-detail-content h3 {
        font-size: 20px;
    }

    .tctm-inline-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .tctm-author-box-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .tctm-blog-related-title {
        font-size: 24px;
    }
}

/* ========================================
   LAZY LOADING - IMAGES
   ======================================== */

/* Lazy image wrapper */
.tctm-lazy-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Placeholder skeleton animation */
.tctm-lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tctm-shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes tctm-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hide placeholder when loaded */
.tctm-lazy-placeholder.tctm-placeholder-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tctm-image-loaded .tctm-lazy-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* Lazy image styles */
.tctm-lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tctm-lazy-image.tctm-lazy-loaded {
    opacity: 1;
}

/* For images that fail to load */
.tctm-lazy-image.tctm-lazy-error {
    opacity: 0.5;
}

/* Ensure proper sizing for lazy images in card thumbnails */
.tctm-blog-card-thumbnail .tctm-lazy-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tctm-blog-card-thumbnail .tctm-lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Featured image lazy loading */
.tctm-blog-detail-featured-image.tctm-lazy-image-wrapper .tctm-lazy-placeholder {
    border-radius: 10px;
}

.tctm-blog-detail-featured-image .tctm-lazy-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Featured post on listing page */
.tctm-blog-featured-image.tctm-lazy-image-wrapper .tctm-lazy-placeholder {
    border-radius: 0;
}

.tctm-blog-featured-image .tctm-lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   VIDEO EMBEDS & LAZY LOADING
   ======================================== */

/* Responsive video embeds */
.tctm-blog-detail-content iframe,
.tctm-blog-detail-content video {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 20px 0;
}

.tctm-blog-detail-content .wp-block-embed,
.tctm-blog-detail-content .wp-block-video {
    margin: 24px 0;
}

.tctm-blog-detail-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.tctm-blog-detail-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Lazy loading video placeholder */
.tctm-lazy-video {
    position: relative;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.tctm-lazy-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(41, 167, 240, 0.9);
    border-radius: 50%;
    z-index: 2;
}

.tctm-lazy-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(4px);
    border-style: solid;
    border-width: 15px 0 15px 24px;
    border-color: transparent transparent transparent #ffffff;
    z-index: 3;
}

.tctm-lazy-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
    .tctm-blog-hero-title {
        font-size: 24px;
    }

    .tctm-blog-detail-title {
        font-size: 22px;
    }

    .tctm-blog-card-title {
        font-size: 16px;
    }

    .tctm-blog-card-content {
        padding: 16px;
    }

    .tctm-blog-pagination {
        flex-wrap: wrap;
    }

    .tctm-blog-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========================================
   EMAIL CAPTURE BLOCK
   ======================================== */

.tctm-blog-email-capture {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.tctm-blog-email-capture-inner {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.tctm-blog-email-capture-headline {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.tctm-blog-email-capture-body {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.6;
}

.tctm-blog-email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tctm-blog-email-input {
    flex: 1;
    max-width: 280px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    outline: none;
}

.tctm-blog-email-input:focus {
    border-color: #9DCC4C;
}

.tctm-blog-email-submit {
    padding: 10px 20px;
    background: #9DCC4C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tctm-blog-email-submit:hover {
    background: #8ab83d;
}

.tctm-blog-email-microcopy {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0;
}

.tctm-email-capture-msg {
    font-size: 13px;
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 4px;
}

.tctm-email-capture-msg.tctm-msg-success {
    background: #f0fae5;
    color: #3a7d0a;
    border: 1px solid #b8e08a;
}

.tctm-email-capture-msg.tctm-msg-error {
    background: #fdf2f2;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ========================================
   SIDEBAR MINI EMAIL CAPTURE
   ======================================== */

.tctm-sidebar-email-mini {
    padding: 16px;
}

.tctm-sidebar-email-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.tctm-sidebar-email-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #222;
    outline: none;
    box-sizing: border-box;
}

.tctm-sidebar-email-input:focus {
    border-color: #9DCC4C;
}

/* ========================================
   PREMIUM CONTENT GATE
   ======================================== */

.tctm-blog-content-gated {
    max-height: 280px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    position: relative;
}

.tctm-blog-premium-gate {
    margin-top: -40px;
    text-align: center;
    padding: 32px 20px 20px;
}

.tctm-blog-premium-gate-inner {
    display: inline-block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 440px;
    width: 100%;
}

.tctm-blog-premium-gate-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.tctm-blog-premium-gate-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
}

.tctm-blog-premium-gate-body {
    font-size: 14px;
    color: #555;
    margin: 0 0 18px;
    line-height: 1.6;
}

.tctm-blog-premium-gate-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #9DCC4C;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tctm-blog-premium-gate-btn:hover {
    background: #8ab83d;
    color: #fff;
}

.tctm-blog-premium-gate-micro {
    font-size: 12px;
    color: #999;
    margin: 12px 0 0;
}

@media (max-width: 600px) {
    .tctm-blog-email-form {
        flex-direction: column;
        align-items: stretch;
    }

    .tctm-blog-email-input {
        max-width: 100%;
    }

    .tctm-blog-premium-gate-inner {
        padding: 20px 16px;
    }
}

/* Category archive — no sidebar, full-width grid */
.tctm-category-no-sidebar { display: block; }
.tctm-category-no-sidebar .tctm-blog-main { max-width: 100%; width: 100%; }

/* Category archive — header title */
.tctm-category-archive-header {
    padding: 32px 0 16px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 32px;
}
.tctm-category-archive-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B1F3A;
    margin: 0;
    line-height: 1.2;
}
