/* 
 * Berean.ai - Main Stylesheet
 * This file contains the main styles for the Berean.ai website
 */

:root {
  /* Color Palette */
  --primary-blue: #d0d6f6;
  --secondary-blue: #e9f7fe;
  --accent-color: #007bff;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --text-color: #333333;
  --text-light: #6c757d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --dark: #343a40;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.5;
  --line-height-heading: 1.2;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-pill: 50rem;
  --border-width: 1px;
  --border-color: #dee2e6;
  
  /* Shadows */
  --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-fast: all 0.1s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* Base Styles */
body {
  background: linear-gradient(135deg, #5B86E5 0%, #36D1DC 100%);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  position: relative;
}

/* Subtle overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-sm); }
h6 { font-size: var(--font-size-sm); }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: darken(var(--accent-color), 10%);
  text-decoration: underline;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: var(--font-weight-normal);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: var(--border-width) solid transparent;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border-radius: 0;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  color: var(--white) !important;
  background: linear-gradient(135deg, #0066cc 0%, #4d94ff 100%) !important;
  border-color: #0066cc !important;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3 0%, #3d7acc 100%) !important;
  border-color: #0052a3 !important;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* More specific selector for the Ask button */
.btn.btn-primary {
  color: var(--white) !important;
  background: linear-gradient(135deg, #0066cc 0%, #4d94ff 100%) !important;
  border-color: #0066cc !important;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3 0%, #3d7acc 100%) !important;
  border-color: #0052a3 !important;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.btn.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Add pulsing animation for the Ask button */
@keyframes button-pulse {
  0% {
    box-shadow: 
      0 4px 15px rgba(0, 102, 204, 0.3),
      0 2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(0, 102, 204, 0.7),
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(0, 102, 204, 0.5);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 
      0 4px 15px rgba(0, 102, 204, 0.3),
      0 2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
}

#submit-question {
  animation: button-pulse 2s infinite ease-in-out !important;
  position: relative;
  z-index: 10;
}

/* Ensure the button has the proper styling */
#submit-question.btn.btn-primary {
  animation: button-pulse 2s infinite ease-in-out !important;
}

.btn-secondary {
  color: var(--white);
  background-color: var(--text-light);
  border-color: var(--text-light);
  border-radius: 0;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.btn-danger {
  color: var(--white);
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* Card Styles */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #F8F9FA;
  background-clip: border-box;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-lg);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: var(--spacing-md);
  margin-bottom: 0;
  background-color: #F8F9FA;
  border-bottom: var(--border-width) solid var(--border-color);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  color: #333333;
}

.card-body {
  flex: 1 1 auto;
  padding: var(--spacing-md);
  background-color: #F8F9FA;
  color: #333333;
}

.card-footer {
  padding: var(--spacing-md);
  background-color: #F8F9FA;
  border-top: var(--border-width) solid var(--border-color);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #333333;
}

/* Form Styles */
.form-control {
  display: block;
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background: #ffffff;
  background-clip: padding-box;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 60px;
  resize: none;
}

.form-control:hover {
  background: #ffffff;
  border-color: #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
  color: var(--text-color);
  background: #ffffff;
  border-color: var(--accent-color);
  outline: 0;
  box-shadow: 
    0 0 0 3px rgba(0, 123, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Style for spell check underlines */
.form-control::spelling-error {
  text-decoration: wavy underline var(--danger-color);
}

.form-control::placeholder {
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-control:placeholder-shown::placeholder {
  opacity: 0.8;
}

/* Smooth height transition */
.form-control {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.2s ease-in-out;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  gap: 0;
  z-index: 1050 !important;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: var(--border-radius-lg) !important;
  border-bottom-left-radius: var(--border-radius-lg) !important;
}

.input-group > .btn {
  padding: 0 var(--spacing-xl);
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: var(--border-radius) !important;
  border-bottom-right-radius: var(--border-radius) !important;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  margin-left: -1px;
  background: #007bff;
  border: 2px solid #007bff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

/* Additional specific selector for textarea in input group */
.input-group > textarea.form-control {
  border-top-left-radius: var(--border-radius-lg) !important;
  border-bottom-left-radius: var(--border-radius-lg) !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .btn:hover {
  background: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.input-group > .btn:active {
  transform: scale(0.98);
}

/* Add focus-within effect to the whole input group */
.input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group-lg > .form-control {
  min-height: 60px;
  font-size: 1.1rem;
}

/* FAQ Question Styles - Modern Clean Cards */
.faq-question {
  margin: 8px 0;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid #e9ecef;
  border-left: 3px solid #007bff;
  display: flex;
  align-items: center;
  min-height: 50px;
  cursor: pointer;
}

.faq-question:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left-color: #0056b3;
  background: #ffffff;
}

.faq-question a {
  color: #2c3e50 !important;
  text-decoration: none;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
}

.faq-question:hover a {
  color: #1a252f !important;
}

/* Pulse animation for new questions */
@keyframes subtle-pulse {
  0% { transform: scale(1); box-shadow: var(--shadow-sm); }
  50% { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
  100% { transform: scale(1); box-shadow: var(--shadow-sm); }
}

.faq-question.new {
  animation: subtle-pulse 2s infinite;
}

/* FAQ Container Styles */
.faq-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 24px;
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Category Styles */
.faq-category {
  width: 100%;
  margin: 0 0 30px 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  border-left: 3px solid var(--accent-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
}

.faq-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Different accent colors and background patterns for each category */
.faq-category:nth-child(1) {
  border-left-color: #28a745; /* Biblical - Green */
}

.faq-category:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM3 19V6h8v13H3zm18 0h-8V6h8v13z'/%3E%3Cpath d='M9 9h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2z'/%3E%3C/svg%3E");
}

.faq-category:nth-child(2) {
  border-left-color: #17a2b8; /* Theological - Cyan */
}

.faq-category:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317a2b8'%3E%3Cpath d='M10.5 2h3v8.5H22v3h-8.5V22h-3v-8.5H2v-3h8.5V2z'/%3E%3C/svg%3E");
}

.faq-category:nth-child(3) {
  border-left-color: #ffc107; /* Practical - Yellow */
}

.faq-category:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E");
}

.faq-category:nth-child(4) {
  border-left-color: #dc3545; /* Life - Red */
}

.faq-category:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.faq-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-category-title {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: #2c3e50;
  margin: 0 0 15px 0;
  padding: 0 0 10px 0;
  border-bottom: 2px solid var(--accent-color);
  width: 100%;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.category-icon {
  font-size: 1.1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.faq-category:hover .category-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Category title colors matching their accent borders */
.faq-category:nth-child(1) .faq-category-title {
  border-bottom-color: #28a745;
  color: #28a745;
}

.faq-category:nth-child(2) .faq-category-title {
  border-bottom-color: #17a2b8;
  color: #17a2b8;
}

.faq-category:nth-child(3) .faq-category-title {
  border-bottom-color: #ffc107;
  color: #d68910;
}

.faq-category:nth-child(4) .faq-category-title {
  border-bottom-color: #dc3545;
  color: #dc3545;
}

/* Daily Devotion title styling */
#daily_Reflection {
  border-bottom-color: #8B4513;
}

.faq-category .d-flex {
  margin-top: 20px;
  gap: 15px;
}

/* Show More Button Styles */
#show-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-md) auto;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  width: auto;
  height: auto;
}

#show-more-button:hover {
  background-color: darken(var(--accent-color), 10%);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

#show-more-button::before {
  content: "+";
  margin-right: var(--spacing-xs);
  font-size: 1.2em;
}

/* Hidden Questions Animation */
.faq-question.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-question:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-question {
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 5px;
    min-height: 45px;
  }
  
  .faq-question a {
    font-size: 0.9rem;
  }
  
  .faq-category-title {
    font-size: 1.1rem;
  }
}

/* Section Styles */
.custom-section {
  padding: 10px 0;
  margin: 0;
  background-color: var(--secondary-blue);
}

.custom-full-width-section {
  width: 100%;
  padding: 10px 0;
  margin: 0;
}

/* Navigation Styles */
.navbar {
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: var(--transition-base);
  box-shadow: none;
}

.navbar-brand {
  color: var(--white);
  font-weight: var(--font-weight-bold);
  transition: var(--transition-base);
}

.navbar-brand:hover {
  color: var(--accent-color);
}

.navbar-nav .nav-link {
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: var(--transition-base);
  position: relative;
  font-weight: 500;
  border-radius: 6px;
  margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Fix for PulpitIQ link */
.nav-link[href="https://berean.ai/pulpitiq"] {
  font-weight: normal;
}

.nav-link[href="https://berean.ai/pulpitiq"]:hover {
  font-weight: bold;
}

/* More specific fix for PulpitIQ link with b tag */
.nav-link[href="https://berean.ai/pulpitiq"] b {
  font-weight: normal;
}

.nav-link[href="https://berean.ai/pulpitiq"]:hover b {
  font-weight: bold;
}

/* Remove active class styling for PulpitIQ but keep hover effect */
.nav-link[href="https://berean.ai/pulpitiq"].active::after {
  width: 0;
}

.nav-link[href="https://berean.ai/pulpitiq"]:hover::after {
  width: 80%;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #4d94ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile hamburger menu styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.98) 0%, rgba(44, 82, 130, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }
  
  .navbar-nav .nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
  }
  

  
  /* Hamburger button styling */
  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  }
}

/* Footer Styles */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-xxl) 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-pill { border-radius: var(--border-radius-pill); }

.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 1.5rem;
    --spacing-xxl: 2rem;
  }
  
  .card {
    margin-bottom: var(--spacing-md);
  }
  
  .faq-question {
    padding: var(--spacing-xs);
    margin: var(--spacing-xs);
  }
}

/* Existing styles below */
body {
  background-color: #46688c; 
}
body, .footer {
  background-color: #6d99c4; 
}
.footer-margin-top {
  margin-top: 165px;
}
#audio-button {
  padding: 0.2rem 0.4rem;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

#audio-button img {
  height: 20px; 
  width: auto; 
}
#repeat-button,
#copy-button,
#print-button,
#askAnother,
#feedback,
.card-footer .btn {
  height: 31px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
}

#repeat-button img,
#copy-button img,
#print-button i,
.card-footer .btn img,
.card-footer .btn i {
  height: 16px !important;
  width: auto !important;
}

.btn .ms-1,
#print-button .ms-1 {
  font-size: 14px !important;
  margin-left: 4px !important;
}

/* Override any existing button styles */
.btn, 
.btn-primary, 
.btn-secondary,
.btn-danger,
.btn-link {
  border-radius: 4px !important;
}

/* Override for specific button states */
.btn:hover,
.btn:focus,
.btn:active,
.btn.active {
  border-radius: 4px !important;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-link {
  color: inherit;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: none;
}

#copy-question {
  display: flex;
  align-items: center;
  color: #6c757d;
  transition: color 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

#copy-question:hover {
  color: #3336f8;
  text-decoration: none;
}

#copy-question img {
  height: 20px;
  width: 20px;
  margin-right: 4px;
}

#repeat-button img {
  height: 20px; 
  width: auto; 
}
#copy-button img {
  height: 20px; 
  width: auto; 
}
#feedback {
  background-color: #83c2ef;
  border: #68b7f0;
  color: black;
  padding: 0.2rem 0.4rem; 
}

.footer .d-flex {
  align-items: center; 
  justify-content: center;
}
.footer .d-flex span {
  margin-left: 10px; 
}
#language-button {
  background: url('/images/language.png') no-repeat center center; 
  background-size: contain; 
  border: none; 
  padding: 10px;
  background-color: transparent; 
  outline: none; 
}
#language-button img {
  display: none;
}
.example {
  padding-left: 20px;
  color: #636687;
}

.language-container {
  width: 200px; 
  height: 100px; 
  overflow-y: scroll; 
  border: 1px solid #ccc;
}

.language-container ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-container li {
  padding: 5px 10px;
  border-bottom: 1px solid #eee; 
}

.logo-ideas-size {
  height: 50px;
  width: auto; 
}
.hidden {
  display: none;
}
#examples-box {
  width: 300px; 
  border: 1px solid #d4e8f5;
  position: absolute;
  background-color: #8ec6ec;
  z-index: 10;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  top: 40%; 
  left: 10%; 
  border-radius: 10px;
  color: #000000;
}

#examples-box :hover {
  background-color: #8f8c8c;
  cursor: pointer; 
  color: #ffffff; 
}

#Multilingual {
  padding-top: 0; 
  margin-left: 10px;
}
#languaje-button{
  display: flex; 
  align-items: center;
  justify-content: center; 
}

.custom-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.custom-section p {
  color: #666;
  margin-bottom: 1.5rem;
}

.custom-section .btn-primary {
  background-color: #0056b3;
  border-color: #004494;
}

.custom-section .rating {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

.custom-section .rating span {
  display: inline-block;
  margin-right: 0.5rem;
}

.custom-section .template-card {
  display: flex;
  flex-direction: row; 
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 0.5rem;
}

.custom-section .template-card .card-body {
  flex-grow: 1;
}

.custom-section .template-card .card-img-right {
  max-width: 50%; 
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  object-fit: cover;
}

@media (max-width: 767px) {
  .custom-section .template-card {
    flex-direction: column;
  }

  .custom-section .template-card .card-img-right {
    max-width: 100%; 
    border-radius: 0.5rem 0.5rem 0 0; 
  }
}

.custom-full-width-section {
  margin-top: 5%; 
}
.list-group-item {
  background-color: transparent; 
  color:#000000 

}
.justify-content-center {
  margin-top: 50px; 

}

.example {
  color: #ffffff; 
  text-align: center; 
  margin-top: 10%;
  margin-top: 20px;
  padding: 0%;
}
.personalM {
  color: #f2eed7 ; 
  text-align: center; 
  margin-top: 20px;
  padding: 0%;
  font-weight: bold;
  font-size: larger;
}
.personalC {
  color: #ffffff;
  text-align: center;
  margin: 5px 0 20px 0;
  padding: 0;
  font-weight: bold;
  line-height: 1.2;
}

.quiz {
  color: #ffffff ; 
  text-align: center; 
  margin-top: 10%;
  margin-top: 20px;
  padding: 0%;
  font-weight: bold;
  font-size: xx-large;
}


.containerNav {
  position:sticky;
  top:0;
  z-index:1000;
  background: #6d99c4;
  width: 100%;

}

.navbar {
  margin-right: auto;  
  margin-left: auto;
  max-width: 1200px; 
}

.zoomed {
  transform: scale(1.3); 
  transition: transform 0.3s, z-index 0s, position 0s;
  z-index: 1000;
  position: relative;
}


.template-card.zoomed {
  transform: scale(1.3); 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.3);
  transition: transform 0.3s ease;
}

.custom-section {
  border-radius: 25px; 
  overflow: hidden; 
  margin: 2rem 0; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-inner-section {
  background-color: #f8f9fa;
  text-align: center;
  border-radius: 25px; 
  padding: 2rem; 
  margin: -3rem; 
}


.so-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 50%, #c2cbf7 50%);
}

.so-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 50%, #fff 50%);
}

.no-margin {
  margin-right: 0;
  margin-left: 0;
}


.element {
  padding: 1rem; 
}


@media (max-width: 767px) {
  
  img.img-fluid {
    width: 250%;
    max-width: 250%; 
    height: auto;
    padding-bottom: 10%;  
    padding-top: 10%;
  }
  .navbar-collapse {
    display: flex;
    justify-content: center;
  }
  .navbar-brand{
    padding-left: 5%;
  }

  
 
}

.example a {
    color: white; 
    text-decoration: none; 
}

.example a:hover {
    text-decoration: none; 
}

.example a:visited {
    text-decoration: none;
}

.foter{
  padding-bottom: 2.5%;
}

@font-face {
  font-family: 'Good Times Regular';
  src: url('/font/GOODTIME.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.bereanTitle {
  color: var(--white);
  margin: 0 auto;
  font-family: 'Good Times Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
  text-decoration: none;
  display: block;
  font-size: 40px;
  will-change: transform;
  transform: translateZ(0);
  transition: all 0.3s ease;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.bereanTitle:hover {
  color: gold;
  text-decoration: none;
  text-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

/* Counter Styles */
.counter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  padding-top: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.counter {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.2s ease;
}

.counter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Daily Insights Styles */
.daily-insights-container {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.daily-insight-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px 14px 24px !important;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  color: #007bff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 2px solid rgba(0, 123, 255, 0.2);
  cursor: pointer;
  touch-action: manipulation;
}

.daily-insight-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #0056b3;
  text-decoration: none;
  background: #ffffff;
  border-color: rgba(0, 123, 255, 0.4);
}

.daily-insight-link i {
  font-size: 1rem;
  color: #007bff;
  pointer-events: none;
}

.daily-insight-link:hover i {
  color: #0056b3;
}

.daily-insight-link span {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  pointer-events: none;
}

.daily-insight-link .fa-chevron-right {
  font-size: 0.75rem;
  color: rgba(0, 123, 255, 0.6);
  margin-left: auto;
  pointer-events: none;
}

.daily-insight-link:hover .fa-chevron-right {
  color: #0056b3;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .daily-insights-container {
    flex-direction: column;
    align-items: center;
    gap: 10px !important;
  }
  
  .daily-insight-link {
    width: 90%;
    max-width: 400px;
    justify-content: center;
    padding: 12px 32px 12px 16px !important;
  }
  
  .daily-insight-link span {
    font-size: 0.85rem;
  }
}

#question-counter {
  font-size: 1.25rem;
  font-weight: 700;
  color: #007bff;
}

.counter-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

@media (min-width: 577px) {
  .bereanTitle {
    font-size: 65px;
  }
  
  #question-counter {
    font-size: 1rem;
  }
  
  .counter-label {
    font-size: 0.6rem;
  }
}

@media (min-width: 992px) {
  .bereanTitle {
    font-size: 90px;
    text-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  }
  
  #question-counter {
    font-size: 1.1rem;
  }
  
  .counter-label {
    font-size: 0.7rem;
  }
}



@media (max-width: 576px) {
    .faq-question {
        font-size: 15px;
        width: 350px;
        text-align: center;
        font-weight: 500;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 577px) {
    .faq-question {
        font-weight: 500;
        text-align: center;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .faq-question {
        font-weight: 500;
        text-align: center;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .faq-question {
        font-weight: 500;
        text-align: center;
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .faq-question {
        font-weight: 500;
        text-align: center;
        font-size: 18px;
    }
}

#show-more-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    border-radius: 50%;
    background-color: #093e76;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#show-more-button:hover {
background-color: #0c2dc0;
}

#media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px;
  }

  #media a img {
  width: 80px; 
  height: 80px;
  margin: 0 10px;
  transition: all 0.3s ease;
  filter: brightness(0.9);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  }
  #helpSection {
font-family: 'Arial', sans-serif;
}

.custom-section {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    font-size: 1.9rem;
}

.custom-section h1 {
    color: #007bff;
    font-weight: bold;
}

.custom-section h3 {
    color: #333;
    font-weight: 300;
}

.list-group-item {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    max-width: 700px;
    text-align: left;
}

.list-group-item::before {
    content: "\2022";
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.containerFooter {
  margin: 0 auto; 
  padding: 0 20px; 
  max-width: 1200px; 
  box-sizing: border-box;
}

.text-center {
    text-align: center;
}

.tittle-2 {
  font-weight: bold;
  font-size: 2.5rem;
}

.content-welcome {
  font-weight: bold;
  color: white;
 font-size: 1.2rem;
  margin-top: 10px;
}

.display-4 {
  font-size: 2.5rem;
}

.message-content {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}
.modal {
  display: none; 
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

body.modal-open {
  overflow: hidden;
}

#dailyReflection {
  display: none;
}

.jsCode {
  background-color: #1e2658; 
  border: 1px solid #020c49;              
  border-radius: 5px;        
  overflow-x: auto;          
}

.code-box code {
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 400;
  margin-top: 20px;
}

.code-section {
  border-radius: 15px;
  background-color: #b1d2e5; 
  padding: 20px; 
  margin-top: 20px ;
}

.code-text {
  color: #4d4d4e;
  font-weight: 400;
  margin-top: 20px;
  font-size: 1.3rem;
  background-color: #b1d2e5; 
  padding: 20px; 
  border-radius: 15px; 
}

.border {
  border-radius: 10px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.btn-secondary {
  border: none; 
  border-radius: 40%; 
  background-color: gray;
}

@media (max-width: 768px) {
  .code-section, .code-text {
    flex: 0 0 100%; 
  }
}

.code-section .container {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 576px) {
  .code-section .container {
    max-width: 90%;
    width: 90%;
  }
}

.plugin-container {
  max-width: 100%; 
  width: 100%;
  margin: auto;
}


@media (max-width: 576px) {
  .plugin-container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  
  .code-section h1, .code-section h3 {
    font-size: 1.25rem;
  }
  
  .code-box pre {
    font-size: 0.875rem;
    white-space: pre-wrap; 
    word-break: break-all; 
  }
}

#answer-body {
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
  padding: 10px 0;
}

#answer-body p {
  margin-bottom: 1rem;
}

#answer-body a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#answer-body a:hover {
  color: #004499;
}

/* Answer Section Boxes - Modern ChatGPT-like styling */
.answer-section {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.02), rgba(43, 88, 118, 0.01));
  border-left: 3px solid rgba(43, 88, 118, 0.3);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.answer-section:hover {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.04), rgba(43, 88, 118, 0.02));
  border-left-color: rgba(43, 88, 118, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Subtle background color variations for different sections */
/* 1st section - Scripture Foundation - Light blue (existing theme color) */
.answer-section:nth-child(1) {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.05), rgba(43, 88, 118, 0.025));
  border-left-color: rgba(43, 88, 118, 0.4);
}

.answer-section:nth-child(1):hover {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.08), rgba(43, 88, 118, 0.04));
}

/* 2nd section - Doctrinal Explanation - Steel blue */
.answer-section:nth-child(2) {
  background: linear-gradient(to right, rgba(70, 130, 180, 0.05), rgba(70, 130, 180, 0.025));
  border-left-color: rgba(70, 130, 180, 0.4);
}

.answer-section:nth-child(2):hover {
  background: linear-gradient(to right, rgba(70, 130, 180, 0.08), rgba(70, 130, 180, 0.04));
}

/* 3rd section - Practical Illustration - Medium sea green */
.answer-section:nth-child(3) {
  background: linear-gradient(to right, rgba(60, 179, 113, 0.05), rgba(60, 179, 113, 0.025));
  border-left-color: rgba(60, 179, 113, 0.4);
}

.answer-section:nth-child(3):hover {
  background: linear-gradient(to right, rgba(60, 179, 113, 0.08), rgba(60, 179, 113, 0.04));
}

/* 4th section - Pastoral Insight - Medium purple */
.answer-section:nth-child(4) {
  background: linear-gradient(to right, rgba(147, 112, 219, 0.05), rgba(147, 112, 219, 0.025));
  border-left-color: rgba(147, 112, 219, 0.4);
}

.answer-section:nth-child(4):hover {
  background: linear-gradient(to right, rgba(147, 112, 219, 0.08), rgba(147, 112, 219, 0.04));
}

/* 5th section and beyond - Follow-up Questions or additional sections */
.answer-section:nth-child(n+5) {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.02), rgba(43, 88, 118, 0.01));
  border-left-color: rgba(43, 88, 118, 0.3);
}

.answer-section:nth-child(n+5):hover {
  background: linear-gradient(to right, rgba(43, 88, 118, 0.04), rgba(43, 88, 118, 0.02));
}

.answer-section h2,
.answer-section h3 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #2b5876 !important;
  font-family: 'Crimson Pro', serif !important;
}

.answer-section h3 {
  font-size: 1.2rem !important;
}

.answer-section p:last-child {
  margin-bottom: 0;
}

/* Hide horizontal rules within answer sections */
.answer-section hr {
  display: none;
}

/* First section - no top margin */
.answer-section:first-child {
  margin-top: 0;
}

/* Last section - no bottom margin */
.answer-section:last-child {
  margin-bottom: 0;
}

#answer-header {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0;
  padding: 10px 0;
}

.content {
  display: flex;
  align-items: center; 
  text-align: center;
  justify-content: center;
  
}

.personalM {
  margin-right: 10px; 
}

.multilingual-gif {
  width: 30px; 
  height: auto; 
}



#question-wrapper {
  margin: 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.col-12 {
  margin: 0;
  padding: 0;
}

/* Remove any potential whitespace */
.faq-container > *,
.faq-category > *,
.d-flex > * {
  margin: 0;
  padding: 0;
}

/* Typeahead Styles */
.twitter-typeahead {
  width: 100%;
  display: flex !important;
  position: relative;
  z-index: 1050 !important;
}

.tt-input {
  width: 100% !important;
}

.tt-menu {
  width: 100%;
  margin-top: 5px;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1060 !important;
}

.tt-suggestion {
  padding: 8px 20px;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tt-suggestion:last-child {
  border-bottom: none;
}

.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
  color: #fff;
  background-color: var(--accent-color);
}

.tt-suggestion p {
  margin: 0;
}

.category-header {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tt-suggestion:hover .category-header {
  color: rgba(255, 255, 255, 0.8);
}

/* Fix for Bootstrap input group */
.input-group > .twitter-typeahead {
  flex: 1 1 auto;
  width: 1%;
}

.input-group > .twitter-typeahead .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Streaming animation for the answer body */
.streaming #answer-body {
  position: relative;
}

.streaming #answer-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0066cc, #6d99c4, #0066cc);
  background-size: 200% 100%;
  animation: gradient-move 2s linear infinite;
}

@keyframes gradient-move {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #answer-body {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  #answer-header {
    font-size: 1.2rem;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .card-footer .btn {
    margin-bottom: 5px;
    width: 100%;
  }
}

#answer-wrapper {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

#answer-wrapper.d-none {
  display: none !important;
}

#answer-wrapper:not(.d-none) {
  opacity: 1;
  transform: translateY(0);
}

.sticky-button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(51, 54, 248, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.sticky-button-container.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);
}

.sticky-button-container .btn {
  color: white;
  margin: 0;
  padding: 8px 16px;
  white-space: nowrap;
  border: none;
  font-weight: 500;
}

/* Ensure the sticky button doesn't overlap with the footer on mobile */
@media (max-width: 768px) {
  .sticky-button-container {
    bottom: 80px;
    width: 90%;
    justify-content: center;
  }
}

/* Follow-up Questions Styling */
.follow-up-header {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #2b5876;
  font-weight: 600;
  font-size: 1.5rem;
  font-family: 'Crimson Pro', serif;
}

.follow-up-question {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.follow-up-question a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.follow-up-question a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.follow-up-link {
  display: inline-block;
  padding: 0.25rem 0;
}

/* Ensure proper spacing in answer body */
#answer-body .follow-up-header:first-child {
  margin-top: 0;
}

#answer-body .follow-up-question:last-child {
  margin-bottom: 0;
}

/* Tagline Styling */
.tagline {
  color: white !important;
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  text-align: center !important;
  margin-top: 0.5rem !important;
  margin-bottom: 2rem !important;
  opacity: 0.95;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  width: auto;
  max-width: 90%;
}

.tagline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.share-box-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 1.5rem auto;
}

.share-box-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2b5876;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  text-align: center;
}

.share-box {
  background: #f7fafd;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(43, 88, 118, 0.07);
  padding: 1.1rem 1.5rem 0.9rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #2b5876;
  background: transparent;
  border: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  padding: 0;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-icon-link[aria-label*="X"]:hover {
  color: #1a1a1a;
  background: #eaf1fa;
  transform: scale(1.12);
}
.social-icon-link[aria-label*="Facebook"]:hover {
  color: #1877f3;
  background: #eaf1fa;
  transform: scale(1.12);
}
.social-icon-link[aria-label*="SMS"]:hover {
  color: #00bfae;
  background: #eaf1fa;
  transform: scale(1.12);
}

/* Remove old share sticker/label styles */
.share-sticker, .share-label, .social-share-icons, .social-icon-btn { display: none !important; }

.share-box-container, .share-box, .social-icon-link {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden !important;
  }
  
  #question-wrapper {
    margin: 0 0 30px 0 !important;
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  #question-wrapper .col-sm-12 {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #question-wrapper form {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .input-group {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .form-control, textarea.form-control, #question {
    width: 100% !important;
    min-height: 100px !important;
    font-size: 1.1rem !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    margin-top: 1.1rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.5 !important;
  }
  #submit-question {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 14px 0 !important;
    border-radius: 12px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
  .input-group > .btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Additional specific rule for the question textarea */
  #question.form-control {
    min-height: 100px !important;
  }
  
  /* Force minimum height for mobile textarea */
  textarea#question {
    min-height: 100px !important;
    height: 100px !important;
  }
  
  /* Override any inline styles */
  textarea#question[style*="height"] {
    min-height: 100px !important;
    height: 100px !important;
  }
  
  /* Ensure answer wrapper is not affected by question wrapper rules */
  #answer-wrapper {
    padding: 20px 16px !important;
    margin: 0 !important;
  }
  
  #answer-wrapper .col-sm-12 {
    padding: 0 !important;
  }
  
  /* Ensure Go Deeper button works on mobile */
  #answer-body .go-deeper-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 20px 0 !important;
  }
  
  #answer-body .go-deeper-container button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    touch-action: manipulation !important;
    pointer-events: auto !important;
  }
}
