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

:root {
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-200: rgba(251, 251, 253, 0.9);
    --gray-300: #d1d5db;
    --gray-900: #111827;
}

body {
    font-family: var(--font-family);
    background: var(--white);
    line-height: 1.47059;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Back Navigation Bar */
.back-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.download-btn,
.share-btn,
.reload-btn,
.pdf-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-btn {
    background: #10b981;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.share-btn {
    background: #3b82f6;
}

.share-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.reload-btn {
    background: #6b7280;
}

.reload-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.pdf-export-btn {
    background: #1dd1a1;
}

.pdf-export-btn:hover {
    background: #16a085;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 209, 161, 0.3);
}

.download-btn:active,
.share-btn:active,
.reload-btn:active,
.pdf-export-btn:active {
    transform: translateY(0);
}

/* Header Banner */
.blog-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blog-title {
    font-size: 64px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.header-preview {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f5f7;
    border-radius: 18px;
    padding: 24px 28px;
    position: relative;
    z-index: 1;
    border: 1px solid #d2d2d7;
}

.header-preview p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.header-preview p:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.header-preview p:last-child {
    font-size: 15px;
    color: #86868b;
    font-weight: 400;
}

/* Main Container */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 100px;
    align-items: start;
}

/* Main Content Area */
.blog-content {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 60px 50px;
    max-width: none;
}

.content-section {
    margin-bottom: 80px;
    scroll-margin-top: 80px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-image {
    width: 100%;
    height: 240px;
    background: #E0E4E2;
    border-radius: 8px;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-placeholder {
    width: 248px;
    height: 168px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 15px;
    font-weight: 400;
    border: 1px solid #d2d2d7;
}

.content-headline {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.content-text {
    font-size: 18px;
    color: #1d1d1f;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 85ch;
}

.content-features {
    margin-top: 48px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f7;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.feature-info p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    order: 2;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    padding: 16px 12px 12px;
    border-bottom: 1px solid #e5e5e7;
    letter-spacing: -0.01em;
}

.nav-list {
    list-style: none;
    padding: 0 4px 8px;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    letter-spacing: 0;
    line-height: 1.3;
}

.nav-link:hover {
    background: #f9fafb;
    color: #0071e3;
}

.nav-link.active {
    background: #E0EEE6;
    color: #0c0909;
    font-weight: 500;
}

/* Tables - PDF Style Match */
.feature-table,
.availability-table {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-table table,
.availability-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed;
}

/* PDF Style Headers */
.feature-table th,
.availability-table th {
    background: #082c2f;
    color: #ffffff;
    text-align: left;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    letter-spacing: 0.01em;
}

/* Column Width Distribution - Default 4 Column Tables */
.feature-table th:nth-child(1) { width: 18%; }
.feature-table th:nth-child(2) { width: 22%; }
.feature-table th:nth-child(3) { width: 40%; }
.feature-table th:nth-child(4) { width: 20%; }

.feature-table td:nth-child(1) { width: 18%; }
.feature-table td:nth-child(2) { width: 22%; }
.feature-table td:nth-child(3) { width: 40%; }
.feature-table td:nth-child(4) { width: 20%; }

/* Feature Availability Table - 5 Column Layout */
#feature-availability .feature-table th:nth-child(1) { width: 35%; } /* Feature */
#feature-availability .feature-table th:nth-child(2) { width: 16%; } /* Mobile */
#feature-availability .feature-table th:nth-child(3) { width: 16%; } /* IoT */
#feature-availability .feature-table th:nth-child(4) { width: 16%; } /* Hosted Voice */
#feature-availability .feature-table th:nth-child(5) { width: 17%; } /* Connectivity */

#feature-availability .feature-table td:nth-child(1) { width: 35%; }
#feature-availability .feature-table td:nth-child(2) { width: 16%; }
#feature-availability .feature-table td:nth-child(3) { width: 16%; }
#feature-availability .feature-table td:nth-child(4) { width: 16%; }
#feature-availability .feature-table td:nth-child(5) { width: 17%; }

.feature-table td,
.availability-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(8, 44, 47, 0.08);
    vertical-align: top;
    line-height: 1.7;
    font-size: 15px;
    color: #2c2c2c;
}

/* Category Column - Isolated with one color */
/* Only apply to rowspan category cells */
.feature-table td[rowspan] {
    font-weight: 600;
    min-width: 120px;
    background: rgba(168, 255, 198, 0.449);
    color: #2c2c2c;
    vertical-align: top;
    border-right: 2px solid rgba(8, 44, 47, 0.025);
}

/* All table cells start with regular weight */
.feature-table tbody td:not([rowspan]) {
    font-weight: normal;
}

/* Feature Column - Bold text */
/* When there's a category (rowspan), Feature is the first cell after the rowspan */
.feature-table td[rowspan] ~ td:first-of-type {
    font-weight: 600;
}
/* When there's no category in the row, first column is Feature */
.feature-table tbody tr td:first-child:not([rowspan]) {
    font-weight: 600;
}

/* Even rows - Feature, Description, User Benefit get green */
/* Target all cells except the category rowspan cell */
.feature-table tbody tr.row-even td:not([rowspan]) {
    background: rgba(29, 209, 161, 0.066);
}

/* Odd rows - Feature, Description, User Benefit stay transparent */
.feature-table tbody tr.row-odd td:not([rowspan]) {
    background: transparent;
}

/* Rowspan cells styling is now above */

/* Remove hover effect to match PDF */
.feature-table tbody tr:hover,
.availability-table tbody tr:hover {
    background: inherit;
}

.feature-table td strong,
.availability-table td strong {
    color: #2c2c2c;
    font-weight: 600;
}

.badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.check {
    color: #10b981;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.cross {
    color: #ef4444;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 18px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.share-link-container {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.share-link-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

.share-link-container button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.share-link-container button:hover {
    background: #2563eb;
}

.close-modal {
    width: 100%;
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

.close-modal:hover {
    background: #4b5563;
}

/* Block Images - Small Centered Style */
.block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E4E2;
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.block-img {
    max-width: 350px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Legacy Step Images - Same Style */
.step-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E4E2;
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.step-img {
    max-width: 350px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        flex-direction: column;
        gap: 10px;
    }
    
    .back-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .download-btn,
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
        top: 0;
    }
    
    .blog-content {
        padding: 20px;
        order: 1;
    }
    
    .blog-title {
        font-size: 40px;
    }
    
    .content-headline {
        font-size: 24px;
    }
    
    .content-text {
        font-size: 16px;
    }
    
    .header-preview {
        max-width: 100%;
        padding: 16px;
    }
    
    .content-image {
        height: 200px;
    }
    
    .blog-header {
        padding: 60px 16px;
        min-height: 320px;
    }
    
    .feature-table,
    .availability-table {
        padding: 16px;
        margin-top: 16px;
    }
    
    .feature-table th,
    .feature-table td,
    .availability-table th,
    .availability-table td {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 40px 16px;
        min-height: 280px;
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .content-headline {
        font-size: 24px;
    }
    
    .content-text {
        font-size: 15px;
    }
    
    .sidebar-title {
        font-size: 17px;
        padding: 16px 12px 12px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .blog-container {
        padding: 16px;
        gap: 16px;
    }
    
    .blog-sidebar {
        padding: 16px;
    }
    
    .feature-item {
        padding: 16px 0;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-right: 16px;
    }
    
    .feature-info h4 {
        font-size: 15px;
    }
    
    .feature-info p {
        font-size: 13px;
    }
    
    .content-image {
        height: 160px;
        margin-bottom: 24px;
    }
    
    .image-placeholder {
        width: 200px;
        height: 120px;
        font-size: 13px;
    }
}