/* =============================================================
   Techiefied Latest Posts – techiefied-latest-posts.css
   Dark editorial theme matching the Techiefied design system
   ============================================================= */

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
    --tlp-bg:            #0d0d0d;
    --tlp-surface:       #111111;
    --tlp-border:        #1e1e1e;

    --tlp-text-primary:  #ffffff;
    --tlp-text-secondary:#9a9a9a;
    --tlp-text-muted:    #5a5a5a;

    --tlp-accent:        #e8192c;   /* Techiefied red */
    --tlp-accent-hover:  #ff2d42;

    --tlp-badge-bg:      #e8192c;
    --tlp-badge-text:    #ffffff;

    --tlp-font-display:  'Georgia', 'Times New Roman', serif;
    --tlp-font-body:     'Helvetica Neue', Helvetica, Arial, sans-serif;

    --tlp-radius-sm:     4px;
    --tlp-radius-md:     6px;

    --tlp-gap:           24px;
    --tlp-transition:    0.22s ease;
}
/* ── Wrapper ──────────────────────────────────────────────────── */
.tlp-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 48px;
    box-sizing: border-box;
    font-family: var(--tlp-font-body);
    color: var(--tlp-text-primary);
}

/* ── No-posts message ─────────────────────────────────────────── */
.tlp-no-posts {
    color: var(--tlp-text-secondary);
    text-align: center;
    padding: 40px 0;
    font-family: var(--tlp-font-body);
}


/* =============================================================
   ROW 1 – Featured Post  (image left | text right)
   ============================================================= */
.tlp-row-featured {
    border-bottom: 1px solid var(--tlp-border);
    margin-bottom: var(--tlp-gap);
}

.tlp-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 360px;
}

/* ── Featured image wrap ──────────────────────────────────────── */
.tlp-featured-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.tlp-featured-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tlp-featured-img-wrap:hover .tlp-featured-img {
    transform: scale(1.04);
}

/* ── Featured content ─────────────────────────────────────────── */
.tlp-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
}

/* ── Featured title ───────────────────────────────────────────── */
.tlp-featured-title {
    font-family: var(--tlp-font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tlp-text-primary);
    margin: 12px 0 14px;
    letter-spacing: -0.02em;
}

.tlp-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tlp-transition);
	text-decoration:none !important;
	font-family: "Merriweather", Sans-serif;
}

.tlp-featured-title a:hover {
    color: var(--tlp-accent);
}

/* ── Featured excerpt ─────────────────────────────────────────── */
.tlp-featured-excerpt {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--tlp-text-secondary);
    margin: 0 0 24px;
}

/* ── Read More link ───────────────────────────────────────────── */
.tlp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tlp-accent);
    text-decoration: none;
    transition: color var(--tlp-transition), gap var(--tlp-transition);
    margin-top: auto;
}

.tlp-read-more:hover {
    color: var(--tlp-accent-hover);
    gap: 8px;
}


/* =============================================================
   ROW 2 – Grid Posts  (3 columns)
   ============================================================= */
.tlp-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tlp-gap);
}
.tlp-grid-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    transition: box-shadow var(--tlp-transition);
	border: 1px solid #1A191E;
}
/* ── Grid image wrap ──────────────────────────────────────────── */
.tlp-grid-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}
.tlp-grid-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.tlp-grid-img-wrap:hover .tlp-grid-img {
    transform: scale(1.05);
}
/* ── Grid content ─────────────────────────────────────────────── */
.tlp-grid-content {
    padding: 18px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* ── Grid title ───────────────────────────────────────────────── */
.tlp-grid-title {
    font-family: var(--tlp-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tlp-text-primary);
    margin: 8px 0 0;
    letter-spacing: -0.01em;
}

.tlp-grid-title a {
    color: inherit;
    text-decoration: none !important;
    transition: color var(--tlp-transition);
	font-family: "Merriweather", Sans-serif;
}

.tlp-grid-title a:hover {
    color: var(--tlp-accent);
}


/* =============================================================
   Shared: Category Badge
   ============================================================= */
.tlp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    background-color: var(--tlp-badge-bg);
    color: var(--tlp-badge-text);
    font-family: var(--tlp-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--tlp-radius-sm);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.tlp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--tlp-text-secondary);
    line-height: 1;
	    justify-content: space-between;
}
.tlp-author {
    color: #929292;
    font-size: 12px;
    text-transform: capitalize;
}
.tlp-dot {
    color: var(--tlp-text-muted);
    font-size: 0.6rem;
	display:none;
}
.tlp-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tlp-clock-icon {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    flex-shrink: 0;
}
.tlp-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #242424 50%,
        #1a1a1a 100%
    );
}


/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */

/* ── Tablet: 768px – 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
    .tlp-featured-content {
        padding: 28px 32px;
    }

    .tlp-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tablet portrait: 640px – 768px ──────────────────────────── */
@media (max-width: 768px) {
    .tlp-featured-post {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
    }

    .tlp-featured-img-wrap {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .tlp-featured-content {
        padding: 24px 20px;
    }

    .tlp-row-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Mobile: ≤ 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .tlp-wrapper {
        padding: 0 12px 32px;
    }

    .tlp-featured-title {
        font-size: 1.4rem;
    }

    .tlp-meta {
        font-size: 0.75rem;
    }
}


/* =============================================================
   Enqueue helper (add to functions.php, not this CSS file)
   ─────────────────────────────────────────────────────────────
   add_action( 'wp_enqueue_scripts', function () {
       wp_enqueue_style(
           'techiefied-latest-posts',
           get_template_directory_uri() . '/css/techiefied-latest-posts.css',
           [],
           '1.0.0'
       );
   });
   ============================================================= */
