.container-sq {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 20px;
  max-width: 790px;
  width: 100%;
}

.top-row,
.bottom-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Boxes */
.box {
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

/* Specific sizes and colors */
.pink {
  background: hotpink;
  width: 100%;
  max-width: 250px;
  height: 150px;
  background-image: url("");

}

.black {
  background: black;
  width: 100%;
  max-width: 490px;
  height: 150px;
  object-fit: cover;
  
}

.orange {
  background: lightsalmon;
  width: 100%;
  max-width: 600px;
  height: 250px;
  background-image: url("");
}

.green {
  background: lightgreen;
  width: 100%;
  max-width: 140px;
  height: 250px;
  background-image: url("");
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
  .top-row,
  .bottom-row {
    flex-direction: column;
    align-items: center;
  }

  .box {
    width: 90% !important;
    max-width: none;
  }
}






.cards-cc {
  display: grid;
  gap: 20px;
  padding-bottom: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  margin-top: 20px;
} 


.card-community-homepage {
  position: relative;
  width: 300px;
  padding-top: 40px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 20px;
  border-radius: 10px;
  text-align: left;
  background: #fff;
 
  max-width: 300px;
  min-width: 280px;
  scroll-snap-align: start;
}


.card-community-homepage h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #31b9a8;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

.date-badge strong {
  font-size: 1.2rem;
}

.location, .time {
  font-size: 0.9rem;
  margin: 6px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #555;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* Color themes for cards */
.light-blue {
  background-color: #e7f3ff;
}

.light-yellow {
  background-color: #fff4dd;
}

.light-green {
  background-color: #d2eadb;
}
.light-red{
  background-color: rgba(239, 152, 152, 0.947);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cards-cc{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  }
  .card-community-homepage {
    flex: 0 0 300px;
    scroll-snap-align: start;

}
.cards-cc {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cards-cc::-webkit-scrollbar {
  display: none;
}
  
}