/* Big Prayer Museum — centralized global navigation */
#bpmGlobalHeader,
#bpmGlobalHeader * { box-sizing: border-box; }

#bpmGlobalHeader {
  width: 100%;
  position: relative;
  z-index: 99999;
  font-family: Arial, Helvetica, sans-serif;
}

/* Community bar */
.bpm-community-bar {
  width: 100%;
  background: #063f3f;
  color: #fff;
  border-bottom: 1px solid #d19a2b;
}

.bpm-community-inner {
  width: 100%;
  max-width: 1600px;
  min-height: 58px;
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bpm-community-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.bpm-community-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #c5901b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a128;
  font-size: 18px;
  flex-shrink: 0;
}

.bpm-community-heading strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .25px;
}

.bpm-community-description {
  max-width: 420px;
  margin-right: auto;
  font-size: 13px;
  line-height: 1.35;
  opacity: .92;
}

.bpm-community-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bpm-community-button {
  min-height: 39px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, filter .2s ease;
}

.bpm-community-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bpm-whatsapp { background: #168b2d; }
.bpm-facebook { background: #3868b8; }

/* Main nav */
.bpm-main-header {
  width: 100%;
  background: #fffaf2;
  border-bottom: 1px solid #e2cfaa;
}

.bpm-main-inner {
  width: 100%;
  max-width: 1600px;
  min-height: 88px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

.bpm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding-right: 22px;
  color: inherit;
  text-decoration: none !important;
  flex-shrink: 0;
}

.bpm-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.bpm-brand-copy { display: flex; flex-direction: column; }
.bpm-brand-title {
  color: #1b1712;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .35px;
}
.bpm-brand-subtitle {
  margin-top: 6px;
  color: #b27700;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .7px;
}

.bpm-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bpm-menu-link,
.bpm-dropdown-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #191510 !important;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.bpm-menu-link:hover,
.bpm-dropdown-button:hover,
.bpm-menu-link.bpm-active,
.bpm-dropdown-button.bpm-active-parent { color: #b47600 !important; }

.bpm-menu-link.bpm-active::after,
.bpm-dropdown-button.bpm-active-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #c88c12;
}

/* Dropdowns */
.bpm-dropdown { position: relative; }
.bpm-dropdown-arrow {
  display: inline-block;
  margin-left: 5px;
  color: #ad7305;
  font-size: 13px;
  transition: transform .2s ease;
}
.bpm-dropdown.open .bpm-dropdown-arrow { transform: rotate(180deg); }

.bpm-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  min-width: 225px;
  padding: 10px 0;
  background: #fffaf2;
  border: 1px solid #ead8b6;
  border-radius: 9px;
  box-shadow: 0 18px 42px rgba(50,35,12,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.bpm-dropdown-wide { min-width: 285px; }

.bpm-dropdown-content a {
  display: block;
  width: 100%;
  padding: 12px 18px;
  color: #191510 !important;
  text-decoration: none !important;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.bpm-dropdown-content a:hover,
.bpm-dropdown-content a.bpm-active {
  background: #f4ead8;
  color: #ad7305 !important;
}

@media (min-width: 1301px) {
  .bpm-dropdown:hover .bpm-dropdown-content,
  .bpm-dropdown.open .bpm-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* CTA */
.bpm-menu-link.bpm-give-button {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 6px;
  background: #c9121b;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(185,17,26,.18);
}
.bpm-menu-link.bpm-give-button:hover { background: #ae0e16; color: #fff !important; }
.bpm-menu-link.bpm-give-button::after { display: none; }

/* Mobile toggle */
.bpm-mobile-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 8px;
  border: 1px solid #c79a41;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.bpm-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #1b1712;
}

/* Tablet/mobile: switch to hamburger earlier because the master menu is wide */
@media (max-width: 1300px) {
  .bpm-main-inner { position: relative; }
  .bpm-mobile-toggle { display: block; margin-left: 16px; }
  .bpm-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 12px 24px 25px;
    background: #fffaf2;
    border-top: 1px solid #e9d8b6;
    border-bottom: 1px solid #e9d8b6;
    box-shadow: 0 15px 30px rgba(40,25,5,.13);
  }
  .bpm-menu.mobile-open { display: flex; }
  .bpm-menu-link,
  .bpm-dropdown-button {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    font-size: 11px;
  }
  .bpm-dropdown { width: 100%; }
  .bpm-dropdown-content {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 3px 0 7px 15px;
    border: 0;
    border-radius: 5px;
    background: #f7eddd;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bpm-dropdown.open .bpm-dropdown-content { display: block; }
  .bpm-give-button { margin-top: 10px; justify-content: center !important; }
  .bpm-menu-link.bpm-active::after,
  .bpm-dropdown-button.bpm-active-parent::after { display: none; }
}

@media (max-width: 1000px) {
  .bpm-community-inner { padding: 10px 20px; }
  .bpm-community-description { display: none; }
  .bpm-community-buttons { margin-left: auto; }
  .bpm-main-inner { min-height: 80px; padding: 0 20px; }
}

@media (max-width: 700px) {
  .bpm-community-inner { flex-wrap: wrap; justify-content: center; gap: 9px; }
  .bpm-community-heading { width: 100%; justify-content: center; }
  .bpm-community-heading strong { font-size: 12px; }
  .bpm-community-icon { width: 32px; height: 32px; font-size: 15px; }
  .bpm-community-buttons { width: 100%; margin-left: 0; }
  .bpm-community-button { flex: 1; min-height: 37px; padding: 0 8px; font-size: 8.5px; }
  .bpm-logo { width: 40px; height: 40px; }
  .bpm-brand { gap: 10px; padding-right: 5px; }
  .bpm-brand-title { font-size: 14px; }
  .bpm-brand-subtitle { margin-top: 5px; font-size: 7.5px; }
  .bpm-mobile-toggle { margin-left: 8px; }
}

@media (max-width: 420px) {
  .bpm-brand-subtitle { display: none; }
  .bpm-brand-title { font-size: 13px; }
  .bpm-community-heading strong { font-size: 10.5px; }
}
