/* =========================================
   ZAIROTICS PREMIUM SERVICE DETAIL
   Status: Smart Sticky (No Internal Scroll)
========================================= */

:root {
    --primary-blue: #0A1931;
    --accent-cyan: #00D4FF;
    --accent-teal: #2EC4B6;
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-light: #E2E8F0;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --gradient-glow: linear-gradient(135deg, #00D4FF 0%, #2EC4B6 100%);
}

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* --- 1. Progress Bar --- */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1100;
}

.progress-track {
    height: 100%;
    width: 0%;
    background: var(--gradient-glow);
    transition: width 0.1s linear;
}

/* --- 2. Hero & Breadcrumb --- */
.service-hero {
    background: linear-gradient(to right, #f8faff, #ffffff);
    border-bottom: 1px solid var(--border-light);
    padding: 30px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--accent-cyan);
}

.sep {
    color: #cbd5e1;
}

.current {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* --- 3. MAIN GRID LAYOUT --- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 100px;
    align-items: stretch;
    /* Required for sticky track */
    position: relative;
}

/* --- LEFT COLUMN: CONTENT --- */
.service-main-col {
    min-width: 0;
}

.service-header {
    margin-bottom: 40px;
}

.service-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-title {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    letter-spacing: -1px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Features Block */
.features-block {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-icon-main {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.features-header h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.features-list li {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.features-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-teal);
}

/* Rich Content */
.rich-text-content {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.rich-text-content h2 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 2em 0 0.8em;
    scroll-margin-top: 130px;
}

.rich-text-content h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 1.5em 0 0.8em;
    scroll-margin-top: 130px;
}

.rich-text-content p {
    margin-bottom: 1.5em;
}

.service-footer-action {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--primary-blue);
}

/* --- RIGHT COLUMN: SIDEBAR (NO SCROLLBAR) --- */
.service-sidebar-col {
    position: relative;
    /* Height matches Left Column via Grid Stretch */
}

.sidebar-sticky-content {
    /* Base Sticky Settings - JS will toggle 'top' vs 'bottom' if needed */
    position: sticky;
    top: 110px;
    /* Default: Sticks to top */

    display: flex;
    flex-direction: column;
    gap: 25px;

    /* REMOVED MAX-HEIGHT & OVERFLOW to allow full expansion */
    width: 100%;
}

/* Widgets */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.toc-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.toc-widget h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 700;
}

.toc-badge {
    background: #F1F5F9;
    color: var(--primary-blue);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.toc-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.toc-link:hover {
    background: #F8FAFC;
    color: var(--primary-blue);
}

.toc-link.active {
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary-blue);
    font-weight: 600;
    border-left-color: var(--accent-cyan);
}

.toc-h3 {
    padding-left: 20px;
    font-size: 0.85rem;
}

.cta-widget {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-icon-lg {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.cta-widget h3 {
    color: var(--white);
    margin: 0 0 10px 0;
    font-family: var(--font-head);
    position: relative;
}

.cta-widget p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
}

.btn-primary-full {
    display: block;
    background: var(--gradient-glow);
    color: var(--primary-blue);
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.btn-primary-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.support-widget h4 {
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-row span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-sidebar-col {
        order: 2;
    }

    .toc-widget {
        display: none;
    }
}