/* AI Unveiled - Blog Stylesheet - Enhanced Version */

/* Blog Layout & Structure */
.blog-post-section {
    margin-top: 110px;
    position: relative;
    padding-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.8) 0%,
        rgba(59, 94, 219, 0.5) 100%
    );
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.blog-post-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

.blog-category-badge {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.25rem;
    box-shadow: 0 5px 15px rgba(59, 94, 219, 0.4);
    position: relative;
    z-index: 2;
}

.blog-post-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.blog-post-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.blog-post-meta-item {
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-post-meta-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-meta-item i {
    margin-right: 0.6rem;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.blog-post-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.blog-post-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.blog-post-featured-image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
    display: block;
}

.blog-post-featured-image:hover img {
    transform: scale(1.03);
}

/* Blog Content Styles */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0 2rem;
    font-size: 1.1rem;
}

.blog-post-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.92;
    transition: opacity 0.3s ease;
    line-height: 1.8;
}

.blog-post-content p:hover {
    opacity: 1;
}

.blog-post-content h2 {
    font-size: 2.2rem;
    margin: 3.5rem 0 1.75rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.blog-post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-full);
    opacity: 0.8;
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.blog-post-content h2:hover::after {
    transform: scaleX(1);
}

.blog-post-content h3 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

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

.blog-post-content ul li, 
.blog-post-content ol li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.blog-post-content strong {
    color: var(--white);
    font-weight: 600;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.3) 0%,
        rgba(59, 94, 219, 0.15) 100%
    );
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.blog-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 3rem;
    color: rgba(59, 94, 219, 0.3);
    font-family: Georgia, serif;
}

.blog-post-content blockquote p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.blog-post-content blockquote::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    color: rgba(59, 94, 219, 0.2);
    font-family: Georgia, serif;
}

.blog-post-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-blue);
    transition: all 0.3s ease;
    padding-bottom: 1px;
}

.blog-post-content a:hover {
    color: var(--accent-purple);
    border-bottom: 1px solid var(--accent-purple);
}

.blog-post-content img {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Special Components */
.blog-post-cta {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.7) 0%,
        rgba(59, 94, 219, 0.5) 100%
    );
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin: 5rem 0;
    text-align: center;
    border: 1px solid rgba(59, 94, 219, 0.4);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.blog-post-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.blog-post-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

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

.blog-post-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-cta .btn {
    transform: scale(1.1);
    margin-top: 0.5rem;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-post-cta .btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.content-highlight {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.4) 0%,
        rgba(59, 94, 219, 0.2) 100%
    );
    border-left: 4px solid var(--accent-blue);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.content-highlight h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-highlight p:last-child {
    margin-bottom: 0;
}

/* Content Cards */
.content-card {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.4) 0%,
        rgba(59, 94, 219, 0.25) 100%
    );
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
}

.content-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

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

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
}

.content-card h2 {
    margin-top: 0.5rem;
}

.content-card h2::after {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.content-card p:last-of-type {
    margin-bottom: 0;
}

/* Comparison columns */
.comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.comparison-column {
    background: rgba(26, 42, 94, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}

.comparison-column h3 {
    margin-top: 0;
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.25rem;
}

.comparison-column ul {
    padding-left: 1.5rem;
}

.comparison-column ul li {
    margin-bottom: 0.75rem;
}

.comparison-column p {
    margin: 1.25rem 0 0;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 5rem auto 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.5) 0%,
        rgba(59, 94, 219, 0.3) 100%
    );
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.author-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

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

.author-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    flex-shrink: 0;
    border: 3px solid rgba(59, 94, 219, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 94, 219, 0.8);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-avatar:hover img {
    transform: scale(1.1);
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Share Section */
.share-section {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.3) 0%,
        rgba(59, 94, 219, 0.15) 100%
    );
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.share-heading {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 42, 94, 0.7), rgba(59, 94, 219, 0.4));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
}

.share-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.share-button.twitter:hover {
    background: #1DA1F2;
}

.share-button.facebook:hover {
    background: #4267B2;
}

.share-button.linkedin:hover {
    background: #0077B5;
}

/* Related Posts */
.related-posts {
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 4rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 12px;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
}

.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-full);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Blog Cards in Related Posts */
.related-posts .blog-card {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.4) 0%,
        rgba(59, 94, 219, 0.25) 100%
    );
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.related-posts .blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.related-posts .blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-posts .blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.related-posts .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.related-posts .blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.related-posts .blog-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.related-posts .blog-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

.related-posts .blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.related-posts .blog-card:hover .blog-title {
    background: linear-gradient(135deg, var(--white), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-posts .blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
    font-size: 1.05rem;
}

.related-posts .blog-link {
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    font-size: 1.05rem;
}

.related-posts .blog-link:hover {
    color: var(--accent-purple);
}

.related-posts .blog-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.related-posts .blog-link:hover i {
    transform: translateX(6px);
}

/* Disclaimer */
.affiliate-disclaimer {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 3.5rem auto 0;
    padding: 1.25rem 1.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    background: rgba(26, 42, 94, 0.25);
    border-radius: var(--radius-lg);
}

/* Handwritten Notes */
.handwritten-note {
    font-family: 'Caveat', cursive;
    color: #FFD166;
    font-size: 1.35rem;
    font-weight: 600;
    position: absolute;
    z-index: 3;
    max-width: 180px;
    line-height: 1.3;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.handwritten-note:hover {
    transform: scale(1.05) rotate(2deg) !important;
    color: #FFE066;
}

/* Positioning classes for handwritten notes */
.blog-post-content .handwritten-note {
    position: relative;
    display: block;
    margin: 1.5rem 0;
    left: auto;
    right: auto;
    width: fit-content;
    max-width: 250px;
    text-align: center;
    transform: rotate(-3deg);
    margin-left: auto;
    margin-right: 0;
}

.blog-post-cta .handwritten-note {
    position: absolute;
    top: 15px;
    right: 30px;
    transform: rotate(5deg);
}

.handwritten-note.top-right {
    position: absolute;
    top: 25px;
    right: 50px;
    transform: rotate(5deg);
}

.newsletter-section .handwritten-note {
    position: absolute;
    top: 15px;
    right: 80px;
    transform: rotate(3deg);
    z-index: 3;
}

/* Reviewer note styling */
.reviewer-note {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    color: #FFD166;
    background: rgba(10, 14, 31, 0.6);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border-left: 4px solid #FFD166;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.reviewer-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
}

/* Blog Listing Page Styles */
.blog-section {
    margin-top: 110px;
    position: relative;
    padding-bottom: 5rem;
}

.blog-header-container {
    background: linear-gradient(135deg, rgba(26, 42, 94, 0.9), rgba(59, 94, 219, 0.8));
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.blog-header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.blog-header-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.blog-card {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.4) 0%,
        rgba(59, 94, 219, 0.25) 100%
    );
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(59, 94, 219, 0.2) 0%,
        rgba(59, 94, 219, 0) 50%,
        rgba(123, 94, 219, 0.2) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.blog-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: -1;
}

.blog-date {
    color: rgba(164, 107, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-title {
    background: linear-gradient(135deg, var(--white), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    flex: 1;
    font-size: 1.05rem;
}

.blog-link {
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    font-size: 1.05rem;
}

.blog-link:hover {
    color: var(--accent-purple);
}

.blog-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(6px);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0 2rem;
    justify-content: center;
}

.category-button {
    background: rgba(26, 42, 94, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-button.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(59, 94, 219, 0.4);
    transform: translateY(-3px);
}

.category-button:hover:not(.active) {
    background: rgba(59, 94, 219, 0.3);
    border-color: rgba(59, 94, 219, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Tag cloud styling */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 3rem 0 2rem;
    justify-content: center;
}

.tag-item {
    background: rgba(26, 42, 94, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-item:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Newsletter Glow Effect */
.newsletter-section {
    background: linear-gradient(135deg, 
        rgba(26, 42, 94, 0.7) 0%,
        rgba(59, 94, 219, 0.5) 100%
    );
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    margin: 5rem auto 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 900px;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

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

.newsletter-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(59, 94, 219, 0.3) 0%,
        rgba(123, 94, 219, 0.2) 30%,
        rgba(0, 0, 0, 0) 70%
    );
    border-radius: 50%;
    top: -150px;
    right: -100px;
    opacity: 0.7;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-description {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
}

.newsletter-form {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 14, 31, 0.9);
    color: var(--white);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 94, 219, 0.3);
}

.newsletter-button {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-button:hover {
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 94, 219, 0.4);
}

.success-message {
    display: none;
    background: rgba(35, 209, 96, 0.15);
    color: #2ecc71;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid rgba(35, 209, 96, 0.3);
    animation: fadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Image caption styling */
.image-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 992px) {
    .blog-post-section {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .blog-post-content {
        padding: 0 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .content-card {
        padding: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .blog-header-container {
        padding: 3rem 2rem;
    }
    
    .blog-post-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .handwritten-note {
        position: relative !important;
        display: block !important;
        text-align: center !important;
        margin: 1.5rem auto !important;
        transform: rotate(-3deg) !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        max-width: 80% !important;
    }
    
    .blog-post-content {
        padding: 0 1rem;
    }
    
    .blog-post-cta {
        padding: 2.5rem 1.5rem;
    }

    .content-card {
        padding: 1.75rem;
        margin-bottom: 2.5rem;
    }
    
    .comparison-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-card:hover {
        transform: translateY(-5px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-input, 
    .newsletter-button {
        border-radius: 8px;
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .category-filter {
        gap: 0.75rem;
        margin: 2rem 0 1.5rem;
    }
    
    .category-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .blog-header-container {
        padding: 2.5rem 1.5rem;
    }
    
    .blog-post-featured-image {
        margin-bottom: 2.5rem;
    }
    
    .blog-post-header {
        padding: 3rem 1.5rem;
        margin-bottom: 2.5rem;
    }
}

