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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    color: #5568d3;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h2 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.article-card .excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-card .meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

.article-card .meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: gap 0.3s;
}

.article-card:hover .read-more {
    gap: 0.75rem;
}

/* Individual Article Page */
.article-container {
    background: white;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-header {
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #718096;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content .lead {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.article-content h2 {
    color: #2d3748;
    margin: 2.5rem 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.article-content h3 {
    color: #2d3748;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.05rem;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #5568d3;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.article-content code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e53e3e;
    font-family: "Monaco", "Courier New", monospace;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f7fafc;
    font-style: italic;
    color: #4a5568;
}

/* Article Footer */
.article-footer {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: #edf2f7;
    color: #667eea;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition:
        background 0.3s,
        color 0.3s;
}

.tag:hover {
    background: #667eea;
    color: white;
}

.share p {
    color: #718096;
    font-size: 0.95rem;
}

/* Article Navigation */
.article-nav {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.article-nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition:
        gap 0.3s,
        color 0.3s;
}

.article-nav a:hover {
    color: #5568d3;
}

.article-nav .next:hover {
    gap: 0.75rem;
}

/* Related Services */
.related-services {
    padding: 2rem;
    background: #f7fafc;
    margin: 2rem 0 0;
}

.related-services h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.service-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #667eea;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: transparent;
    border: 2px solid currentColor;
    color: #4a5568;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark Mode Styles */
body {
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background-color: #1e293b;
    border-bottom-color: #334155;
}

body.dark-mode .nav-brand,
body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .nav-links a:hover {
    color: #a78bfa;
}

body.dark-mode .dark-mode-toggle {
    color: #e2e8f0;
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .article-card {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .article-card h2,
body.dark-mode .article-card h2 a {
    color: #f1f5f9;
}

body.dark-mode .article-card .excerpt {
    color: #94a3b8;
}

body.dark-mode .article-card .meta {
    color: #64748b;
}

body.dark-mode .article-container {
    background-color: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .article-header {
    border-bottom-color: #334155;
}

body.dark-mode .article-header h1 {
    color: #f1f5f9;
}

body.dark-mode .article-meta {
    color: #94a3b8;
}

body.dark-mode .article-content .lead,
body.dark-mode .article-content p,
body.dark-mode .article-content li {
    color: #cbd5e1;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
    color: #f1f5f9;
}

body.dark-mode .article-content code {
    background: #334155;
    color: #fca5a5;
}

body.dark-mode .article-content blockquote {
    background: #1e293b;
    color: #cbd5e1;
    border-left-color: #a78bfa;
}

body.dark-mode .article-footer {
    border-top-color: #334155;
    border-bottom-color: #334155;
}

body.dark-mode .tag {
    background: #334155;
    color: #a78bfa;
}

body.dark-mode .tag:hover {
    background: #a78bfa;
    color: #1e293b;
}

body.dark-mode .related-services {
    background: #1e293b;
}

body.dark-mode .related-services h3 {
    color: #f1f5f9;
}

body.dark-mode .service-card {
    background-color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card h4,
body.dark-mode .service-card h3 {
    color: #f1f5f9;
}

body.dark-mode .service-card p {
    color: #94a3b8;
}

body.dark-mode .service-card i {
    color: #a78bfa;
}

body.dark-mode .about-section,
body.dark-mode .network-section {
    background-color: #1e293b;
}

body.dark-mode .about-section h2,
body.dark-mode .network-section h2 {
    color: #f1f5f9;
}

body.dark-mode .about-content p {
    color: #cbd5e1;
}

body.dark-mode .article-tag {
    background: #334155;
    color: #a78bfa;
}

body.dark-mode .article-date {
    color: #94a3b8;
}

body.dark-mode .article-card-header {
    border-bottom-color: #334155;
}

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

    .article-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
    }

    .article-nav {
        flex-direction: column;
    }
}
