:root {
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --accent: #2563eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--slate-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--slate-900);
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-700);
    padding: 8px;
}

/* New Split Hero Style (Homepage) */
.hero-split {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-content {
    flex: 1.2;
    max-width: 600px;
}

.hero-text-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--slate-900);
}

.hero-text-content .accent {
    color: var(--primary);
}

.hero-text-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--slate-600);
}

.hero-image-side {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.hero-image-side img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    object-fit: contain;
}

/* Pillar Content Section (Homepage Article) */
.pillar-content {
    padding: 80px 0;
    background: var(--white);
}

.long-form-article {
    max-width: 900px;
    margin: 0 auto;
}

.long-form-article h2 {
    font-size: 2.25rem;
    margin-bottom: 30px;
    color: var(--primary);
    line-height: 1.2;
}

.long-form-article h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.long-form-article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--slate-700);
    text-align: justify;
}

/* Categories Grid */
.categories-grid {
    background-color: var(--slate-100);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

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

.card p {
    color: var(--slate-600);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card .link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Article & Category Pages (Sub-pages) */
.article-page {
    background-color: #f8fafc;
}

.article-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.consultation-header {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.consultation-header .email {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.consultation-header .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--slate-600);
    letter-spacing: 0.5px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-body h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--slate-900);
}

.article-body h2 {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    margin: 35px 0 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 18px;
    color: var(--slate-700);
    font-size: 1.05rem;
}

.article-body ul {
    margin: 0 0 20px 20px;
}

.article-body li {
    margin-bottom: 8px;
    color: var(--slate-700);
}

/* TOC (Sub-pages) */
.toc {
    background: var(--slate-100);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-bottom: 30px;
}

.toc h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
    margin: 0;
}

.toc li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.toc a {
    text-decoration: none;
    color: var(--slate-700);
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Related Section (Sub-pages) */
.related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.related-card {
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    background: var(--white);
    display: block;
}

.related-card:hover {
    border-color: var(--primary);
    background: var(--slate-100);
    transform: translateY(-2px);
}

.related-card span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.related-card h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--slate-900);
}

/* Footer */
.main-footer {
    background: var(--slate-900);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 35px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-nav h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-nav a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--slate-700);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-content a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 600;
}

.sidebar-group {
    margin-top: 20px;
}

.group-title {
    color: var(--primary) !important;
}

/* Mobile Fixed Footer */
.mobile-fixed-footer {
    display: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 20px;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 3000;
    display: none;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.cookie-actions .btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-split-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-image-side {
        order: -1;
        justify-content: center;
        width: 100%;
    }
    
    .hero-text-content {
        max-width: 100%;
    }

    .article-container {
        padding: 30px 20px;
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    .hero-split { padding: 40px 0; }
    .pillar-content { padding: 40px 0; }
    .long-form-article h2 { font-size: 1.75rem; }
    .long-form-article p { text-align: left; }
    
    .article-container {
        padding: 20px 15px;
        border-radius: 0;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .consultation-header {
        flex-direction: column;
        text-align: center;
    }

    .mobile-fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--white);
        border-top: 1px solid var(--border);
        z-index: 1500;
    }
    .mobile-fixed-footer a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.85rem;
    }
    .call-btn { color: var(--primary); border-right: 1px solid var(--border); }
    .wa-btn { color: #16a34a; }
    .main-footer { padding-bottom: 80px; }
}