/* Core Animation Magic */
/* ========== ANIMATION INJECTION ========== */

/* Smooth slide and fade for menu */
.mobile-menu {
  transition: max-height 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle:checked ~ .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Prepare links for stagger animation */
.mobile-menu li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Animate each link in when menu opens */
.menu-toggle:checked ~ .mobile-menu li:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}
.menu-toggle:checked ~ .mobile-menu li:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.menu-toggle:checked ~ .mobile-menu li:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.menu-toggle:checked ~ .mobile-menu li:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.menu-toggle:checked ~ .mobile-menu li:nth-child(5) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

/* Menu icon rotate animation */
.menu-icon {
  transition: transform 0.4s ease;
}

.menu-toggle:checked ~ .menu-icon {
  transform: rotate(90deg) scale(1.1);
}



/* === Mobile Menu Reveal w/ Slide In + Fade === */
.menu-toggle:checked ~ .mobile-menu {
  display: flex;
  max-height: 500px;
  animation: menuReveal 1s ease forwards;
}



@keyframes menuReveal {
  0% {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}



/* === Zig-Zag Staggered Entrance for Each Link === */
.mobile-menu li {
  opacity: 0;
  transform: translateX(150px) rotateZ(3deg) scale(0.9);
  animation: none;
  animation-fill-mode: forwards;
}

.menu-toggle:checked ~ .mobile-menu li:nth-child(odd) {
  animation: zigInLeft 0.8s ease forwards;
}

.menu-toggle:checked ~ .mobile-menu li:nth-child(even) {
  animation: zigInRight 0.8s ease forwards;
}

.menu-toggle:checked ~ .mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.menu-toggle:checked ~ .mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.menu-toggle:checked ~ .mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
.menu-toggle:checked ~ .mobile-menu li:nth-child(4) { animation-delay: 0.4s; }
.menu-toggle:checked ~ .mobile-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes zigInLeft {
  0% { opacity: 0; transform: translateX(-80px) rotateZ(-6deg) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) rotateZ(0deg) scale(1); }
}

@keyframes zigInRight {
  0% { opacity: 0; transform: translateX(80px) rotateZ(6deg) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) rotateZ(0deg) scale(1); }
}

/* === Nav-Link Neon Hover + Table Line Effect === */
.nav-link {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #ff00ff, #ff7300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
  z-index: -1;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Zoom + Brighten + Border Glow on Hover */
.nav-link:hover {
 
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  border-image: linear-gradient(90deg, #00f0ff, #ff00ff, #ff7300) 1;
}



.blog-result {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #111;
  border-radius: 12px;
  transition: background 0.25s, transform 0.15s ease;
  align-items: center;
  background: #fff;
}

.blog-result:hover {
  background: #f2f2f2;
  transform: translateY(-1px);
}

.blog-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.blog-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-excerpt {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  max-height: 2.8em; /* about 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.cancel-button {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-container.active .cancel-button {
  opacity: 1;
  pointer-events: auto;
}

body.freeze-scroll {
  overflow: hidden;
}

input::placeholder {
    color: black;
    opacity: 1;
  }


  /* === RESPONSIVE ADAPTATION === */

@media (max-width: 1350px) {
  .baby-container {
    width: 95%;
  }
}



@media (max-width: 992px) {
  .baby-header h2 {
    font-size: 1.5rem;
  }

  .baby-header p {
    font-size: 0.95rem;
  }

  .baby-header input {
    font-size: 14px;
    padding: 0.7rem 1rem;
  }

  .baby-results-list li h4 {
    font-size: 15px;
  }

  .baby-results-list li p,
  .baby-results-list li a {
    font-size: 12px;
  }

  #baby-clear {
    font-size: 16px;
    left: 88%;
  }
}

@media (max-width: 768px) {
  .baby-header {
    padding: 1.5rem 1rem;
  }

  .baby-header input {
    padding: 0.65rem 0.9rem;
  }

  #baby-clear {
    left: 86%;
  }

  .baby-results-list {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .baby-header h2 {
    font-size: 1.25rem;
  }

  .baby-header p {
    font-size: 0.85rem;
  }

  .baby-header input {
    font-size: 13px;
    padding: 0.6rem 0.8rem;
  }

  #baby-clear {
    left: 84%;
    font-size: 14px;
  }

  .baby-results-list li h4 {
    font-size: 14px;
  }

  .baby-results-list li p,
  .baby-results-list li a {
    font-size: 11px;
  }

  .baby-results-list {
    max-height: 200px;
  }
}

a img {
  display: block;
}
a {
  text-decoration: none;
}



#searchResults * {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.posts-links{
    pointer-events: auto !important;
  position: relative;
  z-index: 10;
}


/* ⚡ NEXT-GEN FLOATING BUTTON SYSTEM ⚡ */

:root {
  --main-gradient: linear-gradient(135deg, #7f5af0, #2cb5e8);
  --btn-glow: 0 0 12px rgba(127, 90, 240, 0.6), 0 0 24px rgba(44, 181, 232, 0.4);
  --menu-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --modal-blur: blur(12px);
}

/* Wrapper */
.floatingButtonWrap {
  position: fixed;
  bottom: 45px;
  right: 45px;
  z-index: 9999;
}

/* Inner */
.floatingButtonInner {
  position: relative;
}

/* Main Floating Button */
.floatingButton {
  width: 80px;
  height: 80px;
  background: var(--main-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--btn-glow);
  border: 5px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-left: 50%;
  margin-bottom: -9%;
}

.floatingButton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s ease;
}

.floatingButton:hover::after {
  transform: scale(2);
  opacity: 1;
}

.floatingButton:hover {
  transform: scale(1.12) rotate(45deg);
  box-shadow: 0 12px 35px rgba(127, 90, 240, 0.65), 0 0 18px rgba(44, 181, 232, 0.4);
}

.floatingButton .fa {
  font-size: 28px;
  transition: transform 0.4s ease;
}

.floatingButton.open .fa {
  transform: rotate(270deg);
}

/* Menu */
.floatingMenu {
  position: absolute;
  bottom: 90px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  
}

.floatingButton.open + .floatingMenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floatingMenu li {
  list-style: none;
  margin-bottom: 14px;
  transform: translateY(20px);
  animation: slideUp 0.45s ease forwards;
  animation-fill-mode: both;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.floatingMenu li a {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--modal-blur);
  color: #222;
  padding: 12px 22px;
  border-radius: 0%;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.floatingMenu li a:hover {
  transform: translateX(-10px) scale(1.03);
  background: rgba(230, 236, 255, 0.95);
  color: #5a41d9;
}

/* Animations with Delay */
.floatingMenu li:nth-child(1) { animation-delay: 0.1s; }
.floatingMenu li:nth-child(2) { animation-delay: 0.2s; }
.floatingMenu li:nth-child(3) { animation-delay: 0.3s; }
.floatingMenu li:nth-child(4) { animation-delay: 0.4s; }
.floatingMenu li:nth-child(5) { animation-delay: 0.5s; }
.floatingMenu li:nth-child(6) { animation-delay: 0.6s; }
.floatingMenu li:nth-child(7) { animation-delay: 0.7s; }
.floatingMenu li:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Modal Overlay */
.customModal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: auto;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Content */
.modalContent {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--modal-blur);
  margin: 8% auto;
  padding: 35px;
  border-radius: 20px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.45s ease forwards;
  position: relative;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modalContent h2 {
  margin-top: 0;
  font-size: 26px;
  color: #3a3a3a;
  margin-bottom: 22px;
}

.modalContent ul {
  list-style: none;
  padding: 0;
}

.modalContent ul li {
  margin-bottom: 12px;
}

.modalContent ul li a {
  color: #5a41d9;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.modalContent ul li a:hover {
  color: #2cb5e8;
}

/* View More */
.modalContent .viewMore {
  display: inline-block;
  margin-top: 25px;
  background: var(--main-gradient);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.modalContent .viewMore:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #6b4df7, #26a4d8);
}

/* Close Button */
.closeModal {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.closeModal:hover {
  color: #000;
  transform: scale(1.2);
}


.face {
  position: absolute;
  width: 100%;
  height: 100%;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 7vw, 64px); /* Dynamic sizing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem; /* Some breathing room on small screens */
  backface-visibility: hidden;
  box-sizing: border-box;
}




















