/* ==================== AiApps Page CSS ==================== */
.ai_apps_main {
  width: 100%;
  width: 100%;
  background-image: linear-gradient(
    to bottom,
    #1e0687 10%,
    rgb(92, 131, 238) 100%,
    #000 100%
  );
  border-radius: 32px;
  margin-top: 120px;
}

.ai_apps_inner {
  height: 100%;
  padding: 77px 0px;
  max-width: 960px;
  margin: 0 auto;
}

.ai_apps_inner .heading {
  font-size: 4.5rem;
  line-height: 5.625rem;
  letter-spacing: -1.44px;
  color: #ffffff;
  text-align: center;
}

.ai_apps_inner .sub-heading {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.875rem;
  color: #fff;
  margin-top: 25px;
}

.ai_apps_inner .sub-heading span {
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.875rem;
  text-align: center;
  color: #fff;
}

.ai_apps_inner .search-apps {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 5px 5px 5px 20px;
  max-width: 800px;
  margin: 60px auto 0px auto;
}

.ai_apps_inner .search-apps .fa-search {
  margin-right: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: 200;
}

.ai_apps_inner .search-apps .search-input {
  border: none;
  width: 100%;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 18px;
}

.ai_apps_inner .search-apps .search-input::placeholder {
  color: #fff;
  opacity: 0.8;
}

.ai_apps_inner .search-apps .search-btn {
  border: none;
  width: 150px;
  border-radius: 4px;
  padding: 10px 10px;
  transition: all 0.3s ease-in-out;
  font-weight: 600;
}

.ai_apps_inner .search-apps .search-btn:hover {
  background-image: linear-gradient(
    to right,
    #1e0687 10%,
    rgb(92, 131, 238) 100%,
    #000 100%
  );
  color: #fff;
}

.ai_apps_inner .popular-categories {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.ai_apps_inner .popular-categories h4 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #fff;
}

.ai_apps_inner .popular-categories .categories {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.ai_apps_inner .popular-categories .categories span {
  background-image: linear-gradient(
    to right,
    #1e0687 10%,
    rgb(92, 131, 238) 100%,
    #000 100%
  );
  font-size: 0.75rem;
  line-height: 1.125rem;
  font-weight: 700;
  align-self: center;
  color: rgb(255, 255, 255);
  border-radius: 30px;
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.ai_apps_inner .popular-categories .categories span:hover {
  border: 1px solid #fff;
}

/* Ai Apps Card */
.ai-apps-tabs .custom-tabs {
  border-bottom: none;
}
.ai-apps-tabs .custom-tabs .nav-item {
  width: 150px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 0;
  margin-right: 10px;
}

.ai-apps-tabs .custom-tabs .nav-link.active {
  background-color: #1f4ab6;
  color: #fff;
  font-weight: 600;
  margin: 10px 0 20px 0;
  border-radius: 8px;
}

/* AI Apps List */
.ai-apps-list {
  background-color: #f8f9fa;
  padding: 0;
}

.ai-app-cards-main {
  padding: 30px;
  background-color: #fff;
}

.ai-app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.ai-app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.ai-app-img-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.ai-app-cards-main .ai-app-card .arrow-icon {
  position: absolute;
  right: 0;
  top: 0;
  margin-right: 10px;
  margin-top: 10px;
  transform: rotate(30deg);
}

.ai-app-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.ai-app-card .card-body {
  padding: 20px;
  position: relative;
}

.ai-app-card .card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.ai-app-card .ai-app-description {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 20px;
}

.ai-app-card .ai-app-task {
  display: inline-block;
  padding: 6px 12px;
  background-color: #1e4ab5;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 20px;
}

.ai-app-card .arrow-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #1e4ab5;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.ai-app-card:hover .arrow-icon {
  transform: rotate(90deg);
}

/* Featured Area */
.featured-area {
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.featured-area h4 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.featured-options {
  display: flex;
  align-items: center;
  align-content: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.featured-options .img-main {
  width: 60px;
  min-width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.featured-options .img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-options .featured-title {
  font-size: 18px;
  font-weight: bold;
  color: #181818;
  transition: all 0.3s ease;
}

.featured-options .featured-title:hover {
  color: #170d13;
}

/* Ai Details */
.ai-app-details-container {
  padding: 40px 0;
  margin-top: 120px;
}

.ai-app-card .ai-app-details-card {
  border: none;
  margin-bottom: 30px;
}

.ai-app-details-img {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.ai-app-details-img img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.ai-app-details-header {
  border: none;
  margin-bottom: 30px;
  padding-left: 0px;
  background-color: transparent;
}

.ai-app-details-card-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.ai-app-details-card-description {
  font-size: 20px;
  color: #6c757d;
}

.ai-app-details-cover {
  position: relative;
  margin-bottom: 30px;
}

.ai-app-details-cover-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 10px;
}

.ai-app-details-content {
  /* General styles */
  font-size: 18px;
  line-height: 1.6;
  color: #181818;
}

.ai-app-details-content h1,
.ai-app-details-content h2,
.ai-app-details-content h3,
.ai-app-details-content h4,
.ai-app-details-content h5,
.ai-app-details-content h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: bold;
  color: #181818;
}

.ai-app-details-content h1 {
  font-size: 32px;
}

.ai-app-details-content h2 {
  font-size: 28px;
}

.ai-app-details-content h3 {
  font-size: 24px;
}

.ai-app-details-content h4 {
  font-size: 20px;
}

.ai-app-details-content h5 {
  font-size: 18px;
}

.ai-app-details-content h6 {
  font-size: 16px;
}

.ai-app-details-content p {
  font-size: 18px;
  margin-bottom: 16px;
  color: #181818;
}

.ai-app-details-content ul,
.ai-app-details-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #181818;
}

/* List items with <strong> tag outside of <p> tag */
.ai-app-details-content ul li,
.ai-app-details-content ol li {
  margin-bottom: 8px;
  align-items: baseline;
}

/* List items with <strong> tag inside <p> tag */
.ai-app-details-content ul li:has(> p > strong),
.ai-app-details-content ol li:has(> p > strong) {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

/* Parent list items with sub-lists */
.ai-app-details-content ul li:has(ul),
.ai-app-details-content ol li:has(ol),
.ai-app-details-content ul li:has(ol),
.ai-app-details-content ol li:has(ul) {
  display: block;
}

.ai-app-details-content ul li::before {
  content: "\2022";
  color: #333;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.ai-app-details-content ol {
  counter-reset: item;
}

.ai-app-details-content ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  margin-right: 0.5em;
  text-align: right;
  flex-shrink: 0;
}

.ai-app-details-content li p {
  margin: 0;
}

.ai-app-details-content li strong {
  font-weight: bold;
}

.ai-app-details-content ul ul {
  list-style-type: none;
  padding-left: 40px;
}

.ai-app-details-content ul ul li::before {
  content: "\25E6";
  color: #181818;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
}

.ai-app-details-content li a {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  margin: 0 4px;
}

.ai-app-details-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.ai-app-details-content a {
  color: #007bff;
  text-decoration: none;
}

.ai-app-details-content a:hover {
  text-decoration: underline;
}

.ai-app-details-content blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  color: #181818;
}

.ai-app-details-content pre {
  margin-bottom: 16px;
  padding: 16px;
  background-color: #f8f9fa;
  overflow-x: auto;
  color: #181818;
}

.ai-app-details-content code {
  font-family: monospace;
  font-size: 14px;
  background-color: #f8f9fa;
  padding: 2px 4px;
  color: #181818;
}

.try-it-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background-color: #3727ea;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.try-it-btn:hover {
  background-color: #1f10c6;
}

.arrow-icon {
  margin-left: 10px;
  transform: rotate(45deg);
}

/* ai-app-details-featured-area */
.ai-app-details-featured-area {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.featured-area-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.ai-app-details-featured-area h4 {
  margin-bottom: 20px;
  font-size: 24px;
}

.ai-app-details-featured-options {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.featured-img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 15px;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-desc {
  font-size: 14px;
  color: #6c757d;
}

@media (max-width: 767px) {
  .ai-app-details-img {
    height: auto;
    padding: 10px;
  }

  .ai-app-details-card-title {
    font-size: 24px;
  }

  .ai-app-details-card-description {
    font-size: 16px;
  }

  .try-it-btn {
    font-size: 16px;
    padding: 8px 16px;
  }

  .featured-area-title {
    font-size: 20px;
  }

  .featured-img-wrapper {
    width: 60px;
    height: 60px;
  }

  .featured-title {
    font-size: 16px;
  }

  .featured-desc {
    font-size: 12px;
  }
}

.ai-app-details-featured-area .ai-app-details-featured-options .img-main {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
  height: 100px;
  width: 100px;
  padding: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.ai-app-details-featured-area .ai-app-details-featured-options .img-main img {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.ai-app-details-featured-area .ai-app-details-featured-options .featured-title {
  font-weight: bold;
  transition: all 0.2s ease-out;
  cursor: pointer;
  font-size: 18px;
  margin-top: 4px;
}

.ai-app-details-featured-area .ai-app-details-featured-options .featured-desc {
  font-size: 16px;
}

.ai-app-details-featured-area
  .ai-app-details-featured-options
  .featured-title:hover {
  color: #2121f6;
}

.letters-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: none;
}

.letters-nav .letter {
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
  color: #000;
  transition: all 0.3s ease;
}

.letters-nav .letter:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  cursor: pointer;
  border-radius: 3px;
}

.letters-nav .separator {
  margin: 0 5px;
  color: #000;
}

.letters-nav.fixed {
  position: fixed;
  display: flex;
  top: 100px;
  z-index: 1000;
}

/* Ai Apps Categories */
.ai-categories-wrapper {
  margin-top: 120px;
  width: 100%;
}

.ai-categories {
  width: 100%;
  border-radius: 32px;
  color: #232323;
}

.ai-categories h2 {
  color: #2d2d2d;
}

.ai-category-item {
  padding: 0.5rem;
  border: 1px solid #a5a5a5;
  border-radius: 0.25rem;
  transition: background 0.2s ease; /* Smooth transition for background */
  background-color: transparent; /* Initially transparent */
  background-size: 200% 100%;
  background-position: 100% 0;
  color: #000;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-category-item:hover {
  background-color: #2d1dd4;
  background-position: 0 0;
  background-size: 100% 100%;
  color: #fff;
}
/* showcase-card */
.showcase-card {
  background-image: linear-gradient(
    to left,
    rgb(0, 45, 143) 100%,
    #ffffff 100%
  );
  color: white;
  border: none;
  border-radius: 12px;
  padding: 30px;
  margin: 60px 40px 0px 40px;
  box-shadow: 0 10px 20px rgba(31, 74, 182, 0.2);
  transition: all 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(31, 74, 182, 0.3);
}

.showcase-card .showcase-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.showcase-card .showcase-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
}

.showcase-card .showcase-btn {
  background-color: #fff;
  color: #1f4ab6;
  border: none;
  font-weight: 600;
  padding: 12px 24px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.showcase-btn:hover {
  background-color: #f0f0f0;
  color: #1f4ab6;
  transform: scale(1.01);
}

@media (max-width: 767px) {
  .showcase-card {
    text-align: center;
    padding: 20px;
  }

  .showcase-card .showcase-title {
    font-size: 24px;
  }

  .showcase-card .showcase-subtitle {
    font-size: 16px;
  }

  .showcase-card .showcase-btn {
    width: 100%;
    margin-top: 20px;
  }
}
