/* TBE AI News Autoblogger - Post Styling */

/* Post title size - 22px */
.single-post h1.entry-title,
.single-post .post-title h1,
.single h1.post-title,
.single-post .the-content h1,
.single h1,
.post h1.entry-title,
.page h1.entry-title {
    font-size: 22px !important;
    margin-bottom: 0.5em !important;
    line-height: 1.3 !important;
}

/* Reduce heading sizes in post content */
.post-content h1,
.entry-content h1,
.the-content h1 {
    font-size: 1.5em !important;
    margin-top: 0.8em !important;
    margin-bottom: 0.4em !important;
}

.post-content h2,
.entry-content h2,
.the-content h2 {
    font-size: 1.3em !important;
    margin-top: 0.8em !important;
    margin-bottom: 0.4em !important;
}

.post-content h3,
.entry-content h3,
.the-content h3 {
    font-size: 1.1em !important;
    margin-top: 0.8em !important;
    margin-bottom: 0.4em !important;
}

.post-content h4,
.entry-content h4,
.the-content h4 {
    font-size: 24px !important;
    margin-top: 0.6em !important;
    margin-bottom: 0.3em !important;
    font-weight: 600;
}

.post-content h5,
.entry-content h5,
.the-content h5 {
    font-size: 0.95em !important;
    margin-top: 0.6em !important;
    margin-bottom: 0.3em !important;
    font-weight: 600;
}

.post-content h6,
.entry-content h6,
.the-content h6 {
    font-size: 0.9em !important;
    margin-top: 0.6em !important;
    margin-bottom: 0.3em !important;
    font-weight: 600;
}

/* Writer profile styling */
.tbe-writer-profile {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.tbe-writer-profile img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
}

.tbe-writer-profile strong {
    font-weight: 600;
}

/* Affiliate section styling */
.tbe-affiliate-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.tbe-affiliate-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tbe-product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fafafa;
    transition: box-shadow 0.3s ease;
}

.tbe-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tbe-product-card h4 {
    font-size: 0.95em !important;
    margin: 10px 0 !important;
}

.tbe-product-card p {
    font-size: 0.9em;
    color: #666;
    margin: 8px 0;
}

.tbe-product-card .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f;
    margin: 10px 0;
}

.tbe-product-card a {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.tbe-product-card a:hover {
    background-color: #4cae4c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-content h1,
    .entry-content h1,
    .the-content h1 {
        font-size: 1.3em !important;
    }

    .post-content h2,
    .entry-content h2,
    .the-content h2 {
        font-size: 1.15em !important;
    }

    .post-content h3,
    .entry-content h3,
    .the-content h3 {
        font-size: 1em !important;
    }

    .tbe-affiliate-products {
        grid-template-columns: 1fr;
    }
}

/* Ensure proper spacing */
.post-content p,
.entry-content p,
.the-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* List styling */
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol,
.the-content ul,
.the-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.post-content li,
.entry-content li,
.the-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
