:root {
    --color-bg-primary: #f7fafc;
    --color-text-primary: #1a202c;
    --color-accent: #3b82f6;
    --color-border-default: #e2e8f0;
    --color-muted: #64748b;
    --color-text-secondary: #334155;
    --color-bg-secondary: #eaeceef5;
    --color-bg-header: rgba(255, 255, 255, 0.8);
}

.dark {
    --color-bg-primary: #1a202c;
    --color-text-primary: #f7fafc;
    --color-accent: #3b82f6;
    --color-border-default: #2d3748;
    --color-muted: #94a3b8;
    --color-text-secondary: #e2e8f0;
    --color-bg-secondary: #1e293b;
    --color-bg-header: rgba(17, 24, 39, 0.8);
}

.bg-primary {
    background-color: var(--color-bg-primary);
}

.text-primary {
    color: var(--color-text-primary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.text-accent {
    color: var(--color-accent);
}

.border-accent {
    border-color: var(--color-accent);
}

.border-default {
    border-color: var(--color-border-default);
}

.text-muted {
    color: var(--color-muted);
}

.bg-secondary {
    background-color: var(--color-bg-secondary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.bg-header {
    background-color: var(--color-bg-header);
}

.hover\:bg-accent:hover {
    background-color: var(--color-accent);
}

.hover\:text-accent:hover {
    color: var(--color-accent);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.language-switch {
    transition: all 0.3s ease;
}

.language-switch:hover {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-text {
    color: var(--color-text-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.news-article {
    border-bottom: 1px solid var(--color-border-default);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.news-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.news-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.news-content p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-share {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.news-share span {
    margin-right: 1rem;
    font-weight: 500;
}

.news-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.news-share a:hover {
    background-color: var(--color-accent);
    color: white;
}

.faq-item {
    border-bottom: var(--color-text-primary) solid 1px;
    transition: all 0.3s ease;
}

.dark .faq-item {
    border-bottom-color: #2d3748;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.news-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    border-left-color: #3b82f6;
}

.hover-fadein {
    transition: all 0.3s ease;
}

.hover-fadein:hover {
    transform: scale(1.03);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 1.6s ease-out,
        transform 1.5s ease-out;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

[id] {
    scroll-margin-top: 78px;
}