/* assets/css/site.css */

/* Simple ad-box styling reused across site */
.ad-slot, .aside-box {
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  padding: 1rem;
  /* ensure enough min-height for ad content */
  min-height: 100px;
}

/* Constrain the inner content area on article/index pages */
.main-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Constrain narrower content wrappers, e.g. forms */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
html {
  overflow-y: scroll;
  height: 100%;
}
.choices__list--dropdown {
  z-index: 2000 !important;
}
/* force all grid-card images to 100% width and a fixed height, cropping via cover */
.card-grid-img {
  width: 100%;
  height: 180px;        /* tweak this to whatever makes sense */
  object-fit: cover;
}
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;    /* prevents inline‐img whitespace issues */
}

body {
  min-height: 100vh;          /* fallback */
  min-height: 100dvh;         /* better on mobile */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;             /* take remaining space */
}

/* If you prefer not to add mt-auto in markup */
footer.site-footer { margin-top: auto; }

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff !important;
  font-size: 18px;
  border: none;
}

.btn-social.fb    { background-color: #1877F2; }
.btn-social.x     { background-color: #000000; }
.btn-social.wa    { background-color: #25D366; }
.btn-social.email { background-color: #6c757d; }
.btn-social.copy  { background-color: #495057; }

.btn-social:hover {
  opacity: 0.85;
}


/* Crisp rounded stroke that always joins cleanly */
.event-card {
  position: relative;
  border: 0;                /* don't use the native border */
  border-radius: 14px;
  background: var(--bs-body-bg);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
  overflow: hidden;         /* clips children to the radius */
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;                 /* top/right/bottom/left: 0 */
  border-radius: inherit;
  pointer-events: none;
  /* the “border” */
  box-shadow: inset 0 0 0 2px var(--bs-primary);
}

/* If you added a header, give it matching corners */
.event-card .card-header {
  background: var(--bs-primary);
  color: #fff;
  border: 0;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.event-card .card-body {
  background-color: var(--bs-body-bg);
}
.event-card ul { margin-bottom: 0; }
