body,
.navbar-brand,
.nav-link,
.footer,
h1,
h2,
h5,
p,
ul,
li,
a,
button,
input,
textarea {
  font-family: "Source Sans Pro", sans-serif !important;
}
.section-title,
.section-title.royal,
.section-title.with-icon {
  font-family: sans-serif !important;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #b3e5fc 60%, #e1f5fe 100%);
  min-height: 100vh;
  color: #17445e;
  padding: 8px;
  border: 4px solid;
  border-image: linear-gradient(90deg, #0288d1 0%, #4dd0e1 100%) 1;
  border-radius: 24px;
  box-sizing: border-box;
}
.navbar {
  background: linear-gradient(90deg, #0288d1 60%, #e1f5fe 100%);
  box-shadow: 0 2px 12px rgba(2, 136, 209, 0.1);
}
.navbar-brand,
.nav-link,
.section-title {
  font-family: "Merriweather", serif;
  font-weight: bold;
  color: #01579b !important;
  letter-spacing: 1px;
}
.hero {
  background: linear-gradient(120deg, #e0f7fa 60%, #b3e5fc 100%);
  color: #17445e;
  padding: 80px 0 60px 0;
  text-align: center;
  animation: fadeInDown 1.2s;
  position: relative;
  overflow: hidden;
}
.hero img[src$="holybible.svg"] {
  animation: bibleFadeInOut 4s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bibleFadeInOut {
  0% {
    opacity: 0.7;
    transform: scale(0.98) translateY(10px);
  }
  50% {
    opacity: 1;
    transform: scale(1.03) translateY(-5px);
  }
  100% {
    opacity: 0.7;
    transform: scale(0.98) translateY(10px);
  }
}
.section,
.section#contact {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 32px 24px 0 24px;
  animation: fadeInUp 1.2s;
  color: #17445e;
  position: relative;
}
.section:not(:last-child)::after {
  content: "";
  display: block;
  width: 80%;
  max-width: 900px;
  height: 3px;
  margin: 40px auto 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #0288d1 0%, #4dd0e1 50%, #0288d1 100%);
  opacity: 0.85;
  box-shadow: 0 2px 12px rgba(2, 136, 209, 0.1);
  transition: width 0.3s;
}
@media (max-width: 767px) {
  .section:not(:last-child)::after {
    width: 90%;
    height: 2px;
    margin: 24px auto 0 auto;
  }
}
.section#contact {
  background: #fff;
  color: #0288d1;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 40px 0 0 0;
  text-align: center;
  position: relative;
  overflow: visible;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gradient-text {
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.gold {
  color: #00bcd4;
}
.royal {
  color: #0288d1;
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 1rem;
}
.social-icons a,
.social-list a {
  color: #0288d1;
  font-size: 2.4rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-list li,
.social-icons a {
  width: auto;
  height: auto;
}

/* Platform-specific hover colors */
.social-icons a[href*="instagram"],
.social-list a[href*="instagram"] {
  /* Instagram gradient fallback */
}
.social-icons a[href*="instagram"]:hover,
.social-list a[href*="instagram"]:hover {
  color: #e4405f;
}
.social-icons a[href*="threads"],
.social-list a[href*="threads"] {
}
.social-icons a[href*="threads"]:hover,
.social-list a[href*="threads"]:hover {
  color: #000;
}
.social-icons a[href*="facebook"],
.social-list a[href*="facebook"] {
}
.social-icons a[href*="facebook"]:hover,
.social-list a[href*="facebook"]:hover {
  color: #1877f3;
}
.social-icons a[href*="tiktok"],
.social-list a[href*="tiktok"] {
}
.social-icons a[href*="tiktok"]:hover,
.social-list a[href*="tiktok"]:hover {
  color: #010101;
}
.social-icons a[href*="youtube"],
.social-list a[href*="youtube"] {
}
.social-icons a[href*="youtube"]:hover,
.social-list a[href*="youtube"]:hover {
  color: #ff0000;
}
.social-icons a[href^="mailto"],
.social-list a[href^="mailto"] {
}
.social-icons a[href^="mailto"]:hover,
.social-list a[href^="mailto"]:hover {
  color: #ea4335;
}
.social-icons a[href*="globe"],
.social-list a[href*="brotherfemi.org"],
.social-list a[href*="globe"],
.social-list a[href*="brotherfemi.org"] {
}
.social-icons a[href*="globe"]:hover,
.social-icons a[href*="brotherfemi.org"]:hover,
.social-list a[href*="globe"]:hover,
.social-list a[href*="brotherfemi.org"]:hover {
  color: #43a047;
}
.mentor-card {
  border: 1px solid #b3e5fc;
  border-radius: 12px;
  padding: 18px 12px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #fff 80%, #e1f5fe 100%);
  box-shadow: 0 2px 12px rgba(2, 136, 209, 0.06);
  transition: transform 0.2s;
}
.mentor-card.card,
.contact-form {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #b3e5fc;
  box-shadow: 0 8px 32px rgba(2, 136, 209, 0.13);
}
.mentor-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(2, 136, 209, 0.12);
}
.footer {
  background: linear-gradient(90deg, #0288d1 60%, #e1f5fe 100%);
  color: #01579b;
  text-align: center;
  padding: 18px 0 8px 0;
  margin-top: 40px;
  border-top: 4px solid #00bcd4;
  box-shadow: 0 -2px 12px rgba(2, 136, 209, 0.1);
}
.section#contact {
  background: #fff;
  color: #0288d1;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 40px 0 0 0;
  text-align: center;
  position: relative;
  overflow: visible;
}
.section#contact .section-title {
  color: #fff;
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  font-size: 2.2rem;
  margin-bottom: 28px;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 188, 212, 0.12);
}
.section .section-title,
.hero .section-title,
.section-title.royal {
  color: #0288d1 !important;
  background: #e1f5fe;
  font-size: 2.2rem;
  margin-bottom: 28px;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(2, 136, 209, 0.08);
  display: inline-block;
  padding: 6px 24px 6px 12px;
  border-radius: 18px 0 18px 0;
  box-shadow: 0 2px 12px rgba(2, 136, 209, 0.08);
}
.social-list {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.social-list li {
  background: none;
  border: none;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  box-shadow: none;
  transition: none;
}
.social-list li:hover {
  background: none;
}
.social-list a {
  color: #0288d1;
  font-size: 2.4rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-list a:hover {
  color: #0288d1;
  filter: none;
}
.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(2, 136, 209, 0.1);
  padding: 32px 24px 24px 24px;
  margin-top: 32px;
  margin-bottom: 0;
  animation: fadeInUp 1.2s;
  border: 1.5px solid #b3e5fc;
}
.contact-form label {
  font-weight: 600;
  color: #0288d1;
  letter-spacing: 1px;
}
.contact-form .form-control {
  border-radius: 10px;
  border: 1.5px solid #b3e5fc;
  background: #fff;
  color: #17445e;
  font-size: 1.1rem;
  box-shadow: none;
  transition: border-color 0.3s;
}
.contact-form .form-control:focus {
  border-color: #0288d1;
  box-shadow: 0 0 0 2px #b3e5fc33;
}
.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.contact-form button[type="submit"] {
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
  padding: 12px 0;
  margin-top: 8px;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.1);
}
.contact-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #4dd0e1, #0288d1);
  box-shadow: 0 4px 16px rgba(2, 136, 209, 0.18);
}

/* Distinct colors for each core value */
.section#core-values ul li:nth-child(1) span {
  color: #0288d1; /* Royal Blue */
}
.section#core-values ul li:nth-child(2) span {
  color: #43a047; /* Green */
}
.section#core-values ul li:nth-child(3) span {
  color: #b71c1c; /* Deep Red */
}
.section#core-values ul li:nth-child(4) span {
  color: #fbc02d; /* Gold/Yellow */
}
.cta-link {
  display: inline-block;
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 32px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(2, 136, 209, 0.1);
  text-decoration: none !important;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  margin-bottom: 12px;
}
.cta-link:hover,
.cta-link:focus {
  background: linear-gradient(90deg, #4dd0e1, #0288d1);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(2, 136, 209, 0.18);
  text-decoration: none;
  transform: translateY(-2px) scale(1.04);
}
.cta-link h3 {
  margin: 0;
  color: inherit !important;
  background: none !important;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.cta-link-text {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff !important;
  background: none !important;
  margin: 0;
  padding: 0;
}
.mentor-card.card {
  border: 1.5px solid #b3e5fc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(2, 136, 209, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}
.mentor-card.card:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(2, 136, 209, 0.12);
}
.mentor-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0288d1;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.animate-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.4, 1.4, 0.6, 1),
    transform 0.8s cubic-bezier(0.4, 1.4, 0.6, 1);
}
.animate-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fab-contact {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 6px 24px rgba(2, 136, 209, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.fab-contact:hover {
  background: linear-gradient(90deg, #4dd0e1, #0288d1);
  box-shadow: 0 12px 32px rgba(2, 136, 209, 0.22);
  transform: scale(1.08);
}

/* Floating Action Button (FAB) for Home */
.fab-home {
  position: fixed;
  bottom: 92px;
  right: 0px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, #0288d1, #4dd0e1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(2, 136, 209, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.fab-home:hover,
.fab-home:focus {
  background: linear-gradient(90deg, #4dd0e1, #0288d1);
  box-shadow: 0 6px 24px rgba(2, 136, 209, 0.28);
  color: #fff;
}

.btn,
.cta-link,
.fab-contact {
  position: relative;
  overflow: hidden;
}
.btn:active,
.cta-link:active,
.fab-contact:active {
  transform: scale(0.97);
}
.about-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #17445e;
}

/* Responsive YouTube playlist embed */
.youtube-playlist-embed {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.12);
  background: #fff;
}
.youtube-playlist-embed > div:first-child {
  position: relative;
  width: 100%;
  padding-bottom: 40%; /* 2.5:1 aspect ratio for desktop */
  height: 0;
}
@media (max-width: 767px) {
  .youtube-playlist-embed > div:first-child {
    padding-bottom: 56.25%; /* Standard 16:9 aspect ratio for mobile */
  }
}
.youtube-playlist-embed iframe {
  display: block !important;
  max-width: 100%;
  margin: 0 auto;
  min-height: 170px; /* Reduce min-height for a more compact look */
  padding: 0 !important;
  background: #fff;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}
.youtube-playlist-embed > div:last-child {
  padding: 0.5rem 1rem 2.5rem 1rem; /* Increase bottom padding for the whole label area */
  background: linear-gradient(90deg, #f8fafc 60%, #e3f2fd 100%);
  text-align: center;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.youtube-playlist-label {
  padding: 2.5rem 1rem 2.5rem 1rem;
  background: linear-gradient(90deg, #f8fafc 60%, #e3f2fd 100%);
  text-align: center;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.youtube-playlist-label-text {
  font-weight: 600;
  color: #0288d1;
  font-size: 1.15rem;
  line-height: 1.3;
  display: inline-block;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5em 1em 0.5em 1em;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.youtube-playlist-label-text i.bi-youtube {
  color: #ff0000;
  font-size: 1.3em;
}

/* Instagram embed responsive */
.instagram-embed-responsive {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto 0 auto;
  padding-bottom: 120%;
  height: 0;
}
@media (min-width: 768px) {
  .instagram-embed-responsive {
    margin-bottom: 0.5rem !important;
    padding-bottom: 41% !important;
  }
  #about {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

.instagram-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 767px) {
  .hero {
    padding: 40px 0 30px 0;
  }
  .section {
    padding: 18px 8px;
  }
  .mentor-card {
    margin-bottom: 16px;
  }
  .display-4 {
    font-size: 2.2rem;
  }
  .section#contact {
    padding: 24px 0 18px 0;
    border-radius: 16px;
  }
  .section#contact .section-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  .section .section-title,
  .hero .section-title,
  .section-title.royal {
    font-size: 1.2rem;
    padding: 4px 12px 4px 8px;
    margin-bottom: 10px;
  }
  .social-icons a,
  .social-list a {
    font-size: 1.4rem;
  }
  .social-list li,
  .social-icons a {
    width: auto;
    height: auto;
  }
  .hero .section-title {
    font-size: 1.2rem;
    padding: 4px 12px 4px 8px;
    margin-bottom: 10px;
  }
  .fab-contact {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .section-title.with-icon {
    font-size: 1.2rem;
  }
  body {
    padding: 2px;
    border-width: 2px;
    border-radius: 10px;
  }
}

/* Ensure Core Values and Heart Cry content font size matches .about-text and general content */
.section#core-values ul,
.section#core-values ul li,
.section#core-values ul li span,
.section#heart-cry ul,
.section#heart-cry ul li {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #17445e;
}

/* Remove animation from YouTube playlist embed wrapper */
.playlist-animate {
  /* animation: playlistBounce 2.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s 1 both,
    playlistGlow 3.5s ease-in-out 0.2s infinite alternate; */
  will-change: auto;
}

@keyframes playlistBounce {
  0% {
    transform: scale(0.92) rotate(-2deg);
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.1);
    opacity: 0;
  }
  40% {
    transform: scale(1.04) rotate(2deg);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
    opacity: 1;
  }
  60% {
    transform: scale(0.98) rotate(-1deg);
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.14);
  }
  80% {
    transform: scale(1.01) rotate(1deg);
    box-shadow: 0 6px 28px rgba(44, 62, 80, 0.16);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.12);
    opacity: 1;
  }
}

@keyframes playlistGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 136, 209, 0.12),
      0 4px 24px rgba(44, 62, 80, 0.12);
  }
  100% {
    box-shadow: 0 0 24px 8px rgba(2, 136, 209, 0.18),
      0 4px 24px rgba(44, 62, 80, 0.12);
  }
}

/* Blog iframe modal styles */
.blog-iframe-modal {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.blog-iframe-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 44, 70, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.blog-iframe-wrapper {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(2, 136, 209, 0.18);
  max-width: 800px;
  width: 90vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.5s;
}
.blog-iframe-wrapper iframe {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 18px 18px;
  background: #f8fafc;
}
.blog-iframe-close {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 3;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #0288d1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-iframe-close:hover {
  background: #0288d1;
  color: #fff;
}
@media (max-width: 767px) {
  .blog-iframe-wrapper {
    max-width: 98vw;
    width: 98vw;
    height: 80vh;
    border-radius: 10px;
  }
  .blog-iframe-close {
    top: 4px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
  }
}

/* Blog Modal Styles */
.blog-modal {
  display: none;
}
.blog-modal.show {
  display: flex;
}
.blog-modal-content {
  display: none;
}
.blog-modal iframe {
  display: none;
}

/* Overlay to block YouTube fullscreen button (desktop and mobile) */
.youtube-playlist-embed .ytp-fullscreen-button-cover {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  z-index: 1000;
  background: transparent;
  pointer-events: auto;
  cursor: not-allowed;
}
@media (max-width: 767px) {
  .youtube-playlist-embed .ytp-fullscreen-button-cover {
    right: 4px;
    bottom: 4px;
    width: 28px;
    height: 28px;
  }
}
/* Optionally, hide the native fullscreen button visually (extra robustness) */
iframe[src*="youtube.com"]::-webkit-media-controls-fullscreen-button,
iframe[src*="youtube.com"] .ytp-fullscreen-button,
iframe[src*="youtube.com"] + div .ytp-fullscreen-button {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Navbar menu item hover/focus effect (desktop & mobile) */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.2s, background 0.2s;
  z-index: 1;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff !important;
  background: linear-gradient(90deg, #0288d1 0%, #b8860b 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(2,136,209,0.08);
}

/* Subtle menu item animation for desktop & mobile */
.navbar-nav .nav-link {
  transition: color 0.2s, background 0.2s, transform 0.18s cubic-bezier(0.4,1.4,0.6,1);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  transform: scale(1.045);
  /* color/background already set above */
}
.navbar-nav .nav-link::after {
  transition: opacity 0.2s, transform 0.22s cubic-bezier(0.4,1.4,0.6,1);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  animation: menu-underline-pop 0.32s cubic-bezier(0.4,1.4,0.6,1);
}
@keyframes menu-underline-pop {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  60% {
    opacity: 1;
    transform: scaleX(1.12);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Animated underline effect for menu items (desktop & mobile) */
.navbar-nav .nav-link::after {
  content: '';
  display: block;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #0288d1 0%, #b8860b 100%);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.1rem;
  }
  .navbar-nav .nav-link::after {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 4px;
  }
}

body::before, body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 100;
  pointer-events: none;
  border-radius: 0 18px 18px 0;
}
body::before {
  left: 0;
  background: linear-gradient(180deg, #0288d1 0%, #4dd0e1 100%);
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}
body::after {
  right: 0;
  background: linear-gradient(180deg, #4dd0e1 0%, #0288d1 100%);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}
@media (max-width: 767px) {
  body::before, body::after {
    width: 1.5px;
    border-radius: 0 8px 8px 0;
  }
  body::before {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  body::after {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

/* Highlight for The Christian Life summary sentence */
.christian-life-highlight, .newlife-highlight {
  background: linear-gradient(90deg, #fffde7 60%, #ffe082 100%);
  border-left: 4px solid #ffd600;
  padding: 0.5em 1em;
  border-radius: 8px;
  font-size: 1.13em;
  font-style: italic;
  color: #7c5700;
  box-shadow: 0 2px 8px rgba(255, 214, 0, 0.08);
  margin: 1.2em 0 1.2em 0;
  font-weight: bold;
  animation: fadeInUp 1.2s, fadeInOut 2.5s 0.2s 1 both;
}
@media (max-width: 767px) {
  .newlife-highlight, .christian-life-highlight {
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
  }
}

/* Paragraph break for visible empty lines in children text */
.paragraph-break {
  display: block;
  height: 1.2em;
  content: "";
}

/* --- Bible Reference Retractable Quote Styles --- */
.bible-quote-retract {
  display: none;
  position: relative;
  background: linear-gradient(90deg, #e3f2fd 60%, #fffde7 100%);
  border: 2px solid #0288d1;
  border-radius: 12px;
  margin: 0.7em auto 1.2em auto;
  padding: 0.5em 0.5em 0.5em 0.5em;
  max-width: 480px;
  box-shadow: 0 2px 16px rgba(2,136,209,0.08);
  z-index: 10;
  animation: fadeInUp 0.5s;
}
.bible-quote-retract.active {
  display: block;
}
.bible-quote-retract .bible-quote-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #0288d1;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2,136,209,0.12);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.bible-quote-retract .bible-quote-close:hover {
  background: #b71c1c;
  color: #fff;
}
.bible-quote-retract .bible-back-to-page {
  position: absolute;
  top: 8px;
  left: 12px;
  background: #fffde7;
  color: #0288d1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #0288d1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2,136,209,0.12);
  transition: all 0.2s;
  z-index: 2;
}
.bible-quote-retract .bible-back-to-page:hover {
  background: #0288d1;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.bible-quote-retract iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 8px;
  background: #fff;
  margin-top: 0.5em;
}
@media (max-width: 767px) {
  .bible-quote-retract {
    max-height: 80vh;
    max-width: 90vw;
    margin: 1rem auto;
  }
  
  .bible-quote-retract iframe {
    height: calc(80vh - 40px);
  }
  
  /* Enhanced mobile styles for Back to Page button */
  .bible-quote-retract .bible-back-to-page {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fffde7;
    color: #0288d1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #0288d1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(2,136,209,0.15);
    transition: all 0.2s;
    z-index: 3;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  
  .bible-quote-retract .bible-back-to-page:hover,
  .bible-quote-retract .bible-back-to-page:active {
    background: #0288d1;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Mentor Retractable Popup Styles --- */
.mentor-popup-retract {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.mentor-popup-retract.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-popup-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.mentor-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.3s ease;
}

.mentor-popup-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.mentor-popup-content iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
  .mentor-popup-retract {
    padding: 10px;
  }
  
  .mentor-popup-content {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .mentor-popup-content iframe {
    height: 70vh;
  }
  
  .mentor-popup-close {
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mentor-popup-retract {
    padding: 5px;
  }
  
  .mentor-popup-content {
    max-height: 98vh;
    border-radius: 8px;
  }
  
  .mentor-popup-content iframe {
    height: 75vh;
    border-radius: 0 0 8px 8px;
  }
  
  .mentor-popup-close {
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 14px;
}

/* Ensure popups don't interfere with existing Bible quote popups */
.mentor-popup-retract {
  z-index: 10000; /* Higher than bible quote popups */
}

.mentor-popup-retract.active ~ .bible-quote-retract.active {
  z-index: 9999; /* Ensure mentor popups are on top */
}

/* Iframe fallback message styles */
.iframe-fallback-message {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 10px 0;
  color: #495057;
}

.iframe-fallback-message .fallback-content {
  max-width: 400px;
  margin: 0 auto;
}

.iframe-fallback-message h3 {
  color: #343a40;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.iframe-fallback-message p {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #6c757d;
}

.iframe-fallback-message .fallback-link {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.iframe-fallback-message .fallback-link:hover {
  background: #0056b3;
  text-decoration: none;
}

.iframe-fallback-message .fallback-link i {
  margin-right: 5px;
}

/* Mobile responsive adjustments for fallback message */
@media (max-width: 768px) {
  .iframe-fallback-message {
    padding: 15px;
    margin: 8px 0;
  }
  
  .iframe-fallback-message h3 {
    font-size: 1rem;
  }
  
  .iframe-fallback-message .fallback-link {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Contact Bible Verse Styles */
.contact-bible-verse-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2,136,209,0.1);
  border: 1px solid #e3f2fd;
  transition: all 0.3s ease;
}

.contact-bible-verse-wrapper:hover {
  box-shadow: 0 4px 16px rgba(2,136,209,0.15);
  transform: translateY(-2px);
}

.contact-bible-verse {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  margin: 0;
}

.contact-bible-verse-wrapper a {
  font-weight: 500;
  transition: all 0.2s ease;
}

.contact-bible-verse-wrapper a:hover {
  color: #01579b !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .contact-bible-verse-wrapper {
    margin-top: 1rem;
    padding: 0.8rem;
  }
  
  .contact-bible-verse {
    font-size: 0.9rem;
  }
  
  .contact-bible-verse-wrapper a {
    font-size: 0.85rem;
  }
}

/* Five Finger Prayer List Styling */
.five-finger-prayer-list {
  list-style-type: decimal;
  color: #17445e;
}

.five-finger-prayer-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.five-finger-prayer-list li strong {
  color: #0288d1;
  font-weight: 600;
}

.five-finger-prayer-list li div {
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.five-finger-prayer-list li i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Responsive adjustments for Five Finger Prayer */
@media (max-width: 768px) {
  .five-finger-prayer-list {
    padding-left: 1.2rem;
  }
  
  .five-finger-prayer-list li {
    margin-bottom: 0.5rem;
  }
  
  .five-finger-prayer-list li div {
    font-size: 0.95rem;
  }
  
  .five-finger-prayer-list li i {
    font-size: 1rem !important;
  }
}
