/* ═══ SINGLE POST STYLES (Luxury Tech Edition) ═══ */

body.single-post, body.single {
    background-color: #0b1224 !important;
    color: #cbd5e1;
}

body.single-post #wrapper,
body.single-post #main {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.single-post-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    transform: none;
}

/* ── Post Hero Header (Full Width Banner like Homepage) ── */
.post-hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;

    background: #0b1534;
    color: #f8faff;
    padding: clamp(120px, 12vw, 170px) 20px 70px;
    padding-top: calc(clamp(120px, 12vw, 170px) + 56px);
    margin-top: -100px;
    margin-bottom: 70px;
    min-height: 92vh;
    font-family: "Be Vietnam Pro", sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.post-hero-banner::before {
    display: none;
}

.post-hero-banner::after {
    display: none;
}

.post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.post-hero-content {
    max-width: 980px;
    text-align: center;
    background: rgba(11, 18, 36, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.post-hero-cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    margin-bottom: 18px;
    color: #f8faff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.post-hero-cat:hover {
    background: #ffb703;
    color: #171f2f;
    border-color: #ffb703;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.post-hero-content h1 {
    font-family: "Be Vietnam Pro", sans-serif !important;
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.35;
    margin: 0 0 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: normal;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.post-hero-subtitle {
    font-size: clamp(16px, 2vw, 22px) !important;
    line-height: 1.5 !important;
    color: #e2e8f0 !important;
    margin: 0 auto 24px auto !important;
    font-weight: 400 !important;
    font-family: "Be Vietnam Pro", sans-serif !important;
    max-width: 860px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.post-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    flex-wrap: wrap;
}

.post-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-hero-meta svg {
    color: #38bdf8;
}

.post-hero-image {
    display: none;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Post Content Wrapper ── */
.post-content-wrap {
    max-width: 100%;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-sidebar {
    position: sticky;
    top: 118px;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.sidebar-box-spacer {
    margin-top: 14px;
}

.sidebar-box h3 {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 1.06rem;
    font-weight: 800;
}

.sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.sidebar-post-link {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.sidebar-post-thumb {
    width: 86px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 86px;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-post-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sidebar-cat-list li a:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

.cat-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
}

.cat-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7dd3fc;
    min-width: 24px;
    text-align: right;
}

.sidebar-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Headings inside content */
.post-content-wrap h1,
.post-content-wrap h2 {
    color: #f8fafc;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    border-left: 4px solid #38bdf8;
    padding-left: 15px;
    line-height: 1.4;
}

.post-content-wrap h3 {
    color: #f8fafc;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    line-height: 1.4;
}

.post-content-wrap h4 {
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

/* Paragraphs & Text */
.post-content-wrap p {
    margin-bottom: 1.8rem;
}

/* Lists */
.post-content-wrap ul, 
.post-content-wrap ol {
    margin-bottom: 1.8rem;
    padding-left: 24px;
}

.post-content-wrap li {
    margin-bottom: 0.6rem;
}

.post-content-wrap ul li {
    list-style-type: square;
}

/* Highlight bullets with neon blue */
.post-content-wrap ul {
    list-style: none;
}
.post-content-wrap ul li {
    position: relative;
    padding-left: 20px;
}
.post-content-wrap ul li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-size: 10px;
    top: 2px;
}

/* Links */
.post-content-wrap a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.post-content-wrap a:hover {
    color: #58c9fa;
    border-bottom-color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Blockquotes */
.post-content-wrap blockquote {
    background: rgba(30, 41, 59, 0.3);
    border-left: 4px solid #38bdf8;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #f1f5f9;
    margin: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.post-content-wrap blockquote p {
    margin-bottom: 0;
}

/* Images & Captions */
.post-content-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    margin: 2.5rem auto;
    display: block;
}

.wp-caption {
    max-width: 100% !important;
    text-align: center;
    margin: 2rem auto;
}

.wp-caption-text {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

/* Table styles (if any) */
.post-content-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.post-content-wrap th,
.post-content-wrap td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-content-wrap th {
    background: rgba(56, 189, 248, 0.06);
    color: #f8fafc;
    font-weight: 700;
}

.post-content-wrap tr:last-child td {
    border-bottom: none;
}

/* Author Box / Signature */
.post-signature {
    margin-top: 60px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-signature img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    margin: 0;
}

.post-signature-info h5 {
    color: #f8fafc;
    font-weight: 700;
    margin: 0 0 5px 0;
    font-size: 1.05rem;
}

.post-signature-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .post-hero-banner {
        margin-top: -84px;
        padding-top: calc(clamp(120px, 12vw, 170px) + 56px - 16px);
    }
}

@media (max-width: 768px) {
    .post-hero-banner {
        min-height: 72vh;
        padding-top: calc(95px + 54px);
        padding-bottom: 40px;
    }
    .post-hero-content {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    .post-hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }
    .post-hero-subtitle {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }
    .post-content-wrap {
        font-size: 1rem;
    }

    .single-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        transform: none;
    }

    .single-sidebar {
        position: static;
        top: auto;
        margin-left: 0;
    }

    .post-signature {
        flex-direction: column;
        text-align: center;
    }
}


