/* ===== CHATBOT PAGE ===== */
.chatbot-page {
    background: #f4f6fb;
}

/* ===== HERO ===== */
.chatbot-hero {
    padding: 130px 0 70px;
    background: linear-gradient(135deg, #0e1f3d 0%, #1D3461 45%, #1a2d5a 70%, #7a1a22 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated dot grid */
.chatbot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(200,150,42,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Gold accent top bar */
.chatbot-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C8962A, #f0c060, #C8962A);
}

.chatbot-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.chatbot-badge {
    display: inline-block;
    background: rgba(200,150,42,0.18);
    border: 1px solid rgba(200,150,42,0.4);
    color: #f0c060;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.chatbot-intro h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #fff;
}

.chatbot-intro h2 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.82);
}

.chatbot-intro p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.75);
}

/* Question Chips */
.question-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.chip:hover {
    background: rgba(200,150,42,0.25);
    border-color: rgba(200,150,42,0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Avatar */
.chatbot-avatar {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(200,150,42,0.6);
    box-shadow: 0 0 0 8px rgba(200,150,42,0.1), 0 20px 50px rgba(0,0,0,0.4);
    animation: floatAvatar 4s ease-in-out infinite;
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

.avatar-status {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid #1D3461;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.3);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0.1); }
}

/* ===== CHAT INTERFACE ===== */
.chat-interface {
    padding: 56px 0 64px;
}

.chat-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.10), 0 2px 8px rgba(29,52,97,0.06);
    overflow: hidden;
    border: 1px solid rgba(29,52,97,0.12);
    max-width: 860px;
    margin: 0 auto;
}

/* Chat Header — dark navy */
.chat-header {
    padding: 18px 26px;
    background: linear-gradient(135deg, #1D3461 0%, #243f75 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(200,150,42,0.3);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200,150,42,0.5);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.chat-header-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.chat-status {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
}

.action-btn:hover {
    background: rgba(200,150,42,0.3);
    border-color: rgba(200,150,42,0.5);
    color: #fff;
    transform: scale(1.08);
}

/* Chat Messages Area */
.chat-messages {
    height: 480px;
    overflow-y: auto;
    padding: 28px 28px 16px;
    background: #f7f9fe;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(29,52,97,0.15); border-radius: 10px; }

.message-row {
    display: flex;
    gap: 12px;
    animation: msgIn 0.28s cubic-bezier(0.25,0.8,0.25,1);
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.message-row.bot  { align-items: flex-start; }
.message-row.user { flex-direction: row-reverse; }

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.bot-av {
    background: #fff;
    border: 2px solid rgba(200,150,42,0.35);
    box-shadow: 0 2px 8px rgba(29,52,97,0.18);
    overflow: hidden;
}

.bot-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-av {
    background: linear-gradient(135deg, #1D3461, #2E5AA8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.message-content {
    max-width: 72%;
}

.message-bubble {
    background: #fff;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    color: #1e2a3a;
    line-height: 1.75;
    font-size: 15px;
    border: 1px solid rgba(29,52,97,0.08);
    word-break: break-word;
}

.message-row.user .message-bubble {
    background: linear-gradient(135deg, #1D3461, #2457a0);
    color: white;
    border-radius: 18px 18px 4px 18px;
    border: none;
    box-shadow: 0 4px 16px rgba(29,52,97,0.25);
}

/* Inline code */
.message-bubble code {
    background: rgba(29,52,97,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.message-row.user .message-bubble code {
    background: rgba(255,255,255,0.2);
}

/* Message meta row (time + action buttons) */
.message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.message-time {
    font-size: 11px;
    color: #94a3b8;
}

.message-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message-row:hover .message-actions { opacity: 1; }

.msg-action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 7px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.msg-action-btn:hover { background: #f1f5f9; color: #1D3461; border-color: #c8d5e8; }
.msg-action-btn.copied { color: #16a34a; border-color: #16a34a; background: #f0fdf4; }
.msg-action-btn.liked  { color: #C8962A; border-color: #C8962A; background: #fffbeb; }

/* Streaming cursor */
.stream-cursor {
    display: inline-block;
    color: #1D3461;
    font-weight: 400;
    animation: blink 0.75s step-end infinite;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: #f7f9fe;
    border-top: 1px solid #e8eef8;
}

.typing-indicator.active { display: flex; }

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: #1D3461;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
    opacity: 0.5;
}

.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-6px); opacity: 1; }
}

.typing-indicator > span {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px 20px;
    background: white;
    border-top: 1px solid #edf0f7;
}

.suggestions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: #f0f4ff;
    border: 1px solid #dbe4f5;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 500;
    color: #1D3461;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: #1D3461;
    color: white;
    border-color: #1D3461;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29,52,97,0.25);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    background: #f5f7ff;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    border: 1.5px solid rgba(29,52,97,0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-end;
}

.input-wrapper:focus-within {
    border-color: #1D3461;
    box-shadow: 0 0 0 3px rgba(29,52,97,0.08);
}

.input-wrapper input, .input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    color: #1e2a3a;
    outline: none;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder { color: #94a3b8; }

.input-wrapper input:disabled,
.input-wrapper textarea:disabled { opacity: 0.6; cursor: not-allowed; }

.input-wrapper button {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1D3461, #2457a0);
    color: white;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper button:hover:not(:disabled) {
    background: linear-gradient(135deg, #C8962A, #e0aa44);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(200,150,42,0.4);
}

.input-wrapper button:disabled { opacity: 0.5; cursor: not-allowed; }

.powered-note {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
}

/* ===== KNOWLEDGE CATEGORIES ===== */
.knowledge-categories {
    padding: 80px 0;
    background: linear-gradient(180deg, #f4f6fb 0%, #fff 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.category-card {
    background: white;
    padding: 28px 22px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #1D3461;
    box-shadow: 0 16px 36px rgba(29,52,97,0.12);
}

.category-icon { font-size: 44px; margin-bottom: 16px; }

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e2a3a;
}

.category-topics { list-style: none; margin-bottom: 18px; }

.category-topics li {
    padding: 7px 0;
    color: #64748b;
    font-size: 13.5px;
    border-bottom: 1px dashed #e8eef8;
}

.category-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1D3461, #2457a0);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(29,52,97,0.3);
    background: linear-gradient(135deg, #C8962A, #e0aa44);
}

/* ===== SAMPLE QUESTIONS ===== */
.sample-questions {
    padding: 80px 0;
    background: white;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.question-card {
    background: #f7f9fe;
    padding: 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    text-align: left;
    width: 100%;
    font-size: 14.5px;
    color: #1e2a3a;
    font-family: inherit;
}

.question-card:hover {
    background: white;
    border-color: #1D3461;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(29,52,97,0.1);
    color: #1D3461;
}

.question-icon { font-size: 22px; flex-shrink: 0; }

/* ===== QUIZ SELECTOR PANEL (inside chat bubble) ===== */
.quiz-sel-bubble {
    background: #fff;
    border: 1.5px solid rgba(29,52,97,0.12) !important;
    min-width: 280px;
    max-width: 100%;
}

.qs-section {
    margin-bottom: 14px;
}

.qs-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 7px;
}

.qs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qs-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #dbe4f5;
    background: #f7f9fe;
    color: #1D3461;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    line-height: 1.4;
}

.qs-chip:hover {
    border-color: #1D3461;
    background: #e8edf8;
}

.qs-chip.active {
    background: #1D3461;
    color: #fff;
    border-color: #1D3461;
    font-weight: 600;
}

.qs-start-btn {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    background: linear-gradient(135deg, #C8962A, #e0aa44);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.qs-start-btn:hover {
    background: linear-gradient(135deg, #b5841f, #c8962a);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200,150,42,0.35);
}

/* ===== ARTICLE LINKS IN CHAT ===== */
.chat-link {
    color: #C8962A;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(200, 150, 42, 0.35);
    transition: color 0.18s ease, border-color 0.18s ease;
    word-break: break-all;
}

.chat-link:hover {
    color: #1D3461;
    border-bottom-color: #1D3461;
}

.message-row.user .message-bubble .chat-link {
    color: #FFD060;
    border-bottom-color: rgba(255, 208, 96, 0.4);
}

.message-row.user .message-bubble .chat-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .chatbot-hero-content { grid-template-columns: 1fr; text-align: center; }
    .chatbot-avatar { order: -1; }
    .question-chips { justify-content: center; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .questions-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .chatbot-intro h1 { font-size: 38px; }
    .chatbot-intro h2 { font-size: 22px; }
    .chatbot-avatar   { width: 200px; height: 200px; }
    .chat-messages    { height: 400px; }
    .categories-grid  { grid-template-columns: 1fr; }
    .questions-grid   { grid-template-columns: 1fr; }
    .message-content  { max-width: 86%; }
}

@media (max-width: 480px) {
    .chat-header     { flex-direction: column; gap: 10px; }
    .suggestions-row { display: none; }
    .message-content { max-width: 100%; }
    .message-actions { display: none; }
}

/* ==========================================================================
   PROFESSIONAL UPGRADES — appended overrides
   ========================================================================== */

/* ── Hero typography fix ── */
.chatbot-intro h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
}

.chatbot-intro h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: rgba(255,255,255,0.75);
}

/* ── Feature strip (3 cards after hero, before chat) ── */
.steami-features {
    background: #f4f6fb;
    border-bottom: 1px solid #e0e6f0;
    padding: 52px 0;
}

.steami-features-header {
    text-align: center;
    margin-bottom: 36px;
}

.steami-features-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8962A;
    background: rgba(200,150,42,0.1);
    border: 1px solid rgba(200,150,42,0.25);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.steami-features-title {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: #102A43;
    letter-spacing: -0.02em;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E4E4E7;
    border-left-width: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
}

.feature-item:nth-child(1) { border-left-color: #1E5AA8; }
.feature-item:nth-child(2) { border-left-color: #C8962A; }
.feature-item:nth-child(3) { border-left-color: #22C55E; }

.feature-item + .feature-item::before { display: none; }

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.feature-icon.navy  { background: #EEF2FF; color: #1E5AA8; }
.feature-icon.gold  { background: #FFFBEB; color: #C8962A; }
.feature-icon.green { background: #F0FDF4; color: #22C55E; }

.feature-body .feat-title {
    font-size: 14px;
    font-weight: 700;
    color: #102A43;
    margin-bottom: 4px;
}

.feature-body .feat-sub {
    font-size: 12.5px;
    color: #71717A;
    line-height: 1.55;
}

/* ── Category cards — professional ── */
.category-card {
    position: relative;
    border-top: 3px solid transparent;
    transition: border-top-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.category-card[data-category="robotics"]   { --cat-accent: #1E5AA8; }
.category-card[data-category="science"]    { --cat-accent: #059669; }
.category-card[data-category="technology"] { --cat-accent: #7C3AED; }
.category-card[data-category="engineering"]{ --cat-accent: #D97706; }
.category-card[data-category="arts"]       { --cat-accent: #DB2777; }
.category-card[data-category="math"]       { --cat-accent: #0891B2; }
.category-card[data-category="policy"]     { --cat-accent: #C1121F; }
.category-card[data-category="enrollment"] { --cat-accent: #22C55E; }

.category-card:hover { border-top-color: var(--cat-accent, #1E5AA8) !important; }

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #EEF2FF;
    color: #1E5AA8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: background 0.25s, transform 0.25s;
}

.category-card[data-category="robotics"]    .category-icon { background: #EEF2FF; color: #1E5AA8; }
.category-card[data-category="science"]     .category-icon { background: #F0FDF4; color: #059669; }
.category-card[data-category="technology"]  .category-icon { background: #F5F3FF; color: #7C3AED; }
.category-card[data-category="engineering"] .category-icon { background: #FFFBEB; color: #D97706; }
.category-card[data-category="arts"]        .category-icon { background: #FDF2F8; color: #DB2777; }
.category-card[data-category="math"]        .category-icon { background: #ECFEFF; color: #0891B2; }
.category-card[data-category="policy"]      .category-icon { background: #FEF2F2; color: #C1121F; }
.category-card[data-category="enrollment"]  .category-icon { background: #F0FDF4; color: #22C55E; }

.category-card:hover .category-icon {
    background: color-mix(in srgb, var(--cat-accent, #1E5AA8) 12%, white);
    transform: scale(1.08);
}

/* ── Section header — cleaner ── */
.chatbot-page .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.chatbot-page .section-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E5AA8;
    background: #EEF2FF;
    border-radius: 50px;
    padding: 5px 16px;
    margin-bottom: 12px;
}

.chatbot-page .section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #102A43;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.chatbot-page .section-description {
    font-size: 15px;
    color: #71717A;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Question cards — refined ── */
.question-card {
    border-radius: 12px !important;
    padding: 16px !important;
    gap: 12px !important;
}

.question-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.question-card:hover .question-icon {
    background: #1D3461;
    color: #fff;
}

/* ── Chat container — subtle upgrade ── */
.chat-container {
    border-radius: 20px !important;
    box-shadow: 0 8px 40px rgba(16,42,67,0.12), 0 0 0 1px rgba(16,42,67,0.06) !important;
}

.chat-header {
    background: linear-gradient(135deg, #102A43 0%, #1D3461 100%) !important;
    border-bottom: 2px solid rgba(200,150,42,0.4) !important;
}

/* ── Knowledge section background ── */
.knowledge-categories {
    background: #F7FAFC !important;
}

/* ── Chips — tighter ── */
.chip {
    font-size: 12.5px !important;
    padding: 8px 16px !important;
}

/* ── Chat divider & section heading ── */
.message-bubble hr.chat-divider {
    border: none;
    border-top: 1px solid rgba(29,52,97,0.12);
    margin: 10px 0;
}

.message-bubble .chat-section-head {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1E5AA8;
    background: #EEF2FF;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 2px 0 4px;
}

/* ── Feature strip responsive ── */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-item + .feature-item::before { display: none; }
    .steami-features { padding: 36px 0; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}

/* ── Professional chat redesign (no AI icon) ── */

/* Bot message bubble: subtle left accent instead of icon-heavy feel */
.message-row.bot .message-bubble {
    border-left: 3px solid rgba(29,52,97,0.18);
    background: #fff;
    border-radius: 4px 18px 18px 4px;
}

/* Slightly softer background for the messages area */
.chat-messages {
    background: #f5f7fc !important;
}

/* User avatar — cleaner label */
.user-av {
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
}

/* Chat header — remove image padding gap */
.chat-header-info {
    gap: 12px;
}

/* Header title size */
.chat-header-info h3 {
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* Status line — slimmer */
.chat-status {
    font-size: 11.5px;
    line-height: 1.3;
}
