.page-header {
  margin-bottom: 1.5rem; 
}

.page-header p { 
  color: #666;
  margin: auto; 
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-search, .filter-select {
    padding: 0.6rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.filter-search { flex: 1; min-width: 200px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.event-card {
    background: transparent;
    border-radius: 25px;
    overflow: hidden;
}

.event-body {
    background: #fff;
    height:270px;
}

.event-image {
    position: relative;
    z-index: 0;
}

.event-date, .event-tag {
    position: absolute;
    z-index: 1;
}

.event-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #5c0a0e;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.event-date strong { 
  display: block; font-size: 1.3rem;
}

.event-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000000;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.event-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-body h2 { 
  margin: 0 0 0.6rem; 
  font-size: 1.2rem; 
  color: black;
}

.event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.event-meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    color: #555;
}

.event-meta li i {
    font-size: 0.9rem;
    margin: 0;            
    color: #5c0a0e;
}

.event-desc {
    font-size: 0.9rem;
    color: #666;
    margin: auto;
}

.btn-register {
    margin-top: auto;
    text-align: center;
    background: #5c0a0e;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-register:hover {
  background-color: #350507;
}

.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-register2 {
    background: #5c0a0e;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-register2:hover {
    background-color: #350507;
}

/* stops your global select rule from hiding the dropdown text */
.filter-select {
    width: auto;
    margin-bottom: 0;
    color: #000;
    background: #fff;
}

input[type=text],input[type=email],input[type=date], select, textarea {
    background-color: transparent;
    border: none; 
    border-bottom: 1px solid #555; 
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px; 
    color: #ffffff; 
    width: 100%;
    border-radius: 5px;
    padding: 10px;
}

input[type=date] {
    color-scheme: dark;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on phones */
@media (max-width: 600px) { 
    .gallery {
        grid-template-columns: 1fr;
    }
}
