/* Horizontal Divider */
.content-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1); /* Faint horizontal line */
  margin: 2rem 0;
}

/* Content Boxes Container */
.content-boxes {
  display: flex; /* Enable flexbox for horizontal alignment */
  flex-wrap: nowrap; /* Prevent wrapping to ensure boxes stay side-by-side */
  gap: 2rem; /* Space between the boxes */
  width: 75%; /* 75% of viewport width as requested */
  max-width: 75vw; /* Ensure viewport width compliance */
  margin: 0 auto; /* Center the container */
  padding: 0; /* Remove side padding since we're centering */
  justify-content: space-between; /* Distribute space between the boxes */
  margin-bottom: 1rem; /* Reduce the bottom margin to close the gap */
  box-sizing: border-box;
}

/* Individual Content Box */
.content-box {
  flex: 1 1 calc(50% - 1rem); /* Each box takes 50% of the width minus half the gap */
  max-width: calc(50% - 1rem); /* Ensure the boxes don't exceed 50% width */
  background-color: #1a1a1a; /* Dark background */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Faint border */
  display: flex;
  flex-direction: column;
}

/* Gold Divider Under Title */
.content-box-divider {
  width: 100%;
  height: 2px;
  background-color: var(--mcbb-gold); /* Gold divider */
  margin: 0.5rem 0 1rem 0; /* Space around the divider */
}

/* Placeholder Text */
.content-box-placeholder {
  font-family: 'Poppins', Arial, sans-serif; /* Use Poppins for placeholder text */
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7); /* Light text color */
  margin-top: auto; /* Push placeholder text to the bottom if needed */
}

/* Event Content Box */
.event-content-box {
  background: #181818;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.event-content-box:last-child {
  margin-bottom: 0;
}

/* Home Event Content Box Styles */
.event-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.2s, background 0.2s;
}
.event-content-link:last-child {
    margin-bottom: 0;
}
.event-content-box-home {
    display: flex;
    align-items: stretch;
    background: #23272b;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(212, 175, 55, 0.13);
    transition: box-shadow 0.2s, background 0.2s;
    padding: 0.7rem 1.2rem;
    min-height: 110px;
}
.event-content-link:hover .event-content-box-home,
.event-content-link:focus .event-content-box-home {
    background: #282c34;
    box-shadow: 0 8px 32px rgba(212,175,55,0.10);
    border-color: var(--mcbb-gold);
}

.event-content-image {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
}
.event-content-image img {
    height: 100%;
    width: auto;
    max-width: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    display: block;
}

.event-content-details {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.event-content-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.15rem;
    color: var(--mcbb-gold);
    margin: 0 0 0.4rem 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content-meta {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    color: #f7f7f7;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.event-content-date,
.event-content-time {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.1rem;
}

.event-content-venue {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.98rem;
    color: #d4af37;
    margin-top: 0.1rem;
}
.event-content-venue-label {
    font-weight: 600;
    color: var(--mcbb-gold);
}
.event-content-venue-address {
    font-style: italic;
    color: #d4af37;
    margin-left: 0.3em;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .content-boxes {
    flex-direction: column; /* Stack boxes vertically on smaller screens */
    width: 90%; /* Increase width on mobile for better space usage */
    max-width: 90vw;
    padding: 0; /* Remove padding since we're centering */
  }

  .content-box {
    flex: 1 1 100%; /* Each box takes full width */
    max-width: 100%; /* Ensure full width */
    margin-bottom: 2rem; /* Add space between stacked boxes */
  }
  
  .content-box:last-child {
    margin-bottom: 0; /* Remove margin from last box */
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .event-content-box-home {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 0.5rem;
    }
    .event-content-image {
        margin-right: 0;
        margin-bottom: 0.7rem;
    }
}

/* Index Page Specific Styles */

/* Index page specific content box modifications */
.home .content-box,
.front-page .content-box {
  display: flex;
  flex-direction: column;
}

/* Index page specific placeholder text positioning */
.home .content-box-placeholder,
.front-page .content-box-placeholder {
  margin-top: auto; /* Push placeholder text to the bottom */
}

/* Index page specific responsive adjustments */
@media (max-width: 768px) {
  .home .content-boxes,
  .front-page .content-boxes {
    width: 95%; /* Slightly wider on mobile for index page */
  }
}
