/* Shared styles for all pages */
body { font-family: 'Source Sans 3', system-ui, sans-serif; color: #212121; }
h1, h2, h3, .font-serif { font-family: 'Source Serif 4', Georgia, serif; }

/* Urgent bar */
.urgent-bar { background: #C8102E; }

/* Navigation */
.site-nav { background: #fff; border-bottom: 1px solid #E0E0E0; }

/* Section labels */
.section-label {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #1B3A5C; border-bottom: 2px solid #C8102E;
  padding-bottom: 2px; margin-bottom: 0.75rem;
}

/* Team cards */
.member-card { transition: box-shadow 0.2s; }
.member-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.member-photo { width: 72px; height: 72px; object-fit: cover; object-position: center 15%; border-radius: 4px; }
.member-initials { width: 72px; height: 72px; border-radius: 4px; background: #F5F5F5; color: #757575; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; flex-shrink: 0; }

/* History */
.era-card { border-left: 3px solid #1B3A5C; }
.timeline-year { background: #1B3A5C; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 2px; }

/* Testimonial */
.testimonial-card { border-left: 3px solid #C8102E; }

/* Chatbot */
#chatbot-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.chat-fab { width: 52px; height: 52px; background: #1B3A5C; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 12px rgba(27,58,92,0.35); transition: background 0.2s; }
.chat-fab:hover { background: #2A5A8C; }
.chat-panel { position: absolute; bottom: 64px; right: 0; width: 380px; max-height: 520px; background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); display: none; flex-direction: column; overflow: hidden; border: 1px solid #E0E0E0; }
.chat-panel.open { display: flex; }
@media (max-width: 440px) { .chat-panel { right: -8px; left: -8px; width: auto; bottom: 60px; max-height: 65vh; } }
.chat-header { background: #1B3A5C; color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #FAFAFA; }
.msg-bot { background: #fff; border: 1px solid #EEEEEE; color: #424242; padding: 8px 12px; border-radius: 8px 8px 8px 2px; font-size: 0.8125rem; line-height: 1.5; max-width: 88%; align-self: flex-start; white-space: pre-wrap; }
.msg-user { background: #1B3A5C; color: #fff; padding: 8px 12px; border-radius: 8px 8px 2px 8px; font-size: 0.8125rem; line-height: 1.5; max-width: 88%; align-self: flex-end; }
.chat-footer { border-top: 1px solid #EEEEEE; padding: 8px 12px; display: flex; gap: 6px; align-items: center; background: #fff; }
.chat-input { flex: 1; border: 1px solid #E0E0E0; border-radius: 6px; padding: 7px 10px; font-size: 0.8125rem; outline: none; font-family: inherit; }
.chat-input:focus { border-color: #1B3A5C; }
.btn-send { background: #1B3A5C; color: #fff; border: none; border-radius: 6px; padding: 7px 10px; cursor: pointer; display: flex; align-items: center; }
.btn-send:hover { background: #2A5A8C; }
.btn-mic { background: #fff; border: 1px solid #E0E0E0; border-radius: 6px; padding: 7px; cursor: pointer; color: #757575; display: flex; align-items: center; }
.btn-mic.active { background: #FEE2E2; border-color: #EF4444; color: #EF4444; }
.typing span { display: inline-block; width: 5px; height: 5px; background: #BDBDBD; border-radius: 50%; margin: 0 1.5px; animation: tbounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tbounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Tabs */
.tab-btn { padding: 8px 16px; font-size: 0.8125rem; font-weight: 500; color: #757575; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.tab-btn:hover { color: #1B3A5C; }
.tab-btn.active { color: #1B3A5C; border-bottom-color: #1B3A5C; }

/* Page header */
.page-header { background: #0F2440; color: #fff; padding: 2rem 0; }
.page-header h1 { font-family: 'Source Serif 4', Georgia, serif; }
