/* Explore Page Specific Styles */
    .explore-hero {
      background: linear-gradient(135deg, #101f4d, #0c101a);
      text-align: center;
      padding: 40px 20px;
      color: white;
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
      gap: 30px;
      padding: 20px 40px;
      max-width: 1500px;
      margin: auto;
    }

    .resource-card {
      background: #1a1a1a;
      border-radius: 10px;
      padding: 5px;
      border: 1px solid rgba(79, 110, 230, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
       position: relative;
       display: flex;
       flex-direction: column; /* stack elements vertically */
       justify-content: space-between; /* push link to bottom */
       height: 100%; /* make cards equal height in grid */
    }

    .resource-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(79, 110, 230, 0.2);
      border-color: var(--primary-color);
    }

    .resource-icon {
      font-size: 2rem;
      margin-bottom: 15px;
      color: var(--primary-color);
    }

    .resource-card h3 {
      color: var(--primary-color);
      margin-bottom: 15px;
    }

   .resource-link {
  margin-top: auto;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

    .resource-link:hover {
      color: var(--primary-color);
      text-decoration: underline;
    }

    .section-title {
      text-align: center;
      margin: 60px 0 30px;
      color: var(--primary-color);
      position: relative;
      margin-bottom: -20px;
    }

    .section-title:after {
      content: "";
      display: block;
      width: 80px;
      height: 3px;
      background: var(--secondary-color);
      margin: 15px auto 0;
    }

    /* Logos to the tools section */
  .service-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .resource-icon {
    height: 60px;
    display: flex;
    align-items: left;
    justify-content: left;
  }

  /* Fallback for missing icons */
  .resource-icon:empty::before {
    content: "🌐";
    font-size: 2rem;
  }

  /* fav button */
  .fav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s ease;
  z-index: 1;
    padding: 0;
  margin: 0;
  min-width: 0; /* Prevents some browsers from forcing a minimum width */
  line-height: 1; /* Prevents extra space below the icon */
}

.fav-btn.active {
  color: gold;
}

.resource-card {
  position: relative; /* Add this to make absolute positioning work for the fav button */
}

    @media (max-width: 768px) {
      .resource-grid {
        grid-template-columns: 1fr;
      }

      .explore-hero {
        padding: 80px 20px;
      }
    }

[data-category="tools"] .quote-card {
  background-color: #132e4a; /* rich navy blue */
  border-left: 4px solid #3b82f6;
}

[data-category="exchanges"] .quote-card {
  background-color: #2a174d; /* royal violet */
  border-left: 4px solid #8b5cf6;
}

[data-category="indexes"] .quote-card {
  background-color: #3b2608; /* deep amber brown */
  border-left: 4px solid #f59e0b;
}

.quote-card {
  color: #f8fafc;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255,255,255,0.08);
}
