@font-face {
  font-family: iransans;
  src: url("../fonts/iransansweb.ttf");
}

@media (min-width: 1536px) {
  .container {
    max-width: 1762px !important;
  }
}

html,
body {
  font-family: iransans !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

.sub-menu-item {
  font-size: 10px;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  /* Animation for expanding/collapsing */
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.shift.active {
  background-color: #f99417;
  width: 3.5%
}

.shift {
  background-color: #d9d9d9;
  width: 1%
}

#shiftLogos-div {
  display: none;
}

#shiftLogos-div.active {
  display: grid;
}

.slide {
  transition: transform 0.9s ease-in-out, opacity 0.9s ease-in-out;
}

.slide-logo {
  transition: transform 2s ease-in-out, opacity 2s ease-in-out;
}

/* .plans-users span.active, 
 .plans-durations span.active {
  background-color: #fcfcfc;
  box-shadow: 0 2px 12px 0 rgba(61, 61, 61, 0.2);
  border-radius: 4px;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #4b5563;
}

.article-content ul,
.article-content ol {
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content img {
  border-radius: 0.5rem;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}

.article-content blockquote {
  border-right: 4px solid #667eea;
  padding-right: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #667eea;
}

.tag:hover {
  background: #667eea;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}


@media (max-width: 768px) {
  .article-content h2 {
    font-size: 1.25rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }
}

.article-content h2,
.article-content h3 {
  scroll-margin-top: 100px;
}


/* Scroll margin for headings */
.article-content h2,
.article-content h3 {
  scroll-margin-top: 100px;
}

/* Active state for current section */
.toc-link.active {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toc-link.active span:first-of-type {
  transform: scale(1.1);
}

/* Custom scrollbar for TOC */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

.toc-link.active {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.month-btn.active {
  background-color: #6a1b9a;
  color: #fff;
  border-color: #6a1b9a;
  box-shadow: 0 0 8px rgba(106, 27, 154, 0.4);
}

/* Custom scrollbar for TOC */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #d8b4fe;
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #c084fc;
}

/* Active TOC link */
.toc-link.active {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toc-link.active span:first-child {
  background: #8b5cf6 !important;
  color: white !important;
}

/* Fade in animation */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* Article content styling */
.article-content h2,
.article-content h3 {
  scroll-margin-top: 100px;
}

/* Responsive image handling */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

@keyframes slide-down {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.animate-slide-down {
  animation: slide-down 0.3s ease-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes float-delayed {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(20px) translateX(-10px);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 10s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {

  .animate-float,
  .animate-float-delayed,
  .animate-pulse-slow {
    animation: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px) translateX(10px) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes float-delayed {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translateY(15px) translateX(-10px) scale(1.05);
    opacity: 0.7;
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 10s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .animate-float,
  .animate-float-delayed,
  .animate-pulse,
  .animate-pulse-slow,
  .transition-transform,
  .transition-all {
    animation: none !important;
    transition: none !important;
  }
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active state styling for user count and duration selectors */
.plans-users span.active,
.plans-durations span.active {
  background-color: #f99417;
  /* background: linear-gradient(to right, #f99417, #5319b2); */
  color: #ffffff;
  font-weight: bold;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.plans-users span,
.plans-durations span {
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.plans-users span:hover,
.plans-durations span:hover {
  background-color: rgba(249, 148, 23, 0.1);
  transform: scale(1.05);
}

/* Disable hover effect on active items */
.plans-users span.active:hover,
.plans-durations span.active:hover {
  /* background: linear-gradient(to right, #f99417, #5319b2); */
  background-color: #5319b2;
  transform: scale(1);
}

@keyframes slide-down {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.animate-slide-down {
  animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Remove spinner from number input */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="tel"] {
  -moz-appearance: textfield;
}

@keyframes slide-down {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.animate-slide-down {
  animation: slide-down 0.3s ease-out;
}

/* Remove number spinner */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="tel"] {
  -moz-appearance: textfield;
}

@media (max-width: 640px) {
  .line-clamp-10 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 640px) {
  .line-clamp-10 {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}