/* ==========================================================
   Blog — archive cards + single post
   Loaded on: is_home(), is_singular('post'), is_category(),
              is_tag(), is_author(), is_search()
   ========================================================== */

/* ---- Archive page heading ---- */
.blog .page-title,
.archive .page-title,
.search .page-title {
    font-size: 2rem;
    color: var(--isb2b-dark, #333);
    margin-bottom: 0.25em;
}

/* ---- Cards grid ---- */
.entries[data-cards="boxed"] article.entry-card {
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entries[data-cards="boxed"] article.entry-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ---- Featured image ---- */
.entry-card .ct-media-container img {
    transition: transform 0.3s ease;
}

.entry-card:hover .ct-media-container img {
    transform: scale(1.03);
}

/* ---- Category label (above title) ---- */
.entry-card .entry-meta .meta-categories a,
.entry-meta .meta-categories a {
    color: var(--isb2b-primary, #00aeef);
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.entry-card .entry-meta .meta-categories a:hover {
    text-decoration: underline;
}

/* ---- Post title ---- */
.entry-card .entry-title a {
    color: var(--isb2b-dark, #333);
    text-decoration: none;
    transition: color 0.15s ease;
}

.entry-card .entry-title a:hover {
    color: var(--isb2b-primary, #00aeef);
}

/* ---- Excerpt ---- */
.entry-card .entry-excerpt p {
    color: var(--isb2b-body, #4b4b4b);
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

/* ---- Bottom meta (date, read time) ---- */
.entry-card ul.entry-meta:last-child {
    font-size: 0.78em;
    color: var(--text-gray, #666);
}

.entry-card ul.entry-meta:last-child li::before {
    color: var(--text-gray, #666);
}

/* ==========================================================
   Single post
   ========================================================== */

/* Hero header area */
.single-post .hero-section[data-type="type-1"] {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

/* Post title */
.single-post .entry-header .page-title {
    color: var(--isb2b-dark, #333);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

/* Single post meta row */
.single-post .entry-header .entry-meta {
    font-size: 0.82em;
    color: var(--text-gray, #666);
    gap: 0.5rem;
}

.single-post .entry-header .entry-meta a {
    color: var(--text-gray, #666);
    text-decoration: none;
}

.single-post .entry-header .entry-meta a:hover {
    color: var(--isb2b-primary, #00aeef);
}

.single-post .entry-header .meta-categories a {
    color: var(--isb2b-primary, #00aeef);
    font-weight: 600;
}

/* Post body content */
.single-post .entry-content {
    color: var(--isb2b-body, #4b4b4b);
    line-height: 1.75;
    font-size: 1rem;
}

.single-post .entry-content a {
    color: var(--isb2b-primary, #00aeef);
    text-decoration: underline;
}

.single-post .entry-content a:hover {
    text-decoration: none;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: var(--isb2b-dark, #333);
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.single-post .entry-content p {
    margin-bottom: 1.25em;
}

.single-post .entry-content img {
    border-radius: 4px;
    height: auto;
}

/* Post navigation (prev/next) */
.post-navigation {
    border-top: 1px solid #e8e8e8;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.post-navigation .nav-link {
    color: var(--isb2b-primary, #00aeef);
    text-decoration: none;
    font-weight: 600;
}

.post-navigation .nav-link:hover {
    text-decoration: underline;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 600px) {
    .entries[data-cards="boxed"] article.entry-card:hover {
        transform: none;
    }
}
