@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   SCOPE & RESET
   ======================================== */
.ppb-scope {
    --ppb-font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ppb-max-width:    1023px;
    max-width: 1023px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ppb-scope * {
    box-sizing: border-box;
    font-family: var(--ppb-font) !important;
}

/* ========================================
   1. TWO-COLUMN HEADER GRID
   ======================================== */
.ppb-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 28px auto !important;
    padding-right: 0 !important;
}

.ppb-header-left {
    flex: 1;
    min-width: 0;
}

.ppb-header-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-top: 2px;
}

/* Metadata formatting to match Nov 19, 2025 • AV Maintenance • Presentation People exactly */
.ppb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8a8f9c !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    margin-bottom: 8px !important;
    line-height: 1.2;
}

.ppb-sep {
    margin: 0 6px;
    color: #d1d5db;
}

.ppb-share-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #9ca3af !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    line-height: 1.2;
    margin: 0 !important;
}

.ppb-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.ppb-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 140ms ease-out, transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
    cursor: pointer;
}

.ppb-icon-btn svg {
    transition: fill 140ms ease-out, stroke 140ms ease-out;
}

.ppb-icon-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* ========================================
   2. POST TITLE
   ======================================== */
.ppb-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .ppb-title { font-size: 24px !important; }
}

/* ========================================
   3. HERO IMAGE
   ======================================== */
.ppb-hero-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin: 12px auto 36px auto !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12) !important;
}

/* ========================================
   4. CONTENT TYPOGRAPHY
   ======================================== */
.ppb-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 48px auto !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #1f2937 !important;
}

.ppb-content p {
    margin-bottom: 24px !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #1f2937 !important;
}

.ppb-content h1,
.ppb-content h2,
.ppb-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 36px 0 16px 0 !important;
    line-height: 1.3 !important;
}

.ppb-content h4,
.ppb-content h5 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 28px 0 12px 0 !important;
}

.ppb-content ul,
.ppb-content ol {
    margin: 0 0 24px 20px !important;
    padding: 0 !important;
}

.ppb-content ul li,
.ppb-content ol li {
    margin-bottom: 10px !important;
    line-height: 1.65 !important;
    color: #1f2937 !important;
    font-size: 15px !important;
}

.ppb-content strong,
.ppb-content b {
    font-weight: 700 !important;
    color: #111827 !important;
}

.ppb-content a {
    color: #2563eb !important;
    text-decoration: underline !important;
    transition: color 0.15s ease;
}

.ppb-content a:hover {
    color: #1d4ed8 !important;
}

.ppb-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 24px 0 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.ppb-content blockquote {
    border-left: 4px solid #000000 !important;
    padding: 16px 24px !important;
    margin: 28px 0 !important;
    background: #f9fafb !important;
    border-radius: 0 12px 12px 0 !important;
    font-style: italic !important;
    color: #4b5563 !important;
}

/* ========================================
   5. NAVIGATION ACTIONS (Back / Next)
   ======================================== */
.ppb-actions {
    max-width: 100% !important;
    width: 100% !important;
    margin: 40px auto 48px auto !important;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px;
    flex-wrap: nowrap !important;
}

.ppb-back-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, text-decoration 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.ppb-back-link:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

.ppb-next-btn {
    padding: 10px 24px !important;
    border-radius: 999px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
}

.ppb-next-btn:hover {
    background: transparent !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* ========================================
   6. SUGGESTED POSTS "You may also like"
   ======================================== */
.ppb-suggested {
    max-width: 100% !important;
    width: 100% !important;
    margin: 60px auto 0 auto !important;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.ppb-suggested-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #000000 !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: normal !important;
}

.ppb-suggested-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.ppb-suggested-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: inherit !important;
}

.ppb-suggested-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

.ppb-suggested-card-img {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

.ppb-img-placeholder {
    background: #f3f4f6 !important;
}

.ppb-suggested-meta {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    margin-bottom: 4px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ppb-suggested-title-sm {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #000000 !important;
    margin: 0 0 6px 0 !important;
    min-height: unset !important;
    text-transform: none !important;
}

.ppb-suggested-excerpt {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #4b5563 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ppb-card-btn {
    margin-top: auto !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    width: fit-content !important;
}

.ppb-card-btn::after {
    content: "" !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    height: 2px !important;
    width: 56px !important;
    background: linear-gradient(90deg, #cf321d, rgba(207, 50, 29, 0)) !important;
    transform-origin: left !important;
    transform: scaleX(0.8) !important;
    transition: transform 0.3s ease !important;
}

.ppb-card-btn span {
    display: inline-block !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

/* Card Hover States */
.ppb-suggested-card:hover .ppb-card-btn {
    color: #cf321d !important;
}

.ppb-suggested-card:hover .ppb-card-btn::after {
    transform: scaleX(1.4) !important;
}

.ppb-suggested-card:hover .ppb-card-btn span {
    transform: translateX(6px) !important;
    color: #cf321d !important;
}

/* ========================================
   7. RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .ppb-suggested-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ppb-header-grid {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .ppb-header-right {
        align-items: flex-start !important;
        width: 100% !important;
        border-top: 1px solid #f3f4f6 !important;
        padding-top: 16px !important;
    }
    .ppb-social-links {
        justify-content: flex-start !important;
    }
}

@media (max-width: 640px) {
    .ppb-suggested-grid {
        grid-template-columns: 1fr !important;
    }
}
