:root {
  --acl-navy: #101a33;
  --acl-line: #e6e8ee;
  --acl-bg: #ffffff;
  --acl-muted: #5b6478;
}

html.acl-law-page,
body.acl-law-page {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

.acl-law-contact-hidden,
body.acl-law-page .floating-ai-btn {
  display: none !important;
}

.acl-app,
.acl-app * {
  box-sizing: border-box;
}

.acl-app {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: transparent;
  color: var(--acl-navy);
  direction: rtl;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
}

.acl-carousel-section {
  flex: 1;
  min-height: 0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}

.acl-law-title {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 22px;
  padding: 0 2px;
  color: var(--acl-navy);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 800;
  text-align: right;
}

.acl-law-search {
  flex: 0 0 auto;
  position: relative;
  width: min(420px, 100%);
  margin: 0 0 22px auto;
  color: var(--acl-muted);
  touch-action: manipulation;
}

.acl-app .acl-law-search > svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  transform: translateY(-50%);
  pointer-events: none;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
}

.acl-law-search-input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 46px 0 15px;
  border: 1px solid var(--acl-line);
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--acl-navy);
  font: inherit;
  font-size: 14px;
  text-align: right;
  box-shadow: none;
  appearance: none;
  touch-action: manipulation;
}

.acl-law-search-input:focus {
  border-color: var(--acl-navy);
}

.acl-law-search-input::placeholder {
  color: #8b92a1;
  opacity: 1;
}

.acl-carousel-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
  background: transparent;
}

.acl-carousel-viewport.acl-dragging {
  cursor: grabbing;
}

.acl-carousel-track {
  display: flex;
  gap: 22px;
  height: 100%;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  background: transparent;
}

.acl-card {
  flex: 0 0 calc(25% - 16.5px);
  border: 1px solid var(--acl-line);
  border-radius: 6px;
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 26, 51, .03);
  touch-action: pan-y;
}

.acl-card.acl-featured {
  background: var(--acl-navy);
  color: #fff;
  border-color: var(--acl-navy);
}

.acl-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.acl-title-line {
  height: 2px;
  margin: 16px 0 22px;
  background: linear-gradient(90deg, rgba(16, 26, 51, 0) 0%, rgba(16, 26, 51, .85) 18%, rgba(16, 26, 51, .85) 82%, rgba(16, 26, 51, 0) 100%);
  transform: rotate(-1.6deg);
  transform-origin: right center;
}

.acl-card.acl-featured .acl-title-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 18%, rgba(255, 255, 255, .7) 82%, rgba(255, 255, 255, 0) 100%);
}

.acl-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--acl-muted);
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding-left: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd0da transparent;
  touch-action: pan-y;
}

.acl-card p::-webkit-scrollbar {
  width: 5px;
}

.acl-card p::-webkit-scrollbar-track {
  background: transparent;
}

.acl-card p::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #cbd0da;
}

.acl-card p:last-of-type {
  margin-bottom: 0;
}

.acl-card.acl-featured p {
  color: #c9cedd;
}

.acl-card p b,
.acl-card p strong {
  color: var(--acl-navy);
  font-weight: 700;
}

.acl-card.acl-featured p b,
.acl-card.acl-featured p strong {
  color: #fff;
}

.acl-empty-state {
  width: 100%;
  text-align: center;
  padding: 60px 0;
  color: var(--acl-muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .acl-card {
    flex: 0 0 calc(50% - 11px);
  }
}

@media (max-width: 640px) {
  .acl-carousel-section {
    padding: 20px 16px;
  }

  .acl-law-title {
    margin-bottom: 14px;
    font-size: 20px;
    text-align: center;
  }

  .acl-law-search {
    width: 100%;
    margin-bottom: 14px;
  }

  .acl-card {
    flex: 0 0 100%;
    padding: 24px 20px;
    border-radius: 10px;
  }

  .acl-card h3 {
    font-size: 22px;
  }

  .acl-card p {
    font-size: 14px;
    line-height: 1.95;
  }

  .acl-title-line {
    margin: 12px 0 16px;
  }
}
