/* ═════════════════════════════════════════════════════════════
   CATEGORY SHOWCASE SECTION (8-CARD RAJASTHANI ROYAL SHOWCASE)
   Replaces previous bento layout with clean, symmetrical 4x2 grid
   strictly matching user sample reference
   ═════════════════════════════════════════════════════════════ */

.bento-gallery-section {
  width: 100%;
  background: transparent;
  padding: clamp(12px, 2vw, 24px) 5% clamp(48px, 6vw, 72px);
  color: var(--color-text-main, #F5F7FA);
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
}

.bento-gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bento-gallery-header h2,
.bento-gallery-title {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--silver-bright, #E2E6EC);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.bento-gallery-header p,
.bento-gallery-desc {
  color: var(--muted, #7A8494);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 0.95rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(56px, 5.2vw, 70px);
  grid-auto-flow: dense;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

/* Tablet (3 columns) */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 78px;
    max-width: 740px;
  }
  .sm-col-1 { grid-column: span 1 !important; }
  .sm-col-2 { grid-column: span 2 !important; }
  .sm-row-2 { grid-row: span 2 !important; }
}

/* Mobile (2 columns compact layout) */
@media (max-width: 640px) {
  .bento-gallery-section {
    padding: 12px 10px 36px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 92px !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .bento-cta-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 13, 16, 0.94) !important;
  }
}

/* Item Spans matching component */
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background-color: #14050b;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  user-select: none;
  display: flex;
}

.bento-col-1 { grid-column: span 1; }
.bento-col-2 { grid-column: span 2; }
.bento-col-3 { grid-column: span 3; }
.bento-row-1 { grid-row: span 1; }
.bento-row-2 { grid-row: span 2; }
.bento-row-3 { grid-row: span 3; }
.bento-row-4 { grid-row: span 4; }

/* Responsive spans on mobile (2-column mosaic layout) */
@media (max-width: 640px) {
  .bento-col-1, .bento-col-2, .bento-col-3, .bento-row-1, .bento-row-2, .bento-row-3, .bento-row-4,
  .sm-col-1, .sm-col-2, .sm-row-2 {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
    min-height: unset !important;
    height: 100% !important;
  }

  /* Make item 3 (Pendant) span full width as an elegant landscape center banner */
  .bento-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    grid-row: span 2 !important;
  }

  .bento-overlay {
    opacity: 1 !important;
    padding: 8px 10px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%) !important;
  }

  .bento-title {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
  }

  .bento-desc {
    font-size: 0.64rem !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bento-cta-card {
    padding: 10px 8px !important;
  }

  .bento-cta-star {
    margin-bottom: 6px !important;
  }

  .bento-cta-star svg {
    width: 22px !important;
    height: 22px !important;
  }

  .bento-cta-heading {
    font-size: 0.88rem !important;
    margin-bottom: 3px !important;
  }

  .bento-cta-sub {
    font-size: 0.65rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }

  .bento-cta-btn {
    padding: 5px 12px !important;
    font-size: 0.62rem !important;
    gap: 4px !important;
  }
}

.bento-item:hover {
  transform: scale(1.02);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.22);
  z-index: 10;
}


.bento-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bento-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .bento-media-wrap img {
  transform: scale(1.06);
}

/* Overlay gradient with title & desc exactly as in component */
.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(10px, 1.4vw, 16px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-title {
  position: relative;
  color: #FFFFFF;
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.bento-desc {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  margin: 3px 0 0;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ═══ EXPLORE ALL / VIEW ALL SPECIAL BENTO CARD ═══ */
.bento-item-cta {
  background: radial-gradient(circle at 50% 30%, #2b0f19 0%, #17060d 65%, #0d0307 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  cursor: pointer;
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
  padding: 10px;
}

.bento-item-cta:hover {
  border-color: rgba(212, 175, 55, 0.8) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(212, 175, 55, 0.35) !important;
}

.bento-cta-card {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(14px, 1.8vw, 22px) clamp(10px, 1.4vw, 18px);
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(56, 18, 30, 0.35) 0%, transparent 80%);
  transition: border-color 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

.bento-item-cta:hover .bento-cta-card {
  border-color: rgba(212, 175, 55, 0.75);
  background: radial-gradient(circle at 50% 40%, rgba(95, 28, 48, 0.45) 0%, transparent 85%);
}

.bento-cta-star {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-item-cta:hover .bento-cta-star {
  transform: scale(1.15) rotate(15deg);
}

.bento-cta-star svg {
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
}

.bento-cta-heading {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin: 0 0 clamp(4px, 0.6vw, 8px) 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.bento-cta-sub {
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.72rem, 0.82vw, 0.85rem);
  color: #C8A97E;
  margin: 0 0 clamp(10px, 1.4vw, 18px) 0;
  line-height: 1.38;
  max-width: 190px;
  opacity: 0.95;
}

.bento-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(72, 46, 20, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 9999px;
  padding: 8px 18px;
  color: #FFF8EB;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.68rem, 0.75vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.bento-cta-btn svg {
  transition: transform 0.25s ease;
}

.bento-item-cta:hover .bento-cta-btn,
.bento-cta-btn:hover {
  background: linear-gradient(135deg, rgba(190, 140, 25, 0.95), rgba(135, 90, 15, 0.95));
  color: #0d0407;
  border-color: #F8E7B9;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.bento-item-cta:hover .bento-cta-btn svg,
.bento-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Dock thumb for CTA */
.bento-dock-thumb-cta {
  background: radial-gradient(circle, #2b0f19 0%, #0d0307 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
}

.bento-dock-cta-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bento-dock-cta-mini span {
  font-size: 8px;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 0.05em;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
}

/* BENTO MODAL */
.bento-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none; /* JS toggles display:flex */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bento-modal[aria-hidden="false"] {
  display: flex;
}

.bento-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 30;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bento-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.bento-modal-content {
  position: relative;
  width: 90%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #08090C;
  margin-bottom: 5rem;
  z-index: 10;
}

.bento-modal-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-modal-media img,
.bento-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
  display: block;
}

.bento-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.95) 0%, rgba(8, 9, 12, 0.6) 65%, transparent 100%);
  color: #fff;
  pointer-events: none;
}

.bento-modal-info h3 {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-silver-light, #E2E6EC);
  margin-bottom: 0.35rem;
  margin-top: 0;
}

.bento-modal-info p {
  color: var(--color-silver, #A8B2C1);
  font-size: 0.9rem;
  margin: 0;
}

.bento-modal-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 22, 32, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  z-index: 10001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.bento-modal-dock:active {
  cursor: grabbing;
}

.bento-dock-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin-left: -8px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bento-dock-thumb img,
.bento-dock-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-dock-thumb:first-child {
  margin-left: 0;
}

.bento-dock-thumb:nth-child(even) {
  transform: rotate(12deg);
}

.bento-dock-thumb:nth-child(odd) {
  transform: rotate(-12deg);
}

.bento-dock-thumb:hover {
  transform: translateY(-10px) scale(1.35) rotate(0deg) !important;
  z-index: 40 !important;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.bento-dock-thumb.active {
  transform: translateY(-8px) scale(1.22) rotate(0deg) !important;
  z-index: 35 !important;
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* TOP COLLECTIONS / RECENT NEWS SECTION */
.blog-news-section {
  width: 100%;
  background: transparent;
  padding: 0 5% 0;
  margin-top: 0;
  color: var(--color-text-main, #F5F7FA);
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
}

.blog-news-header {
  display: none !important;
}

.blog-news-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-news-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(26, 29, 36, 0.85);
  color: var(--silver-bright, #E2E6EC);
  border: 1px solid rgba(197, 203, 211, 0.28);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  width: max-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.blog-news-title {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--silver-bright, #E2E6EC);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-news-desc {
  max-width: 480px;
  color: var(--muted, #8E98A8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* First item spans 2 cols on desktop */
.blog-card:first-child {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .blog-news-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .blog-news-section {
    padding: 0 10px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .blog-card:first-child {
    grid-column: 1 / -1 !important;
  }
  .blog-card:first-child .blog-card-image {
    aspect-ratio: 21 / 10 !important;
  }
  .blog-card:not(:first-child) .blog-card-image {
    aspect-ratio: 4 / 3.4 !important;
  }
  .blog-card {
    gap: 0.45rem !important;
  }
  .blog-card-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }
  .blog-card:first-child .blog-card-title {
    font-size: 0.98rem !important;
  }
  .blog-card-tap-hint {
    padding: 3px 8px !important;
    font-size: 0.62rem !important;
    bottom: 8px !important;
    right: 8px !important;
    gap: 3px !important;
  }
}

.blog-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  cursor: pointer;
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-surface, #13151A);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card-date {
  display: none !important;
}

.blog-card-title {
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-main, #F5F7FA);
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card:first-child .blog-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.blog-card:hover .blog-card-title {
  color: var(--color-silver-light, #E2E6EC);
}

.blog-card-tap-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 230, 236, 0.25);
  border-radius: 9999px;
  color: #F5F7FA;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.blog-card:hover .blog-card-tap-hint {
  background: rgba(184, 134, 11, 0.9);
  color: #FFFFFF;
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
