.container-blog figure {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.container-blog img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.logo-poster-public {
    height: 100px;
    margin-bottom: 1rem;
}


.text-public {
    text-align: center;
    font-size: 20pt;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--primary, #2563eb);
    box-shadow: 0 0 15px var(--primary-glow, #3b82f6);
    border-color: var(--primary, #2563eb);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
}

/* --- Light Mode Overrides --- */
body.light-mode {
    --bg-deep: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --text-white: #0f172a;
    /* Slate 900 */
    --text-dim: #475569;
    /* Slate 600 */
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bg-deep);
    color: var(--text-white);
}

body.light-mode .inner-page-header.style-dark {
    background: radial-gradient(circle at 50% -20%, #eff6ff 0%, #f8fafc 70%);
    /* Blue 50 -> Slate 50 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .heading-wrapper h1 {
    color: #0f172a;
}

body.light-mode .theme-toggle-btn {
    background: white;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
}

body.light-mode .article-block {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .entry-title a {
    color: #0f172a !important;
    text-shadow: none;
}

body.light-mode .pagination {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .page-item .page-link {
    color: var(--text-dim);
}

body.light-mode .page-item.active .page-link {
    color: white;
}

body.light-mode .search-box input.form-control {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .search-box input.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Detail specific light mode text fixes */
body.light-mode .text-public {
    color: var(--text-dim);
}

body.light-mode .post-meta.container-blog {
    color: #334155;
    /* Slate 700 */
}