:root {
    --primary: #2B5AED;
    --primary-dark: #1A49DC;
    --secondary: #00C1D4;
    --dark: #333333;
    --light: #F5F7FA;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --border: #DEE2E6;
    --bg-color: #f5f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    line-height: 1.7;
    color: var(--dark);
    background-color: #fcfcff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        radial-gradient(at 20% 10%, hsla(224, 82%, 60%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 20%, hsla(187, 100%, 41%, 0.1) 0px, transparent 50%),
        radial-gradient(at 10% 90%, hsla(224, 82%, 60%, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(187, 100%, 41%, 0.15) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 650;
    transition: color 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(15px);
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 30px;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-dropdown-content a:hover {
    background-color: var(--light);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--gray);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.dropdown-arrow path {
    stroke-width: 2;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

.blog-post-container {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: flex-start;
}

.article-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.article-content h1 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.article-meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-content h2 {
    font-size: 24px;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.article-content h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}

.article-content ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--dark);
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray);
    background-color: var(--light);
    border-radius: 0 8px 8px 0;
}

.results-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.results-table th {
    font-size: 16px;
    color: var(--dark);
}

.results-table td {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar {
    position: sticky;
    top: 120px;
}

.toc {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.toc-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 15px;
}

.toc-list a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
    font-size: 15px;
}

.toc-list a:hover {
    color: var(--primary);
}

.back-to-blog-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-blog-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col p {
    color: var(--light-gray);
    font-size: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
    text-decoration: none;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.footer-item i {
    margin-right: 10px;
    color: var(--secondary);
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--light-gray);
    text-decoration: none;
    margin-left: 15px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        padding: 10px;
        display: none;
    }
    .nav-dropdown-content.active {
        display: block;
    }
    .article-content {
        padding: 20px;
    }
}

/* Case-only overrides: remove top gradient bar and thin border */
.nav-dropdown-content::before { display: none !important; }
/* Increase gap between underline and dropdown */
.nav-dropdown-content { margin-top: 22px !important; }
/* Soften border color */
.nav-dropdown-content { border: 1px solid rgba(43, 90, 237, 0.08) !important; }