/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 *
 * Production Directory: https://ainspire.ai/css/call-emma.css
 * Development Directory: http://localhost:8000/css/call-emma.css
 *
 * Call-Emma.ai Product Page Styles
 * Used in /templates/call_emma_page.php
 */

/* ==========================================
   GLOBAL OVERRIDES FOR STICKY TO WORK
   ========================================== */

/* Remove this section - no global overflow needed */

/* ==========================================
   HERO SECTION - Based on service-hero-split
   ========================================== */

   
.call-emma-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(59 130 246 / 43%) 0%, rgb(30 64 175 / 8%) 30%, rgb(37 99 235 / 5%) 60%, rgb(247 247 247 / 3%) 100%);
    z-index: 1;
    padding: 40px 0;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.call-emma-hero-homepage {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgb(1 24 62) 0%, rgb(0 0 0) 30%, rgb(0 9 27) 60%, rgb(6 5 5) 100%);
    z-index: 1;
    padding: 40px 0;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.call-emma-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.call-emma-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(59, 130, 246, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Animated network background canvas */
.emma-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: opacity(0.12);
    pointer-events: none;
}

.section-header {
    background: #2d2d5870;
}

.call-emma-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    gap: 60px;
    align-items: center;
}

/* Hero Cover Image - Desktop (Left Side - 30%) */
.hero-cover-desktop {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Cover Image - Mobile (Hidden by default) */
.hero-cover-mobile {
    display: none;
}

/* Hero Cover Image Styling */
.hero-cover-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    position: relative;
    overflow: hidden;
}

.hero-cover-image.has-image {
    background-color: rgba(59, 130, 246, 0.1);
}

.hero-cover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.hero-cover-image:hover {
    box-shadow:
        0 30px 80px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.3);
    transform: perspective(1000px) rotateY(8deg) translateY(-15px) scale(1.05);
}

/* Emma Link Text */
.emma-link-text {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
        border: 0.5px solid blue;
    padding: 5px;
    border-radius: 10px;
    background: #ffffff1c;
}

.emma-link-text a {
    color: #9dadf18c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.emma-link-text a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Hero Info - Right Side (70%) */
.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.call-emma-hero-description {
    color: #9ca3af;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0;
    text-align: left;
}

/* Hero Topics Tags */
.hero-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-topic-tag {
    background: rgba(37, 99, 235, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-topic-tag:hover {
    background: rgba(37, 99, 235, 0.4);
    border-color: rgba(37, 99, 235, 0.6);
}

/* ==========================================
   MAIN LAYOUT - 3 Column Grid
   Left: 30% | Center: 50% | Right: 20%
   ========================================== */

.call-emma-main {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    min-height: 100vh;
    padding: 0;
    /* overflow removed to allow sticky positioning to work */
}

.call-emma-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 20% 60% 20%;
    gap: 0;
    align-items: start;
    overflow: visible; /* Ensure sticky positioning works */
}

/* ==========================================
   LEFT SIDEBAR - Page Navigation (30%)
   ========================================== */

.call-emma-sidebar-left {
    border-right: 1px solid rgba(121, 169, 245, 0.349);
    padding: 40px 20px;
    position: sticky;
    top: 0px;
    align-self: start; /* Allows sticky to work properly */
    height:100vh;
    overflow-y: auto;
}

.call-emma-nav-title {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.call-emma-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.call-emma-nav-item {
    margin-bottom: 8px;
}

.call-emma-nav-link {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.call-emma-nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.call-emma-nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

/* ==========================================
   CENTER CONTENT AREA (50%)
   ========================================== */

.call-emma-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    min-height: 100vh;
    color: #e5e7eb;
}

/* Licensing CTA Banner */
.licensing-cta-banner {
    background: rgb(73 86 115 / 52%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 40px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.licensing-cta-banner:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
}

.licensing-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 600px;
}

.licensing-cta-text {
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
}

.licensing-cta-text strong {
    color: #3b82f6;
    font-weight: 600;
}

.licensing-cta-button {
    display: inline-flex;
    align-items: center; 
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.licensing-cta-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.licensing-cta-button i {
    font-size: 16px;
}

/* ==========================================
   RIGHT SIDEBAR - Table of Contents (20%)
   ========================================== */

.call-emma-sidebar-right {
    border-left: 1px solid rgba(121, 169, 245, 0.349);
    padding: 40px 20px;
    position: relative;
    top: 0px;
    height:100%;
    align-self: start; /* Allows sticky to work properly */ 
    overflow-y: auto;
}

.call-emma-toc-title {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.call-emma-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.call-emma-toc-item {
    margin-bottom: 8px;
}

.call-emma-toc-link {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.call-emma-toc-link:hover {
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.call-emma-toc-link.active {
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

/* Sub-items (h3) indentation */
.call-emma-toc-item.sub {
    padding-left: 15px;
}

/* ==========================================
   TYPOGRAPHY STYLES
   ========================================== */

/* Page Title - Based on service-title */
.call-emma-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: #1a43a2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emma2 { 
     font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2; 
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* H1 - Based on cto-overview-title */
.call-emma-content h1,
.call-emma-h1 {
    color: #3b82f6;
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.call-emma-content h1:first-child {
    margin-top: 0;
}

/* H2 - Based on overview-item-title */
.call-emma-content h2,
.call-emma-h2 {
    color: #3b82f6;
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    letter-spacing: 0.5px;
}

/* H3 - Based on overview-item-title with white color */
.call-emma-content h3,
.call-emma-h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 12px 0 12px 0;
    letter-spacing: 0.3px;
}

/* H4 - Based on overview-item-title with white color */
.call-emma-content h4,
.call-emma-h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    letter-spacing: 0.2px;
}

/* Paragraphs */
.call-emma-content p {
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ==========================================
   LISTS
   ========================================== */

/* Unordered Lists */
.call-emma-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.call-emma-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 20px;
}

.call-emma-content ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-size: 20px;
    line-height: 1.4;
}

/* Ordered Lists */
.call-emma-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.call-emma-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 18px;
}

.call-emma-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 18px;
}

/* ==========================================
   CONTENT SEPARATORS & IMAGES
   ========================================== */

.content-separator {
    text-align: center;
    margin: 40px 0;
}

.separator-line {
    max-width: 100%;
    height: auto;
    opacity: 0.6;
}

.use-cases-header {
    text-align: center;
    margin: 30px 0;
}

.use-cases-banner {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   NAVIGATION CARDS GRID
   ========================================== */

/* Grid Container with Border/Box */
.navigation-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

/* Individual Navigation Card */
.nav-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    background: rgba(20, 20, 20, 0.9);
}

/* Card Icon */
.nav-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.nav-card-icon i {
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-icon i {
    transform: scale(1.1);
}

/* Card Title */
.nav-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Card Description */
.nav-card-description {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Card Link */
.nav-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 15px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.nav-card-link:hover {
    color: #60a5fa;
    gap: 12px;
}

.nav-card-link i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.nav-card-link:hover i {
    transform: translateX(2px);
}

.nav-card-link strong {
    font-weight: 600;
}

/* ==========================================
   USE CASE CATEGORIES & ITEMS
   ========================================== */

/* Category Cards Grid */
.use-case-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.category-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 12px 0;
}

.category-card p {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Individual Use Case Items */
.use-case-item {
    background: rgb(233 233 233 / 11%);
    border-left: 3px solid rgb(241 246 255 / 45%);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.2s ease;
}

.use-case-item:hover {
    background: rgba(20, 20, 20, 0.6);
    border-left-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.use-case-item h4 {
    color: #3b82f6;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.use-case-item p {
    color: #e2e8f0;
    font-size: 19px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   TABLES
   ========================================== */

.call-emma-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.4); 
    overflow: hidden;
    display: block;
    overflow-x: auto; /* Allow horizontal scroll on small screens */
}

.call-emma-content table thead {
    background: rgba(59, 130, 246, 0.2);
}

.call-emma-content table th {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.call-emma-content table td {
    border: 1px solid #ffffff30;
    color: #e2e8f0;
    font-size: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.call-emma-content table tr:last-child td {
    border-bottom: none;
}

.call-emma-content table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

.call-emma-content code {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.call-emma-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.call-emma-content pre code {
    background: none;
    padding: 0;
    color: #93c5fd;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .call-emma-container {
        grid-template-columns: 25% 55% 20%;
    }

    .call-emma-title {
        font-size: 2.5rem;
    }
}

/* ==========================================
   MOBILE HAMBURGER MENU BUTTON
   ========================================== */

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 10px;
    left: 20px;
    z-index: 1001;
    background: rgba(59, 130, 246, 0.45);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile backdrop overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: block;
    }

    .call-emma-container {
        grid-template-columns: 1fr;
        position: relative;
    }

    /* Hide sidebar by default on mobile */
    .call-emma-sidebar-left {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen */
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        max-height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        border-right: 1px solid rgba(59, 130, 246, 0.3);
        border-bottom: none;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px; /* Space for close button */
    }

    /* Show sidebar when active */
    .call-emma-sidebar-left.active {
        left: 0;
    }

    /* Close button inside sidebar */
    .call-emma-sidebar-left::before {
        content: '✕';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        color: #3b82f6;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.1);
        transition: all 0.2s ease;
    }

    .call-emma-sidebar-left::before:hover {
        background: rgba(59, 130, 246, 0.2);
        transform: rotate(90deg);
    }

    .call-emma-sidebar-right {
        display: none; /* Hide TOC on mobile */
    }

    .call-emma-content {
        padding: 40px 20px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Hero Section - Mobile */
    .call-emma-hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .hero-cover-desktop {
        display: none;
    }

    .hero-cover-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 20px 0;
    }

    .hero-cover-image {
        max-width: 300px;
    }

    .emma-link-text {
        width: auto;
        max-width: 280px;
        margin: 12px auto 0;
    }

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

    .call-emma-title {
        font-size: 2rem;
        text-align: center;
    }

    .call-emma-hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-topics {
        justify-content: center;
    }

    .call-emma-content h1 {
        font-size: 24px;
    }

    .call-emma-content h2 {
        font-size: 20px;
    }

    .call-emma-content h3 {
        font-size: 18px;
    }

    .call-emma-content h4 {
        font-size: 16px;
    }

    /* Fix table overflow on mobile */
    .call-emma-content table {
        font-size: 14px;
    }

    .call-emma-content table th,
    .call-emma-content table td {
        padding: 10px 12px;
        min-width: 100px; /* Ensure readable width */
    }

    /* Fix code block overflow */
    .call-emma-content pre {
        font-size: 13px;
        padding: 15px;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    /* Navigation Cards - Mobile */
    .navigation-cards-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
        margin: 20px 0;
    }

    .nav-card {
        padding: 20px;
    }

    .nav-card-title {
        font-size: 18px;
    }

    .nav-card-description {
        font-size: 14px;
    }

    /* Use Case Categories - Mobile */
    .use-case-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        font-size: 28px;
    }

    .use-case-item {
        padding: 16px;
    }

    .use-case-item h4 {
        font-size: 16px;
    }

    /* Licensing CTA Banner - Mobile */
    .licensing-cta-banner {
        padding: 30px 20px;
        min-height: 200px;
        margin-bottom: 30px;
    }

    .licensing-cta-text {
        font-size: 18px;
    }

    .licensing-cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

.call-emma-sidebar-left::-webkit-scrollbar,
.call-emma-sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.call-emma-sidebar-left::-webkit-scrollbar-track,
.call-emma-sidebar-right::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.call-emma-sidebar-left::-webkit-scrollbar-thumb,
.call-emma-sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.call-emma-sidebar-left::-webkit-scrollbar-thumb:hover,
.call-emma-sidebar-right::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ==========================================
   PAGE NAVIGATION BUTTONS
   ========================================== */

.call-emma-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px; 
    padding-top: 40px; 
}

.page-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    border: 2px solid transparent;
}

/* Previous Button - Grey */
.page-nav-btn.prev-btn {
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(156, 163, 175, 0.3);
}

.page-nav-btn.prev-btn:hover {
    background: rgba(100, 100, 100, 0.4);
    border-color: rgba(156, 163, 175, 0.5);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(100, 100, 100, 0.2);
}

.page-nav-btn.prev-btn i {
    color: #9ca3af;
    font-size: 20px;
}

.page-nav-btn.prev-btn:hover i {
    color: #d1d5db;
}

/* Next Button - Blue */
.page-nav-btn.next-btn {
        padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s 
ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    width: 160px;
}

.page-nav-btn.next-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.page-nav-btn.next-btn i {
    color: #3b82f6;
    font-size: 20px;
}

.page-nav-btn.next-btn:hover i {
    color: #60a5fa;
}

/* Text Styling */
.nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
}

.nav-page {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.page-nav-btn:hover .nav-page {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .call-emma-page-nav {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .page-nav-btn {
        min-width: auto;
        width: 100%;
    }

    .page-nav-btn.next-btn {
        margin-left: 0;
    }

    .page-nav-btn.prev-btn:hover,
    .page-nav-btn.next-btn:hover {
        transform: translateY(-2px);
    }

    .nav-page {
        font-size: 15px;
    }
}
