.material-card-body h5 {
  font-size: 0.80rem;
  font-weight: 600;
  word-break: break-word;
}
/* Pretty container for each material section */
.material-section-container {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(25, 135, 84, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  border: 2px solid #e3e3e3;
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.material-section-container:hover {
  box-shadow: 0 8px 32px rgba(25, 135, 84, 0.16), 0 2px 8px rgba(0,0,0,0.08);
}
/* Style for section headings (te leen / niet te leen) */

.material-section-header {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  padding: 0.7rem 0;
  color: #fff;
}

.material-card-header {
  border-radius: 0.5rem 0.5rem 0 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.7rem 0;
  margin-bottom: 0;
}

.bg-success.material-card-header {
  background: linear-gradient(90deg, #198754 60%, #43c47e 100%);
  color: #fff;
}
.bg-secondary.material-card-header {
  background: linear-gradient(90deg, #6c757d 60%, #adb5bd 100%);
  color: #fff;
}
/* Center text in material cards */
.material-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  background: #f8f9fa;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 0.8rem;
}

.material-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Materialen page specific styles */

/* Materials hero section */
.materials-hero {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  position: relative;
  overflow: hidden;
  min-height: clamp(160px, 22vh, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.materials-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/slinger.png') no-repeat center center;
  background-size: clamp(80px, 18vw, 200px) clamp(80px, 18vw, 200px);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.materials-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(232, 176, 4, 0.85) 0%, rgba(174, 131, 4, 0.85) 100%);
  z-index: 1;
}

.materials-hero .container {
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 576px) {
  .materials-hero {
    min-height: 180px;
    padding: 1.2rem 0 1.2rem 0;
  }
  .materials-hero h1 {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }
  .materials-hero h2 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}
@media (max-width: 400px) {
  .materials-hero {
    min-height: 140px;
    padding: 0.7rem 0;
  }
  .materials-hero h1 {
    font-size: 1rem;
  }
  .materials-hero h2 {
    font-size: 0.7rem;
  }
}

/* Materials intro section */
.materials-intro {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
  position: relative;
}

.materials-intro h2 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 2rem;
}

.materials-intro h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

/* Materials categories section */
.materials-categories h2 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 3rem;
}

.materials-categories h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

/* Category filter */
.category-filter {
  background: linear-gradient(145deg, #fff8f0 0%, #ffeeba 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 3px solid #ffeeba;
}

.category-filter h4 {
  color: #e8b004;
  font-weight: 700;
}

.category-btn {
  background: white;
  border: 2px solid #ffeeba;
  color: #e8b004;
  padding: 10px 25px;
  border-radius: 25px;
  margin: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-color: #e8b004;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 126, 20, 0.3);
}

/* Materials grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.material-card {
  border-radius: 20px;
  border: 3px solid #ffeeba;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.material-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(253,126,20,0.1) 50%, transparent 60%);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.material-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translate(50%, 50%);
}

.material-card:hover {
  border-color: #e8b004;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(253, 126, 20, 0.25);
}

.material-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.material-card:hover img {
  transform: scale(1.05);
}

.placeholder-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.material-card:hover .placeholder-img {
  transform: scale(1.05);
}

.placeholder-img i {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
}

.material-card-body {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.material-card h5 {
  color: #e8b004;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.material-card p {
  color: #6c757d;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.material-card .price {
  color: #e8b004;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.material-card .availability {
  color: #28a745;
  font-weight: 600;
  font-size: 1rem;
}

/* Rental info section */
.rental-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
}

.rental-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 25px;
  padding: 3rem 2rem;
  box-shadow: 0 15px 35px rgba(253,126,20,0.15);
  border: 3px solid #ffeeba;
}

.rental-card h3 {
  color: #e8b004;
  font-weight: 800;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.rental-card .bi {
  transition: all 0.3s ease;
}

.rental-card .col-md-4:hover .bi {
  transform: scale(1.1) rotate(10deg);
}

.rental-card h5 {
  color: #e8b004;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.rental-card p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 1rem;
}

.rental-card .btn-primary {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border: none;
  padding: 15px 35px;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.rental-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(253, 126, 20, 0.3);
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
}

/* Search functionality */
.materials-search {
  position: relative;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.materials-search input {
  border-radius: 25px;
  border: 2px solid #ffeeba;
  padding: 12px 20px 12px 45px;
  width: 100%;
  background: white;
}

.materials-search input:focus {
  border-color: #e8b004;
  box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.15);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #e8b004;
  font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.material-card {
  animation: fadeInUp 0.8s ease-out;
}

.material-card:nth-child(1) { animation-delay: 0.1s; }
.material-card:nth-child(2) { animation-delay: 0.2s; }
.material-card:nth-child(3) { animation-delay: 0.3s; }
.material-card:nth-child(4) { animation-delay: 0.4s; }
.material-card:nth-child(5) { animation-delay: 0.5s; }
.material-card:nth-child(6) { animation-delay: 0.6s; }

.rental-card {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .materials-hero {
    min-height: 18vh;
    padding: 2rem 0;
  }
  .material-card .card-img-top {
    height: 150px;
  }
}

@media (max-width: 900px) {
  .material-card .card-img-top {
    height: 120px;
  }
  .materials-hero {
    min-height: 15vh;
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .materials-hero {
    min-height: 30vh;
    padding: 1.5rem 0;
  }
  .materials-hero h1 {
    font-size: 2rem;
  }
  .materials-hero h2 {
    font-size: 1.3rem;
  }
  .material-card .card-img-top {
    height: 100px;
  }
  .material-card .card-body {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  .materials-hero {
    min-height: 20vh;
    padding: 1rem 0;
  }
  .materials-hero h1 {
    font-size: 1.2rem;
  }
  .materials-hero h2 {
    font-size: 1rem;
  }
  .material-card .card-img-top {
    height: 70px;
  }
  .material-card .card-body {
    padding: 0.7rem 0.3rem;
  }
}

@media (max-width: 400px) {
  .materials-hero {
    min-height: 10vh;
    padding: 0.5rem 0;
  }
  .material-card .card-img-top {
    height: 40px;
  }
}

/* Responsive for 15" laptops */
@media (max-width: 1500px) {
  .materials-hero {
    min-height: 18vh;
  }
  .material-section-header {
    font-size: 1.5rem;
  }
  .material-card h5 {
    font-size: 1.1rem;
  }
  .material-card img,
  .placeholder-img {
    height: 150px;
  }
}
