/* Modern Blog Post Styles - Dark Gradient Theme */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #60a5fa;
    --primary-light: #93c5fd;
    --primary-dark: #3b82f6;
    --text-color: #e5e7eb;
    --heading-color: #f9fafb;
    --meta-color: #d1d5db;
    --bg-light: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(12px);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #1e3a8a 50%, #1e40af 75%, #2563eb 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Hero Section */
.article_header {
    background: transparent;
    padding: 100px 0 40px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    border-radius: 0;
}

.example-box,
.checklist-box {
    background: transparent !important;
}

.checklist-box {
    border-radius: 5px;
}

.article_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 20%, #3b82f6 50%, #8b5cf6 80%, transparent 100%);
}

.article_hero_image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.article_title_wrapper {
    max-width: 1000px;
    margin: 0 auto 30px;
    text-align: left;
    padding: 0 0px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.article_title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article_meta_wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta_item i {
    color: var(--primary-light) !important;
    font-size: 0.9375rem;
}

/* Content Area - Transparent with white text */
.article_content {
    font-size: 1.0625rem;
    max-width: 1000px;
    margin: 40px auto;
    padding: 60px 80px;
    color: #f3f4f6;
    line-height: 1.8;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article_content p {
    margin-bottom: 1.6em;
    font-weight: 400;
}

.article_content h2 {
    font-size: 2rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.article_content h3 {
    font-size: 1.375rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
    color: #f3f4f6;
}

.article_content blockquote {
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
    border-radius: 4px;
    font-style: italic;
    font-size: 1.125rem;
    color: #ffd290;
    margin: 32px 0;
    position: relative;
}

.article_content a {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 600;
}

.article_content a:hover {
    color: #ffffff;
}

.no-padding {
    padding: 0;
    margin: 0;
}

/* Lead Paragraph */
.article_content .lead,
.lead {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: #d1d5db;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Blog Category Tags */
.blog_category_tag {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--primary-color);
    color: white;
}

/* Sidebar - Semi-transparent */
.category_sidebar {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 100px;
    margin-bottom: 30px;
    backdrop-filter: var(--glass-blur);
}

.category_sidebar h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
}

.category_menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category_link {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 4px;
    color: #e5e7eb;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
}

.category_link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    transform: translateX(3px);
}

.category_link.active {
    background: var(--primary-color);
    color: white;
}

.category_link.active .category_count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Share Buttons - Fixed Left */
.floating_share {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

@media (max-width: 1400px) {
    .floating_share {
        display: none;
    }
}

.share_icon {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    transition: all 0.3s ease;
    border: none;
}

.share_icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Interaction Bar */
.interaction_bar {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 30px;
    margin: 50px 0;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.like_btn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.like_btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.like_btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    color: white;
}

.like_btn:hover i {
    transform: scale(1.2);
}

.like_btn.liked {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    animation: likePulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.interaction_bar .comment_count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.interaction_bar .comment_count i {
    color: var(--primary-light);
}

@keyframes likePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Share Buttons Section */
.share_buttons {
    background: transparent;
    padding: 30px 20px;
    margin: 40px -20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share_buttons h5 {
    color: #ffffff;
}

/* Comments Section */
.comments_section {
    background: transparent;
    padding: 20px 0 0px;
    margin-top: 40px;
}

.comments_section h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: 'Merriweather', serif;
}

.comment_form_container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comment_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment_input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.comment_input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.comment_textarea {
    min-height: 120px;
    resize: vertical;
}

.submit_comment_btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit_comment_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

/* Individual Comment Items */
.comment_item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.comment_avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comment_content {
    flex-grow: 1;
}

.comment_author {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.comment_time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.comment_text {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.reply_btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply_btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Related Posts Section - Modern Cards */
.related_posts {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related_posts h3 {
    color: white;
    font-weight: 700;
}

.blog_card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog_card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.blog_img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.blog_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Show top part of image */
    transition: transform 0.5s ease;
}

.blog_card:hover .blog_img img {
    transform: scale(1.1);
}

.blog_content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog_category_tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
    width: fit-content;
}

.blog_category_tag.guide {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.blog_category_tag.trends {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.blog_category_tag.security {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.blog_date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.blog_title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog_title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog_title a:hover {
    color: var(--primary-light);
}

.blog_excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reply_form {
    display: none;
    margin-top: 20px;
    flex-direction: column;
    gap: 15px;
}

.reply_form.active {
    display: flex;
}

.replies_container {
    margin-top: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.reply_item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.reply_avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

/* Related Posts Section */
.related_posts {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-top: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.related_posts h3 {
    color: #ffffff;
}

/* CTA Section - Keep gradient */
.cta_section {
    margin-top: 0 !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .article_title {
        font-size: 2rem;
    }

    .article_title_wrapper {
        padding: 0 20px;
    }

    .article_meta_wrapper {
        flex-wrap: wrap;
        gap: 12px 16px;
        font-size: 0.8rem;
    }

    .meta_item {
        white-space: nowrap;
    }

    .article_content {
        font-size: 1rem;
        padding: 40px 20px;
    }

    .article_content h2 {
        font-size: 1.5rem;
    }

    .category_sidebar {
        position: relative;
        top: 0;
    }

    /* Ensure all content sections have proper padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .article_title {
        font-size: 1.75rem;
        padding: 0 15px;
    }

    .article_title_wrapper {
        padding: 0 15px;
    }

    .article_content {
        font-size: 0.95rem;
        padding: 30px 20px;
    }

    .article_content h2 {
        font-size: 1.35rem;
        margin-top: 1.5rem;
    }

    .article_content h3 {
        font-size: 1.15rem;
    }

    .article_content p,
    .article_content li {
        margin-bottom: 1rem;
    }

    /* Ensure container has padding on very small screens */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .article_header {
        padding: 80px 0 30px;
    }
}

/* Container adjustments for dark background */
.container {
    position: relative;
}

section.container {
    background: transparent;
}