/* ==========================================================================
   Sonara — shared site stylesheet
   Used by every page instead of duplicating <style> blocks per file.
   ========================================================================== */

:root {
  --sonara-indigo-dark: #1E3A8A;
  --sonara-indigo: #2563EB;
  --sonara-teal: #14B8A6;
  --sonara-mint: #ECFDF5;
  --sonara-text: #374151;
  --sonara-light: #F9FAFB;
  --sonara-card-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
  --sonara-card-shadow-hover: 0 12px 28px rgba(30, 58, 138, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: var(--sonara-text);
}

a {
  transition: color 0.2s ease;
}

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */

.navbar {
  background-color: var(--sonara-indigo);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand,
.nav-link {
  color: var(--sonara-light) !important;
  font-weight: 500;
}

.nav-link {
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--sonara-teal) !important;
}

.nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -2px;
  height: 2px;
  background-color: var(--sonara-teal);
  border-radius: 2px;
}

.logo-image {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-right: 10px;
  padding: 4px 0;
  background-color: #E0F2FE;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand:hover .logo-image {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .logo-image {
    width: 110px;
  }
}

/* ---------------------------------------------------------------------- */
/* Header / hero section                                                  */
/* ---------------------------------------------------------------------- */

.header-section {
  padding: 70px 20px;
  background: linear-gradient(180deg, var(--sonara-mint) 0%, #ffffff 100%);
  text-align: center;
}

.header-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sonara-indigo-dark);
  letter-spacing: -0.01em;
}

.header-section .lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--sonara-text);
}

.slogan {
  font-style: italic;
  color: var(--sonara-teal);
  font-size: 1.2rem;
  margin-top: 10px;
}

.header-section .social-links {
  margin-top: 1.25rem;
}

.header-section .social-links .btn {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
}

/* ---------------------------------------------------------------------- */
/* Mission / generic content sections                                     */
/* ---------------------------------------------------------------------- */

.mission-section {
  padding: 60px 20px;
  background: #ffffff;
}

.mission-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--sonara-indigo-dark);
  margin-bottom: 30px;
}

.mission-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sonara-text);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section {
  padding: 80px 15px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--sonara-indigo-dark);
}

.highlight {
  color: var(--sonara-teal);
  font-weight: bold;
}

/* ---------------------------------------------------------------------- */
/* Cards (advisors, board, interests, partners, episodes)                 */
/* ---------------------------------------------------------------------- */

.card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--sonara-card-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sonara-card-shadow-hover);
}

.card-img-top {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background-color: var(--sonara-mint);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sonara-indigo-dark);
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

.card .btn-outline-primary {
  border-color: var(--sonara-indigo);
  color: var(--sonara-indigo);
  margin-top: auto;
}

.card .btn-outline-primary:hover {
  background-color: var(--sonara-indigo);
  border-color: var(--sonara-indigo);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn-primary {
  background-color: var(--sonara-indigo);
  border-color: var(--sonara-indigo);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--sonara-indigo-dark);
  border-color: var(--sonara-indigo-dark);
}

.btn-podcast {
  display: inline-block;
  background-color: var(--sonara-indigo);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  margin: 8px 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-podcast:hover {
  background-color: var(--sonara-indigo-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* Podcast-specific sections                                               */
/* ---------------------------------------------------------------------- */

.podcast-section {
  padding: 50px 20px;
}

.podcast-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--sonara-indigo-dark);
  margin-bottom: 20px;
}

.podcast-text {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--sonara-text);
}

/* ---------------------------------------------------------------------- */
/* Events                                                                  */
/* ---------------------------------------------------------------------- */

.event-image {
  box-shadow: var(--sonara-card-shadow);
}

.event-text {
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.footer {
  background-color: var(--sonara-indigo-dark);
  color: var(--sonara-light);
  text-align: center;
  padding: 28px 0;
  margin-top: 40px;
}

.footer a {
  color: var(--sonara-teal);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  margin-bottom: 0.25rem;
}

/* ---------------------------------------------------------------------- */
/* Episode search widget (chat-style, grounded, no-LLM)                   */
/* ---------------------------------------------------------------------- */

#episode-search-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.ep-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sonara-indigo);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ep-search-toggle:hover {
  background-color: var(--sonara-indigo-dark);
  transform: translateY(-2px);
}

.ep-search-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 440px;
  max-height: 70vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ep-search-header {
  background-color: var(--sonara-indigo-dark);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-search-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ep-search-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #F9FAFB;
}

.ep-search-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}

.ep-search-msg-user {
  background-color: var(--sonara-indigo);
  color: #ffffff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.ep-search-msg-bot {
  background-color: #ffffff;
  color: var(--sonara-text);
  border: 1px solid #E5E7EB;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.ep-search-msg-bot a {
  color: var(--sonara-indigo);
  font-weight: 600;
}

.ep-search-results {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.ep-search-results li {
  margin-bottom: 10px;
}

.ep-search-excerpt {
  font-style: italic;
  color: #555;
  font-size: 0.85rem;
  margin-top: 2px;
}

.ep-search-form {
  display: flex;
  border-top: 1px solid #E5E7EB;
  padding: 10px;
  gap: 8px;
}

.ep-search-input {
  flex: 1;
  border: 1px solid #D1D5DB;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.ep-search-input:focus {
  outline: none;
  border-color: var(--sonara-indigo);
}

.ep-search-send {
  background-color: var(--sonara-teal);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.ep-search-send:hover {
  background-color: var(--sonara-indigo-dark);
}

@media (max-width: 480px) {
  .ep-search-panel {
    width: calc(100vw - 24px);
    right: -8px;
  }

  .ep-search-toggle span {
    display: none;
  }
}
