/* Puffer Blog Public Styles */

.puffer-blog-container {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

.puffer-blog-container *,
.puffer-blog-container *::before,
.puffer-blog-container *::after {
    box-sizing: border-box;
}

/* --- Google Site Kit / AdSense Auto-Ads Layout Protections --- */
.puffer-blog-hero > .google-auto-placed, 
.puffer-blog-hero > ins.adsbygoogle {
    display: none !important; /* Prevents auto-ads from randomly destroying the hero background image flex alignment */
}

.puffer-blog-grid-wrapper > .google-auto-placed, 
.puffer-blog-grid-wrapper > ins.adsbygoogle,
.puffer-blog-grid-wrapper > div[id^="google_ads"] {
    grid-column: 1 / -1 !important; /* Forces injected ads to span cleanly across the whole grid avoiding pushing the Left/Right columns into new rows */
    width: 100% !important;
    margin-bottom: 30px !important;
    text-align: center;
}

.puffer-blog-col-left > .google-auto-placed,
.puffer-blog-col-right > .google-auto-placed,
.puffer-blog-col-left > ins.adsbygoogle,
.puffer-blog-col-right > ins.adsbygoogle {
    width: 100% !important;
    margin: 20px 0 !important;
    text-align: center;
}

/* HERO */
.puffer-blog-hero {
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
    margin-bottom: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.puffer-blog-hero-inner {
    max-width: 600px;
    z-index: 2;
}

.puffer-blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #fff;
}

.puffer-blog-hero-excerpt p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.puffer-blog-hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.puffer-blog-hero-btn-alt {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.puffer-blog-hero-btn-alt:hover {
    background-color: #eeeeee;
}

.puffer-blog-hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2A6BFC;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.puffer-blog-hero-btn:hover {
    background-color: #1a5ac9;
    color: #fff;
}

/* GRID WRAPPER */
.puffer-blog-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* LARGE ITEMS (LEFT) */
.puffer-blog-col-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.puffer-blog-large-item {
    display: flex;
    flex-direction: column;
}

.puffer-blog-large-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.puff-no-img {
    background:#eee;
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 8px;
    margin-bottom:20px;
}

.puffer-blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.puffer-blog-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.puffer-blog-title a:hover {
    color: #2A6BFC;
}

.puffer-blog-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.puffer-blog-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.puffer-blog-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2A6BFC;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s;
    text-align: center;
}

.puffer-blog-btn:hover {
    background-color: #1a5ac9;
    color: #fff;
}

/* SMALL ITEMS (RIGHT) */
.puffer-blog-col-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.puffer-blog-small-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.puffer-blog-small-thumb {
    flex-shrink: 0;
    width: 120px;
}

.puffer-blog-small-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.puffer-blog-small-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.puffer-blog-small-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.puffer-blog-small-title a:hover {
    color: #2A6BFC;
}

/* SOCIAL SHARE BUTTONS */
.puffer-social-share-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.puffer-share-title {
    font-weight: 600;
    color: #333;
}

.puffer-social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.puffer-share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s, transform 0.2s;
}

.puffer-share-btn svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

.puffer-share-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
}

.puffer-share-btn.twitter { background-color: #1DA1F2; }
.puffer-share-btn.facebook { background-color: #1877F2; }
.puffer-share-btn.whatsapp { background-color: #25D366; }
.puffer-share-btn.email { background-color: #666; }
.puffer-share-btn.copy-url { background-color: #333; }

.puffer-copy-tooltip {
    position: absolute;
    bottom: -30px;
    right: 0;
    background: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.puffer-copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
    .puffer-blog-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .puffer-blog-hero {
        padding: 40px 20px;
        min-height: 400px;
        align-items: center;
        text-align: center;
    }
    
    .puffer-blog-hero-inner {
        text-align: center;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .puffer-blog-hero-title {
        font-size: 1.8rem;
    }
    
    .puffer-blog-hero-t1,
    .puffer-blog-hero-t2 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .puffer-blog-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .puffer-blog-hero-btn,
    .puffer-blog-hero-btn-alt {
        width: 100%;
    }

    .puffer-social-share-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* PAGINATION */
.puffer-blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.puffer-blog-pagination a.page-numbers,
.puffer-blog-pagination span.page-numbers {
    display: inline-flex;
    padding: 10px 16px;
    background-color: transparent;
    color: #999;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

.puffer-blog-pagination a.page-numbers:hover {
    color: var(--puffer-theme-color, #38b056);
}

.puffer-blog-pagination span.current {
    background-color: var(--puffer-theme-color, #38b056);
    color: #fff;
}

.puffer-blog-pagination .next.page-numbers,
.puffer-blog-pagination .prev.page-numbers {
    background-color: transparent;
    font-size: 1.05rem;
    padding: 10px 14px;
}
