/* ==========================================================================
   Wisdom Page Specific Styles
   ========================================================================== */

/* Showcase Card matching image specifications */
.wisdom-showcase-card {
  width: 100%;
  height: clamp(340px, 32vw, 620px);
  background-color: #EDF3CF;
  border-radius: var(--radius-card, 32px);
  border: 1px solid rgba(149, 157, 106, 0.45);
  box-shadow: 0 16px 45px rgba(22, 64, 78, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wisdom-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(22, 64, 78, 0.1);
}

/* Subtle decorative emblem/pattern inside card */
.wisdom-showcase-inner {
  text-align: center;
  padding: clamp(24px, 3vw, 48px);
  max-width: 780px;
}

.wisdom-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(22, 64, 78, 0.08);
  color: #16404E;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(12px, 0.95vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: clamp(14px, 1.5vw, 22px);
}

.wisdom-showcase-heading {
  font-family: var(--font-rosarivo, 'Playfair Display', serif);
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 500;
  color: #16404E;
  line-height: 1.3;
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.wisdom-showcase-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(14.5px, 1.05vw, 17px);
  line-height: 1.65;
  color: #55664F;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .wisdom-showcase-card {
    height: auto;
    min-height: 280px;
    padding: 30px 18px;
    border-radius: 24px;
  }
}


/* ==========================================================================
   Second Section: Video Reels & Shorts Section
   Desktop/Normal Screens: All 5 cards come in once (not scrollable, no arrows)
   Large Screens: Responsive scaling up to 2000px+
   Mobile/Tablet (< 992px): Smooth touch-horizontal swipe
   ========================================================================== */
.wisdom-reels-section {
  width: 100%;
  margin-top: clamp(40px, 4.5vw, 76px);
  margin-bottom: clamp(60px, 6vw, 110px);
  position: relative;
}

.reels-slider-container {
  position: relative;
  width: 100%;
  padding: 10px 0;
}

/* Default (Normal & Large Screens >= 992px): All 5 cards come in once, NOT scrollable */
.reels-viewport {
  width: 100%;
  overflow: visible;
  padding: 12px 0 24px 0;
}

.reels-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.6vw, 36px);
}

/* Individual Reel Card */
.reel-card {
  width: 100%;
  aspect-ratio: 9 / 14;
  min-height: 340px;
  border-radius: clamp(20px, 1.8vw, 36px);
  background-color: #16404E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(22, 64, 78, 0.14);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(22, 64, 78, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.reel-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.reel-card:hover .reel-thumbnail-img {
  transform: scale(1.06);
}

.reel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
  transition: background 0.35s ease;
}

.reel-card:hover .reel-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.94) 100%);
}

.reel-card-inner {
  padding: clamp(16px, 1.4vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}

/* Background watermark / decorative glow */
.reel-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(237, 243, 207, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reel-card:hover::before {
  transform: scale(1.4);
  opacity: 0.8;
}

/* Center Frosted Play Button */
.reel-play-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}

.reel-play-btn {
  width: clamp(52px, 3.8vw, 88px);
  height: clamp(52px, 3.8vw, 88px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  font-size: clamp(18px, 1.4vw, 30px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.reel-play-btn i {
  margin-left: 3px;
}

.reel-card:hover .reel-play-btn {
  transform: scale(1.14);
  background: #EDF3CF;
  color: #16404E;
  box-shadow: 0 10px 28px rgba(237, 243, 207, 0.45);
}

/* Card Content / Title */
.reel-content {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6vw, 12px);
}

.reel-title {
  font-family: var(--font-rosarivo, 'Playfair Display', serif);
  font-size: clamp(13px, 0.95vw, 22px);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.36;
  margin: 0;
  display: -webkit-box;
  /* -webkit-line-clamp: 4; */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #EDF3CF;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(11.5px, 0.75vw, 16px);
  font-weight: 600;
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.reel-card:hover .reel-cta {
  opacity: 1;
  transform: translateX(3px);
}

/* Navigation buttons: Hidden on normal & large screens where all cards come in once */
.reel-nav-btn {
  display: none !important;
}

/* ==========================================================================
   Mobile & Tablet (< 992px): Smooth touch-horizontal scroll
   ========================================================================== */
@media (max-width: 991px) {
  .reels-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 4px 20px 4px;
  }

  .reels-viewport::-webkit-scrollbar {
    display: none;
  }

  .reels-track {
    display: flex;
    width: max-content;
    gap: 16px;
  }

  .reel-card {
    width: 220px;
    height: 350px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .reel-title {
    font-size: 14.5px;
  }

  .reel-cta {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .reel-card {
    width: 200px;
    height: 330px;
  }

  .reel-play-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
}
