/* --- Header Styling --- */
.page-header {
  text-align: center;
  padding: 60px 20px;
}

.page-header h1 {
  font-size: 3rem;
  color: #e9e9e9;
  margin-bottom: 10px;
  font-weight: 800;
}

.page-header p {
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* --- Catalogue Grid Layout --- */
.catalogue-block {
  width: 100%;
  min-height: 100vh;
  padding: 0 40px 60px 40px;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1525px;
  margin: 0 auto;
}

/* --- UNIFIED CARD STYLING --- */
.catalogue-card {
  background: #013636;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #006d6d; /* slightly thicker border */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- UNIFIED CARD HOVER EFFECT --- */
.catalogue-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  border-color: #ffd700; /* gold border highlight */
}

/* --- Image Carousel --- */
.homecarousel-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border: 6px solid #013636;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.homecarousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.homecarousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.6s ease;
}

/* Gradient Overlay */
.homecarousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: 1;
}

/* Carousel Dots */
.homecarousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.homecarousel-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.homecarousel-dots span.active {
  background: #ffd700;
  transform: scale(1.2);
}

/* --- Card Content --- */
.card-content {
  padding: 25px 20px 30px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  background: #013636;
  transition: background 0.3s ease;
}

.card-content h3 {
  margin: 10px 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd700; /* gold heading */
  transition: color 0.3s ease;
}

.card-content p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #d9e6e6; /* soft silver-gray */
  transition: color 0.3s ease;
}

/* --- Button Styling --- */
.view-btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

/* --- COHESIVE HOVER STYLES on entire card --- */
.catalogue-card:hover .homecarousel-slide img {
  transform: scale(1.05);
}

.catalogue-card:hover .homecarousel-container {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.catalogue-card:hover .card-content {
  background: #2a2a2a; /* darker bottom */
}

.catalogue-card:hover .card-content h3 {
  color: #fff; /* heading → white */
}

.catalogue-card:hover .card-content p {
  color: #ffd700; /* text → gold */
}

.catalogue-card:hover .view-btn {
  background: #013636; /* button flips */
  color: #ffd700; /* gold text */
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .catalogue-block {
    padding: 0 20px 40px 20px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .homecarousel-container {
    height: 250px;
  }
}
