/* Charity Club and Co-curricular Activities pages (one layout). The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with cl- so no other page is touched. */

/* 1. The picture at the left, the headline, the text and the highlight at the right */
.cl-intro { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.cl-intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.cl-intro__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 8 / 5; border-radius: calc(var(--r-lg) * 1.25); border: 2px solid var(--flame); background: var(--raised); box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.45); }
.cl-intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-intro__body { max-width: 34rem; }
.cl-intro__title { margin: 0 0 1.25rem; font-family: var(--display); font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 300; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }
.cl-intro__title em { font-style: italic; font-weight: 300; color: var(--red); }
.cl-intro__text { margin: 0; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); line-height: 1.75; color: var(--text); text-wrap: pretty; }
.cl-fact { display: grid; gap: 0.2rem; margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 0; padding: 1rem 1.25rem; border-left: 3px solid var(--flame); border-radius: 0 var(--r) var(--r) 0; background: var(--band); }
.cl-fact b { font-family: var(--display); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 320; font-style: italic; line-height: 1.15; color: var(--flame); }
.cl-fact span { font-size: 0.875rem; color: var(--on-dark); }

/* a heading above the activities, the photographs and the links */
.cl-head { margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.cl-head--light { color: var(--base); }

/* 2. The activities: numbered cards */
.cl-acts { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--surface); }
.cl-acts__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cl-act { display: grid; align-content: start; gap: 0.5rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-top: 3px solid var(--flame); border-radius: var(--r-lg); background: #fff; }
.cl-act__n { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--amber); }
.cl-act__title { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 380; line-height: 1.2; color: var(--ink); }
.cl-act p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--text); }

/* 3. The photographs */
.cl-photos { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--base); }
.cl-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.cl-photos__grid li { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--raised); }
.cl-photos__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cl-photos__grid li:hover img { transform: scale(1.04); }

/* 4. More from campus life: picture cards on a dark band */
.cl-more { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--band); color: var(--on-dark); }
.cl-more__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.cl-card { display: grid; height: 100%; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); color: var(--base); text-decoration: none; transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease); }
.cl-card:hover, .cl-card:focus-visible { border-color: var(--flame); background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.cl-card:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.cl-card__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--footer); }
.cl-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.8s var(--ease), opacity 0.4s; }
.cl-card:hover .cl-card__img img, .cl-card:focus-visible .cl-card__img img { transform: scale(1.05); opacity: 1; }
.cl-card__body { display: grid; align-content: start; gap: 0.4rem; padding: 1.1rem 1.25rem 1.3rem; }
.cl-card__title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 340; line-height: 1.2; }
.cl-card__title .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--flame); transition: transform 0.3s var(--ease); }
.cl-card:hover .cl-card__title .icon, .cl-card:focus-visible .cl-card__title .icon { transform: translateX(4px); }
.cl-card__text { font-size: 0.9375rem; line-height: 1.6; color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .cl-intro__grid { grid-template-columns: minmax(0, 1fr); }
  .cl-intro__body { max-width: none; }
}
@media (max-width: 640px) {
  .cl-more__list { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-card, .cl-card__img img, .cl-photos__grid img, .cl-card__title .icon { transition: none; }
}
