/* Beauty By Lex Blog Styles */

/* Blog-specific heading styles */
.tr-h1-blog {
    text-align: center;
    text-transform: capitalize;
    color: var(--text-muted);
    z-index: 0;
    font-family: 'Kaushan Script', cursive;
    font-size: 5.0em;
    line-height: 55px;
    font-weight: 400;
    margin-bottom: 50px;
}

.tr-h2-blog {
    width: 60%;
    margin: -25px auto 0 auto;
    color: var(--text-primary);
    text-align: center;
    z-index: 1;
    font-size: 2.5em;
    line-height: 52px;
    margin-bottom: 3px;
}
.blog_para p{
    width: 80%;
    margin: 10px auto 10px auto;
}
/* Blog Cards Enhanced Styling */
.blog_img .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog_img .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog_img .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog_img .card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #2c3e50;
}

.card-body h3:hover {
    color: #d4a574;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-body a {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-body a:hover {
    color: #c19660;
    text-decoration: underline;
}

/* Post Meta Information */
.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* Category Color Classes */
.blog-site-teal {
    border-left: 4px solid #20b2aa;
}

.blog-site-blue {
    border-left: 4px solid #4a90e2;
}

.blog-site-rose {
    border-left: 4px solid #e91e63;
}

.blog-site-mauve {
    border-left: 4px solid #d4a574;
}

/* Pagination Styles */
.blog-pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    background: #fff;
    border: 2px solid #d4a574;
    color: #d4a574;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
}

.pagination-btn:hover {
    background: #d4a574;
    color: #fff;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #d4a574;
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Blog Error Styles */
.blog-error {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.blog-error h3 {
    color: #d4a574;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-error p {
    color: #666;
    font-size: 1rem;
}

/* Individual Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 2.5rem;
    color: #d4a574;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.blog-post-content h2 {
    color: #d4a574;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.blog-post-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* Callout Boxes */
.callout {
    border-left: 4px solid var(--bg-white);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--bg-white);
    border-radius: 0 8px 8px 0;
}

.callout h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.callout p {
    margin: 0;
    color: #555;
}

.callout-tip {
    border-left-color: var(--accent-light-rose);
    background: var(--secondary-muted-tan);
}

.callout-tip h4 {
    color: var(--text-primary);
}

.callout-warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.callout-warning h4 {
    color: #ffc107;
}

.callout-info {
    border-left-color: #17a2b8;
    background: #f0faff;
}

.callout-info h4 {
    color: #17a2b8;
}

/* Back to Blog Button */
.back-to-blog {
    position: relative;
    border: 1px solid var(--accent-rose) !important;
    color: #FFFFFF;
    background-color: var(--accent-rose) !important;
    z-index: 1;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.back-to-blog:hover {
    color: var(--text-white);
}

.back-to-blog::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    background-color: var(--primary-pink-bright);
    z-index: -1;
    bottom: 0;
    left: 0;
}

.back-to-blog:hover::before {
    height: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {  
    .tr-h2-blog {
        width: 70%;
    }
    
    .post-content-body h1 {
        font-size: 1.6rem;
    }
    
    .post-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
 
    .tr-h2-blog {
        width: 80%;
    }
    
    .post-content-body {
        width: 85%;
    }
    
    .post-content-body h1 {
        font-size: 1.5rem;
    }
    
    .post-content h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 800px) {
    .blog_decoration {
        display: none;
    }
    
    .post-content-body {
        width: 90%;
    }
    
    .post-content-body h1 {
        font-size: 1.4rem;
    }
    
    .post-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog_img {
        grid-template-columns: 1fr;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .tr-h1-blog {
        font-size: 4.1em;
        margin-bottom: 30px;
    } 
    .tr-h2-blog {
        width: 95%;
        font-size: 2.3em;
    }
    .blog_para p{
        width: 70%;
        margin: 5px auto 5px auto;
    }
    .post-content-body {
        width: 95%;
    }
    
    .post-content-body h1 {
        font-size: 1.3rem;
    }
    
    .post-content h1 {
        font-size: 1.4rem;
    }
    
    .pagination-wrapper {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    .tr-h1-blog {
        font-size: 3.75em;
    } 
   
    .tr-h2-blog {
        width: 98%;
    }
    
    .post-content-body {
        width: 98%;
    }
    
    .post-content-body h1 {
        font-size: 1.2rem;
    }
    
    .post-content h1 {
        font-size: 1.3rem;
    }
    
    .callout {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-hero-image {
    text-align: center;
    margin-bottom: 2rem;
}

.post-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.post-content-body {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.post-content p,
.post-content-body p {
    color: var(--text-primary);
    line-height: 1.3;
}

.post-content em,
.post-content-body em,
.post-content i,
.post-content-body i {
    line-height: 1.3;
}

.post-content-body h1 {
    color: var(--text-secondary);
    font-size: 2.25rem;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.post-content h1 {
    color: var(--text-secondary);
    font-size: 2.25rem;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.post-content br,
.post-content-body br {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

.post-content a,
.post-content-body a {
    color: var(--accent-pink);
    text-decoration: underline;
}

.post-content a:hover,
.post-content-body a:hover {
    color: var(--accent-rose);
    text-decoration: underline;
}

.post-content h2,
.post-content-body h2 {
    color: var(--text-dark-alt);
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pink-subtle);
}

.post-content h3,
.post-content-body h3 {
    color: var(--text-dark-alt);
    font-size: 1.4rem;
    margin: 5px 0 2px 0;
    padding: 3px 0 !important;
}

.post-content h4 {
    color: var(--text-dark-alt);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol,
.post-content-body ul, .post-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content ol,
.post-content-body ol {
    list-style: decimal;
}

.post-content ul,
.post-content-body ul {
    list-style: disc;
}

.post-content li,
.post-content-body li {
    margin: 2px 0;
    padding: 2px 0;
    color: var(--text-primary);
}

.post-content strong,
.post-content-body strong,
.post-content b,
.post-content-body b {
    color: var(--text-secondary);
}

.post-content blockquote {
    border-left: 4px solid #d4a574;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.post-content hr,
.post-content-body hr {
    border: none;
    border-top: 1px solid var(--secondary-light-brown);
    margin: 2rem 0;
}

.post-content table,
.post-content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.post-content th,
.post-content td,
.post-content-body th,
.post-content-body td {
    padding: 8px 12px;
    text-align: left;
}

.post-content th,
.post-content-body th {
    background: var(--accent-light-rose);
    color: var(--text-secondary);
    font-weight: 600;
}

.post-content td,
.post-content-body td {
    background: var(--bg-light-gray-subtle);
    color: var(--text-secondary);
}

.post-content tr:hover td {
    background: #f9f9f9;
}

.post-footer {
    border-top: 1px solid var(--secondary-light-brown);
    padding-top: 2rem;
    margin-top: 3rem;
}

.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags strong {
    font-weight: 600;
    color: #666;
}

.post-tags .tag {
    display: inline-block;
    background: var(--bg-light-gray-subtle);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 20px;
}

.post-share span {
    font-weight: 600;
    color: #666;
}

.share-btn {
    background: transparent;
    color: var(--accent-rose);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.share-btn:hover {
    color: var(--primary-pink-bright);
    text-decoration: none;
}

/* Back to All Posts button styling */
.btn-secondary {
    background-color: var(--btn-secondary-bg) !important;
    color: var(--btn-secondary-text) !important;
    border: none !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover) !important;
    color: var(--btn-secondary-text) !important;
}

.post-not-found {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-not-found h2 {
    color: #d4a574;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.post-not-found p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    #blog-post {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .single-post {
        padding: 1rem 0.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h1 {
        font-size: 1.8rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .post-share {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 1rem 0.5rem;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .post-content h1 {
        font-size: 1.6rem;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
}