/* Articles (blog) and 404 page — matches the site's fonts and colours (blue #007AC2, green #007E48). */
.cms-blog, .cms-post { padding: 60px 20px 40px; font-family: "Exo", "Poppins", Arial, sans-serif; color: #444; }
.cms-blog__wrap { max-width: 1140px; margin: 0 auto; }
.cms-post__wrap { max-width: 860px; }
.cms-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cms-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.cms-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.cms-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cms-card__meta { font-size: 13px; color: #7a7a7a; margin: 0 0 8px; }
.cms-card__meta a { color: #007E48; text-decoration: none; }
.cms-card__title { font-size: 19px; line-height: 1.35; margin: 0 0 10px; color: #007AC2; font-weight: 700; }
.cms-card__title a { color: inherit; text-decoration: none; }
.cms-card__title a:hover { color: #007E48; }
.cms-card__excerpt { font-size: 15px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.cms-card__more { align-self: flex-start; color: #007E48; font-weight: 700; text-decoration: none; }
.cms-card__more:hover { color: #007AC2; }
.cms-pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.cms-pager a, .cms-pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 20px; border: 1px solid #d5dfe4; color: #007AC2; text-decoration: none; font-weight: 600; }
.cms-pager span { background: #007E48; border-color: #007E48; color: #fff; }
.cms-blog__empty, .cms-404 { text-align: center; font-size: 17px; }
.cms-404 h2 { color: #007AC2; }
.cms-btn { display: inline-block; margin: 6px; padding: 12px 26px; border-radius: 30px; background: #007E48; color: #fff !important; text-decoration: none; font-weight: 700; }
.cms-btn--ghost { background: #fff; color: #007AC2 !important; border: 2px solid #007AC2; }
.cms-post__crumbs { font-size: 14px; color: #7a7a7a; margin: 0 0 14px; }
.cms-post__crumbs a { color: #007AC2; text-decoration: none; }
.cms-post__img { width: 100%; height: auto; border-radius: 14px; margin: 10px 0 26px; }
.cms-post__content { font-size: 17px; line-height: 1.75; color: #333; }
.cms-post__content h2, .cms-post__content h3 { color: #007AC2; line-height: 1.3; margin: 1.4em 0 .5em; }
.cms-post__content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-post__content a { color: #007E48; }
.cms-post__content blockquote { border-left: 4px solid #007E48; margin: 1.2em 0; padding: .4em 1.2em; background: #f3f8f6; }
.cms-post__share { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid #e5e9ea; font-size: 15px; }
.cms-post__share a { color: #007AC2; font-weight: 600; text-decoration: none; }
.cms-related { margin-top: 50px; }
.cms-related h3 { color: #007AC2; margin-bottom: 20px; }
@media (max-width: 1024px) { .cms-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cms-blog__grid { grid-template-columns: 1fr; } .cms-blog, .cms-post { padding: 40px 16px 30px; } }
.cms-post__title { font-size: 34px; line-height: 1.25; color: #222; margin: 0 0 10px; font-weight: 700; }

/* Previous Events page — event cards in the site's own style (blue top bar like the home page event cards),
   picture first, then the event name, year and link; a year filter on top. */
.cms-pe { padding: 46px 20px 70px; font-family: "Exo", sans-serif; color: #333; background: #f5f8fb; }
.cms-pe__wrap { max-width: 1140px; margin: 0 auto; }
.cms-pe__intro { max-width: 860px; margin: 0 auto 28px; text-align: center; font-size: 16px; line-height: 1.7; color: #54595f; }
.cms-pe__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 34px; }
.cms-pe__filters button { font-family: "Exo", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #0B6594; background: #fff; border: 2px solid #0B6594; border-radius: 30px; padding: 7px 24px; cursor: pointer; transition: background .2s, color .2s; }
.cms-pe__filters button:hover { background: #e6f1f8; }
.cms-pe__filters button.is-active { background: #0B6594; color: #fff; }
.cms-pe__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.cms-pe-card { width: calc((100% - 60px) / 3); display: flex; flex-direction: column; background: #fff; border-top: 5px solid #0B6594; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(11, 101, 148, .12); text-decoration: none !important; color: #2e2e2e; transition: transform .3s, box-shadow .3s; }
.cms-pe-card[hidden] { display: none; }
a.cms-pe-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(11, 101, 148, .22); }
.cms-pe-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #dfe9ef; }
.cms-pe-card__img img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .6s; }
a.cms-pe-card:hover .cms-pe-card__img img { transform: scale(1.05); }
.cms-pe-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 18px 12px; }
.cms-pe-card__title { display: block; font-family: "Exo", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: #2e2e2e; margin-bottom: 10px; transition: color .2s; }
a.cms-pe-card:hover .cms-pe-card__title { color: #007AC2; }
.cms-pe-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #e7edf2; }
.cms-pe-card__year { font-size: 12px; font-weight: 700; letter-spacing: 2px; line-height: 1.5; color: #fff; background: #007AC2; border-radius: 4px; padding: 2px 9px; }
.cms-pe-card__more { font-size: 14px; font-weight: 600; color: #0B6594; white-space: nowrap; }
.cms-pe-card__more i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform .2s; }
a.cms-pe-card:hover .cms-pe-card__more i { transform: translateX(4px); }
@media (max-width: 1024px) { .cms-pe-card { width: calc((100% - 30px) / 2); } }
@media (max-width: 640px) { .cms-pe-card { width: 100%; max-width: 420px; } .cms-pe { padding: 34px 16px 50px; } .cms-pe__filters button { padding: 6px 18px; } }
