* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}
body.sidebar-open {
  overflow: hidden;
}
header {
  box-shadow: 0 4px 6px -2px rgba(110, 142, 89, 0.25); /* soft green shadow */
}
aside {
  box-shadow: 6px 0 8px -4px rgba(110, 142, 89, 0.25); /* subtle right-side green shadow */
}

::placeholder {
  color: #f5f5f5 !important;
}
.borderStyle {
  border: 1px solid #343a40;
  border-radius: 7px;
}

/* Hover effect for sidebar links */
.nav-link {
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 8px;
  padding: 6px 10px;
}

.nav-link:hover {
  background-color: #343a40; /* .bg-dark-green */
  color: #e6f4ea !important; /* .text-soft-green */
}

/* Optional: active state */
.nav-link.active {
  background-color: #6e8e59; /* .bg-primary-green */
  color: #fff !important;
}

aside {
  /* border: 1px solid green; */
}

.sidebar-custom {
  top: 70px;
  width: 250px;
  height: calc(100vh - 60px);
  z-index: 9999;
  overflow-y: auto;
}

#sidebar {
  left: 0 !important;
  transition: left 0.3s ease;
}

#sidebar.hidden {
  left: -250px !important; /* دقیقاً به اندازه عرض */
}

.contentsContainerMain {
  margin-top: 60px;
  padding: 2rem;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f5f5f5;
  transition: margin-left 0.3s ease, width 0.3s ease;
  margin-left: 250px;
  width: calc(100vw - 250px);
}

.contentsContainerMain.fullwidth {
  margin-left: 0;
  width: 100vw;
}

.categories-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1c1c1c;
  border-bottom: 1px solid #343a40;
  /* border: 1px solid green; */
}

.categories {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  gap: 0.75rem;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.categories a {
  background-color: #343a40;
  color: #f5f5f5;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.categories a:hover {
  background-color: #6e8e59;
  color: #fff;
}

.arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  background-color: #2f3e2c !important;
  color: white !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  font-size: 18px !important;
  line-height: 0 !important;
}

.arrow:hover {
  background-color: #6e8e59 !important;
}

.arrow.left {
  left: 8px;
}

.arrow.right {
  right: 8px;
}

.video-thumb {
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.card:hover .video-thumb {
  transform: scale(1.03);
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.card:hover .video-duration {
  opacity: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card {
  border: none;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid green !important;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.15);
}

.short-video-wrapper {
  aspect-ratio: 9/16;
  background-color: #000;
}

.short-video {
  object-fit: cover;
  height: 100%;
  cursor: pointer;
}
@media (max-width: 575.98px) {
  .helixHeader {
    display: none;
  }
  aside {
    box-shadow: none;
  }
  .sidebar-custom {
    position: fixed;
    height: 100%;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
    background-color: #1c1c1c;
    z-index: 1040;
  }
  .helixHeader {
    display: none;
  }

  #sidebar {
    left: -250px !important;
  }
  #sidebar.hidden {
    left: 0 !important;
  }

  .contentsContainerMain {
    margin-left: 0 !important;
    width: 100vw !important;
    padding: 1rem; /* کمی کمتر برای موبایل */
    align-items: stretch;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .helixHeader {
    display: none;
  }
  aside {
    box-shadow: none;
  }
  .sidebar-custom {
    position: fixed;
    height: 100%;
    top: 55px;
    bottom: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
    background-color: #1c1c1c;
    z-index: 1040;
  }

  #sidebar {
    left: -250px !important;
  }
  #sidebar.hidden {
    left: 0 !important;
  }

  .contentsContainerMain {
    margin-left: 0 !important;
    width: 100vw !important;
    padding: 1rem; /* کمی کمتر برای موبایل */
    align-items: stretch;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .helixHeader {
    display: none;
  }
  .sidebar-custom {
    height: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .helixHeader {
    display: none;
  }
  .sidebar-custom {
    height: 100% !important;
  }
}
