* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #295288;
    --primary-light: #3d6ba3;
    --primary-dark: #1a3456;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(41, 82, 136, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--surface);
    font-size: 16px;
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logos-section {
    display: flex;
    align-items: center;
    gap: 32px;
}

.company-logo {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.company-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.company-logo:hover::before {
    left: 100%;
}

.company-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 130px;
    font-weight: bold;
}

.logo-icon--grandstream {
    width: 200px;
}

.logo-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.partnership-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.partnership-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Article */
.article-section {
    background: var(--background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow);
    position: relative;
}

.article-hero {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.article-content {
    padding: 48px;
}

.article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-icon {

    font-size: 16px;
}

.content-body h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    position: relative;
}

.content-body h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-body h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
}

.content-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-body ul {
    margin: 20px 0;
    padding-left: 0;
}

.content-body ul>li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.content-body ul>li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-body ol {
    padding-left: 16px;
    list-style-type: decimal;
}

.insight-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.insight-box::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--background);
    padding: 0 8px;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: var(--background);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.sidebar-card-slider {
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.action-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-button:hover::before {
    left: 100%;
}

.action-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 82, 136, 0.3);
}

.action-button.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.action-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-button-sm {
    padding-top: 10px;
    padding-bottom: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.image {
    margin: 20px 0px 10px 0px;
}

.image img {
    width: 100%;
    border-radius: 8px;
}

.image p {
    font-size: 14px;
    color: gray;
    font-style: italic;
    text-align: center;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Slider */

.product-slide-card {
    height: 100%;
    display: flex;
    user-select: none;
    flex-direction: column;
}

.product-slide-card-img {
    max-width: 300px;
    margin: 0 auto 20px auto;
}

.product-slide-card-img img {
    width: 100%;
    height: auto;
}

.product-slide-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sidebar-card-slider {
    display: grid;
}

.sidebar-card-slider .swiper .swiper-slide {
    height: auto;
}

.product-slide-card-title {
    flex-grow: 1;
}

.swiper {
    max-width: 100%;
}

.swiper-container {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    min-height: 0;
    min-width: 0;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.current-language {
    background: #2d578e;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.current-language:hover {
    background: #1e3a5f;
}

.current-language svg {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.current-language.open svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 4px;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #2d578e;
    color: white;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal__overlay {
    align-items: center;
    background: rgba(0, 0, 0, .6);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.modal__button {
    padding: 10px 16px;
    background: #ccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal__title {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 16px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal[aria-hidden=true] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0, 0, .2, 1);
}

.form-input {
    font-size: 16px;
    padding: 15px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.modal[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.modal[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.modal .modal__container,
.modal .modal__overlay {
    will-change: transform;
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

@media (max-width: 991px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 16px;
    }

    .product-slide-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .header-content {
        /* flex-direction: column; */
        gap: 16px;
        text-align: center;
        padding: 10px 0px;
    }

    .logos-section {
        width: 100%;
        /* justify-content: space-between; */
        gap: 16px;
    }

    .logo-icon {
        width: 120px;
    }

    .logo-icon--grandstream {
        width: 170px;
    }

    .article-content {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .sidebar {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-meta {
        gap: 5px;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .article-section {
        border-radius: 0px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .logo-icon {
        width: 110px;
    }

    .logo-icon--grandstream {
        width: 150px;
    }

    .logos-section {
        flex-shrink: 1;
    }

    .current-language {
        padding: 6px 8px;
        flex-shrink: 0;
    }
}