/* Homepage Program Card Refinements */
.event-card-slider .card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-slider .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.event-card-slider .img {
    width: 100%;
    height: 200px; /* Slightly smaller than main list for homepage slider */
    background-color: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none !important; /* Ensure no border */
}

.event-card-slider .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card-slider .card-item:hover .img img {
    transform: scale(1.05);
}

.event-card-slider .content {
    padding: 1rem !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-card-slider .item-title {
    font-size: 1.05rem !important; /* Slightly smaller to fit more comfortably */
    line-height: 1.4 !important;
    height: 2.8em; /* Exactly 2 lines (1.4 * 2) */
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.event-card-slider .item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.event-card-slider .item-title a:hover {
    color: var(--hover_color, #010180);
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-nav-btn:hover {
    background: var(--hover_color, #010180);
    color: #fff;
    border-color: var(--hover_color, #010180);
}

/* ── Home refinement ──────────────────────────────────────────
   Calmer, more consistent vertical rhythm and clearer hierarchy,
   in the existing navy / orange palette. */
:root { --accent: #f36e1c; }

.section-spacing { margin: 0; padding: 64px 0; }
@media (max-width: 767.98px) {
    .section-spacing { margin: 0 !important; padding: 40px 0; }
}

/* Programs band: a quiet tint separates it from the white sections around it */
.events { background: #f5f7fb; }

/* What we do: a navy wash over the photo so the title and cards read cleanly */
.what-we-do {
    padding: 72px 0 80px;
    background:
        linear-gradient(rgba(14, 24, 56, 0.86), rgba(14, 24, 56, 0.9)),
        url(/images/what-we-do_bg.png) no-repeat center / cover;
}
.what-we-do .section-title-2 h2 {
    color: #fff;
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.what-we-do .section-title-2 h2::before,
.what-we-do .section-title-2 h2::after {
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}
.what-we-do .row { counter-reset: wwd; }
.we-do-item {
    counter-increment: wwd;
    padding: 30px 24px 26px;
    border: 0;
    border-top: 3px solid var(--accent);
    border-radius: 6px;
}
.we-do-item::before {
    content: "0" counter(wwd);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
}
.we-do-item h5 { font-size: 0.92rem; letter-spacing: 0.04em; color: var(--primary_color); }
.we-do-item p.description { color: #3b4254; }

/* Membership: lift low-contrast copy on the gradient */
.membership-subtext { color: rgba(255, 255, 255, 0.85); }
.membership-item-modern p { color: rgba(255, 255, 255, 0.82); }
.membership-heading span { color: rgba(255, 255, 255, 0.8); }
