/* Resources Page Styles */
.resources-filter {
  padding: 2rem 1.5rem;
  background: var(--color-background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid rgba(0, 150, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.1);
}

.search-box svg {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid rgba(0, 150, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--color-secondary);
  background: rgba(0, 150, 255, 0.05);
}

.filter-btn.active {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.resources-section {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(0, 30, 60, 0.02) 0%, 
    rgba(0, 50, 100, 0.05) 50%, 
    rgba(0, 30, 60, 0.02) 100%);
}

.resources-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(0, 150, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 150, 255, 0.15);
  border-color: rgba(0, 150, 255, 0.3);
}

.resource-card.hidden {
  display: none;
}

.resource-icon {
  width: 60px;
  height: 60px;
  padding: 15px;
  background: linear-gradient(135deg, 
    rgba(0, 150, 255, 0.1) 0%, 
    rgba(0, 200, 255, 0.2) 100%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-secondary);
}

.resource-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 150, 255, 0.1);
  color: var(--color-secondary);
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

.resource-content h3 {
  margin: 0 0 1rem 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1.4;
}

.resource-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-size,
.resource-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.resource-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.resource-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 150, 255, 0.3);
}

.resource-download svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* Newsletter CTA Section */
.newsletter-cta {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-content h2 {
    font-size: 2rem;
  }
}