/* 🔍 AgentsX Search Bar */
.agentsx-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 5px solid #f8f9fa;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    position: relative;
}

/* Input Field - Seamless Look */
.agentsx-search input {
    flex: 1;
    border: none !important;
    background: transparent;
    font-size: 14px;
    padding: 12px 0px;
    outline: none;
    color: #0f172a;
    width: 100%;
    appearance: none;
    box-shadow: none;
}

/* Prevents autofill background (Chrome) */
.agentsx-search input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px white inset !important;
}

/* Placeholder Styling */
.agentsx-search input::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* 🔘 Search Button */
.agentsx-search button {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease-in-out;
}

.agentsx-search button:hover {
    background-color: #1e293b;
}

/* ❌ Clear Button (X Button) */
.agentsx-clear-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 250px; /* 🔹 Moved slightly left to prevent overlap */
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Initially hidden */
}

/* No background change on hover */
.agentsx-clear-btn:hover {
    color: #ffffff;
    background: none;
}

/* 📌 AgentsX Grid Layout */
.agentsx-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    margin-top: 50px;
}

/* 🎴 Agent Card */
.agent-card {
    background: #ffffff;
    border: 1px solid #fefefe;
    border-radius: 24px;
    width: 300px;
    text-align: left;
    transition: transform 0.2s ease-in-out;
}

.agent-card:hover {
    transform: translateY(-5px);
}

/* Agent Card Title */
.agent-card h3 {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4;
    font-family: 'Alata', Helvetica, Arial, Lucida, sans-serif;
    background-image: linear-gradient(to right, #74C69D, #2D6A4F);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Agent Card Description */
.agent-card p {
    color: #202020;
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

/* Agent Card Link */
.agent-card a {
    color: transparent;
    width: 100%;
    display: inline-block;
    background-position: 99% -13px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    height: 64px;
    background-image: url(https://towardsagi.ventures/wp-content/uploads/2025/05/ezgif.com-gif-maker-12.webp);
    margin-top: 0;
    padding: 0;
    font-size: 5px;
    line-height: 1.4;
    text-align: center;
}

.agent-card .card-footer{
    background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position-x: 0;
  padding: 2% 0 2% 4% !important;
  border-bottom-right-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
  text-align: right !important;
}

.agent-card .card-footer {
   background: black;
}




/* 📄 AgentsX Pagination */
.agentsx-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background: #fefefe;
    border-radius: 8px;
}

/* Pagination Buttons */
.agentsx-page-btn {
    background: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.agentsx-page-btn:hover {
    background: grey;
}

/* Pagination Info (Page Number) */
.agentsx-page-info {
    font-size: 16px;
    font-weight: bold;
}

/* 🖼 Default Agent Logo */
.agent-logo {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    border-radius: 10px; /* Optional: Makes it slightly rounded */
    display: block;
    margin-bottom: 30px; /* Space between logo and text */
}

.agent-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Adjust this to a reasonable height */
}

.agent-description {
    max-height: 4em; /* Limit initial text to around 2-3 lines */
    overflow: hidden;
}

.agent-full-description {
    display: none;
}

.read-more-btn{
    background: transparent;
    font-family: "Inter";
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    outline:none;
    border:none;
    text-align:left;
    cursor:pointer;
    padding:0;
    background-image: linear-gradient(to right, #74C69D, #2D6A4F);
    text-align: center;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

@media only screen and (max-width: 600px) {
  .agentsx-search button {
      padding: 12px 15px;
  }
  .agentsx-clear-btn {
    right: 140px;
  }
  .agentsx-search button {
    font-size: 8px;
  }
  .agentsx-search input {
    font-size: 11px;
  }
  .agentsx-grid {
      margin-top: 0px;
  }
  .agent-card {
    width: 100%;
  }
}

