/* PHM Homepage Calendar / Events section */
/* White section with blue (#003da5, the menu blue) cards. */

.phm-events {
    padding: 3rem 0;
    background: #fff;
}

/* Match the news slider's width: mirror Bootstrap's .container-xl
   (responsive max-widths + 0.75rem horizontal gutters) so the calendar
   content column lines up with the news section. */
.phm-events__inner {
    width: 100%;
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 576px)  { .phm-events__inner { max-width: 540px; } }
@media (min-width: 768px)  { .phm-events__inner { max-width: 720px; } }
@media (min-width: 992px)  { .phm-events__inner { max-width: 960px; } }
@media (min-width: 1200px) { .phm-events__inner { max-width: 1140px; } }
@media (min-width: 1400px) { .phm-events__inner { max-width: 1320px; } }

/* Header: gold accent line + heading on the left, Full Calendar button right */
.phm-events__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.phm-events__accent {
    display: block;
    width: 120px;
    height: 4px;
    background: var(--phm-secondary, #decd63);
    margin-bottom: 1rem;
}

.phm-events__heading {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #003da5;
}

.phm-events__full {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #003da5;
    color: #003da5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.phm-events__full:hover,
.phm-events__full:focus-visible {
    background: #003da5;
    color: #fff;
}

/* 4-up grid of event cards */
.phm-events__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Event card — white surface on the blue section for contrast */
.phm-event {
    position: relative;
    background: #003da5;
    color: #fff;
    padding: 1.75rem 1.5rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* Whole-card click target when the event has a link */
.phm-event__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Date row: MONTH/WEEKDAY | big day, split by a vertical rule */
.phm-event__date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.phm-event__monthday {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-weight: 700;
    font-size: 1.5rem;
    padding-right: 1rem;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.phm-event__wday {
    font-weight: 400;
}

.phm-event__day {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.phm-event__title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.phm-event__meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #fff;
}

.phm-event__location {
    color: #fff;
    opacity: 0.95;
}

/* Responsive: 2-up tablet, 1-up phone */
@media (max-width: 992px) {
    .phm-events__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .phm-events__grid { grid-template-columns: 1fr; }
    .phm-event { min-height: 0; }
    .phm-events__header { flex-direction: column; align-items: flex-start; }
}
