/* ==================== Expertise Section - Keyword Carousel ==================== */
#dusseldorf-expertise {
    padding: 80px 0 60px;
    background: #FAFBFC;
    overflow: hidden;
}

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

#dusseldorf-expertise .section-header {
    text-align: left;
    margin-bottom: 40px;
}

#dusseldorf-expertise .section-header .section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #F6C927;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#dusseldorf-expertise .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B2D45;
    margin-bottom: 10px;
}

#dusseldorf-expertise .section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Carousel Wrapper */
#dusseldorf-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

#dusseldorf-carousel::before,
#dusseldorf-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

#dusseldorf-carousel::before {
    left: 0;
    background: linear-gradient(to right, #FAFBFC 0%, transparent 100%);
}

#dusseldorf-carousel::after {
    right: 0;
    background: linear-gradient(to left, #FAFBFC 0%, transparent 100%);
}

/* Tags Track */
#dusseldorf-track {
    display: flex;
    gap: 16px;
    width: fit-content;
    animation: dusseldorfScroll 120s linear infinite;
}

#dusseldorf-track:hover {
    animation-play-state: paused;
}

@keyframes dusseldorfScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

/* Keyword Tag */
.dusseldorf-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1B2D45;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.dusseldorf-tag:hover {
    background: #1B2D45;
    border-color: #1B2D45;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 45, 69, 0.15);
}

/* Tag Dot */
.dusseldorf-tag-dot {
    width: 8px;
    height: 8px;
    background: #F6C927;
    border-radius: 50%;
    flex-shrink: 0;
}

.dusseldorf-tag:hover .dusseldorf-tag-dot {
    background: #fff;
}

.dusseldorf-tag-text {
    line-height: 1;
}

/* Hidden Articles Storage */
.articles-storage {
    display: none !important;
}

/* ==================== Article Modal ==================== */
.article-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 45, 69, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.article-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.article-modal-dialog {
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px rgba(27, 45, 69, 0.25);
    transform: scale(0.9) translateY(40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-modal-backdrop.active .article-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.article-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-bottom: 1px solid rgba(27, 45, 69, 0.08);
}

.article-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.article-modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid rgba(27, 45, 69, 0.1);
    border-radius: 12px;
    cursor: pointer;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.article-modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Modal Body */
.article-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.75;
    color: var(--text-secondary);
}

.article-modal-body h1,
.article-modal-body h2,
.article-modal-body h3,
.article-modal-body h4 {
    color: var(--primary);
    margin: 1.5em 0 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

.article-modal-body h1 { font-size: 1.625rem; }
.article-modal-body h2 { font-size: 1.375rem; }
.article-modal-body h3 { font-size: 1.125rem; }
.article-modal-body h4 { font-size: 1rem; }

.article-modal-body p {
    margin-bottom: 1em;
}

.article-modal-body ul,
.article-modal-body ol {
    margin: 1em 0;
    padding-left: 1.75em;
}

.article-modal-body li {
    margin-bottom: 0.5em;
}

.article-modal-body ul li { list-style: disc; }
.article-modal-body ol li { list-style: decimal; }

.article-modal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-modal-body a:hover {
    color: var(--accent-hover);
}

.article-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

/* Hide external/large images */
.article-modal-body img[src*="cdn.aio"],
.article-modal-body iframe {
    display: none !important;
}

.article-modal-body blockquote,
.article-modal-body figure {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: #F8F9FA;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.article-modal-body blockquote p:last-child,
.article-modal-body figure p:last-child {
    margin-bottom: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .expertise-section {
        padding: 70px 0 60px;
    }

    .expertise-section .section-header h2 {
        font-size: 2rem;
    }

    .tags-carousel {
        padding: 20px 0;
    }

    .floating-tag {
        padding: 12px 18px;
        font-size: 0.875rem;
        gap: 8px;
    }

    .tag-dot {
        width: 6px;
        height: 6px;
    }

    .article-modal-backdrop {
        padding: 16px;
    }

    .article-modal-dialog {
        max-height: 95vh;
        border-radius: 16px;
    }

    .article-modal-head {
        padding: 20px 24px;
    }

    .article-modal-title {
        font-size: 1.25rem;
    }

    .article-modal-close {
        width: 40px;
        height: 40px;
    }

    .article-modal-body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .expertise-section .section-header h2 {
        font-size: 1.75rem;
    }

    .floating-tag {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    .article-modal-head {
        padding: 16px 20px;
    }

    .article-modal-body {
        padding: 20px;
    }

    .article-modal-body h1 { font-size: 1.375rem; }
    .article-modal-body h2 { font-size: 1.25rem; }
}
