.tad-tests-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

.tad-tests-header {
  text-align: center;
  margin-bottom: 40px;
}

.tad-tests-header h1 {
  font-size: 2.5em;
  color: #333;
  margin: 0;
}

.tad-category-section {
  margin-bottom: 60px;
}

.tad-category-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.tad-category-title {
  font-size: 2em;
  color: #333;
  margin: 0 0 10px;
}

.tad-category-description {
  color: #666;
  font-size: 1.1em;
  margin: 0;
}

.tad-tests-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tad-test-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tad-test-card:hover {
  transform: translateY(-5px);
}

.tad-test-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.tad-test-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tad-test-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tad-test-title {
  margin: 0 0 15px;
  font-size: 1.5em;
  text-align: center;
}

.tad-test-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tad-test-title a:hover {
  color: #007bff;
}

.tad-test-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.tad-test-meta {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.tad-test-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: auto;
  gap: 10px;
}

.tad-test-link:hover {
  background: #0056b3;
  transform: translateX(5px);
}

.tad-arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.tad-test-link:hover .tad-arrow {
  transform: translateX(5px);
}

.tad-no-tests {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

@media (max-width: 1200px) {
  .tad-tests-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .tad-tests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tad-tests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tad-tests-header h1 {
    font-size: 2em;
  }

  .tad-category-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .tad-tests-grid {
    grid-template-columns: 1fr;
  }
}

.elementor-location-footer {
  margin-top: auto;
}

.elementor-section-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tad-tests-page {
  padding: 40px 0;
  width: 90%;
  margin: 0 auto;
}

.tad-tests-header {
  text-align: center;
  margin-bottom: 40px;
}

.tad-tests-header h1 {
  font-size: 36px;
  color: #333;
  margin: 0;
}

.tad-category-section {
  margin-bottom: 60px;
  position: relative;
}

.tad-category-header {
  text-align: center;
  margin-bottom: 30px;
}

.tad-category-title {
  font-size: 28px;
  color: #333;
  margin: 0 0 10px;
}

.tad-category-description {
  font-size: 16px;
  color: #666;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.tad-tests-carousel,
.tad-tests-single-row {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.tad-tests-carousel {
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tad-tests-carousel.slick-initialized {
  opacity: 1;
}

.tad-test-card {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 30px) !important;
  margin: 0;
  max-width: calc(33.333% - 30px);
  min-width: calc(33.333% - 30px);
}

.tad-test-image {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tad-test-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tad-test-card:hover .tad-test-image img {
  transform: scale(1.05);
}

.tad-test-content {
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tad-test-title {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.4;
  flex-grow: 1;
  width: 100%;
}

.tad-test-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tad-test-title a:hover {
  color: #007bff;
}

.tad-test-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: auto;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.tad-test-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.tad-test-link:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.tad-test-link:hover:before {
  transform: translateX(100%);
}

.tad-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.tad-test-link:hover .tad-arrow {
  transform: translateX(5px);
}

/* Navigation */
.tad-carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.tad-carousel-arrows span {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.tad-carousel-arrows span:hover {
  background: #007bff;
  color: #fff;
}

.tad-carousel-arrows .tad-prev {
  left: -20px;
}

.tad-carousel-arrows .tad-next {
  right: -20px;
}

.tad-carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.slick-dots {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  background: #ddd;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slick-dots li.slick-active button {
  background: #007bff;
}

/* Slick Carousel Fixes */
.slick-track {
  display: flex !important;
  margin: 0;
}

.slick-slide {
  height: auto;
  display: flex;
  padding: 0 15px;
}

.slick-slide > div {
  width: 100%;
  display: flex;
}

/* Responsive */
@media (max-width: 1200px) {
  .tad-carousel-arrows span {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .tad-tests-header h1 {
    font-size: 28px;
  }

  .tad-category-title {
    font-size: 24px;
  }

  .tad-carousel-arrows {
    display: none;
  }

  .tad-test-title {
    font-size: 16px;
  }
}

.tad-tests-single-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.tad-tests-single-row .tad-test-card,
.tad-tests-carousel .tad-test-card {
  width: calc(33.333% - 30px) !important;
  max-width: calc(33.333% - 30px);
  min-width: calc(33.333% - 30px);
  flex-basis: calc(33.333% - 30px);
  flex-shrink: 0;
  margin: 0;
}

body[dir="rtl"] .tad-tests-single-row .tad-test-card,
body[dir="rtl"] .tad-tests-carousel .tad-test-card {
  margin: 0;
}

.tad-tests-carousel.single-in-carousel .tad-test-card {
  width: 50% !important;
  max-width: 50%;
  min-width: 50%;
  flex-basis: 50%;
}
