@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");

body {
  font-family: "Tajawal", sans-serif !important;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#sidebar {
  position: sticky !important;
  top: 0 !important;
}
@keyframes continuous-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.marquee-container {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: continuous-marquee 20s linear infinite;
}

.marquee-wrapper:hover .marquee-container {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  margin: 0 20px;
}

.marquee-dots {
  margin: 0 5px;
  color: #6b46c1;
}

@keyframes continuous-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.marquee-container {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: continuous-marquee 20s linear infinite;
}

.marquee-wrapper:hover .marquee-container {
  animation-play-state: paused;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

h2 {
  color: #9810fa !important;
  /* font-size: 1.8em !important; */
}

/* h3 {
  font-size: 1.5em !important;
} */

.containerBreaking {
  width: 100%;
}

@media (width >= 40rem /* 640px */) {
  .containerBreaking {
    max-width: 40rem /* 640px */;
  }
}

@media (width >= 48rem /* 768px */) {
  .containerBreaking {
    max-width: 48rem /* 768px */;
  }
}

@media (width >= 64rem /* 1024px */) {
  .containerBreaking {
    max-width: 64rem /* 1024px */;
  }
}

@media (width >= 80rem /* 1280px */) {
  .containerBreaking {
    max-width: 80rem /* 1280px */;
  }
}

@media (width >= 96rem /* 1536px */) {
  .containerBreaking {
    max-width: 96rem /* 1536px */;
  }
}

@media (width >= 40rem /* 640px */) {
  .containerBreaking {
    max-width: none;
  }
}

@media (width >= 1400px) {
  .containerBreaking {
    max-width: 1400px;
  }
}

.animate-marquee {
  animation: marquee 500s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

div.post-content {
  h2 {
    font-size: 1.8em;
    font-weight: 600;
  }
  h3 {
    font-size: 1.5em;
    font-weight: 500;
  }
  p {
    font-size: 1.2em;
    a {
      color: #9810fa !important;
    }
  }
  a {
    color: #9810fa !important;
  }
  iframe {
    width: 100% !important;
  }
}

.animate-marquee {
  animation: marquee linear infinite;
  animation-play-state: running;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.swiper {
  overflow: visible !important;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: #6b46c1 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: white !important;
  font-size: 20px !important;
}

.swiper-button-prev {
  right: 0px !important;
}

.swiper-button-next {
  left: 0px !important;
}

.swiper-pagination {
  bottom: -35px !important;
  left: 0;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.swiper-pagination-bullet {
  background: white !important;
  color: black !important;
  opacity: 0.7 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 5px !important;
  border: 1px solid #6b46c1 !important;
}

.swiper-pagination-bullet-active {
  background: #6b46c1 !important;
  color: white !important;
  opacity: 1 !important;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    max-height: 80vh;
  }
  .category-grid > :nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .category-grid > :nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
  .category-grid > :nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .category-grid > :nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
  .category-grid > :nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
}

/* Grid for items to display */
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.successMsg{
    background: green;
  color: #fff !important;
  text-align: center;
}
.swiper-container {
  height: 300px; /* أو أي ارتفاع مناسب */
  overflow: hidden;
}
.swiper-slide {
  height: 100%;
}

div.post-content {
  h2 {
    font-size: 1.8em;
    font-weight: 600;
  }
  h3 {
    font-size: 1.5em;
    font-weight: 500;
  }
  p {
    font-size: 1.2em;
    a {
      color: #9810fa !important;
    }
  }
  a {
    color: #9810fa !important;
  }
  iframe {
    width: 100% !important;
  }
}