/* AI Page Specific Styles */
body.SaaSPage #Contents {
  margin-top: 30px;
}
/* Hero Section */
.ai-hero-section {
  background: linear-gradient(135deg, #E7F1F4 0%, #F5F9FA 100%);
  padding: 0;
  text-align: center;
  position: relative;
}

.ai-hero-content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.ai-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ai-hero-subtitle {
  font-size: 20px;
  color: #666;
  line-height: 1.5;
}

/* Carousel Styles */
.ai-carousel-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0 0 30px 0;
  background: rgba(255, 255, 255, 0.8);
}

.ai-tools-carousel {
  width: 100%;
}

.carousel-item {
  display: inline-block;
  text-align: center;
  margin: 0 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-item:hover {
  opacity: 0.8;
}

.carousel-item img {
  width: 800px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  margin-bottom: 15px;
}

.carousel-item span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #292929;
  white-space: nowrap;
}

/* Override slick slider for continuous scroll */
.ai-tools-carousel .slick-track {
  display: flex;
  align-items: center;
}

.ai-tools-carousel .slick-slide {
  height: auto;
}

/* Slick dots styling */
.ai-carousel-wrapper .slick-dots {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  z-index: 10;
}

.ai-carousel-wrapper .slick-dots li {
  display: inline-block;
  margin: 0 5px;
}

.ai-carousel-wrapper .slick-dots li button {
  display: block;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0px solid #2B9CBF;
  border-radius: 50%;
  background: #777777;
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.ai-carousel-wrapper .slick-dots li button:hover {
  background: rgba(43, 156, 191, 0.6);
}

.ai-carousel-wrapper .slick-dots li.slick-active button {
  background: #2B9CBF;
  width: 14px;
  height: 14px;
}

.ai-carousel-wrapper .slick-dots li button:before {
  display: none;
}

/* Search Section */
.ai-search-section {
  background: #F8FAFB;
  padding: 60px 0;
  margin-bottom: 60px;
}

.ai-search-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ai-search-title {
  font-size: 32px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 12px;
}

.ai-search-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.ai-search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.ai-search-input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.ai-search-input:focus {
  outline: none;
  border-color: #2B9CBF;
}

.ai-search-button {
  padding: 16px 32px;
  background: #2B9CBF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ai-search-button:hover {
  background: #1a7a99;
}

/* AI Solutions Section */
.ai-solutions-section {
  margin-bottom: 60px;
}

.ai-solutions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ai-solutions-title {
  font-size: 24px;
  font-weight: 700;
  background: none;
  color: #333333;
  margin: 0;
  box-shadow: none;
  padding: 0;
}

.ai-solutions-all-link {
  color: #2B9CBF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ai-solutions-all-link:hover {
  color: #1a7a99;
  text-decoration: underline;
}

/* PC/Mobile visibility classes */
.pc-only {
  display: block;
}

.mobile-only {
  display: none;
}

.ai-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-solution-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ai-solution-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.ai-solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-solution-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #292929;
  padding: 12px 20px 12px 8px;
  margin: 0;
  border-left: none;
  line-height: 1.4;
}

.ai-solution-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 12px;
}

.ai-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.ai-author-name {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.ai-solution-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 10px;
  background:#F2F2F2;
  margin: 0 0px;
  padding-top: 12px;
  margin-top: auto;
}

.ai-reading-time {
  font-size: 14px;
  color: #777777;
}

.ai-read-link {
  font-size: 14px;
  color: #2B9CBF;
  font-weight: 600;
}

.ai-solution-card:hover .ai-read-link {
  color: #1a7a99;
}

/* Ranking Section */
.ai-ranking-section {
  background: #F8FAFB;
  padding: 60px 0;
  margin: 0 -15px 60px;
}

.ai-ranking-title {
  font-size: 28px;
  font-weight: 700;
  color: #292929;
  text-align: center;
  margin-bottom: 30px;
}

.ai-ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.ai-ranking-tab {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #E0E0E0;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-ranking-tab:hover {
  border-color: #2B9CBF;
  color: #2B9CBF;
}

.ai-ranking-tab.active {
  background: #2B9CBF;
  border-color: #2B9CBF;
  color: #fff;
}

.ai-ranking-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.ai-ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.ai-ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ai-rank {
  width: 40px;
  height: 40px;
  background: #E7F1F4;
  color: #2B9CBF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.ai-ranking-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.ai-ranking-info {
  flex: 1;
}

.ai-ranking-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: #292929;
  margin: 0 0 4px;
}

.ai-ranking-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.ai-ranking-link {
  padding: 8px 20px;
  background: #2B9CBF;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.ai-ranking-link:hover {
  background: #1a7a99;
}

/* Articles Section */
.ai-articles-section {
  margin-bottom: 80px;
}

.ai-articles-title {
  font-size: 28px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 40px;
  text-align: center;
}

.ai-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ai-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ai-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ai-article-content {
  padding: 24px;
}

.ai-article-date {
  font-size: 14px;
  color: #999;
}

.ai-article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #292929;
  margin: 12px 0;
  line-height: 1.4;
}

.ai-article-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ai-article-link {
  color: #2B9CBF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ai-article-link:hover {
  color: #1a7a99;
  text-decoration: underline;
}

.ai-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.ai-category-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.ai-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ai-category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E7F1F4;
  border-radius: 50%;
}

.ai-category-title {
  font-size: 24px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 12px;
}

.ai-category-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-category-link {
  color: #2B9CBF;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.ai-category-link:hover {
  color: #1a7a99;
  text-decoration: underline;
}

/* Tools Section */
.ai-tools-section {
  background: #F5F9FA;
  padding: 60px 0;
  margin: 0 -15px;
}

.ai-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #292929;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.ai-section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #2B9CBF;
}

.ai-tools-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.ai-tool-item {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.ai-tool-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ai-tool-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ai-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-tool-content {
  flex: 1;
}

.ai-tool-name {
  font-size: 20px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 8px;
}

.ai-tool-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.ai-tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-tag {
  background: #E7F1F4;
  color: #2B9CBF;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}

.ai-tool-link {
  background: #2B9CBF;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.ai-tool-link:hover {
  background: #1a7a99;
}

/* Resources Section */
.ai-resources-section {
  padding: 60px 0;
}

.ai-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.ai-resource-card {
  background: #fff;
  border: 2px solid #E7F1F4;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.ai-resource-card:hover {
  border-color: #2B9CBF;
  transform: translateY(-3px);
}

.ai-resource-title {
  font-size: 20px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 12px;
}

.ai-resource-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ai-resource-link {
  color: #2B9CBF;
  font-weight: 600;
  text-decoration: none;
}

.ai-resource-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 727px) {
  .ai-hero-section {
    margin-bottom: 40px;
  }

  .ai-hero-content {
    margin: 0 auto 30px;
  }

  .ai-hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .ai-hero-subtitle {
    font-size: 16px;
  }

  .ai-carousel-wrapper {
    padding: 0 0;
  }

  .carousel-item {
    margin: 0 0;
  }

  .carousel-item img {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
  }

  .carousel-item span {
    font-size: 14px;
  }

  /* Search Section Mobile */
  .ai-search-section {
    padding: 40px 15px;
  }

  .ai-search-title {
    font-size: 24px;
  }

  .ai-search-subtitle {
    font-size: 16px;
  }

  .ai-search-box {
    flex-direction: column;
  }

  .ai-search-input {
    padding: 14px 20px;
    font-size: 14px;
  }

  .ai-search-button {
    padding: 14px 28px;
    font-size: 14px;
  }

  /* Solutions Mobile */
  .ai-solutions-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 0 15px;
  }

  .ai-solutions-title {
    font-size: 20px;
  }

  .ai-solutions-all-link {
    font-size: 14px;
  }

  .ai-solutions-all-link.mobile-only {
    font-size: 16px;
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: #FFFF;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #2B9CBF;
    border-radius: 4px;
  }

  .pc-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .ai-solutions-section {
    padding-bottom: 20px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .ai-solutions-grid {
    display: block;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .ai-solutions-grid.slick-slider {
    margin: 0;
    padding-bottom: 0;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .ai-solutions-grid .slick-list {
    padding: 0 15px;
  }

  .ai-solutions-grid .slick-slide {
    margin: 0 8px;
    height: auto;
  }
  
  .ai-solutions-grid .slick-track {
    display: flex;
    align-items: stretch;
  }

  .ai-solution-card {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 50px);
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
    height: 100%;
  }


  .ai-solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Slick arrows for mobile */
  .ai-solutions-grid .slick-prev,
  .ai-solutions-grid .slick-next {
    z-index: 1;
    width: 30px;
    height: 30px;
  }

  .ai-solutions-grid .slick-prev {
    left: 5px;
  }

  .ai-solutions-grid .slick-next {
    right: 5px;
  }

  .ai-solutions-grid .slick-prev:before,
  .ai-solutions-grid .slick-next:before {
    font-size: 30px;
  }

  /* Slick dots for mobile */
  .ai-solutions-grid .slick-dots {
    position: relative;
    bottom: auto;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .ai-solutions-grid .slick-dots li {
    display: inline-block;
    margin: 0 5px;
  }

  .ai-solutions-grid .slick-dots li button {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0px solid #2B9CBF;
    border-radius: 50%;
    background: #777777;
    text-indent: -9999px;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }

  .ai-solutions-grid .slick-dots li button:hover {
    background: #555555;
  }

  .ai-solutions-grid .slick-dots li button:before {
    display: none;
  }

  .ai-solutions-grid .slick-dots li.slick-active button {
    background: #2B9CBF;
    width: 12px;
    height: 12px;
  }

  .ai-solution-card h3 {
    font-size: 16px;
    padding: 12px 16px 8px;
  }

  .ai-solution-author {
    padding: 0 16px 8px;
    gap: 8px;
  }

  .ai-author-avatar {
    width: 24px;
    height: 24px;
  }

  .ai-author-name {
    font-size: 12px;
  }

  .ai-solution-footer {
    padding: 0 16px 16px;
    margin: 0 0px;
    padding-top: 8px;
    margin-top: auto;
  }

  .ai-reading-time {
    font-size: 11px;
  }

  .ai-read-link {
    font-size: 12px;
  }

  /* Ranking Mobile */
  .ai-ranking-section {
    padding: 40px 0;
  }

  .ai-ranking-title {
    font-size: 24px;
  }

  .ai-ranking-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px;
  }

  .ai-ranking-tab {
    font-size: 14px;
    padding: 8px 16px;
  }

  .ai-ranking-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .ai-ranking-info h4 {
    font-size: 16px;
  }

  /* Articles Mobile */
  .ai-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ai-article-card img {
    height: 150px;
  }

  .ai-article-content {
    padding: 16px;
  }

  .ai-article-content h3 {
    font-size: 18px;
  }

  .ai-article-content p {
    font-size: 14px;
  }

  .ai-categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .ai-category-card {
    padding: 30px 20px;
  }

  .ai-category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .ai-category-title {
    font-size: 20px;
  }

  .ai-category-description {
    font-size: 14px;
  }

  .ai-tools-section {
    padding: 40px 0;
    margin: 0;
  }

  .ai-section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .ai-tool-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .ai-tool-content {
    width: 100%;
  }

  .ai-tool-tags {
    justify-content: center;
    margin-bottom: 16px;
  }

  .ai-tool-link {
    display: inline-block;
    width: auto;
  }

  .ai-resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .ai-resource-card {
    padding: 24px 20px;
  }
}

/* Banners Section */
.ai-banners-section {
  text-align: center;
  padding: 40px 20px;
}

.ai-banner-item {
  margin-bottom: 20px;
}

.ai-banner-item:last-child {
  margin-bottom: 0;
}

.ai-banner-item a {
  display: inline-block;
}

.ai-banner-item img {
  max-width: 100%;
  height: auto;
}