/* ===== General Page Styling ===== */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #f7f9fc;
  color: #333;
}

/* ===== Header ===== */
.header {
  text-align: center;
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: white;
  padding: 40px 20px;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
}

.header p {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== Tabs ===== */
.tabs {
  text-align: center;
  background: white;
  padding: 15px 0;
  border-bottom: 2px solid #e0e0e0;
}

.tab-button {
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

/* ===== Tab Content ===== */
.tab-content {
  display: none;
  padding: 30px 40px;
}

.tab-content.active {
  display: block;
}

/* ===== Filter Section ===== */
.filter-section {
  text-align: right;
  margin-bottom: 20px;
}

.filter-section select {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* ===== Resource Grid ===== */
.resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.resource-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.resource-card h3 {
  color: #007bff;
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* ===== Download Button ===== */
.download-btn {
  background: linear-gradient(to right, #007bff, #00c3ff);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #0056b3;
}

.back-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background-color: #3a6bac;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.back-btn:hover {
  background-color: #345f9b;
  transform: translateY(-2px);
}