/* EXTERNAL LINK: Added the Font Awesome CDN using @import based on user request. */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');
:root {
            --wave-primary: #1D53A5; 	 	 
            --wave-accent: #00B373; 	     
            --wave-light-accent: #F0B542; 	 
            --wave-light-bg: #F0F4F8; 
            --wave-dark-text: #212529; 
            --wave-body-text: #495057; 	
            --wave-white: #ffffff;
            --wave-soft-gray: #E9ECEF; 
        }

        /* --- Base & Global Styles --- */
        body {
            font-family: 'Open Sans', sans-serif;
            color: var(--wave-body-text);
            line-height: 1.6;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            background-color: var(--wave-light-bg); 
        }
        h1, h2, h3 {
            font-family: 'Montserrat', sans-serif;
            color: var(--wave-dark-text);
            line-height: 1.2;
        }
        .wave-section {
            max-width: 1200px; 
            margin: 0 auto;
            padding: 70px 25px;
        }
        a {
            text-decoration: none;
            color: var(--wave-primary);
        }

        /* --- 1. HERO & PROMINENT SEARCH (Image Banner Update) --- */
        .kb-hero {
            /* === NEW IMAGE STYLES START === */
            background-color: var(--wave-primary); /* Fallback color */
            background-image: linear-gradient(rgba(29, 83, 165, 0.8), rgba(29, 83, 165, 0.8)), 
                              url('../../../images/knowledge-base.png'); /* **REPLACE THIS URL** */
            background-size: 100% auto; /* Sets width to 100%, height auto */
            margin-top: -5.5vh;         /* Moves up to overlap previous element */
            z-index: 0;
            background-position: center center;
            /* === NEW IMAGE STYLES END === */
            
            color: var(--wave-white);
            padding: 80px 25px 120px; 
            text-align: center;
            position: relative;
        }
        .kb-hero h1 {
            font-size: 3em;
            font-weight: 800;
            color: var(--wave-white); 
            margin-bottom: 10px;
        }
        .kb-hero p {
            font-size: 1.1em;
            margin-bottom: 40px; 
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Floating Search Container */
        .search-container {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            border: none;
            border-radius: 12px;
            overflow: hidden;
            background-color: var(--wave-white);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
            position: absolute;
            left: 50%;
            bottom: -35px; 
            transform: translateX(-50%);
            width: 95%;
            z-index: 10; /* Ensure search bar is on top */
        }
        .search-container input[type="search"] {
            flex-grow: 1;
            padding: 20px 25px;
            border: none;
            outline: none;
            font-size: 1.1em;
            color: var(--wave-dark-text);
        }
        .search-container button {
            background-color: var(--wave-accent); 
            color: var(--wave-white);
            border: none;
            padding: 20px 30px;
            cursor: pointer;
            font-size: 1.1em;
            transition: background-color 0.3s;
        }
        .search-container button:hover {
            background-color: #008f5c;
        }

        /* --- 2. MAIN CONTENT LAYOUT (Sidebar + Articles) --- */
        .kb-content-wrapper {
            display: grid;
            grid-template-columns: 250px 1fr; 
            gap: 40px;
            padding-top: 100px; 
            align-items: flex-start; 
            text-align: left;
        }
        
        /* --- Sidebar Navigation --- */
        .kb-sidebar {
            position: sticky; 
            top: 20px; 
            padding: 20px 0;
            border-radius: 8px;
            background: var(--wave-white);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        .kb-sidebar h2 {
            font-size: 1.4em;
            font-weight: 700;
            padding: 0 20px 10px;
            margin: 0 0 10px 0;
            border-bottom: 1px solid var(--wave-soft-gray);
            color: var(--wave-dark-text);
        }
        .sidebar-link {
            display: block;
            padding: 12px 20px;
            color: var(--wave-body-text);
            font-weight: 500;
            transition: all 0.2s;
            border-left: 3px solid transparent;
        }
        .sidebar-link:hover {
            background-color: var(--wave-light-bg);
            color: var(--wave-dark-text);
        }
        .sidebar-link.active {
            font-weight: 700;
            color: var(--wave-primary);
            background-color: #E6F0FF; 
            border-left-color: var(--wave-primary);
        }

        /* --- Article Listing (Right Column) --- */
        .article-listing {
            padding: 0;
            text-align: left;
        }

        .article-category-header {
            font-size: 2em; 
            font-weight: 800;
            color: var(--wave-primary);
            margin-bottom: 30px;
            text-align: left;
            padding-top: 15px;
            position: relative;
        }
        .article-category-header .header-icon {
            margin-right: 10px; 
            color: var(--wave-accent); 
        }
        .article-category-header::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background-color: var(--wave-accent);
            margin: 10px 0 0 0;
            border-radius: 2px;
        }

        .accordion-item {
            background: var(--wave-white);
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            border: 1px solid var(--wave-soft-gray);
            scroll-margin-top: 20px; 
        }
        .accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 25px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.1em;
            color: var(--wave-dark-text);
            transition: background-color 0.2s;
        }
        .accordion-header:hover {
            background-color: var(--wave-light-bg);
        }
        .accordion-header i {
            transition: transform 0.3s ease;
            color: var(--wave-primary);
        }
        .accordion-header.active i {
            transform: rotate(90deg);
            color: var(--wave-accent);
        }
        .accordion-content {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.4s ease-out;
            padding: 0 25px;
            color: var(--wave-body-text);
        }
        .accordion-content.active {
            max-height: 2000px;
            padding: 15px 25px 25px 25px;
            border-top: 1px solid var(--wave-soft-gray);
        }
        /* Content Styling Retained */
        .accordion-content dt {
            font-weight: 700;
            color: var(--wave-primary);
            margin-top: 10px;
        }
        .accordion-content dd {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        .app-password-callout {
            border-left: 4px solid var(--wave-light-accent);
            background-color: #FFFBEA; 
            padding: 15px;
            margin: 20px 0;
            border-radius: 4px;
        }


        /* --- 3. CONTACT / ESCALATION CTA --- */
        .contact-cta-section {
            background-color: var(--wave-primary); 
            color: var(--wave-white);
            padding: 80px 25px;
            text-align: center;
            margin-top: 50px;
        }
        .primary-cta-white {
            background-color: var(--wave-white);
            color: var(--wave-primary);
            border: 2px solid var(--wave-white);
            padding: 18px 45px;
            border-radius: 50px;
            text-decoration: none;
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 1.1em;
            transition: all 0.3s ease;
            text-transform: uppercase;
        }
        .primary-cta-white:hover {
            background-color: var(--wave-accent);
            color: var(--wave-white);
            border-color: var(--wave-accent);
        }

        /* --- MOBILE RESPONSIVENESS --- */
        @media (max-width: 992px) {
            .kb-content-wrapper {
                grid-template-columns: 1fr; 
                gap: 20px;
            }
            .kb-sidebar {
                position: static; 
                width: 100%;
                padding: 10px 0;
                order: -1; 
                overflow-x: auto;
                white-space: nowrap;
            }
            .kb-sidebar h2 {
                display: none; 
            }
            .sidebar-link {
                display: inline-block; 
                border-left: none;
                border-bottom: 3px solid transparent;
            }
            .sidebar-link.active {
                border-bottom-color: var(--wave-primary);
                border-left-color: transparent;
            }
            .search-container {
                position: static; 
                transform: none;
                width: 100%;
                margin-top: 20px;
                box-shadow: none;
            }
            .kb-hero {
                padding: 50px 25px 50px; 
            }
        }
        @media (max-width: 768px) {
            .kb-hero h1 { font-size: 2.2em; }
            .search-container { flex-direction: column; border-radius: 8px; }
            .search-container input[type="search"] { border-radius: 8px 8px 0 0; }
            .search-container button { border-radius: 0 0 8px 8px; padding: 15px 30px; }
        }