/* Base styles & Variables */
:root {
    --bg-primary: #FAF9F6;
    --bg-secondary: #FFFFFF;
    --bg-light: #F7F5F0;
    --text-primary: #2C2C2C;
    --text-secondary: #666666;
    --color-hoian-yellow: #E5A93C;
    --color-hoian-yellow-hover: #D29428;
    --color-terracotta: #C05C2E;
    --color-terracotta-light: #FBEFEA;
    --border-color: #E2DFD8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 44, 44, 0.06);
    --shadow-lg: 0 16px 40px rgba(44, 44, 44, 0.1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-terracotta);
    margin-top: 12px;
}

.section-header {
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 100%;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    flex-wrap: nowrap;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-terracotta);
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-terracotta);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 180px 24px 100px;
    background: radial-gradient(circle at 80% 20%, rgba(229, 169, 60, 0.1) 0%, rgba(250, 249, 246, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(192, 92, 46, 0.08) 0%, rgba(250, 249, 246, 0) 50%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.hero-actions .btn-secondary {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-terracotta);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: #A94B20;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-hoian-yellow);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(229, 169, 60, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-hoian-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-left: 16px;
}

.btn-secondary:hover {
    background-color: rgba(44, 44, 44, 0.03);
    border-color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Sections Grid Layouts */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-1 {
    grid-template-columns: 2fr 1.2fr;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-accent {
    border-left: 5px solid var(--color-terracotta);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 14px;
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-terracotta);
    font-weight: bold;
}

.financial-brief {
    margin: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.brief-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.brief-item:last-child {
    margin-bottom: 0;
}

.brief-item .label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.brief-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.card-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Funnel Section */
.funnel-card {
    background-color: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.funnel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(229, 169, 60, 0.12);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.funnel-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    margin-top: 12px;
}

.price-range {
    color: var(--color-terracotta);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.funnel-list {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.funnel-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.funnel-list li::before {
    content: "•";
    color: var(--color-hoian-yellow);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.funnel-card.step-1 { border-top: 4px solid var(--color-hoian-yellow); }
.funnel-card.step-2 { border-top: 4px solid var(--color-terracotta); }
.funnel-card.step-3 { border-top: 4px solid #4A6B5D; }

/* Financial Simulator Section */
.financial-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.calculator-inputs {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.input-group {
    margin-bottom: 28px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-header label {
    font-weight: 550;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.badge-value {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
}

/* Range input styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-terracotta);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    transition: transform 0.1s;
    box-shadow: 0 2px 6px rgba(192, 92, 46, 0.2);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calculator-outputs .output-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-hoian-yellow);
    box-shadow: var(--shadow-md);
}

.calculator-outputs h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1rem;
}

.result-row span:first-child {
    color: var(--text-secondary);
}

.result-number {
    font-weight: 600;
    color: var(--text-primary);
}

.result-row.highlight {
    font-weight: 700;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.result-row.highlight span:first-child {
    color: var(--text-primary);
}

.result-row.profit {
    border-top: 2px solid var(--border-color);
    padding-top: 16px;
}

.font-large {
    font-size: 1.35rem;
}

.text-red { color: #C0392B !important; }
.text-green { color: #27AE60 !important; }
.text-gold { color: #D4AF37 !important; }

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.roi-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.roi-item {
    text-align: center;
}

.roi-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.roi-value {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
}

/* Tabs Section */
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--color-terracotta);
}

.tab-btn.active {
    color: var(--color-terracotta);
    border-bottom-color: var(--color-terracotta);
}

.tab-content {
    display: none;
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.list-bullet {
    list-style: none;
    margin-top: 16px;
}

.list-bullet > li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}

.list-bullet > li::before {
    content: "▫";
    color: var(--color-terracotta);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.list-bullet ul {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 6px;
}

.list-bullet ul li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.tab-img-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tab-img-card .caption {
    padding: 10px;
    background-color: var(--bg-primary);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Offline Section */
.offline-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.offline-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.offline-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.offline-list {
    list-style: none;
    margin-top: 16px;
}

.offline-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.offline-list ul {
    margin-left: 20px;
    margin-top: 6px;
    list-style: circle;
}

.offline-list ul li {
    margin-bottom: 6px;
}

/* Table styling */
.card-table {
    margin-top: 48px;
    padding: 30px;
}

.card-table h3 {
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.budget-table th, .budget-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.budget-table th {
    background-color: var(--bg-primary);
    font-weight: 600;
    color: var(--text-primary);
}

.budget-table td {
    color: var(--text-secondary);
}

.budget-table .total-row {
    font-weight: 700;
    background-color: var(--color-terracotta-light);
}

.budget-table .total-row td {
    color: var(--color-terracotta);
    border-bottom: none;
}

/* Styled Table Inputs */
.table-input {
    width: 100px;
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.table-input:focus {
    border-color: var(--color-terracotta);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(197, 102, 70, 0.15);
}

/* Hide Spin Buttons */
.table-input::-webkit-outer-spin-button,
.table-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table-input[type=number] {
    -moz-appearance: textfield;
}

#cost-networking {
    width: 130px;
    margin-right: 4px;
}

/* Operations section */
.op-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.op-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.op-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

/* CRM Messaging Tool */
.crm-tool-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-top: 48px;
}

.crm-tool-card h3 {
    margin-bottom: 10px;
}

.crm-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.crm-textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    resize: none;
    outline: none;
}

.crm-textarea:focus {
    border-color: var(--color-terracotta);
}

.crm-status {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

/* CRM Messaging Tool Extensions */
.crm-inputs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
}

.crm-inputs-grid .table-input {
    width: 100%;
    text-align: left;
}

.crm-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.crm-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.crm-lang-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-lang-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.crm-lang-btn:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.crm-lang-btn.active {
    background-color: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: white;
}

/* Summary & Proposal Section */
.summary-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-terracotta);
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: center;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles overrides */
@media (max-width: 768px) {
    .crm-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .summary-stats {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .crm-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .financial-calculator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .navbar .nav-links, .navbar .btn-cta {
        display: none;
    }
    
    .grid-2, .grid-3, .grid-2-1 {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 140px 24px 70px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 0 4px;
    }
    
    .hero-actions .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 8px 6px;
        font-size: 0.82rem;
        line-height: 1.2;
        text-align: center;
    }
}

/* Documentation Section Styles */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 550px;
}

.docs-sidebar {
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
}

.docs-group {
    margin-bottom: 24px;
}

.docs-group:last-child {
    margin-bottom: 0;
}

.docs-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.docs-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.docs-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
}

.docs-item:hover {
    background-color: rgba(192, 92, 46, 0.05);
    color: var(--color-terracotta);
}

.docs-item.active {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    font-weight: 600;
}

.docs-viewer {
    padding: 40px;
    overflow-y: auto;
    max-height: 650px;
    background-color: #FFFFFF;
}

.docs-paper {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.docs-paper h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.docs-paper h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.docs-paper h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.docs-paper p {
    margin-bottom: 16px;
}

.docs-paper ul, .docs-paper ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.docs-paper li {
    margin-bottom: 8px;
}

.docs-paper strong {
    color: var(--text-primary);
}

.docs-paper blockquote {
    border-left: 4px solid var(--color-terracotta);
    background-color: var(--bg-primary);
    padding: 16px;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    font-style: italic;
}

.docs-paper table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.docs-paper th, .docs-paper td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.docs-paper th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.docs-paper tr:hover td {
    background-color: rgba(44, 44, 44, 0.01);
}

@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .docs-viewer {
        padding: 24px;
        max-height: 500px;
    }
}

