/* Support Pages - DVC Sales Style */

:root {
    --primary-blue: #22527C;
    --accent-blue: #4674C6;
    --bg-warm: #fcfaf4;
    --bg-foreground: #f7f2e0;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #e5e7eb;
}

.support-page {
    background-color: var(--bg-warm);
    font-family: "Raleway", "Open Sans", sans-serif;
    color: var(--primary-blue);
    min-height: 100vh;
}

/* Top Header Banner */
.support-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    padding: 40px 0;
    color: white;
}

.support-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.support-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.support-header p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    color: white;
}

/* Search Box */
.support-search-box {
    max-width: 600px;
    margin: 0 auto 25px;
    position: relative;
}

.support-search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.support-search-box input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.support-search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-blue);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-tab:hover, .category-tab.active {
    background: white;
    color: var(--primary-blue);
}

/* Main Layout */
.support-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
    padding: 20px;
}

/* Left Sidebar */
.support-sidebar-left {
    width: 260px;
    min-width: 260px;
    background: var(--bg-foreground);
    border-right: 1px solid var(--border-color);
    padding-top: 20px;
}

.sidebar-header {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-blue);
    margin-bottom: 10px;
}

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

.sidebar-nav li a {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: #fff;
    border-left-color: var(--accent-blue);
    font-weight: 600;
}

.sidebar-nav li a svg {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--accent-blue);
}

/* Main Content */
.support-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 900px;
}

/* Right Sidebar */
.support-sidebar-right {
    width: 300px;
    min-width: 300px;
    padding: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
}

.sidebar-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-card-link:last-child {
    border-bottom: none;
}

.sidebar-card-link:hover {
    color: var(--accent-blue);
}

.sidebar-card-link img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.category-list a:hover {
    color: var(--accent-blue);
}

.category-list .count {
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
}

.sidebar-cta h4 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    color: white;
}

.sidebar-cta .btn {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Breadcrumb */
.support-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.support-breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Article */
.article-container {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.article-body h2 { font-size: 22px; color: var(--primary-blue); margin: 30px 0 15px; }
.article-body h3 { font-size: 18px; color: var(--primary-blue); margin: 25px 0 12px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 25px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--accent-blue); }
.article-body blockquote { border-left: 4px solid var(--accent-blue); padding: 15px 20px; margin: 20px 0; background: var(--bg-foreground); border-radius: 0 8px 8px 0; }

/* Related */
.related-articles { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border-color); }
.related-articles h3 { font-size: 18px; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.related-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; transition: all 0.2s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.related-card a { text-decoration: none; }
.related-card h4 { font-size: 15px; font-weight: 600; color: var(--primary-blue); margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 90px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

@media (max-width: 1200px) {
    .support-sidebar-right { display: none; }
}

@media (max-width: 1024px) {
    .support-sidebar-left {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 95;
        transition: left 0.3s ease;
        padding-top: 80px;
    }
    .support-sidebar-left.active { left: 0; }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay.active { display: block; }
    .support-content { padding: 20px; max-width: 100%; }
}

@media (max-width: 768px) {
    .support-header { padding: 30px 0; }
    .support-header h1 { font-size: 24px; }
    .category-tab { padding: 8px 15px; font-size: 13px; }
    .article-title { font-size: 22px; }
    .article-container { padding: 20px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* Hide floating footer bar on support pages */
.support-page ~ .job-post-footer,
.support-page + footer .job-post-footer,
body:has(.support-page) .job-post-footer,
.job-post-footer {
    display: none !important;
}
