/* DevOps Resources Section Styles */
.resources-section {
  padding: 60px 3%; /* Further reduced padding */
  background: var(--bg-dark); /* Using CSS variable */
  position: relative;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem; /* Further reduced font size */
  color: var(--text-medium); /* Using CSS variable */
  margin-top: 8px; /* Reduced margin */
  font-weight: 400;
  max-width: 450px; /* Further reduced max-width */
  margin-left: auto;
  margin-right: auto;
}

.resources-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted minmax for even smaller cards */
  gap: 15px; /* Further reduced gap */
  max-width: 950px; /* Adjusted max-width */
  margin: 40px auto; /* Reduced margin */
  position: relative;
  z-index: 1;
}

.resource-card {
  background: var(--bg-medium); /* Using CSS variable */
  border: 1px solid var(--glass-border); /* Using CSS variable */
  border-radius: 16px;
  padding: 25px 18px; /* Further reduced padding */
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto; /* Allow height to adjust naturally */
}

.resource-card:hover {
  border-color: var(--primary-color); /* Using CSS variable */
  background: var(--bg-medium); /* Using CSS variable */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.resource-card.popular {
  border-color: rgba(0, 170, 255, 0.3); /* Using primary-color opacity */
}

.popular-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--primary-color); /* Using CSS variable */
  color: var(--text-light); /* Using CSS variable */
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.card-icon {
  width: 40px; /* Reduced size */
  height: 40px; /* Reduced size */
  margin-bottom: 15px; /* Reduced margin */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.1); /* Using primary-color opacity */
  border-radius: 8px; /* Adjusted border-radius */
  color: var(--primary-color); /* Using CSS variable */
  font-size: 1.2rem; /* Reduced font size */
}

.resource-card h3 {
  font-size: 1.2rem; /* Further reduced font size */
  color: var(--text-light); /* Using CSS variable */
  margin-bottom: 12px; /* Reduced margin */
  font-weight: 600;
}

.card-description {
  color: var(--text-medium); /* Using CSS variable */
  font-size: 0.85rem; /* Further reduced font size */
  line-height: 1.4;
  margin-bottom: 25px; /* Reduced margin */
  flex-grow: 1;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0; /* Reduced margin */
}

.features-list li {
  color: var(--text-medium); /* Using CSS variable */
  font-size: 0.85rem; /* Further reduced font size */
  padding: 6px 0; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced gap */
}

.features-list i {
  color: var(--primary-color); /* Using CSS variable */
  font-size: 0.9rem;
}

.pricing-badge {
  text-align: left;
  margin-bottom: 20px; /* Reduced margin */
  padding: 12px; /* Reduced padding */
  background: var(--glass-border); /* Using CSS variable */
  border-radius: 10px; /* Adjusted border-radius */
}

.price-label {
  display: block;
  color: var(--text-medium); /* Using CSS variable */
  font-size: 0.7rem; /* Further reduced font size */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px; /* Reduced margin */
}

.price {
  display: block;
  color: var(--text-light); /* Using CSS variable */
  font-size: 1.1rem; /* Further reduced font size */
  font-weight: 600;
}

.resource-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Further reduced gap */
  padding: 10px 18px; /* Further reduced padding */
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem; /* Further reduced font size */
  transition: all 0.3s ease;
}

.resource-cta.primary {
  background: var(--primary-color); /* Using CSS variable */
  color: var(--text-light); /* Using CSS variable */
}

.resource-cta.secondary {
  background: rgba(255, 255, 255, 0.05); /* Adjusted to match --glass-border */
  color: var(--text-light); /* Using CSS variable */
  border: 1px solid var(--glass-border); /* Using CSS variable */
}

.resource-cta.tertiary {
  background: transparent;
  color: var(--primary-color); /* Using CSS variable */
  border: 1px solid rgba(0, 170, 255, 0.3); /* Using primary-color opacity */
}

.resource-cta:hover {
  filter: brightness(1.2);
}

/* Resources Benefits */
.resources-benefits {
  margin-top: 60px; /* Reduced margin-top */
  padding-top: 60px; /* Reduced padding-top */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-title {
  text-align: center;
  font-size: 1.8rem; /* Reduced font size */
  color: var(--text-light); /* Using CSS variable */
  margin-bottom: 40px; /* Reduced margin */
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  text-align: left;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.1); /* Using primary-color opacity */
  border-radius: 12px;
  color: var(--primary-color); /* Using CSS variable */
  font-size: 1.5rem;
}

.benefit-item h4 {
  font-size: 1.25rem;
  color: var(--text-light); /* Using CSS variable */
  margin-bottom: 12px;
  font-weight: 600;
}

.benefit-item p {
  color: var(--text-medium); /* Using CSS variable */
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) { /* Adjusted breakpoint to account for smaller cards */
  .resources-section {
    padding: 60px 5%;
  }

  .resources-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted for smaller screens */
    gap: 15px;
    max-width: 90%;
  }

  .resource-card {
    padding: 25px 18px;
  }

  .resource-card h3 {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  .features-list li {
    font-size: 0.8rem;
  }

  .pricing-badge {
    padding: 10px;
  }

  .price {
    font-size: 1rem;
  }

  .resource-cta {
    font-size: 0.75rem;
    padding: 8px 15px;
  }

  .benefits-title {
    font-size: 1.6rem;
  }

  .benefit-item h4 {
    font-size: 1.1rem;
  }

  .benefit-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .resources-container {
    grid-template-columns: 1fr; /* Stack cards on very small screens */
    max-width: 90%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .resources-section {
    padding: 40px 3%;
  }

  .resource-card {
    padding: 20px 15px;
  }

  .benefits-title {
    font-size: 1.4rem;
  }
}
