@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Base Styles */
body {
  font-family: 'Noto Sans Bengali', sans-serif;
  background-color: #fcfbf7;
  color: #1f2937;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans Bengali', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fbf9f4;
}
::-webkit-scrollbar-thumb {
  background: #bd8841;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a1a35;
}

/* Micro-animations and Utilities */
.transition-card {
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

.transition-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(138, 26, 53, 0.1),
    0 10px 10px -5px rgba(138, 26, 53, 0.04);
}

.glass-nav {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Form Styles */
.form-input {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #8a1a35;
  box-shadow: 0 0 0 3px rgba(138, 26, 53, 0.15);
}

/* Gradient Hero Background */
.hero-gradient {
  background: linear-gradient(135deg, #8a1a35 0%, #400916 100%);
}

.gold-gradient-text {
  background: linear-gradient(to right, #e9dab8, #bd8841);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Swiper Equal Height Slide Stretching */
.swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure top bar dropdown displays above the sticky navigation header */
body > div.bg-burgundy-900:first-of-type {
  position: relative;
  z-index: 60;
}

/* Keep the FAQ active label visible even before Tailwind's CDN runtime finishes scanning. */
#admin-sidebar [data-admin-nav='faqs'][aria-current='page'] {
  background-color: #8a1a35;
  color: #ffffff;
}

.admin-sidebar-brand-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #8a1a35;
  color: #ffffff;
  box-shadow: 0 4px 10px rgb(64 9 22 / 18%);
}

.admin-sidebar-brand-icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

/* The supplied raster logo replaces the legacy inline heart artwork. */
header > div > a[href='index.html'] > svg {
  display: none !important;
}
header > div > a[href='index.html'] {
  align-items: center !important;
  flex-direction: row !important;
}
header > div > a[href='index.html'] > .brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* Keep the shared public header logo visible even before its JavaScript enhancer runs. */
header > div > a[href='index.html']:not(:has(img.brand-logo))::before {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 0.5rem;
  background: url('../images/matrimony-logo.png') center / contain no-repeat;
  content: '';
}

@media (min-width: 768px) {
  header > div > a[href='index.html']:not(:has(img.brand-logo))::before {
    width: 3.5rem;
    height: 3.5rem;
    flex-basis: 3.5rem;
  }
}

/* Shared burgundy banner for every public interior page. */
.public-page-banner {
  background: linear-gradient(105deg, #731930 0%, #8a1a35 58%, #a51e42 100%);
  color: #fff;
}
.public-page-banner__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2.65rem;
}
.public-page-banner__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
}
.public-page-banner__breadcrumb a {
  color: inherit;
  transition: color 0.2s ease;
}
.public-page-banner__breadcrumb a:hover {
  color: #fff;
}
.public-page-banner__breadcrumb span:last-child {
  color: #fff;
}
.public-page-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.public-page-banner p {
  max-width: 44rem;
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}
.public-page-banner-duplicate {
  display: none !important;
}

/* About has its own data-driven hero; hide it once the shared page banner is present. */
body:has([data-public-page-banner]) main > section:has([data-about-copy='title']) {
  display: none !important;
}
@media (min-width: 768px) {
  .public-page-banner__inner {
    padding-top: 3rem;
    padding-bottom: 3.15rem;
  }
  .public-page-banner__breadcrumb {
    font-size: 0.85rem;
  }
  .public-page-banner p {
    font-size: 1rem;
  }
}

.testimonial-card {
  display: flex;
  height: 100%;
  min-height: 185px;
  flex-direction: column;
  border: 1px solid #eee8e5;
  border-radius: 0.9rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgb(64 9 22 / 6%);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.testimonial-masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.testimonial-masonry .testimonial-card {
  margin: 0;
}
@media (min-width: 768px) {
  .testimonial-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.testimonial-card:hover,
.testimonial-card:focus-within,
.testimonial-card:focus {
  outline: none;
  transform: translateY(-3px);
  background: #8a1a35;
  box-shadow: 0 12px 22px rgb(115 25 48 / 22%);
}
.testimonial-stars {
  color: #d69a19;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.testimonial-card-review {
  margin: 0.85rem 0 1.1rem;
  color: #26344a;
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-line;
}
.testimonial-reviewer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.testimonial-avatar {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #8b96a5;
}
.testimonial-avatar svg {
  width: 1.15rem;
  height: 1.15rem;
}
.testimonial-reviewer-name {
  display: block;
  color: #8a1a35;
  font-size: 0.78rem;
}
.testimonial-reviewer-role {
  display: block;
  margin-top: 0.1rem;
  color: #8590a0;
  font-size: 0.62rem;
}
.testimonial-card:hover .testimonial-card-review,
.testimonial-card:focus .testimonial-card-review {
  color: #fff;
}
.testimonial-card:hover .testimonial-reviewer-name,
.testimonial-card:focus .testimonial-reviewer-name {
  color: #fff;
}
.testimonial-card:hover .testimonial-reviewer-role,
.testimonial-card:focus .testimonial-reviewer-role {
  color: #f7dce3;
}
.testimonial-card:hover .testimonial-avatar,
.testimonial-card:focus .testimonial-avatar {
  border-color: #b75b70;
  background: #9e3a52;
  color: #fff;
}

/* Home testimonial slider */
.homepage-testimonial-card {
  position: relative;
  display: flex;
  min-height: 225px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f1e4e7;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.45rem;
  box-shadow: 0 8px 24px rgba(115, 25, 48, 0.07);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.homepage-testimonial-card:hover {
  transform: translateY(-5px);
  background: #8a1a35;
  box-shadow: 0 17px 31px rgba(115, 25, 48, 0.2);
}
.homepage-testimonial-quote {
  position: absolute;
  top: 0.35rem;
  right: 1.1rem;
  color: #f6e3e8;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}
.homepage-testimonial-stars {
  position: relative;
  color: #d69a19;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
}
.homepage-testimonial-review {
  position: relative;
  margin: 0.9rem 0 1.3rem;
  color: #243247;
  font-size: 0.91rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.65;
}
.homepage-testimonial-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.homepage-testimonial-avatar {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7d8dc;
  border-radius: 9999px;
  background: #faf4f5;
  color: #8a1a35;
}
.homepage-testimonial-avatar svg {
  width: 1.28rem;
  height: 1.28rem;
}
.homepage-testimonial-person > div strong,
.homepage-testimonial-person > div span {
  display: block;
}
.homepage-testimonial-person > div strong {
  color: #8a1a35;
  font-size: 0.86rem;
}
.homepage-testimonial-person > div span {
  margin-top: 0.1rem;
  color: #8390a1;
  font-size: 0.7rem;
}
.homepage-testimonial-card:hover .homepage-testimonial-quote {
  color: rgba(255, 255, 255, 0.13);
}
.homepage-testimonial-card:hover .homepage-testimonial-review,
.homepage-testimonial-card:hover .homepage-testimonial-person strong {
  color: #fff;
}
.homepage-testimonial-card:hover .homepage-testimonial-person span {
  color: #f8dce4;
}
.homepage-testimonial-card:hover .homepage-testimonial-avatar {
  border-color: #c66078;
  background: #a93250;
  color: #fff;
}
.homepage-testimonial-nav {
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0d8de;
  border-radius: 9999px;
  background: #fff;
  color: #8a1a35;
  box-shadow: 0 6px 15px rgba(115, 25, 48, 0.12);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.homepage-testimonial-nav:hover {
  background: #8a1a35;
  color: #fff;
}
.homepage-testimonials-swiper .swiper-pagination-bullet {
  width: 0.45rem;
  height: 0.45rem;
  background: #d39aa9;
  opacity: 1;
}
.homepage-testimonials-swiper .swiper-pagination-bullet-active {
  width: 1.35rem;
  border-radius: 9999px;
  background: #8a1a35;
}

/* Home gallery masonry preview */
.homepage-gallery-masonry {
  column-count: 2;
  column-gap: 0.85rem;
}
.homepage-gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #f1e4e7;
  cursor: zoom-in;
}
.homepage-gallery-item img {
  display: block;
  width: 100%;
  min-height: 130px;
  max-height: 310px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.homepage-gallery-item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem 0.85rem 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  background: linear-gradient(transparent, rgba(64, 9, 22, 0.82));
  transition: opacity 0.25s ease;
}
.homepage-gallery-item:hover img {
  transform: scale(1.05);
}
.homepage-gallery-item:hover span,
.homepage-gallery-item:focus span {
  opacity: 1;
}
.home-gallery-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgb(20 8 12 / 82%);
}
.home-gallery-lightbox.is-open {
  display: flex;
}
.home-gallery-lightbox__dialog {
  position: relative;
  max-width: min(940px, 100%);
  max-height: 100%;
}
.home-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: 0.9rem;
  object-fit: contain;
  box-shadow: 0 20px 55px rgb(0 0 0 / 35%);
}
.home-gallery-lightbox__caption {
  margin: 0.7rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.home-gallery-lightbox__close {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #8a1a35;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 640px) {
  .homepage-gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
  }
  .homepage-gallery-item {
    margin-bottom: 1rem;
  }
}
@media (min-width: 1024px) {
  .homepage-gallery-masonry {
    column-count: 5;
  }
}

/* Public gallery archive */
.gallery-page-masonry {
  column-count: 1;
  column-gap: 1.1rem;
}
.gallery-page-item {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border: 1px solid #f1e4e7;
  border-radius: 1.1rem;
  background: #fff;
  text-align: left;
  box-shadow: 0 5px 17px rgba(115, 25, 48, 0.06);
}
.gallery-page-item img {
  display: block;
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-page-item span {
  display: block;
  padding: 0.75rem 0.9rem;
  color: #293449;
  font-size: 0.82rem;
  font-weight: 700;
}
.gallery-page-item:hover img,
.gallery-page-item:focus img {
  transform: scale(1.04);
}
@media (min-width: 640px) {
  .gallery-page-masonry {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .gallery-page-masonry {
    column-count: 3;
  }
}
/* Shared animated support/message widget on every public page. */
.floating-message-toggle {
  isolation: isolate;
}

.floating-message-wave {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 9999px;
  background: rgba(219, 64, 101, 0.28);
  animation: floating-message-wave 2.4s ease-out infinite;
  pointer-events: none;
}

.floating-message-wave-two {
  animation-delay: 1.2s;
}

@keyframes floating-message-wave {
  0% {
    opacity: 0.7;
    transform: scale(0.72);
  }
  70% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-message-wave {
    animation: none;
    opacity: 0.24;
    transform: scale(1);
  }
}
/* Keep long admin navigation menus accessible on short viewports. */
#admin-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
/* Keep every admin surface on the same Bengali-capable font, even when Tailwind's font-sans utility is present. */
body.admin-font,
body.admin-font input,
body.admin-font select,
body.admin-font textarea,
body.admin-font button {
  font-family: 'Noto Sans Bengali', sans-serif !important;
}
