/* Layout fixes on top of the original theme. Loaded AFTER main.css; the original CSS files are not edited. */

/* --- "Members" circle overlapped (and clipped) the paragraph beside it: nudge it right ------------------ */
@media only screen and (min-width: 1400px) {
  .vol-item-left { left: -20px; }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .vol-item-left { left: -32px; }
}

/* --- Moments + Video sliders: the theme only styled arrows inside a ".portfolio-slider" wrapper that the page
       never renders, so they were unstyled buttons stacked above/below the slider, and the icon used the
       Font Awesome *Regular* weight (not in the free font, so it showed a "missing glyph" box). ----------- */
.portfolio-active { position: relative; }
.portfolio-active .slick-prev,
.portfolio-active .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #090909;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.portfolio-active .slick-prev { left: 24px; }
.portfolio-active .slick-next { right: 24px; }
.portfolio-active .slick-prev::before,
.portfolio-active .slick-next::before { content: none; }
.portfolio-active .slick-prev:hover,
.portfolio-active .slick-next:hover { background: #EB9309; color: #fff; }
.portfolio-active .slick-prev i,
.portfolio-active .slick-next i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}
.portfolio-active .slick-hidden { display: none !important; }
@media (max-width: 575px) {
  .portfolio-active .slick-prev,
  .portfolio-active .slick-next { width: 44px; height: 44px; }
  .portfolio-active .slick-prev { left: 8px; }
  .portfolio-active .slick-next { right: 8px; }
}

/* --- Video gallery: the slider is variable-width, so a video with "width:100%" collapsed/overflowed ------ */
.video-gallery .portfolio-item video,
.video-gallery .portfolio-item iframe {
  display: block;
  width: min(800px, 86vw);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 15px;
  background: #000;
  object-fit: contain;
}

/* --- Hindi UI text: letter-spacing pulls Devanagari conjuncts apart, so switch it off -------------------- */
[lang="hi"] {
  letter-spacing: 0;
  font-family: "Noto Sans Devanagari", sans-serif;
}

/* --- Header menu: the two wrapped link rows were 72px apart (23px padding top and bottom on every link) -- */
@media only screen and (min-width: 992px) {
  #tp-mobile-menu > ul > li > a { padding: 9px 0; }
}

/* --- Logo animation ----------------------------------------------------------------------------------
   1. entrance: fades/scales in once
   2. the sun "breathes": a soft warm glow that swells and fades
   3. a light sweep glides across the logo, masked to the logo's own pixels so it never spills onto the page
   Motion is switched off for visitors who prefer reduced motion. */
.header-area .logo a,
.tp-side-logo a,
.tpfooter__logo a {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.header-area .logo a { --logo-mask: url("/assets/img/logo/logo1.png"); }
.tp-side-logo a { --logo-mask: url("/assets/img/logo/logo.png"); }
.tpfooter__logo a { --logo-mask: url("/assets/img/logo/footer-logo.png"); }

.header-area .logo a img,
.tp-side-logo a img,
.tpfooter__logo a img {
  animation: logo-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, logo-glow 4.8s ease-in-out 1s infinite;
  transform-origin: 50% 40%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-area .logo a:hover img,
.tp-side-logo a:hover img,
.tpfooter__logo a:hover img { transform: scale(1.045) rotate(-0.6deg); }

.header-area .logo a::after,
.tp-side-logo a::after,
.tpfooter__logo a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-mask: var(--logo-mask) center / 100% 100% no-repeat;
  mask: var(--logo-mask) center / 100% 100% no-repeat;
  mix-blend-mode: overlay;
  animation: logo-shine 6s ease-in-out 1.6s infinite;
}

@keyframes logo-enter {
  from { opacity: 0; transform: scale(0.86) translateY(6px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 170, 30, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 170, 30, 0.55)); }
}
@keyframes logo-shine {
  0%, 55% { background-position: 160% 0; }
  85%, 100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .header-area .logo a img,
  .tp-side-logo a img,
  .tpfooter__logo a img { animation: none; }
  .header-area .logo a::after,
  .tp-side-logo a::after,
  .tpfooter__logo a::after { animation: none; display: none; }
}

/* --- Footer: phone/email were only reachable through the mobile side-menu; this reuses the theme's own
   .tpfooter-widget link styling (already dark-background-ready) to lay the new "Get in Touch" column out. -- */
.amf-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.amf-footer-contact a {
  white-space: nowrap;
}
.amf-footer-contact a i {
  width: 18px;
  text-align: center;
  margin-right: 6px;
  color: #EB9309;
}

/* --- "Follow us" popup: opened from the header button instead of jumping to the footer -------------------- */
.amf-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.amf-follow-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.amf-follow-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(2px);
}
.amf-follow-modal__panel {
  position: relative;
  max-width: 380px;
  width: calc(100% - 32px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 40px 28px 34px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.amf-follow-modal.is-open .amf-follow-modal__panel {
  transform: none;
  opacity: 1;
}
.amf-follow-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f7;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.amf-follow-modal__close:hover {
  background: #EB9309;
  color: #fff;
}
.amf-follow-modal__logo {
  max-height: 52px;
  margin: 0 auto 16px;
  display: block;
}
.amf-follow-modal__panel h3 {
  margin: 0 0 22px;
  font-size: 19px;
  color: #121212;
}
.amf-follow-modal__icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.amf-follow-modal__icons a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f7;
  font-size: 18px;
  transition: transform 0.2s, background 0.2s;
}
.amf-follow-modal__icons a:hover {
  transform: translateY(-3px);
  background: #fde9c7;
}
body.amf-modal-lock {
  overflow: hidden;
}
@media (max-width: 420px) {
  .amf-follow-modal__panel { margin-top: 20vh; padding: 34px 20px 28px; }
}
