/*************************************************
---------------  Styles Of Home Page -------------
**************************************************/
:root {
  --tansa-navy: #2d3e5e;
  --tansa-copper: #d4a373;
  --tansa-bg: #f9f7f2;
}

body {
  font-family: "Anjoman", sans-serif;
  background-color: var(--tansa-bg);
  color: var(--tansa-navy);
  scroll-behavior: smooth;
}

/* ۳. کلاس‌های عمومی و کاربردی */
.tansa-gradient {
  background: linear-gradient(135deg, var(--tansa-navy) 0%, #445a84 100%);
}

.card-shadow {
  box-shadow: 0 10px 30px -15px rgba(45, 62, 94, 0.1);
}

.insta-gradient-text {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text-stroke {
  -webkit-text-stroke: 1px #d4a373;
  color: transparent;
}

/* ۴. بخش تایپوگرافی و عناوین مقالات */
.magazine-title-wrapper {
  position: relative;
  display: inline-block;
}
.magazine-title-bg {
  position: absolute;
  top: -10px;
  right: -20px;
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.05;
  color: var(--tansa-navy);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.bg-typography {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  font-weight: 900;
  color: var(--tansa-navy);
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.5rem;
}

.bg-text-watermark {
  position: absolute;
  top: 50px;
  right: -10%;
  font-size: 15vw;
  font-weight: 900;
  color: rgba(45, 62, 94, 0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-title {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* ۵. گریدها و ساختار مقالات */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}
.article-big {
  grid-column: span 7;
}
.article-small {
  grid-column: span 5;
}
.article-wide {
  grid-column: span 12;
}

@media (max-width: 768px) {
  .article-big,
  .article-small,
  .article-wide {
    grid-column: span 12;
  }
}

/* ۶. کارت‌های معمولی مقالات */
.article-card {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  background: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(45, 62, 94, 0.15);
}

.category-card:hover i {
  transform: translateY(-5px);
  color: var(--tansa-copper);
}

/* ۷. کارت‌های پیشرفته (Editorial) با گرید نامتقارن */
.master-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.card-large {
  grid-column: span 7;
  grid-row: span 2;
  border-radius: 4rem 1.5rem 1.5rem 1.5rem;
}
.card-medium {
  grid-column: span 5;
  grid-row: span 1;
}
.card-small {
  grid-column: span 2.5;
  grid-row: span 1;
}

@media (max-width: 1024px) {
  .master-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .card-large,
  .card-medium,
  .card-small {
    grid-column: span 1;
    grid-row: auto;
    border-radius: 1.5rem;
  }
}

@media (max-width: 640px) {
  .master-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 1.5rem;
}

.editorial-card img {
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: grayscale(20%) brightness(0.9);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.editorial-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1);
}

.editorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(45, 62, 94, 0.8) 0%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 2;
}

.explore-btn {
  width: 45px;
  height: 45px;
  background: var(--tansa-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10;
}

.editorial-card:hover .explore-btn {
  transform: translateX(0);
  opacity: 1;
}

.badge-new {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--tansa-copper);
  color: white;
  padding: 0.3rem 1rem;
  font-size: 10px;
  font-weight: 900;
  border-radius: 5px;
  z-index: 5;
}

/* ۸. استایل‌های اسلایدر Swiper و نظرات */
.swiper,
.swiper-wrapper,
.swiper-slide {
  overflow: visible !important;
}

.swiper-testimonials {
  width: 100%;
  max-width: 380px;
  height: 480px;
  padding: 20px 0;
}

.testimonial-card {
  background: white;
  border-radius: 2.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(45, 62, 94, 0.12);
  border: 1px solid rgba(45, 62, 94, 0.05);
}

.quote-icon {
  font-size: 3.5rem;
  color: var(--tansa-copper);
  opacity: 0.15;
  line-height: 0.2;
}

.swiper-pagination {
  position: absolute !important;
  bottom: 0 !important;
}
.swiper-pagination-bullet {
  background-color: #2d3e5e !important;
  opacity: 0.3;
  transition: all 0.3s ease;
  width: 10px;
  height: 10px;
}
.swiper-pagination-bullet-active {
  background-color: #d4a373 !important;
  opacity: 1;
  transform: scale(1.4);
}

/* ۹. انیمیشن نقاط داغ (Hotspots) */
.hotspot-dot {
  position: relative;
  cursor: pointer;
}
.hotspot-dot::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.product-popcard {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(10px) translateX(50%);
  opacity: 0;
  visibility: hidden;
  z-index: 50;
}
.hotspot-container:hover .product-popcard {
  transform: translateY(0) translateX(50%);
  opacity: 1;
  visibility: visible;
}



/* ناوبری جانبی */
.nav-container {
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.custom-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(45, 62, 94, 0.1);
  color: #2d3e5e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-nav-btn:hover {
  background: #2d3e5e;
  color: white;
  transform: scale(1.1);
}