/* Color Variables - Support for Light/Dark Mode */
:root {
    /* Light Theme (Default) - Matching Main Site Colors */
    --primary-color: #7c3aed;
    /* Primary violet - matches main site */
    --primary-light: #a78bfa;
    /* Lighter violet */
    --primary-dark: #5b21b6;
    /* Darker violet */
    --accent-color: #3b82f6;
    /* Accent blue - matches main site */
    --accent-light: #60a5fa;
    /* Lighter blue */
    --accent-dark: #2563eb;
    /* Darker blue */
    --tertiary-color: #f59e0b;
    /* Tertiary amber */
    --tertiary-light: #fbbf24;
    /* Lighter amber */
    --tertiary-dark: #d97706;
    /* Darker amber */
    --background: #f9fafb;
    /* Matches main site */
    --secondary-bg: #f1f5f9;
    /* Matches main site */
    --card-bg: #ffffff;
    --text-primary: #333;
    /* Matches main site */
    --text-secondary: #666;
    /* Matches main site */
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, .05), 0 4px 6px rgba(0, 0, 0, .05);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-dark));
    --gradient-hybrid: linear-gradient(135deg, var(--accent-color), var(--primary-color), var(--tertiary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-bg), var(--background));
}

/* Dark Theme - Matching Main Site */
.dark-theme {
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --background: #0f172a;
    --secondary-bg: #1e293b;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gradient-secondary: linear-gradient(135deg, #1e293b, #0f172a);
    --source-panel-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.2));
    --target-panel-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 70px;
    /* Button height (45px) + extra space */
}

/* Header and Navigation with Hybrid Colors */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.4s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: var(--gradient-hybrid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo i {
    margin-right: 0.75rem;
    font-size: 1.8rem;
    color: var(--accent-color);
    background: var(--gradient-hybrid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-color);
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
    background: var(--gradient-hybrid);
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-self: stretch;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-menu .dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-menu .dropdown-toggle:hover {
    color: var(--accent-color);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--card-bg);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-radius: 0.75rem;
    padding: 1rem 0;
    z-index: 100;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

.nav-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hybrid);
    opacity: 0.8;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown-menu li {
    margin: 0;
    width: 100%;
    height: auto;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.nav-menu .dropdown-menu a::after {
    display: none;
}

.nav-menu .dropdown-menu a:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--accent-color);
    transform: translateX(5px);
}

.theme-toggle {
    margin-left: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.05);
}

.theme-toggle:hover {
    color: var(--accent-color);
    background-color: rgba(37, 99, 235, 0.1);
    transform: rotate(30deg);
}

.theme-toggle-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.theme-toggle:hover .theme-toggle-tooltip {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.05);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Post Styles with Hybrid Colors */
.blog-post {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    transition: all 0.4s ease;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(37, 99, 235, 0.05);
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-hybrid);
    opacity: 0.8;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

.blog-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.blog-meta-item i {
    color: var(--accent-color);
}

.blog-tag {
    background: var(--gradient-accent);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.blog-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.3;
    position: relative;
}

.blog-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    margin-bottom: 1.5rem;
}

.blog-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
    transition: all 0.4s ease;
}

.blog-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.blog-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.25rem 0 1rem;
    color: var(--accent-dark);
}

.blog-content ul {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
    list-style-type: none;
}

.blog-content ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
}

.blog-content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent-light);
}

.blog-content ul li ul {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.blog-content strong {
    font-weight: 700;
    color: var(--accent-dark);
}

/* Custom elements */
.tip-box {
    background: var(--gradient-hybrid);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.tip-box::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tip-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.tip-box p {
    margin: 0;
    line-height: 1.6;
    color: white;
    font-size: 0.95rem;
}

.tip-box ul {
    color: white;
}

.tip-box li {
    color: white;
}

.tip-box strong {
    color: var(--tertiary-color);
}

/* Related Posts Section with Hybrid Colors */
.related-posts {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    animation: fadeIn 0.5s ease;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(37, 99, 235, 0.05);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-hybrid);
    opacity: 0.8;
}

.related-posts:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

.related-posts h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.related-post-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--secondary-bg);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.1);
}

.related-post-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    position: relative;
}

.related-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-card:hover .related-post-image::after {
    opacity: 1;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    transition: color 0.3s ease;
}

.related-post-card:hover .related-post-title {
    color: var(--accent-color);
}

.related-post-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.related-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-link i {
    transition: transform 0.3s ease;
}

.related-post-link:hover {
    color: var(--accent-dark);
}

.related-post-link:hover i {
    transform: translateX(5px);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-bg);
    padding: 4rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hybrid);
    opacity: 0.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.35rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.05);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    margin: 0 0 15px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 3.5rem;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        border-radius: 0 0 10px 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        z-index: 40;
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile dropdown styles */
    .nav-menu .dropdown {
        display: block;
        height: auto;
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        justify-content: center;
        padding: 0.5rem 0;
        width: 100%;
        height: auto;
    }

    .nav-menu .dropdown-menu {
        position: static;
        width: 100%;
        background-color: var(--secondary-bg);
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        margin: 0.5rem auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        border: none;
        text-align: center;
    }

    .nav-menu .dropdown-menu::before {
        display: none;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .nav-menu .dropdown-toggle::after {
        content: none;
    }

    .nav-menu .dropdown.active .dropdown-toggle::after {
        content: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 51;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    main {
        margin: 4rem auto 1rem;
    }

    .blog-post,
    .related-posts {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    body {
        padding-bottom: 60px;
        /* Slightly less for mobile button size */
    }
}

/* Blog Index Specific Styles */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Index Header Styles */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* Theme Toggle for Blog Index */
.theme-toggle-index {
    display: flex;
    align-items: center;
}

.theme-toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Mobile Menu Button */
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Blog Index Header with Hybrid Colors */
.blog-index-header {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 6rem 0 3.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.blog-index-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-hybrid);
    opacity: 0.07;
    filter: blur(60px);
    z-index: 0;
}

.blog-index-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(80px);
    z-index: 0;
}

.blog-index-title {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    background: var(--gradient-hybrid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.blog-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-tag {
    background-color: var(--card-bg);
    color: var(--accent-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.05);
}

.category-tag:hover,
.category-tag.active {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Blog Grid with Hybrid Colors */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.1);
}

.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    position: relative;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

.blog-card-content {
    padding: 1.75rem;
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: white;
    background: var(--gradient-hybrid);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-tag {
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-dark);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

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

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

/* Converter Cards */
.converter-cards {
    margin-top: 50px;
    margin-bottom: 50px;
}

.converter-cards h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.converter-card {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.converter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.converter-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.converter-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.image-bordered {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Violet icon */
.violet-icon {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Gradient title for headings */
.gradient-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Page Header with Hybrid Colors */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-hybrid);
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    -webkit-text-fill-color: white;
}

.page-header .subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Ad container styles */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ad-container:empty {
    display: none;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem auto;
    }
}

/* Comparison Table Styles */
.comparison-table {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comparison-label {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start;
}

.comparison-content ul {
    margin: 0;
    padding-left: 1.2rem;
}

.comparison-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.comparison-content li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .comparison-label {
        margin-bottom: 0.5rem;
    }
}