:root {
    --ds-green: #007a3d;
    --ds-light-green: #f4f9f6;
    --ds-accent: #00a651;
    --text-main: #2c3e50;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    padding: 40px 20px;
    min-height: 100vh;
}

.kb-container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.header-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.header-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

h1 {
    color: var(--ds-green);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

h2 {
    color: var(--ds-green);
    font-size: 1.5rem;
    margin-top: 30px;
    border-left: 4px solid var(--ds-accent);
    padding-left: 15px;
    text-transform: uppercase;
}

h2.master-style, 
.master-header h2 {
    color: white;
    background: var(--ds-green);
    font-size: 1.3rem;
    margin-top: 40px;
    padding: 12px 20px;
    border-radius: 8px;
    letter-spacing: 1px;
    border-left: none;
}

h3 {
    color: var(--ds-green);
    margin-top: 20px;
    font-size: 1.15rem;
}

.search-section {
    text-align: center;
    padding: 50px 20px;
    background: var(--ds-light-green);
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e0ede6;
}

#kbSearch {
    width: 85%;
    max-width: 600px;
    padding: 12px 25px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    color: #444;
    background: white;
}

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

.article-card {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    color: var(--ds-green);
    margin-top: 0;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.article-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.faq-card, .step-box {
    background: var(--ds-light-green);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0ede6;
}

.faq-card strong {
    color: var(--ds-green);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.faq-card p {
    margin: 0;
    display: block;
}

.workflow-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-row, .step-row {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.q-meta, .step-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.q-id, .step-number {
    font-family: 'Courier New', Courier, monospace;
    background: #eee;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #666;
}

.q-label, .step-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ds-green);
}

.help-text, .instruction-text {
    background: var(--ds-light-green);
    border-left: 4px solid var(--ds-accent);
    margin: 10px 0 10px 40px;
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    border-radius: 0 8px 8px 0;
}

.note-box, .compliance-note {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    color: #856404;
}

.important-alert, .alert-box {
    background: #fff5f5;
    border-left: 5px solid #ff5252;
    padding: 15px;
    margin: 20px 0;
    border-radius: 12px;
    color: #721c24;
}

.tip-box, .important-note {
    background: #e7f3ff;
    border-left: 5px solid #2196f3;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.philosophy-box {
    background: #fdfdfd;
    border: 1px dashed var(--ds-accent);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background: var(--ds-green);
    color: white;
    padding: 12px;
    text-align: left;
    border-radius: 8px 8px 0 0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.status-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.role-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.role-tag {
    display: inline-block;
    background: var(--ds-green);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    width: 140px;
    text-align: center;
    margin-right: 15px;
}

.nav-path, code {
    background-color: #f0f0f0;
    padding: 0px 5px;
    border-radius: 5px;
    font-family: Consolas, "Liberation Mono", Courier, monospace;
    font-size: 0.95rem;
    color: #333;
    display: inline-block;
}

.options-box {
    margin: 5px 0 5px 40px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-download, .btn-view {
    background-color: var(--ds-green);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
}

.contact-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    border-top: 1px dashed #ccc;
}

.contact-footer p {
    color: #666;
    font-size: 0.95rem;
}

.contact-footer a {
    color: var(--ds-green);
    font-weight: bold;
    text-decoration: underline;
}

.domain-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #777;
}

/* Video Section Container */
.video-section {
    background: var(--ds-light-green);
    border: 1px solid #e0ede6;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.video-header {
    margin-bottom: 15px;
}

/* Matching your .q-id or .role-tag style */
.video-label {
    display: inline-block;
    background: var(--ds-green);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.video-section h3 {
    margin: 0;
    color: var(--ds-green);
}

/* The Outer Box - Matches your .faq-card / .step-box style */
.video-section {
    background: var(--ds-light-green); 
    border: 1px solid #e0ede6;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

/* The Container - This is what stops the video from expanding */
.video-constraints {
    max-width: 600px; /* This keeps it smaller than the 850px container */
    margin: 0 auto;   /* Centers it */
    border-radius: 8px;
    overflow: hidden; /* Important to keep the corners rounded */
    line-height: 0;   /* Fixes weird bottom gaps */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* The Video Tag - This forces it to fit the 600px box above */
.video-constraints video {
    width: 100% !important;
    height: auto !important;
    display: block;
    background: #000;
}

.domain-footer a {
    color: var(--ds-green);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .domain-footer { flex-direction: column; gap: 10px; text-align: center; }
    .search-section { padding: 30px 10px; }
}