
.hp-blog {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    width: 100%;
    margin: 0 auto;
    padding: 0px 0px 80px;
}
.hp-blog * {
    box-sizing: border-box;
}

/* Header Section */
.hp-blog-header {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 60px 20px;
    border-radius: 0;
    margin-bottom: 60px;
    box-sizing: border-box;
}
.hp-blog-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.hp-blog-header p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Post Grid */
.hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.hp-blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}

/* Card Media block (YouTube / Play container) */
.hp-blog-media {
    background: #000000;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}
.hp-blog-media:hover {
    background: #111111;
}
.hp-blog-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hp-blog-media:hover .hp-blog-play-btn {
    transform: scale(1.1);
    background: #ffffff;
}
.hp-blog-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px; /* visually center the triangle */
}

/* Card Text Block */
.hp-blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.hp-blog-cat {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.hp-blog-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.4;
}
.hp-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hp-blog-title a:hover {
    color: #c9a961;
}
.hp-blog-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 24px;
    flex-grow: 1;
}

/* Card Footer (Author info) */
.hp-blog-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}
.hp-blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.hp-blog-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hp-blog-author-name {
    font-weight: 700;
    color: #334155;
}
.hp-blog-meta-dot {
    color: #cbd5e1;
}

/* Pagination Section */
.hp-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.hp-blog-pagination a,
.hp-blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #ffffff;
}
.hp-blog-pagination span.current {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.hp-blog-pagination a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.hp-blog-pagination svg {
    width: 16px;
    height: 16px;
}

/* Lightbox Modal */
.hp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hp-lightbox.active {
    display: flex;
}
.hp-lightbox-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.hp-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.hp-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .hp-blog-grid {
        grid-template-columns: 1fr;
    }
    .hp-blog-header h1 {
        font-size: 32px;
    }
}
