/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Wrapper and text */
#cx91_main_wrapper {
  padding: 60px 20px;
  background: #f4f4f4;
  text-align: center;
}

#cx91_title_main {
  font-size: 38px;
  margin-bottom: 10px;
  font-weight: 900;
  color: #111;
}

#cx91_subtitle_main {
  color: #666;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 500;
}

/* Grid layout */
#cx91_grid_box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

/* Card styling */
.cx91_card_item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.cx91_card_item:hover {
  transform: scale(1.03);
}

/* Image inside card */
.cx91_card_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cx91_card_item:hover img {
  transform: scale(1.1);
}

/* Overlay */
.cx91_overlay_box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  text-align: left;
}

/* Overlay text */
.cx91_overlay_box h3 {
  font-size: 22px;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cx91_overlay_box p {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Button */
.cx91_overlay_box button {
  background: #ff2d2d;
  border: none;
  padding: 10px 18px;
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cx91_overlay_box button:hover {
  background: #cc0000;
}

/* Responsive text sizes */
@media (max-width: 600px) {
  #cx91_title_main {
    font-size: 28px;
  }
  #cx91_subtitle_main {
    font-size: 16px;
  }
  .cx91_overlay_box h3 {
    font-size: 18px;
  }
  .cx91_overlay_box p {
    font-size: 13px;
  }
  .cx91_overlay_box button {
    font-size: 13px;
    padding: 8px 14px;
  }
}