:root {
  --primary: #e10600;
  --secondary: #ffffff;
  --accent: #00963f;
  --dark: #0a315f;
  --bg: #f3f5f7;
  --text: #111111;
  --muted: #5a5f6a;
}

body {
  font-family: 'SolaimanLipi', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--primary);
  color: #fff;
}

.topbar a,
.topbar strong {
  color: #fff;
}

.topbar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.site-header {
  background: #fff;
  border-bottom: 5px solid var(--primary);
}

.site-header .logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--secondary);
  padding: 8px;
}

.brand h1 {
  font-size: 1.15rem;
  color: var(--dark);
}

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav .nav-link {
  color: var(--dark) !important;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 50px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(225, 16, 0, 0.08);
}

.language-switch {
  min-width: 100px;
}

.header-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.header-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(224, 6, 0, 0.55), rgba(0, 150, 63, 0.45));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 49, 106, 0.55);
}

.clear-cover-hero {
  min-height: 88vh;
  background-color: #f3f5f7;
}

.clear-cover-hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.18));
}

.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-persona {
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-persona h3,
.hero-persona h4 {
  color: #fff;
}

.profile-card {
  margin-top: -90px;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.profile-picture {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--secondary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.section-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
}

.card-blog, .card-event {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

.card-blog img, .card-event img {
  height: 190px;
  object-fit: cover;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #bf0500;
  border-color: #bf0500;
}

.btn-success {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline-light {
  color: var(--dark);
  border-color: rgba(10, 49, 95, 0.15);
}

.btn-outline-light:hover {
  background: rgba(10, 49, 95, 0.08);
}

.footer-logo {
  width: 128px;
  height: auto;
}

.site-footer {
  background: #0a2345;
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.facebook-embed-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.facebook-embed-card iframe {
  width: 100%;
  min-height: 260px;
  border: none;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

.chat-toggle {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.chat-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  overflow: hidden;
  border: 1px solid rgba(10, 49, 95, 0.1);
}

.chat-header {
  background: linear-gradient(135deg, #0a315f, #0d4d8f);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  height: 330px;
  overflow-y: auto;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
}

.leader-theme .section-title {
  border-left-color: #006e4b;
}

.leader-sidebar-card {
  border-radius: 14px;
  overflow: hidden;
}

.leader-sidebar-card .card-body {
  background: #f6fffb;
}

.leader-list .leader-btn {
  font-weight: 700;
  border-radius: 6px;
  text-align: left;
  padding: 0.6rem 0.75rem;
}

.leader-btn-idle {
  background: #007d57;
  color: #fff;
  border: 1px solid #007d57;
}

.leader-btn-idle:hover {
  background: #006948;
  color: #fff;
  border-color: #006948;
}

.leader-btn-active {
  background: #00563b;
  color: #fff;
  border: 1px solid #00563b;
}

.leader-detail-card {
  border-radius: 14px;
}

.leader-detail-body {
  background: #ffffff;
}

.leader-detail-image {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.chat-message {
  margin-bottom: 10px;
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chat-message.user {
  text-align: left;
  margin-left: auto;
  background: #0d4d8f;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  text-align: left;
  margin-right: auto;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(10, 49, 95, 0.12);
  border-bottom-left-radius: 4px;
}

.chat-message.typing {
  color: #4b5563;
  font-style: italic;
}

.chat-form {
  padding: 12px;
  border-top: 1px solid rgba(10, 49, 95, 0.1);
  background: #fff;
  display: grid;
  gap: 8px;
}

.chat-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(10, 49, 95, 0.18);
}

@media (max-width: 767px) {
  .topbar {
    text-align: center;
  }

  .site-header {
    padding: 0.5rem 0;
  }

  .site-nav {
    justify-content: center;
  }

  .profile-card {
    margin-top: -70px;
    text-align: center;
  }

  .hero-content {
    padding-top: 2rem;
  }
}

.profile-card {
  margin-top: -90px;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.profile-picture {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--secondary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.section-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.card-blog, .card-event {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

.card-blog img, .card-event img {
  height: 190px;
  object-fit: cover;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

.facebook-embed-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.facebook-embed-card iframe {
  width: 100%;
  min-height: 260px;
  border: none;
}

.chat-toggle {
  border-radius: 50px;
}

.chat-panel {
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}

.chat-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}

.chat-message {
  margin-bottom: 12px;
}

.chat-message.user {
  text-align: right;
}

.chat-message.bot {
  text-align: left;
}

.chat-form {
  padding: 16px;
}

.chat-form input {
  width: 100%;
}

.footer-logo {
  width: 128px;
  height: auto;
}

@media (max-width: 767px) {
  .profile-card {
    margin-top: -70px;
    text-align: center;
  }

  .hero-content {
    padding-top: 2rem;
  }
}

/* Final chat UI overrides */
.chat-widget .chat-toggle {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.chat-widget .chat-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  border: 1px solid rgba(10, 49, 95, 0.1);
}

.chat-widget .chat-header {
  background: linear-gradient(135deg, #0a315f, #0d4d8f);
  padding: 13px 16px;
}

.chat-widget .chat-messages {
  height: 330px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
}

.chat-widget .chat-message {
  margin-bottom: 10px;
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chat-widget .chat-message.user {
  margin-left: auto;
  background: #0d4d8f;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-widget .chat-message.bot {
  margin-right: auto;
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(10, 49, 95, 0.12);
  border-bottom-left-radius: 4px;
}

.chat-widget .chat-message.typing {
  color: #4b5563;
  font-style: italic;
}

.chat-widget .chat-form {
  padding: 12px;
  border-top: 1px solid rgba(10, 49, 95, 0.1);
  background: #fff;
  display: grid;
  gap: 8px;
}

.chat-widget .chat-form input {
  border-radius: 10px;
  border: 1px solid rgba(10, 49, 95, 0.18);
}

/* BNP-style home layout */
.bnp-top-banner {
  width: 100%;
  background: #fff;
}

.bnp-top-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.bnp-campaign-strip {
  background: linear-gradient(120deg, #005e4b, #006e56);
  color: #fff;
}

.bnp-strip-title {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.bnp-manifesto-box {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.14);
  display: inline-block;
  text-align: left;
}

.bnp-manifesto-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.bnp-manifesto-box p {
  margin-bottom: 8px;
}

.bnp-strip-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
}

.bnp-home-grid .bnp-panel {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.bnp-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bnp-points-panel {
  background: #17322f;
  color: #fff;
}

.bnp-point-item {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.bnp-quote {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  color: #1f2937;
}

.bnp-quote footer {
  font-size: 0.9rem;
  color: #0a315f;
  font-weight: 700;
}

.bnp-news-card {
  background: #fff;
  border: 1px solid rgba(10, 49, 95, 0.12);
  border-radius: 10px;
  padding: 12px;
  display: block;
  color: #111827;
  min-height: 110px;
}

.bnp-news-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .bnp-manifesto-box {
    text-align: center;
  }

  .bnp-strip-logo {
    width: 72px;
    height: 72px;
  }
}

/* Bangladesh Political Theme (BNP-style) */
:root {
  --bd-green: #006a4e;
  --bd-green-dark: #00543f;
  --bd-red: #f42a41;
  --bd-red-dark: #d92037;
}

body {
  background: #f7faf8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 4px solid var(--bd-red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand h1 {
  color: var(--bd-green-dark);
  font-weight: 800;
}

.site-nav .nav-link {
  color: var(--bd-green-dark) !important;
  font-weight: 700;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  background: rgba(0, 106, 78, 0.08);
  color: var(--bd-red-dark) !important;
}

.site-nav .dropdown-menu {
  border: 1px solid rgba(0, 106, 78, 0.2);
  border-radius: 10px;
}

.site-nav .dropdown-item:active,
.site-nav .dropdown-item:hover {
  background: rgba(0, 106, 78, 0.08);
  color: var(--bd-green-dark);
}

.language-switch {
  border-color: rgba(0, 106, 78, 0.3);
  color: var(--bd-green-dark);
  font-weight: 700;
}

.language-switch:hover {
  background: rgba(0, 106, 78, 0.08);
  border-color: var(--bd-green);
}

.section-title {
  border-left-color: var(--bd-red);
  color: var(--bd-green-dark);
}

.btn-primary {
  background: var(--bd-red);
  border-color: var(--bd-red);
}

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

.btn-success {
  background: var(--bd-green);
  border-color: var(--bd-green);
}

.btn-success:hover,
.btn-success:focus {
  background: var(--bd-green-dark);
  border-color: var(--bd-green-dark);
}

.bnp-campaign-strip {
  background:
    radial-gradient(circle at 15% 50%, rgba(244, 42, 65, 0.2), transparent 28%),
    linear-gradient(120deg, var(--bd-green), var(--bd-green-dark));
}

.bnp-strip-title {
  color: #fff;
}

.bnp-manifesto-box {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.18);
}

.bnp-home-grid .bnp-panel {
  border-top: 4px solid var(--bd-green);
}

.bnp-points-panel {
  background: linear-gradient(165deg, #18453b, #0d2f27);
}

.bnp-point-item {
  border-color: rgba(255, 255, 255, 0.35);
}

.bnp-quote {
  border-left-color: var(--bd-red);
}

.bnp-news-card {
  border: 1px solid rgba(0, 106, 78, 0.2);
}

.bnp-news-card strong {
  color: var(--bd-green-dark);
}

.bnp-news-card:hover {
  border-color: rgba(244, 42, 65, 0.4);
}

.site-footer {
  background: linear-gradient(135deg, #04362b, #062f55);
}

.chat-widget .chat-toggle {
  background: var(--bd-red);
  border-color: var(--bd-red);
}

.chat-widget .chat-toggle:hover {
  background: var(--bd-red-dark);
  border-color: var(--bd-red-dark);
}

.chat-widget .chat-header {
  background: linear-gradient(135deg, var(--bd-green-dark), var(--bd-green));
}

.chat-widget .chat-message.user {
  background: var(--bd-red);
}

.chat-widget .chat-message.bot {
  border-color: rgba(0, 106, 78, 0.25);
}

@media (max-width: 991px) {
  .site-header .container {
    gap: 10px;
    justify-content: center !important;
  }

  .site-nav {
    justify-content: center;
  }
}

/* Chat widget hard-fix: always floating at viewport bottom-right */
.chat-widget {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000 !important;
  pointer-events: none;
}

.chat-widget > * {
  pointer-events: auto;
}

.chat-widget .chat-toggle {
  position: relative;
  z-index: 2;
}

.chat-widget .chat-panel {
  position: absolute !important;
  right: 0;
  bottom: 58px;
  margin: 0;
}

@media (max-width: 767px) {
  .chat-widget {
    right: 12px !important;
    bottom: 12px !important;
  }

  .chat-widget .chat-panel {
    right: 0;
    width: min(92vw, 360px) !important;
  }
}

/* ============================================================
   Home: full profile image (show the whole picture, no crop)
   ============================================================ */
.home-profile-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 4px solid var(--bd-green, #006a4e);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
  object-fit: contain;
}

/* ============================================================
   Our Leaders — cards (need.php?section=leaders)
   ============================================================ */
.leader-card {
  border-radius: 14px;
  overflow: hidden;
  border-top: 4px solid var(--bd-green, #006a4e) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12) !important;
}
.leader-card-img {
  height: 300px;
  object-fit: cover;
  object-position: top center;
  background: #eef4f1;
}
.leader-card .card-title {
  color: var(--bd-green-dark, #00543f);
  font-weight: 800;
}

/* ============================================================
   Leader detail page (leader.php) — BNP-style layout
   ============================================================ */
.leader-page {
  background: #f4f8f6;
}

.leader-banner {
  background: linear-gradient(120deg, var(--bd-green, #006a4e), var(--bd-green-dark, #00543f));
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  border-left: 6px solid var(--bd-red, #f42a41);
}
.leader-banner-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.55rem;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Sidebar */
.leader-aside {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 106, 78, 0.12);
}
.leader-aside-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid var(--bd-green, #006a4e);
  background: #eef4f1;
  object-fit: cover;
}
.leader-aside hr {
  border-top: 1px dashed rgba(0, 106, 78, 0.3);
  opacity: 1;
}

.leader-nav-btn {
  background: var(--bd-green, #006a4e);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bd-green, #006a4e);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.leader-nav-btn:hover {
  background: var(--bd-green-dark, #00543f);
  color: #fff;
  border-color: var(--bd-green-dark, #00543f);
}
.leader-nav-btn.active {
  background: var(--bd-red, #f42a41);
  border-color: var(--bd-red, #f42a41);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 42, 65, 0.30);
}

/* Detail content */
.leader-detail {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 106, 78, 0.10);
}
.leader-role {
  display: inline-block;
  background: rgba(0, 106, 78, 0.10);
  color: var(--bd-green-dark, #00543f);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.leader-intro {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #24322c;
  font-weight: 500;
}
.leader-section-title {
  color: var(--bd-green-dark, #00543f);
  font-weight: 800;
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(244, 42, 65, 0.5);
}
.leader-section-body {
  line-height: 1.95;
  color: #33413a;
  font-size: 1.02rem;
}

@media (max-width: 991.98px) {
  .leader-aside { position: static; margin-bottom: 1rem; }
  .leader-aside-photo { max-width: 260px; display: block; margin: 0 auto; }
  .leader-banner-title { font-size: 1.25rem; }
  .leader-detail { padding: 20px; }
}

/* ============================================================
   Mobile-friendly refinements  (phones ≤ 575px)
   ============================================================ */
/* Never let images overflow their box on small screens */
img { max-width: 100%; }

.home-profile-img {
  height: auto;          /* show the FULL profile image, never cropped */
  object-fit: contain;
}

@media (max-width: 575.98px) {
  /* Header brand smaller so it fits */
  .navbar-brand img { height: 42px; }
  .navbar-brand .h5 { font-size: 1.02rem; }
  .navbar-brand small { font-size: 0.68rem; }

  /* Home */
  .home-profile-img { max-width: 240px; }
  .bnp-strip-title { font-size: 1.25rem; }
  .bnp-strip-logo { width: 64px; height: 64px; }
  .section-title { font-size: 1.25rem; }

  /* Leader detail page */
  .leader-banner { padding: 12px 14px; }
  .leader-banner-title { font-size: 1.05rem; word-break: break-word; }
  .leader-aside { padding: 12px; }
  .leader-aside-photo { max-width: 220px; }
  .leader-detail { padding: 16px; border-radius: 12px; }
  .leader-role { font-size: 0.82rem; }
  .leader-intro { font-size: 0.98rem; line-height: 1.8; }
  .leader-section-title { font-size: 1.12rem; margin-top: 1.3rem; }
  .leader-section-body { font-size: 0.97rem; line-height: 1.85; }

  /* Leader cards */
  .leader-card-img { height: 240px; }

  /* Footer stacks & centers */
  .site-footer .text-md-end { text-align: left !important; }
}

/* Tablets (≤ 767px): keep the leader name banner readable */
@media (max-width: 767.98px) {
  .leader-banner-title { font-size: 1.2rem; }
  .leader-card-img { height: 260px; }
}

/* ============================================================
   Extra mobile safety — stop any horizontal overflow
   (fixed-width iframes / videos / embeds shrink to fit phone)
   ============================================================ */
img, iframe, video, embed, object {
  max-width: 100%;
}

/* Facebook video/post embeds: always fit the card width on phones */
.facebook-embed-card iframe {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

@media (max-width: 575.98px) {
  .facebook-embed-card { padding: 8px !important; }
  .facebook-embed-card iframe { min-height: 300px; }
  .facebook-embeds .offset-lg-4 { margin-left: 0 !important; }
  /* Pagination wraps instead of overflowing */
  .pagination { flex-wrap: wrap; gap: 4px; }
}

/* Admin tables scroll horizontally on small screens instead of overflowing */
@media (max-width: 767.98px) {
  .table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
