/* ==========================================================================
   TEMPORARY FESTIVE THEME (DURGA PUJA / SHARADIYA SEASON - 3 MONTHS)
   --------------------------------------------------------------------------
   To remove this theme after the 3-month festive season ends:
   1. In views/index.ejs, remove or comment out:
      <link rel="stylesheet" href="/css/festive-theme.css" />
   2. Optionally remove .festive-decor-sticker and .festive-pill-badge HTML elements.
   All modern carousel & card designs will remain intact from index.css.
   ========================================================================== */

/* Background */
.festive-stories-section,
.festive-section-wrap {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

/* Background floating decorative Puja stickers */
.festive-decor-sticker {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  filter: drop-shadow(0 10px 22px rgba(5, 16, 54, 0.1));
}

.festive-decor-left {
  top: 15px;
  left: 20px;
  width: 105px;
  max-width: 14vw;
  animation: festiveFloatLeft 6s ease-in-out infinite;
}

.festive-decor-right {
  top: 10px;
  right: 25px;
  width: 95px;
  max-width: 12vw;
  animation: festiveFloatRight 7s ease-in-out infinite;
}

.festive-sticker-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes festiveFloatLeft {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

@keyframes festiveFloatRight {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}

/* Festive Pill Badge - Official Website Theme */
.festive-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 84, 209, 0.22);
  box-shadow: 0 4px 18px rgba(5, 16, 54, 0.08);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.festive-pill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(53, 84, 209, 0.16);
  border-color: rgba(53, 84, 209, 0.45);
}

.festive-dhak-icon {
  width: auto;
  height: 48px;
  max-width: 44px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
  margin: -4px 0;
}

.festive-pill-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--color-blue-1, #3554d1) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.festive-pill-sparkle {
  font-size: 18px;
  display: inline-block;
  animation: festiveSparkle 2s ease-in-out infinite;
}

@keyframes festiveSparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
  }
}

/* Festive Decorative Title Divider */
.festive-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.festive-divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(53, 84, 209, 0.35), transparent);
}

.festive-divider-flower,
.festive-divider-dhak {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* Active Pagination Dot - Official Website Blue */
.festive-carousel-pag.pagination.-dots .pagination__item.is-active,
.festive-carousel-pag .pagination__item.is-active,
.festive-stories-section .pagination.-dots .pagination__item.is-active {
  width: 24px !important;
  background: var(--color-blue-1, #3554d1) !important;
  box-shadow: 0 2px 8px rgba(53, 84, 209, 0.35) !important;
}

/* =========================================
   STORY CARDS (FROSTED GLASS & PREMIUM DESIGN)
   ========================================= */
.tz-story-card {
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 10px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 8px 30px rgba(5, 16, 54, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
  display: block;
}

.tz-story-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(53, 84, 209, 0.35) !important;
  box-shadow: 0 16px 36px rgba(5, 16, 54, 0.12), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.tz-story-card .tourCard__image {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

/* Strict 4:3 landscape aspect ratio */
.tz-story-card .cardImage,
.tz-story-card .cardImage.ratio,
.tz-story-card .cardImage.ratio-4\:3,
.tz-story-card .cardImage[class*="ratio"] {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.tz-story-card .cardImage::before {
  display: none !important;
  content: none !important;
}

.tz-story-card .cardImage .cardImage__content {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.tz-story-card .cardImage .cardImage__content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: block !important;
  border-radius: 12px !important;
}

.tz-story-card:hover .cardImage .cardImage__content img {
  transform: scale(1.08) !important;
}

.tz-story-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tz-story-card .tourCard__content {
  padding-top: 10px;
  padding-bottom: 4px;
}

.tz-story-pin {
  color: var(--color-blue-1, #3554d1) !important;
  font-size: 20px !important;
  flex-shrink: 0;
  vertical-align: middle;
}

.tz-story-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* =========================================
   MEMORY CARDS (1:1 RATIO & FESTIVE ELEGANCE)
   ========================================= */
.tz-memory-card {
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: block;
}

.tz-memory-card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 84, 209, 0.3) !important;
  box-shadow: 0 16px 32px rgba(5, 16, 54, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.tz-memory-card .tourCard__image {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.tz-memory-card .cardImage.ratio-1\:1,
.tz-memory-card .cardImage[class*="ratio"] {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

.tz-memory-card .cardImage::before {
  display: none !important;
  content: none !important;
}

.tz-memory-card .cardImage .cardImage__content {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.tz-memory-card .cardImage .cardImage__content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: block !important;
  border-radius: 10px !important;
}

.tz-memory-card:hover .cardImage .cardImage__content img {
  transform: scale(1.06) !important;
}

/* Story & Memory Carousel Navigation & Pagination Dots */
.festive-stories-section .js-gallery-prev,
.festive-stories-section .js-gallery-next,
.festive-stories-section .js-gallery-prev2,
.festive-stories-section .js-gallery-next2 {
  transition: all 0.3s ease;
  border-color: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.festive-stories-section .js-gallery-prev:hover,
.festive-stories-section .js-gallery-next:hover,
.festive-stories-section .js-gallery-prev2:hover,
.festive-stories-section .js-gallery-next2:hover {
  background: var(--color-blue-1, #3554d1) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(53, 84, 209, 0.3) !important;
}

.festive-stories-section .pagination.-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.festive-stories-section .pagination.-dots .pagination__item {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease;
  cursor: pointer;
}

/* Responsive adjustments for Festive Theme */
@media (max-width: 991px) {
  .festive-decor-left {
    width: 90px;
    top: 10px;
    left: 10px;
  }
  .festive-decor-right {
    width: 85px;
    top: 10px;
    right: 12px;
  }
  .festive-pill-badge {
    padding: 5px 20px 5px 12px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .festive-dhak-icon {
    height: 42px;
    max-width: 38px;
  }
  .festive-pill-text {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  /* Hide decorative floating Puja stickers on mobile to eliminate clutter */
  .festive-decor-sticker,
  .festive-decor-left,
  .festive-decor-right {
    display: none !important;
  }

  .festive-stories-section {
    padding-top: 30px !important;
    padding-bottom: 35px !important;
  }

  .festive-pill-badge {
    padding: 5px 16px 5px 10px !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .festive-pill-text {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }

  .festive-dhak-icon {
    height: 36px !important;
    max-width: 32px !important;
  }

  .festive-pill-sparkle {
    font-size: 15px !important;
  }

  .festive-section-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .festive-section-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    max-width: 90% !important;
    margin: 0 auto !important;
  }

  .festive-title-divider {
    margin-top: 10px !important;
  }

  .festive-divider-flower,
  .festive-divider-dhak {
    width: 26px !important;
    height: 26px !important;
  }

  .festive-divider-line {
    width: 40px !important;
  }

  .festive-slider-wrap {
    padding-top: 18px !important;
  }

  /* Story card mobile layout - Frosted Glass */
  .tz-story-card {
    width: calc(100% - 20px) !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 10px 10px 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 8px 24px rgba(5, 16, 54, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.48) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    box-sizing: border-box !important;
  }

  .tz-story-card .cardImage,
  .tz-story-card .cardImage.ratio,
  .tz-story-card .cardImage.ratio-4\:3,
  .tz-story-card .cardImage[class*="ratio"] {
    border-radius: 14px !important;
  }

  .tz-story-card .cardImage .cardImage__content img {
    border-radius: 14px !important;
  }

  .tz-story-card .tourCard__content {
    padding-top: 12px !important;
    padding-bottom: 2px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .tz-story-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.35 !important;
  }

  .tz-story-pin {
    font-size: 20px !important;
    margin-right: 5px !important;
  }

  .tz-story-tag {
    top: 10px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
  }

  /* Memory card mobile layout */
  .tz-memory-card {
    width: calc(100% - 20px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    padding: 10px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  /* Carousel Controls on Mobile */
  .festive-stories-section .d-flex.x-gap-15 {
    gap: 12px !important;
    padding-top: 20px !important;
    padding-bottom: 5px !important;
  }

  .festive-stories-section .js-gallery-prev,
  .festive-stories-section .js-gallery-next,
  .festive-stories-section .js-gallery-prev2,
  .festive-stories-section .js-gallery-next2 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    box-shadow: 0 4px 14px rgba(5, 16, 54, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
  }

  .festive-stories-section .pagination.-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    max-width: 170px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 4px 4px !important;
    min-height: 20px !important;
  }

  .festive-stories-section .pagination.-dots::-webkit-scrollbar {
    display: none !important;
  }

  .festive-stories-section .pagination.-dots .pagination__item {
    width: 7px !important;
    height: 7px !important;
    flex-shrink: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.22) !important;
    margin: 0 1px !important;
    transform: scale(1) !important;
    transition: all 0.3s ease !important;
  }

  .festive-stories-section .pagination.-dots .pagination__item.is-active {
    width: 22px !important;
    height: 7px !important;
    flex-shrink: 0 !important;
    border-radius: 999px !important;
    background: var(--color-blue-1, #3554d1) !important;
    box-shadow: 0 2px 8px rgba(53, 84, 209, 0.35) !important;
  }
}
