/* ============================ Homepage CSS ============================ */

/* ========== Thumb Images ========== */

#thumbs_box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;                 /* replaces ad-hoc spacing */
  justify-content: space-around;
}

.card_thumb {
  /* use flex instead of float; avoids layout conflicts */
  flex: 0 0 140px;           /* width */
  height: 190px;
  text-align: center;
  vertical-align: top;
  page-break-inside: avoid;
  box-sizing: border-box;
}

/* If you needed a decorative hook, keep ::before. Otherwise, remove. */
.card_thumb::before { content: ""; }

.card_thumb p {
  margin: 0.5em auto 0;
  max-width: 120px;
  display: block;
}

.thumb_title {
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  line-height: 1.2;
}

.thumb_artist {
  margin: 0.5em 0 0 0;
  padding: 0;
  font-size: 0.8em;
  line-height: 1.1;
  font-style: italic;
}

.upload_img {
  width: 110px;
  height: 110px;
  margin: 1.5em auto 0;
  padding-top: 20px;
  border: 4px solid #fffffb;
  border-radius: 4px;
  background-color: rgba(250, 250, 220, 1);
  box-shadow: 1px 1px 8px 3px #aaa;
  font-weight: bold;
  font-size: 1.5em;
}

.restricted_thumb { opacity: 0.4; }

/* ========== Causes Supported ========== */

#causes_supported {
  display: flex;
  flex-wrap: wrap;           /* wrap nicely on small screens */
  gap: 1em;
  align-items: flex-start;
}

#causes_supported img {
  flex-shrink: 0;
  width: 100px;
}

#enviro_mission_box {
  padding: 0.7em;
  vertical-align: top;
}

/* ========== Featured Content ========== */

#featured_content_box {
  background-image: linear-gradient(
	to right,
	rgba(2, 133, 195, 0.15),
	rgba(0, 23, 187, 0.19),
	rgba(2, 10, 195, 0.1)
  );
}

#featured_content_box h2 { font-size: 1.3rem; }

#featured_content_box ul {
  margin: 0;
  padding: 0;
  list-style: none;          /* so our custom marker doesn’t double up */
}

#featured_content_box li {
  display: inline-block;
  text-align: center;
  margin: 0 0.25em;
  position: relative;
  padding-left: 1em;         /* room for custom marker */
}

#featured_content_box li::before {
  content: "🌼";
  font-size: 0.7em;
  opacity: 0.7;
  position: absolute;
  left: 0;
  top: 0.1em;                /* tweak vertical alignment */
}

/* ============================ Calendar Box ============================ */
/* Unified modern + legacy class names to reduce duplication */

.calendar-box,
.calendarBox {
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  padding: 0.4em 0.6em;
  margin: 0.3em 0 1.5em;
}

.calendar-box ul,
.calendarBox ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.calendar-box > *,
.calendarBox > * {
  font-variant: normal;
  vertical-align: top;
}

/* Titles */
.calendar-box-title,
.boxTitle,
.calendarBox > .boxTitle {
  font-family: var(--font-heading);
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

/* Group headings */
.calendar-box-group-heading,
.calBox_groupHeading {
  text-decoration: underline;
  margin: 0.75em 0 0.25em;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Events */
.calendar-box-event,
.calBox_event {
  margin-left: 1.25em;
  padding: 0.1em 0;
  font-size: 0.9em;
  line-height: 1.5;
}

/* ============================ Content Columns (from earlier thread) ============================ */
/* Keep the responsive behavior intact if you’re using .content_cols elsewhere */

@media screen and (max-width: 768px) {
  .content_cols {
	column-count: 2;
	font-size: 0.8em;
  }

  .calendar-box-event,
  .calBox_event {
	font-size: 0.8em;
	margin-left: 1em;
  }

  #causes_supported {
	gap: 0.75em;
  }
}