:root {
    --primary-color: #ff3366;
    --primary-gradient: linear-gradient(45deg, #ff3366, #ff6688);
    --text-dark: #2b211f;
    --text-muted: #666666;
    --bg-light: #f9f6f5;
    --radius-lg: 20px;
    --radius-sm: 12px;
}

.tefact-main-container {
    padding: 40px 0 80px 0;
    background-color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

.tefact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.tefact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.tefact-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.tefact-breadcrumb a:hover {
    color: var(--primary-color);
}

/* Layout 3 Column Flex-Grid */
.tefact-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 32px;
}

/* Sidebar Left */
.tefact-section-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.tefact-section-heading i {
    color: var(--primary-color);
}

.tefact-related-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tefact-related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tefact-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.tefact-related-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.tefact-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tefact-related-body {
    padding: 14px;
}

.tefact-related-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.tefact-related-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 4px 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tefact-related-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Main Content Column */
.tefact-badge {
    background: #fff5f7;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tefact-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 12px 0 20px 0;
    line-height: 1.35;
}

.tefact-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.tefact-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tefact-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tefact-author-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.tefact-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tefact-meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tefact-featured-media {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.tefact-featured-media img {
    width: 100%;
    display: block;
}

.tefact-lead-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin: 0 0 32px 0;
    text-indent: 20px;
}

/* Gallery Section */
.tefact-gallery-section {
    margin-top: 40px;
    border-top: 2px dashed #edf2f7;
    padding-top: 32px;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 850;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.gallery-title i {
    color: var(--primary-color);
}

.tefact-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tefact-gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #edf2f7;
    cursor: zoom-in;
}

.tefact-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tefact-gallery-item:hover img {
    transform: scale(1.05);
}

/* Sticky Sidebar Right */
.tefact-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tefact-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-lg);
}

.tefact-widget-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.tefact-share-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tefact-share-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg-light);
    transition: background 0.2s, color 0.2s;
}

.tefact-share-card.fb { color: #1877f2; }
.tefact-share-card.line { color: #06c755; }

.tefact-share-card:hover {
    background: #edf2f7;
}

/* Ad widget */
.tefact-product-ad {
    background: var(--bg-light);
    border: none;
}

.tefact-product-ad h5 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.tefact-product-ad p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.tefact-ad-btn {
    background: var(--text-dark);
    color: #ffffff;
    padding: 12px 16px;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tefact-ad-btn:hover {
    background: var(--primary-color);
}

/* Responsive */
.tefact-responsive-aside-section {
    display: none;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .tefact-layout-grid {
        grid-template-columns: 1fr 300px; 
        gap: 24px;
    }
    
    .tefact-sidebar-left {
        display: none; 
    }

    .tefact-responsive-aside-section {
        display: block;
    }

    .tefact-responsive-aside-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }

    .tefact-responsive-aside-grid .tefact-related-card {
        height: 100%;
        background: #ffffff;
    }
    
    .tefact-responsive-aside-grid .tefact-related-thumb {
        height: 160px;
    }

    .tefact-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tefact-layout-grid {
        grid-template-columns: 1fr; 
    }

    .tefact-responsive-aside-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .tefact-more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .tefact-responsive-aside-grid,
    .tefact-more-grid {
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 992px) {
    .tefact-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tefact-main-container {padding: 100px 0 80px 0;}
    .tefact-title { font-size: 1.6rem; }
    .tefact-meta-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tefact-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}



/* ==========================================
     📦 NEW BOX: TEFACT MORE SECTION STYLE
     ========================================== */
.tefact-more-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #edf2f7;
}

.tefact-more-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.tefact-more-header h2 {
    font-size: 1.4rem;
    font-weight: 850;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
}

.tefact-more-header h2 i {
    color: var(--primary-color);
}

.tefact-more-header .header-line {
    flex-grow: 1;
    height: 1px;
    background: #e2e8f0;
}

.tefact-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch; 
}

.tefact-more-card {
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
    transition: transform 0.25s, box-shadow 0.25s;
}

.tefact-more-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.more-img-holder {
    position: relative;
    width: 100%;
    height: 180px; /
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.more-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.more-loc-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(43, 33, 31, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.more-content-holder {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.more-date-txt {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.more-content-holder h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; 
}

.more-content-holder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.more-read-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; 
}

.no-more-data {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ==========================================
     📱 RESPONSIVE BREAKPOINTS
     ========================================== */
@media (max-width: 1200px) {
    .tefact-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tefact-more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .more-img-holder {
        height: 150px; 
    }
    .tefact-more-header h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .tefact-more-grid {
        grid-template-columns: 1fr;
    }
    .more-img-holder {
        height: 200px; 
    }
}