
:root {
  --tce-bg: #0b1220;
  --tce-bg-soft: #111b2e;
  --tce-card: rgba(255,255,255,0.08);
  --tce-card-solid: #ffffff;
  --tce-text: #0f172a;
  --tce-text-soft: #52607a;
  --tce-light: #ffffff;
  --tce-primary: #ff296d;
  --tce-primary-dark: #d61c59;
  --tce-accent: #f5b301;
  --tce-border: rgba(148,163,184,0.15);
  --tce-radius: 22px;
  --tce-shadow: 0 12px 40px rgba(10, 15, 30, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tce-body { margin: 0; font-family: Inter, Arial, sans-serif; background: #f6f8fc; color: var(--tce-text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.tce-container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.tce-header { position: sticky; top: 0; z-index: 999; background: rgba(11,18,32,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.tce-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 20px; }
.tce-logo { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.tce-nav { display: flex; gap: 22px; align-items: center; }
.tce-nav a { color: rgba(255,255,255,0.92); font-weight: 600; position: relative; }
.tce-nav a:after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--tce-primary); transition: 0.25s ease; }
.tce-nav a:hover:after { width: 100%; }
.tce-menu-toggle { display: none; background: transparent; color: #fff; font-size: 26px; border: 0; }
.tce-main { overflow: hidden; }
.tce-hero { position: relative; background: radial-gradient(circle at top right, rgba(245,179,1,0.18), transparent 30%), linear-gradient(135deg, #09111f 0%, #152541 50%, #1d3557 100%); color: #fff; padding: 92px 0 80px; }
.tce-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0.1), rgba(11,18,32,0.25)); }
.tce-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; position: relative; z-index: 1; align-items: center; }
.tce-kicker { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.12); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tce-hero h1, .tce-archive-hero h1, .tce-tools-page h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; margin: 16px 0 18px; letter-spacing: -0.04em; color: #fff; }
.tce-hero p, .tce-archive-hero p { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.84); max-width: 680px; }
.tce-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.tce-btn { border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, background .25s ease; }
.tce-btn:hover { transform: translateY(-2px); }
.tce-btn-primary { background: var(--tce-primary); color: #fff; }
.tce-btn-primary:hover { background: var(--tce-primary-dark); }
.tce-btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.tce-search-box { display: flex; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); padding: 12px; border-radius: 18px; max-width: 680px; }
.tce-search-box input { flex: 1; min-width: 220px; background: transparent; border: 0; outline: none; color: #fff; font-size: 16px; }
.tce-search-box input::placeholder { color: rgba(255,255,255,0.68); }
.tce-search-box button { background: var(--tce-accent); color: #111; border: 0; padding: 12px 18px; border-radius: 14px; font-weight: 800; }
.glass-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.18); border-radius: var(--tce-radius); backdrop-filter: blur(12px); }
.tce-highlight-card { padding: 28px; }
.tce-mini-label { font-size: 12px; color: #fff; opacity: 0.78; text-transform: uppercase; letter-spacing: 0.08em; }
.tce-highlight-card ul { margin: 16px 0 0; padding-left: 20px; color: rgba(255,255,255,0.9); }
.tce-highlight-card li { margin-bottom: 10px; }
.tce-section { padding: 72px 0; }
.tce-alt-section { background: linear-gradient(180deg, #fafbfd 0%, #f2f5fa 100%); }
.tce-section-heading { margin-bottom: 28px; }
.tce-section-heading h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; color: var(--tce-text); letter-spacing: -0.03em; }
.tce-section-heading p { margin: 0; color: var(--tce-text-soft); font-size: 17px; }
.tce-heading-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.tce-text-link { color: var(--tce-primary); font-weight: 700; }
.tce-grid { display: grid; gap: 22px; }
.tce-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tce-celebrity-grid, .tce-tools-grid, .tce-blog-grid, .tce-movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tce-card { background: var(--tce-card-solid); border-radius: var(--tce-radius); box-shadow: var(--tce-shadow); overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.04); }
.tce-card-body { padding: 20px; }
.tce-category-card { padding: 28px; min-height: 180px; background: linear-gradient(180deg, #fff, #f7f9fc); }
.tce-category-card span { font-size: 28px; display: inline-block; margin-bottom: 12px; }
.tce-category-card h3, .tce-tool-card h3, .tce-card-body h3 { margin: 0 0 8px; font-size: 22px; }
.tce-category-card p, .tce-tool-card p, .tce-card-body p { margin: 0; color: var(--tce-text-soft); line-height: 1.65; }
.tce-tool-card { padding: 26px; background: linear-gradient(180deg, #fff, #fbfbff); border-top: 4px solid var(--tce-accent); transition: transform .25s ease, box-shadow .25s ease; }
.tce-tool-card:hover, .tce-celebrity-card:hover, .tce-blog-card:hover, .tce-movie-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(10, 15, 30, 0.12); }
.tce-tool-icon { font-size: 30px; margin-bottom: 12px; }
.tce-thumb { aspect-ratio: 4/4.2; background: linear-gradient(135deg, #d6deeb, #f2f5fa); overflow: hidden; }
.tce-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tce-thumb-placeholder { display: flex; align-items: center; justify-content: center; color: #61708b; font-weight: 800; }
.tce-meta-line { font-size: 14px; color: #59657c; margin-bottom: 12px !important; }
.tce-meta-badge { display: inline-flex; background: #fff1f5; color: #c2185b; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tce-empty-state { background: #fff; padding: 24px; border-radius: var(--tce-radius); box-shadow: var(--tce-shadow); color: var(--tce-text-soft); }
.tce-tool-panels { display: grid; gap: 26px; }
.tce-tool-panel, .tce-compare-panel { background: #fff; padding: 28px; border-radius: var(--tce-radius); box-shadow: var(--tce-shadow); }
.tce-tool-panel h2, .tce-compare-panel h2 { margin-top: 0; font-size: 28px; }
.tce-tool-controls { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; }
.tce-inline-wrap { flex-wrap: wrap; }
.tce-select, .tce-input { min-width: 200px; flex: 1; padding: 14px 16px; border: 1px solid #d9e0eb; border-radius: 14px; font-size: 16px; background: #fff; }
.tce-result-box { margin-top: 18px; padding: 18px; border-radius: 16px; background: #f8fbff; border: 1px solid #dce7f7; color: #283548; min-height: 64px; }
.tce-result-box:empty { display: none; }
.tce-vs { font-size: 14px; font-weight: 800; background: #111827; color: #fff; padding: 12px 14px; border-radius: 999px; }
.tce-tools-page { padding: 74px 0; background: linear-gradient(180deg, #0b1220 0 260px, #f6f8fc 260px 100%); }
.tce-tools-page .tce-section-heading p { color: rgba(255,255,255,0.75); }
.tce-tools-page .tce-section-heading h1 { margin-bottom: 10px; }
.tce-tools-page .tce-container > .tce-section-heading { margin-bottom: 28px; }
.tce-profile-hero { background: linear-gradient(135deg, #0b1220 0%, #152541 100%); color: #fff; padding: 80px 0; }
.tce-profile-grid { display: grid; grid-template-columns: 360px 1fr; gap: 34px; align-items: center; }
.tce-profile-image-wrap { width: 100%; }
.tce-profile-image, .tce-profile-placeholder { width: 100%; border-radius: 28px; box-shadow: 0 12px 40px rgba(0,0,0,0.28); aspect-ratio: 1/1.15; object-fit: cover; }
.tce-profile-placeholder { background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }
.tce-profile-subtitle { font-size: 20px; color: rgba(255,255,255,0.82); margin: 0 0 22px; }
.tce-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tce-stat { background: rgba(255,255,255,0.08); padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); }
.tce-stat span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin-bottom: 8px; }
.tce-stat strong { font-size: 16px; line-height: 1.4; }
.tce-single-content-grid { display: grid; grid-template-columns: 1.1fr 0.45fr; gap: 28px; align-items: start; }
.tce-profile-content, .tce-profile-sidebar .tce-card { padding: 28px; }
.tce-profile-content h2 { margin-top: 0; font-size: 28px; }
.tce-profile-sidebar { display: grid; gap: 22px; }
.tce-rich-text p { color: #46546c; line-height: 1.85; }
.tce-mini-list { padding-left: 18px; }
.tce-mini-list li { margin-bottom: 10px; }
.tce-archive-hero { background: linear-gradient(135deg, #0b1220 0%, #16263f 100%); color: #fff; padding: 76px 0; }
.tce-archive-search { max-width: 640px; margin-top: 22px; }
.tce-date { color: #7a859a; font-size: 14px; margin-bottom: 8px; }
.tce-pagination { margin-top: 32px; text-align: center; }
.tce-pagination .page-numbers { display: inline-flex; margin: 0 4px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--tce-shadow); }
.tce-footer { display: none; } /* Hide old footer class, using trendvica-footer instead */
.tce-copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 28px; padding-top: 18px; color: rgba(255,255,255,0.66); font-size: 14px; }
@media (max-width: 1024px) {
  .tce-category-grid, .tce-celebrity-grid, .tce-tools-grid, .tce-blog-grid, .tce-movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tce-hero-grid, .tce-profile-grid, .tce-single-content-grid { grid-template-columns: 1fr; }
  .tce-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) {
  .tce-header-inner { padding: 14px 0; }
  .tce-menu-toggle { display: block; }
  .tce-nav { position: absolute; top: 64px; left: 16px; right: 16px; background: #0b1220; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 18px; display: none; box-shadow: 0 18px 50px rgba(0,0,0,0.3); }
  .tce-nav.is-open { display: flex; }
  .tce-hero { padding-top: 72px; }
  .tce-tool-controls { flex-direction: column; align-items: stretch; }
  .tce-stats-grid { grid-template-columns: 1fr; }
  .tce-heading-row { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
  .tce-category-grid, .tce-celebrity-grid, .tce-tools-grid, .tce-blog-grid, .tce-movie-grid { grid-template-columns: 1fr; }
  .tce-container { width: min(100% - 22px, 1200px); }
  .tce-hero h1, .tce-archive-hero h1, .tce-tools-page h1 { font-size: 36px; }
}


/* Blog Magazine Layout */
.tce-blog-hero{
 background:linear-gradient(135deg,#0b1220,#243b55);
 color:#fff;
 padding:80px 0;
}
.tce-blog-hero h1{
 color:#fff;
 font-size:52px;
 max-width:750px;
 margin:18px 0;
}
.tce-blog-hero p{
 color:rgba(255,255,255,.8);
 font-size:18px;
 max-width:650px;
}
.tce-blog-search{
 display:flex;
 gap:10px;
 margin-top:30px;
 max-width:650px;
}
.tce-blog-search input{
 flex:1;
 padding:16px;
 border-radius:12px;
 border:0;
}
.tce-blog-search button{
 padding:16px 24px;
 border:0;
 border-radius:12px;
 background:#f5b301;
 font-weight:700;
}
.tce-featured-post{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:30px;
 background:#fff;
 padding:25px;
 border-radius:22px;
 box-shadow:0 12px 40px rgba(0,0,0,.1);
}
.tce-featured-post img{
 width:100%;
 height:320px;
 object-fit:cover;
 border-radius:18px;
}
.tce-featured-post h2{
 font-size:34px;
 margin:15px 0;
}
@media(max-width:768px){
 .tce-featured-post{grid-template-columns:1fr}
 .tce-blog-hero h1{font-size:36px}
}

.tce-page-hero{
background:linear-gradient(135deg,#0b1220,#243b55);
padding:80px 0;color:#fff;
}
.tce-page-hero h1{
font-size:48px;
max-width:800px;
color:#fff;
margin:20px 0;
}
.tce-page-hero p{
font-size:18px;
max-width:650px;
color:rgba(255,255,255,.8);
line-height:1.7;
}
.tce-content-card{
padding:40px;
line-height:1.8;
}
.tce-content-card h2{
font-size:32px;
margin-top:0;
}
.tce-contact-form{
display:grid;
gap:15px;
}
.tce-contact-form input,
.tce-contact-form textarea{
padding:15px;
border:1px solid #ddd;
border-radius:12px;
font-size:16px;
}
.tce-contact-form textarea{
min-height:150px;
}

.tce-page-modern{
background:#f6f8fc;
}
.tce-page-modern .tce-content-card{
max-width:900px;
margin:auto;
border-radius:24px;
box-shadow:0 15px 45px rgba(0,0,0,.08);
}
.tce-page-modern .tce-content-card p{
font-size:18px;
line-height:1.8;
color:#52607a;
}

.tce-page-hero{background:linear-gradient(135deg,#0b1220,#243b55);padding:90px 0;color:#fff}
.tce-page-hero h1{font-size:52px;color:#fff;margin:20px 0}
.tce-page-hero p{font-size:18px;color:rgba(255,255,255,.85);max-width:700px}
.tce-content-card{max-width:900px;margin:auto;padding:45px;border-radius:24px}
.tce-contact-form{display:grid;gap:15px;margin-top:20px}
.tce-contact-form input,.tce-contact-form textarea{padding:15px;border-radius:12px;border:1px solid #ddd}
.tce-contact-form textarea{min-height:140px}


/* Modern Static Pages */
.tce-page-modern {
    background:#f6f8fc;
    min-height:600px;
}
.tce-page-hero {
    background:linear-gradient(135deg,#0b1220,#1d3557);
    padding:90px 0;
    color:white;
}
.tce-page-hero .tce-container {
    max-width:1200px;
}
.tce-page-hero h1 {
    color:white;
    font-size:clamp(38px,5vw,60px);
    line-height:1.1;
    margin:20px 0;
    letter-spacing:-2px;
}
.tce-page-hero p {
    color:rgba(255,255,255,.82);
    font-size:20px;
    max-width:720px;
    line-height:1.7;
}
.tce-content-card {
    background:white;
    padding:45px;
    border-radius:24px;
    box-shadow:0 15px 45px rgba(15,23,42,.10);
    max-width:900px;
    margin:auto;
}
.tce-content-card h2 {
    font-size:32px;
    margin-bottom:15px;
}
.tce-content-card p {
    color:#52607a;
    font-size:18px;
    line-height:1.8;
}
.tce-contact-form input,
.tce-contact-form textarea {
    width:100%;
    padding:15px;
    border-radius:14px;
    border:1px solid #dbe3ef;
    margin-bottom:15px;
}

.tce-contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
align-items:start;
}
.tce-contact-form{
display:flex;
flex-direction:column;
gap:16px;
}
.tce-contact-form input,
.tce-contact-form textarea{
width:100%;
padding:16px 18px;
font-size:16px;
border:1px solid #dbe3ef;
border-radius:14px;
background:#fff;
}
.tce-contact-form textarea{
min-height:160px;
resize:vertical;
}
.tce-contact-form .tce-btn{
width:max-content;
}
@media(max-width:768px){
.tce-contact-grid{grid-template-columns:1fr}
}

.tce-contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:30px}
.tce-contact-form{display:grid;gap:15px}
.tce-contact-form input,.tce-contact-form textarea{width:100%;box-sizing:border-box;padding:16px;border-radius:14px;border:1px solid #d8deea;font-size:16px}
.tce-contact-form textarea{min-height:170px}
.tce-contact-info,.tce-contact-form-card{padding:40px;background:#fff;border-radius:24px;box-shadow:0 15px 40px rgba(0,0,0,.08)}
@media(max-width:768px){.tce-contact-grid{grid-template-columns:1fr}}

.tce-article-layout{display:grid;grid-template-columns:220px minmax(0,760px) 260px;gap:30px;padding:50px 0}
.tce-article-content h1{font-size:48px;line-height:1.15}
.tce-meta{color:#64748b;margin:20px 0}
.tce-feature-image img{width:100%;border-radius:20px}
.tce-quick-answer,.tce-author-card,.tce-latest-card{background:#fff;border-radius:18px;padding:25px;box-shadow:0 10px 30px rgba(0,0,0,.08);margin:25px 0}
.tce-body h2,.tce-body h3{margin-top:35px}
.tce-article-toc{background:#f8fafc;padding:20px;border-radius:15px;height:max-content}
.tce-author-card{text-align:center}
.tce-author-card img{border-radius:50%}
.tce-latest-card a{display:block;margin:12px 0}
@media(max-width:900px){.tce-article-layout{grid-template-columns:1fr}.tce-article-toc,.tce-author-sidebar{order:2}.tce-article-content h1{font-size:34px}}


/* Premium Single Article Layout */
.tce-single-wrap{
    background:#f7f8fc;
    padding:60px 0;
}
.tce-single-grid{
    max-width:1250px;
    margin:auto;
    display:grid;
    grid-template-columns:240px minmax(0,760px) 280px;
    gap:30px;
}
.tce-article-card,
.tce-sidebar-card,
.tce-toc-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}
.tce-article-title{
    font-size:48px;
    line-height:1.15;
    margin:20px 0;
}
.tce-meta{
    color:#667085;
    margin-bottom:25px;
}
.tce-quick-answer{
    background:#eef4ff;
    border-radius:15px;
    padding:20px;
    margin:25px 0;
}
.tce-content h2{
    margin-top:45px;
    font-size:32px;
}
.tce-author-box img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
}
.tce-latest-posts a{
    display:block;
    margin:12px 0;
}
@media(max-width:1000px){
    .tce-single-grid{
        grid-template-columns:1fr;
    }
}

/* ============================================
   TRENDVICA PREMIUM SINGLE ARTICLE LAYOUT
   ============================================ */

/* Main Container */
.trendvica-single-article {
    background: #f8f9fc;
    padding: 40px 0 60px;
    min-height: 100vh;
}

.trendvica-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3-Column Grid Layout */
.trendvica-article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 780px) 300px;
    gap: 32px;
    align-items: start;
}

/* ============================================
   LEFT SIDEBAR - Table of Contents
   ============================================ */
.trendvica-left-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.trendvica-toc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trendvica-toc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.trendvica-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trendvica-toc-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.trendvica-toc-nav a:hover {
    background: #f1f5f9;
    color: #334155;
}

.trendvica-toc-nav a.trendvica-toc-active {
    background: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 600;
}

.trendvica-toc-nav a.trendvica-toc-sub {
    padding-left: 24px;
    font-size: 13px;
}

/* ============================================
   CENTER COLUMN - Article Content
   ============================================ */
.trendvica-article-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category Badge */
.trendvica-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Article Title */
.trendvica-article-title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 24px;
    color: #1a1a1a;
    letter-spacing: -1.5px;
}

/* Meta Information */
.trendvica-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.trendvica-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
}

.trendvica-meta-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.trendvica-meta-date,
.trendvica-meta-read-time {
    color: #64748b;
    font-size: 14px;
}

/* Featured Image */
.trendvica-featured-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.trendvica-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* Quick Answer */
.trendvica-quick-answer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.trendvica-quick-answer-label {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.trendvica-quick-answer-content {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

/* Article Body Content */
.trendvica-article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.trendvica-article-body h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    margin: 48px 0 24px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.trendvica-article-body h2 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    margin: 48px 0 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.trendvica-article-body h3 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #1f2937;
}

.trendvica-article-body p {
    margin-bottom: 24px;
}

.trendvica-article-body a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.trendvica-article-body a:hover {
    color: #1d4ed8;
}

.trendvica-article-body ul,
.trendvica-article-body ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.trendvica-article-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.trendvica-article-body blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.trendvica-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.trendvica-article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
}

.trendvica-article-body code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: #dc2626;
}

.trendvica-article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ============================================
   RIGHT SIDEBAR - Author & Latest Posts
   ============================================ */
.trendvica-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

/* Author Card */
.trendvica-author-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.trendvica-author-avatar {
    margin-bottom: 16px;
}

.trendvica-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
}

.trendvica-author-info {
    text-align: center;
}

.trendvica-author-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.trendvica-author-title {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px;
    font-weight: 500;
}

.trendvica-author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
}

/* Social Media Buttons */
.trendvica-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trendvica-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.trendvica-social-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.trendvica-social-facebook:hover {
    background: #1877f2;
}

.trendvica-social-twitter:hover {
    background: #000000;
}

.trendvica-social-linkedin:hover {
    background: #0a66c2;
}

.trendvica-social-whatsapp:hover {
    background: #25d366;
}

/* Latest Posts Widget */
.trendvica-latest-posts-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trendvica-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.trendvica-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trendvica-latest-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    padding: 8px;
    border-radius: 8px;
}

.trendvica-latest-post-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.trendvica-latest-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.trendvica-latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trendvica-latest-post-info {
    flex: 1;
    min-width: 0;
}

.trendvica-latest-post-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a1a1a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trendvica-latest-post-date {
    font-size: 12px;
    color: #64748b;
}

.trendvica-no-posts {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .trendvica-article-layout {
        grid-template-columns: 200px minmax(0, 1fr) 260px;
        gap: 24px;
    }

    .trendvica-article-content {
        padding: 32px;
    }

    .trendvica-article-title {
        font-size: 36px;
    }

    .trendvica-left-sidebar,
    .trendvica-right-sidebar {
        position: static;
        max-height: none;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .trendvica-single-article {
        padding: 20px 0 40px;
    }

    .trendvica-container {
        padding: 0 16px;
    }

    .trendvica-article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trendvica-article-content {
        padding: 24px;
        order: 1;
    }

    .trendvica-left-sidebar {
        order: 2;
    }

    .trendvica-right-sidebar {
        order: 3;
    }

    .trendvica-article-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .trendvica-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .trendvica-article-body h1 {
        font-size: 32px;
    }

    .trendvica-article-body h2 {
        font-size: 26px;
    }

    .trendvica-article-body h3 {
        font-size: 20px;
    }

    .trendvica-article-body {
        font-size: 16px;
    }

    .trendvica-toc-card {
        padding: 20px;
    }

    .trendvica-author-card {
        padding: 24px;
    }

    .trendvica-latest-posts-card {
        padding: 20px;
    }
}

/* ============================================
   TRENDVICA LEGAL PAGES STYLING
   ============================================ */

/* Legal Page Container */
.trendvica-legal-page {
    background: #f8f9fc;
    min-height: 100vh;
}

/* Legal Hero Section */
.trendvica-legal-hero {
    background: linear-gradient(135deg, #0b1220 0%, #1d3557 100%);
    color: #ffffff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.trendvica-legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(245, 179, 1, 0.1), transparent 50%);
    pointer-events: none;
}

.trendvica-legal-hero-content {
    position: relative;
    z-index: 1;
}

.trendvica-legal-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trendvica-legal-title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 20px;
    color: #ffffff;
    letter-spacing: -1px;
}

.trendvica-legal-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0;
}

/* Legal Content Section */
.trendvica-legal-content {
    padding: 60px 0 80px;
}

.trendvica-legal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Legal Sections */
.trendvica-legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.trendvica-legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trendvica-legal-heading {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.trendvica-legal-text {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 16px;
}

.trendvica-legal-text a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.trendvica-legal-text a:hover {
    color: #1d4ed8;
}

/* Legal Lists */
.trendvica-legal-list {
    margin: 20px 0;
    padding-left: 24px;
    list-style: none;
}

.trendvica-legal-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
}

.trendvica-legal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

/* Legal Contact Section */
.trendvica-legal-contact {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
    border: 1px solid #bae6fd;
}

.trendvica-legal-contact .trendvica-legal-heading {
    margin-bottom: 16px;
}

/* Legal Footer */
.trendvica-legal-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.trendvica-legal-updated {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* ============================================
   TRENDVICA FOOTER STYLING
   ============================================ */

.trendvica-footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 0;
}

.trendvica-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.trendvica-footer-column {
    display: flex;
    flex-direction: column;
}

.trendvica-footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.trendvica-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trendvica-footer-links li {
    margin-bottom: 12px;
}

.trendvica-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
}

.trendvica-footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.trendvica-footer-brand {
    grid-column: span 1;
}

.trendvica-footer-brand-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #ffffff;
    letter-spacing: -1px;
}

.trendvica-footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
}

.trendvica-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.trendvica-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.trendvica-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.trendvica-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trendvica-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   LEGAL PAGES RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .trendvica-legal-hero {
        padding: 80px 0 60px;
    }

    .trendvica-legal-title {
        font-size: 42px;
    }

    .trendvica-legal-card {
        padding: 36px;
    }

    .trendvica-legal-heading {
        font-size: 24px;
    }

    .trendvica-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .trendvica-legal-hero {
        padding: 60px 0 40px;
    }

    .trendvica-legal-title {
        font-size: 32px;
    }

    .trendvica-legal-subtitle {
        font-size: 16px;
    }

    .trendvica-legal-content {
        padding: 40px 0;
    }

    .trendvica-legal-card {
        padding: 24px;
        border-radius: 16px;
    }

    .trendvica-legal-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .trendvica-legal-heading {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .trendvica-legal-text {
        font-size: 16px;
    }

    .trendvica-legal-list li {
        font-size: 16px;
    }

    .trendvica-legal-contact {
        padding: 24px;
        margin-top: 32px;
    }

    .trendvica-footer {
        padding: 40px 0 0;
    }

    .trendvica-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trendvica-footer-brand {
        grid-column: span 1;
        order: -1;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .trendvica-legal-title {
        font-size: 28px;
    }

    .trendvica-legal-card {
        padding: 20px;
    }

    .trendvica-legal-heading {
        font-size: 20px;
    }

    .trendvica-legal-text {
        font-size: 15px;
    }

    .trendvica-footer-brand-title {
        font-size: 20px;
    }
}



/* Enhanced Mian Bilal Author Card */
.trendvica-author-card{
    background: linear-gradient(145deg,#0f172a,#312e81,#2563eb);
    color:#fff;
    border:none;
    border-radius:24px;
    padding:30px;
    box-shadow:0 18px 45px rgba(37,99,235,.25);
    overflow:hidden;
    position:relative;
}
.trendvica-author-card:before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    top:-70px;
    right:-60px;
}
.trendvica-author-avatar img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid rgba(255,255,255,.9);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}
.trendvica-author-name{
    color:#fff!important;
    font-size:24px;
    margin:12px 0 5px;
}
.trendvica-author-title{
    color:#fbbf24!important;
    font-weight:700;
}
.trendvica-author-bio{
    color:rgba(255,255,255,.9)!important;
    line-height:1.7;
}
.trendvica-social-btn{
    background:rgba(255,255,255,.15)!important;
    color:#fff!important;
    border-radius:12px;
    transition:.3s;
}
.trendvica-social-btn:hover{
    background:#fff!important;
    color:#2563eb!important;
    transform:translateY(-3px);
}


/* Article meta author enhancement */
.trendvica-meta-author{
    display:flex;
    align-items:center;
    gap:10px;
}
.trendvica-meta-author-image{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
}
.trendvica-meta-author strong{
    display:block;
    font-weight:700;
}
.trendvica-meta-author small{
    opacity:.75;
}

/* Latest posts image cards */
.trendvica-latest-post-item{
    display:flex;
    gap:14px;
    align-items:center;
}
.trendvica-latest-post-thumb img{
    width:75px;
    height:75px;
    object-fit:cover;
    border-radius:14px;
}
.trendvica-latest-post-info h4{
    margin:0 0 6px;
}


/* Final author meta spacing fix */
.trendvica-author-meta-tight{
    gap:8px;
    align-items:center;
    margin-top:12px;
    margin-bottom:20px;
}
.trendvica-meta-author{
    gap:8px !important;
    line-height:1.25;
}
.trendvica-meta-author-image{
    width:34px !important;
    height:34px !important;
}
.trendvica-meta-author small{
    font-size:12px;
}

/* Latest posts with featured thumbnails */
.trendvica-latest-post-item{
    display:flex !important;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}
.trendvica-latest-post-thumb{
    flex:0 0 72px;
}
.trendvica-latest-post-thumb img{
    display:block;
    width:72px;
    height:72px;
    object-fit:cover;
    border-radius:12px;
}
.trendvica-latest-post-info{
    flex:1;
}


/* ===== Final compact author row + latest posts image fix ===== */
.trendvica-article-meta.trendvica-author-meta-tight{
    gap: 14px !important;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 18px;
    row-gap: 8px;
}
.trendvica-meta-author{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    line-height:1.1 !important;
    margin-right: 6px;
}
.trendvica-meta-author-image{
    width:36px !important;
    height:36px !important;
    border-radius:50%;
    object-fit:cover;
    flex:0 0 36px;
}
.trendvica-meta-author-details{
    display:flex;
    flex-direction:column;
    gap:1px;
}
.trendvica-meta-author-name{
    display:block;
    font-size:15px;
    font-weight:700;
    color:#1f2937;
}
.trendvica-meta-author-role{
    display:block;
    font-size:12px;
    color:#64748b;
    font-weight:600;
}
.trendvica-meta-date,
.trendvica-meta-read-time{
    font-size:14px;
    color:#64748b;
    white-space:nowrap;
}

.trendvica-latest-posts-list{
    gap:14px;
}
.trendvica-latest-post-item{
    display:grid !important;
    grid-template-columns:72px 1fr;
    align-items:center;
    gap:12px;
    margin-bottom:0;
}
.trendvica-latest-post-thumb{
    width:72px;
    height:72px;
    border-radius:12px;
    overflow:hidden;
    background:#eef2ff;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.trendvica-latest-post-thumb img{
    width:72px !important;
    height:72px !important;
    display:block;
    object-fit:cover;
    border-radius:12px;
}
.trendvica-latest-post-info h4{
    margin:0 0 6px;
    font-size:14px;
    line-height:1.4;
}
@media (max-width: 767px){
    .trendvica-article-meta.trendvica-author-meta-tight{
        gap:10px !important;
    }
    .trendvica-latest-post-item{
        grid-template-columns:64px 1fr;
        gap:10px;
    }
    .trendvica-latest-post-thumb,
    .trendvica-latest-post-thumb img{
        width:64px !important;
        height:64px !important;
    }
}


/* ===== Image display fixes ===== */

/* Home latest article cards */
.tce-blog-card .tce-thumb,
.tce-featured-post > a,
.tce-featured-post img {
    overflow: hidden;
}

.tce-blog-card .tce-thumb {
    display: block;
    height: 220px;
    background: #f1f5f9;
}

.tce-blog-card .tce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Featured article */
.tce-featured-post {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1fr;
    gap: 28px;
    align-items: center;
}

.tce-featured-post > a {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
}

.tce-featured-post > a img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
}

/* Blog latest cards: image + content */
.tce-blog-card {
    overflow: hidden;
}

.tce-blog-card .tce-card-body {
    padding: 22px;
}

.tce-blog-card .tce-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar latest posts thumbnails */
.trendvica-latest-post-thumb img {
    object-fit: contain !important;
    background: #f8fafc;
}

/* Prevent stretched images */
img {
    max-width: 100%;
}

@media(max-width:768px){
    .tce-featured-post {
        grid-template-columns: 1fr;
    }

    .tce-featured-post > a img {
        height: auto;
    }

    .tce-blog-card .tce-thumb {
        height: 200px;
    }
}


/* ===== FINAL FEATURED IMAGE FIT FIX ===== */

/* All article cards */
img {
    max-width: 100%;
}

/* Home latest articles cards */
.tce-blog-card,
.trendvica-blog-card {
    overflow: hidden;
}

.tce-blog-card .tce-thumb,
.trendvica-blog-card .trendvica-card-image,
.trendvica-blog-card .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fb;
}

.tce-blog-card .tce-thumb img,
.trendvica-blog-card img,
.trendvica-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Blog featured article */
.tce-featured-post,
.trendvica-featured-post {
    overflow: hidden;
}

.tce-featured-post img,
.trendvica-featured-post img {
    width: 100%;
    height: 320px;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f4f7fb;
}

/* Article sidebar latest posts */
.trendvica-latest-post-thumb,
.tce-latest-post-thumb {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fb;
}

.trendvica-latest-post-thumb img,
.tce-latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Remove accidental stretching */
.wp-post-image,
.post-thumbnail img {
    object-fit: contain !important;
}

/* Mobile */
@media(max-width:768px){
    .tce-blog-card .tce-thumb,
    .trendvica-blog-card .trendvica-card-image,
    .trendvica-blog-card .card-image {
        height: 200px;
    }

    .tce-featured-post img,
    .trendvica-featured-post img {
        height: auto;
    }
}


/* ===== COMPACT ARTICLE CARD HEIGHT FIX ===== */

/* Home + Blog article cards */
.tce-blog-card,
.trendvica-blog-card,
.tce-card,
.blog-card {
    height: auto !important;
    min-height: 0 !important;
    align-self: start;
    overflow: hidden;
}

/* image area */
.tce-blog-card .tce-thumb,
.trendvica-blog-card .trendvica-card-image,
.trendvica-blog-card .card-image,
.tce-card-image {
    height: 190px !important;
    min-height: 190px !important;
}

/* card body */
.tce-blog-card .tce-card-body,
.trendvica-blog-card .card-body,
.tce-card-body {
    padding: 18px !important;
}

/* remove excessive empty spaces */
.tce-blog-card p,
.trendvica-blog-card p {
    margin-bottom: 12px;
}

.tce-blog-card h2,
.tce-blog-card h3,
.trendvica-blog-card h2,
.trendvica-blog-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* grid align cards naturally */
.tce-blog-grid,
.trendvica-blog-grid,
.blog-grid {
    align-items: start !important;
}

/* mobile */
@media(max-width:768px){
    .tce-blog-card .tce-thumb,
    .trendvica-blog-card .trendvica-card-image,
    .trendvica-blog-card .card-image {
        height: 180px !important;
        min-height:180px !important;
    }
}


/* ===== Equal Height Blog Cards ===== */

.tce-blog-grid,
.trendvica-blog-grid,
.blog-posts-grid,
.latest-posts-grid {
    display: grid;
    align-items: stretch;
}

.tce-blog-card,
.trendvica-blog-card,
.blog-post-card,
.latest-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

/* Keep all images equal */
.tce-blog-card .tce-thumb,
.trendvica-blog-card .trendvica-card-image,
.blog-post-card .card-image {
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.tce-blog-card img,
.trendvica-blog-card img,
.blog-post-card img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

/* Content fills remaining card space */
.tce-blog-card .tce-card-body,
.trendvica-blog-card .card-body,
.blog-post-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tce-blog-card .read-more,
.trendvica-blog-card .read-more,
.blog-post-card .read-more {
    margin-top: auto;
}

/* Featured cards alignment */
.latest-posts-grid > *,
.tce-blog-grid > *,
.trendvica-blog-grid > * {
    height: 100%;
}

@media(max-width:768px){
    .tce-blog-card,
    .trendvica-blog-card,
    .blog-post-card,
    .latest-post-card {
        min-height: auto;
    }
}


/* ===== FINAL TRENDVICA CARD + IMAGE FIX ===== */

/* Equal card height without stretching */
.tce-blog-grid,
.tce-latest-grid,
.latest-posts-grid,
.trendvica-blog-grid {
    align-items: stretch !important;
}

.tce-blog-card,
.trendvica-blog-card,
.blog-post-card,
.latest-post-card {
    height: 430px !important;
    min-height: 430px !important;
    display:flex !important;
    flex-direction:column !important;
}

/* Fixed featured image area */
.tce-blog-card .tce-thumb,
.trendvica-blog-card .trendvica-card-image,
.blog-post-card .card-image,
.tce-card-image {
    height: 150px !important;
    min-height:150px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    background:#f8fafc !important;
}

.tce-blog-card .tce-thumb img,
.trendvica-blog-card img,
.blog-post-card img,
.tce-card-image img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
}

/* Card content area */
.tce-blog-card .tce-card-body,
.trendvica-blog-card .card-body,
.blog-post-card .card-body {
    flex:1 !important;
    overflow:hidden !important;
}

/* Sidebar latest posts */
.trendvica-latest-post-item,
.tce-latest-post {
    display:grid !important;
    grid-template-columns:70px 1fr !important;
    gap:14px !important;
    align-items:center !important;
}

.trendvica-latest-post-thumb,
.tce-latest-post-thumb {
    width:70px !important;
    height:70px !important;
    overflow:hidden !important;
    border-radius:12px !important;
}

.trendvica-latest-post-thumb img,
.tce-latest-post-thumb img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}

/* Featured article image */
.tce-featured-post img,
.trendvica-featured-post img {
    object-fit:contain !important;
    width:100% !important;
    height:300px !important;
}

/* Remove huge blank card issue */
.tce-blog-card p,
.trendvica-blog-card p {
    max-height:72px;
    overflow:hidden;
}

@media(max-width:768px){
 .tce-blog-card,
 .trendvica-blog-card,
 .blog-post-card,
 .latest-post-card {
    height:auto !important;
    min-height:0 !important;
 }
}

/* Clickable celebrity categories */
.tce-category-card{display:block;text-decoration:none;color:inherit;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease}.tce-category-card:hover{transform:translateY(-6px)}


/* Celebrity category archive pages */
.tce-category-hero {
  padding: 70px 0 45px;
  background:#f6f8fc;
}
.tce-category-hero h1 {
  color:#0f172a;
  font-size:52px;
  margin:0 0 15px;
  letter-spacing:-.04em;
}
.tce-category-hero p {
  color:#52607a;
  font-size:18px;
}
.tce-category-grid {
  grid-template-columns:repeat(4,1fr);
  align-items:stretch;
}
.tce-category-card {
  height:100%;
  overflow:hidden;
  background:#fff;
  border-radius:22px;
  box-shadow:0 12px 40px rgba(10,15,30,.12);
  display:flex;
  flex-direction:column;
}
.tce-category-image {
  height:220px;
  overflow:hidden;
  background:#eef2f8;
}
.tce-category-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.tce-image-placeholder {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#52607a;
  font-weight:700;
}
.tce-card-content {
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.tce-date {
  color:#64748b;
  font-size:14px;
  margin-bottom:14px;
}
.tce-card-content h3 {
  margin:0 0 12px;
  font-size:24px;
  line-height:1.2;
}
.tce-card-content p {
  color:#52607a;
  line-height:1.7;
}
.tce-read-more {
  margin-top:auto;
  color:#ff296d;
  font-weight:700;
}
@media(max-width:900px){
 .tce-category-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
 .tce-category-grid{grid-template-columns:1fr;}
 .tce-category-hero h1{font-size:38px;}
}
