/* blog.css */

/**
 * Blog CSS - Rave Essentials
 *
 * Table of Contents:
 * 1. Variables
 * 2. General Layout
 * 3. Blog Navigation
 * 4. Blog Categories
 * 5. Post Cards
 * 6. Post Detail Page
 * 7. Responsive Adjustments
 */

/* 1. Variables */
:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-purple: #9900ff;
    --dark-bg: rgba(20, 0, 40, 0.7);
    --darker-bg: rgba(20, 0, 30, 0.6);
    --light-border: rgba(255, 0, 255, 0.3);
}

/* 2. General Layout */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.blog-container {
    padding-top: 80px;
    padding-bottom: 3rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.blog-title {
    font-size: 3rem;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-pink);
    animation: neon-glow 1.5s ease-in-out infinite alternate;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.blog-description {
    color: #fff;
    font-size: 1.3rem;
    max-width: 100%;
    margin: 0 auto 3rem;
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 15px var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

@keyframes neon-glow {
    from {
        text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-pink);
    }
    to {
        text-shadow: 0 0 15px var(--neon-pink), 0 0 25px var(--neon-cyan), 0 0 35px var(--neon-pink);
    }
}

/* 3. Blog Navigation */
.blog-navigation {
    background-color: var(--dark-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--light-border);
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-navigation a {
    color: var(--neon-pink);
    text-decoration: none;
    margin: 0 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
}

.blog-navigation a:hover,
.blog-navigation a:focus,
.blog-navigation a.active {
    color: var(--neon-cyan);
    background-color: rgba(0, 0, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    outline: none;
}

/* 4. Blog Categories */
.blog-categories {
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.blog-categories .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.blog-categories .col-auto {
    padding: 0 5px;
    margin-bottom: 10px;
}

.btn-category {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid var(--light-border);
    margin: 0 0.3rem 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
}

.btn-category:hover,
.btn-category:focus,
.btn-category.active {
    background-color: rgba(255, 0, 255, 0.3);
    color: #fff;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    outline: none;
}

/* 5. Post Cards */
.post-card,
.featured-post-card {
    background: var(--darker-bg);
    border: 1px solid var(--light-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.post-card:hover,
.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: rgba(255, 0, 255, 0.7);
}

.post-thumbnail {
    height: 200px;
    object-fit: cover;
    max-width: 100%;
    width: 100%;
}

.featured-post-card .featured-image {
    height: 350px;
    object-fit: cover;
    max-width: 100%;
    width: 100%;
}

.card-body {
    padding: 1.25rem;
    flex: 1 1 auto;
    width: 100%;
    text-align: left;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    text-align: left;
}

.card-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-title a:hover,
.card-title a:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    outline: none;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    font-family: 'Arial', sans-serif;
}

.badge-category {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.badge-tag {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(0, 255, 255, 0.5);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-family: 'Arial', sans-serif;
    vertical-align: middle;
}

.badge-tag:hover,
.badge-tag:focus {
    background-color: rgba(0, 255, 255, 0.3);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    outline: none;
}

.post-tags .tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.separator,
.breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.7);
    opacity: 1;
    font-weight: bold;
}

.post-date, .post-author {
    display: inline-block;
    font-family: 'Arial', sans-serif;
}

.card-text {
    color: rgba(255, 255, 0562, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-family: 'Arial', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.card-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    padding: 1rem;
    text-align: left;
}

.read-more {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.read-more:hover,
.read-more:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    outline: none;
}

/* Blog grid */
.blog-grid {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.blog-grid .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
}

.featured-post {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

/* 6. Post Detail Page */
.post-detail-container {
    padding-top: 80px;
    padding-bottom: 3rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.post-header {
    text-align: center;
    padding: 2.5rem 0.5rem;
    margin-bottom: 2rem;
    background: var(--darker-bg);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    border: 1px solid var(--light-border);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.post-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.post-header > * {
    position: relative;
    z-index: 1;
}

/* Content Section Styling for Post Content */
.post-content .content-section {
    background: var(--darker-bg);
    border: 1px solid var(--light-border);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.post-content .content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.post-content .content-section > * {
    position: relative;
    z-index: 1;
}

/* Heading styles with underlines */
.post-content .content-section h1,
.post-content .content-section h2,
.post-content .content-section h3 {
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
}

.post-content .content-section h1:after,
.post-content .content-section h2:after,
.post-content .content-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.post-content .content-section h3:after {
    height: 2px;
    width: 60px;
}

.featured-image-container {
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--light-border);
}

.featured-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-title {
    font-size: 2.5rem;
    margin: 1rem 0;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-pink);
    animation: neon-glow 1.5s ease-in-out infinite alternate;
    font-family: 'Orbitron', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Updated styling for the post-content as a single box */
.post-content {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    font-size: 1.2rem;
    font-family: 'Arial', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: var(--darker-bg);
    border: 1px solid var(--light-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.post-content > * {
    position: relative;
    z-index: 1;
}

/* Remove individual paragraph styling */
.post-content > p {
    margin-bottom: 1.5rem;
}

/* Style for section containers */
.post-content > h2,
.post-content > h3 {
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Create styled content blocks for content after headings */
.post-content h2 + p,
.post-content h3 + p {
    margin-top: 1rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.7);
    position: relative;
    padding-bottom: 0.5rem;
}

.post-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.6);
    position: relative;
    padding-bottom: 0.4rem;
}

.post-content h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

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

/* Update content section styles to match second image */
.post-content > section,
.post-content > div {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    border: 1px solid var(--light-border);
}

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

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

.post-content a {
    color: var(--neon-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--neon-pink);
}

.post-content a:hover,
.post-content a:focus {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.post-content blockquote {
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--neon-pink);
    padding: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: rgba(20, 0, 40, 0.5);
    padding: 1.2rem 0.5rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}

.breadcrumb-item.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: #ff80ff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.7);
    outline: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(50, 0, 100, 0.8), rgba(100, 0, 50, 0.8));
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
    border: 1px solid var(--light-border);
    width: 100%;
    max-width: 100%;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-cyan);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Blog CTA button overrides - base styles in components/buttons.css */
.cta-section .btn-rave {
    border-radius: 30px;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
}

/* Post Tags */
.post-tags {
    background: var(--darker-bg);
    border: 1px solid var(--light-border);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.post-tags::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.post-tags h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.post-tags .tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Related Posts/Products */
.related-posts,
.related-products {
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
    background: var(--darker-bg);
    border: 1px solid var(--light-border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.related-posts::before,
.related-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.related-posts > *,
.related-products > * {
    position: relative;
    z-index: 1;
}

.related-posts .section-title,
.related-products .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 15px var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    padding-bottom: 0.8rem;
}

.related-posts .section-title::after,
.related-products .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

/* Product Card styling */
.product-card {
    background: rgba(20, 0, 40, 0.8);
    border: 1px solid var(--light-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: rgba(255, 0, 255, 0.7);
}

.product-card .card-img-top {
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
    height: auto;
    max-height: 250px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-card .card-body {
    padding: 1.5rem;
    text-align: left;
    background: rgba(20, 0, 40, 0.9);
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    text-align: center;
}

.product-card .card-text.price {
    color: #00ffff;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    display: block;
}

/* Blog product card button overrides - base styles in components/buttons.css */
.product-card .btn-rave {
    background: #bd00ff;
    padding: 0.9rem 0;
    text-transform: uppercase;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card .btn-rave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 1;
    pointer-events: none;
}

.product-card .btn-rave:hover {
    background: #ff00ff;
}

/* Fix for the related products row alignment */
.related-products .row {
    display: flex;
    justify-content: center;
}

/* 7. Responsive Adjustments */
@media (max-width: 767px) {
    .post-content {
        padding: 1.5rem;
    }

    .blog-title, .post-title {
        font-size: 2rem;
        padding-top: 20px; /* Added padding to create space below the navbar */
    }

    .post-header {
        text-align: left;
        padding: 1.5rem;
    }

    .featured-image {
        max-height: 300px;
    }

    .post-content {
        font-size: 1rem;
    }

    /* Mobile product card adjustments */
    .product-card {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-card .card-img-top {
        height: auto;
        max-height: 180px;
        padding: 0.8rem !important;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .card-title {
        font-size: 1.3rem;
    }

    .product-card .card-text.price {
        font-size: 1.3rem;
        margin: 0.7rem 0;
    }

    .product-card .btn-rave {
        font-size: 1rem;
        padding: 0.7rem 0;
        max-width: 95%;
    }

    .blog-categories .row {
        flex-wrap: wrap;
        overflow-x: hidden;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .btn-category {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        white-space: nowrap;
        margin-bottom: 0.5rem;
        display: block;
        text-align: center;
    }

    .blog-container {
        padding-top: 60px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }

    .post-detail-container {
        padding-top: 60px;
    }

    .blog-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .featured-post-card .featured-image {
        height: 250px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .card-text {
        font-size: 1rem;
    }

    .blog-navigation a {
        margin: 0 0.4rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .badge-category {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Mobile column resets */
    .col-md-6, .col-lg-4, .col-md-8, .offset-md-2 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: 0;
    }

    .post-card, .featured-post-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Enhanced category button styling for mobile */
    .blog-categories {
        padding: 0 10px;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .blog-categories .col-auto {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .featured-post {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    /* Center blog navigation on mobile */
    .blog-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0.8rem;
        margin: 0 auto 1.5rem;
        width: 100%;
    }

    /* Center blog title and description */
    .blog-title, .blog-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .post-content {
        padding: 1.2rem;
    }

    /* Increase spacing between post-header and navigation bar */
    .post-header {
        margin-bottom: 4rem; /* Increased from 3rem to add more space */
    }

    /* Top spacing for the category-badge wrapper inside the post header */
    .post-detail-container div.mb-3 {
        margin-top: 2rem; /* Add top margin to create more separation */
    }

    /* Reduce margin-bottom of breadcrumb to balance spacing */
    .breadcrumb {
        margin-bottom: 1.5rem; /* Reduced from 2.5rem to balance spacing */
    }

    /* Smaller product card for very small screens */
    .product-card {
        max-width: 250px;
    }

    .product-card .card-img-top {
        height: 160px;
    }

    .product-card .card-title {
        font-size: 1.2rem;
    }

    .product-card .card-text.price {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .product-card .btn-rave {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .blog-title, .post-title {
        font-size: 1.7rem;
        padding-top: 25px; /* Added more padding for smaller screens */
    }

    .blog-container {
        padding-top: 50px;
    }

    .post-detail-container {
        padding-top: 50px;
    }

    .blog-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        padding: 0 15px;
    }

    .featured-post-card .featured-image {
        height: 200px;
    }

    .post-thumbnail {
        height: 160px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .card-footer {
        padding: 0.7rem;
    }

    .read-more {
        font-size: 0.9rem;
    }

    .post-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .post-content h2, .post-content h3 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .cta-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Fix for category buttons */
    .blog-categories {
        width: 100%;
        overflow-x: hidden;
        padding: 0 5px;
    }
}

@media (max-width: 430px) {
    .blog-title, .post-title {
        font-size: 1.5rem;
        padding-top: 30px; /* Added even more padding for extra small screens */
    }

    .blog-container {
        padding-top: 40px;
    }

    .post-detail-container {
        padding-top: 40px;
    }

    .post-header {
        padding: 1.2rem;
        margin-bottom: 3.5rem; /* Slightly reduced but still more than default */
    }

    .featured-post-card .featured-image {
        height: 180px;
    }

    .post-thumbnail {
        height: 140px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .badge-category {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .post-content {
        padding: 1rem;
    }

    .post-content img {
        margin: 1rem 0;
    }

    .blog-navigation {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .blog-navigation a {
        margin: 0 0.2rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 360px) {
    .card-title {
        font-size: 1rem;
    }

    .badge-category {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .post-meta {
        font-size: 0.75rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .read-more {
        font-size: 0.85rem;
    }

    .blog-navigation a {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }

    .post-content {
        padding: 0.8rem;
    }
}

/* No Posts Message */
.no-posts-message {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

div.no-posts-message div.card {
    background: var(--darker-bg) !important; /* rgba(20, 0, 30, 0.6) */
    border: 1px solid var(--light-border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    color: white !important;
}

.no-posts-message .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.no-posts-message .card > * {
    position: relative;
    z-index: 1;
}

.no-posts-message h3 {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 15px var(--neon-cyan);
    animation: neon-glow 1.5s ease-in-out infinite alternate;
    color: #fff !important;
}

.no-posts-message p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem;
    line-height: 1.7;
    font-family: 'Arial', sans-serif;
    margin-bottom: 0;
}
