/* Full-page background */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-image: url('../assets/category.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #3A1900;
}

/* Section styling */
.category-section {
  padding: 100px 20px;
  text-align: center;
  background-color: rgba(255, 255, 245, 0.30);
  backdrop-filter: blur(2px);
}

.category-section h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #850001;
}

/* Grid layout */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Polaroid-style card with vibrant theme */
.category-card {
  background: linear-gradient(to bottom right, #FFB6B9, #FF8C42);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
}

.category-card:hover {
  transform: scale(1.03);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #fffef5;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  color: #fffef5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #fffef5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Back to Home Button */
.back-home {
  margin-top: 60px;
  text-align: center;
}

.back-home a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, #E45811, #850001);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-home a:hover {
  background: #c7440f;
  transform: scale(1.05);
}
