/* ============================================================
   YELFoundation — Public site (homepage, pages, articles)
   Uses the tokens from main.css (navy / accent / radii / fonts).
   ============================================================ */

/* ---------- Buttons ---------- */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.home-btn:hover { transform: translateY(-1px); text-decoration: none; }
.home-btn--primary { background: var(--accent); color: var(--navy-dark); }
.home-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.home-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.home-btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.home-btn--light { background: #fff; color: var(--navy-dark); }
.home-btn--light:hover { color: var(--navy-dark); background: rgba(255,255,255,0.88); }
.home-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 7.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(10,191,138,0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0,51,102,0.9), transparent 70%),
    var(--navy-dark);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.home-hero > .container { position: relative; }

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 1.1rem;
  color: #fff;
}
.home-hero__text {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 2rem;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.home-hero__logo {
  position: relative;
  display: inline-block;
  max-width: 340px;
  width: 70%;
}
.home-hero__logo::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,191,138,0.25), transparent 65%);
  filter: blur(8px);
}
.home-hero__logo img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

/* ---------- Main column ---------- */
.home-main { position: relative; padding-bottom: 4rem; }

/* ---------- Featured article ---------- */
.home-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-top: -3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.home-featured:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.home-featured__media { position: relative; min-height: 300px; background: var(--bg-elevated); }
.home-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* many images are posters with the headline at the top */
}
.home-featured__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.home-featured__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.home-featured__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
}
.home-featured__label i { color: var(--accent); }
.home-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 0.9rem;
}
.home-featured__title a { color: var(--text); text-decoration: none; }
.home-featured:hover .home-featured__title a { color: var(--accent-dark); }
.home-featured__excerpt {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-featured__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.home-featured__footer i { color: var(--accent); margin-right: 0.25rem; }
.home-featured__cta { margin-left: auto; font-weight: 600; color: var(--accent-dark); }
.home-featured__cta i { color: inherit; margin: 0 0 0 0.3rem; transition: transform var(--transition); }
.home-featured:hover .home-featured__cta i { transform: translateX(3px); }

/* ---------- Sections ---------- */
.home-section { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 90px; }
.home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.home-section__kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}
.home-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: var(--navy-dark);
  margin: 0;
}

/* ---------- Programs ---------- */
.home-programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.home-program {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
}
.home-program:hover { border-color: rgba(10,191,138,0.45); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.home-program__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-dark);
  background: var(--accent-glow);
  margin-bottom: 1.1rem;
}
.home-program__title { font-family: var(--font-heading); font-size: 1.15rem; margin: 0 0 0.6rem; }
.home-program__title a { color: var(--text); text-decoration: none; }
.home-program:hover .home-program__title a { color: var(--accent-dark); }
.home-program__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-program__count { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--navy-light); }
.home-program__count i { margin-left: 0.3rem; color: var(--accent); transition: transform var(--transition); }
.home-program:hover .home-program__count i { transform: translateX(3px); }

/* ---------- Article grid ---------- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition);
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.home-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-elevated); overflow: hidden; }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.home-card:hover .home-card__media img { transform: scale(1.05); }
.home-card__chip {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  padding: 0.3em 0.75em;
  border-radius: var(--radius-full);
}
.home-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.3rem 1.3rem; }
.home-card__date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.4rem; }
.home-card__title { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.45; margin: 0 0 0.55rem; }
.home-card__title a { color: var(--text); text-decoration: none; }
.home-card:hover .home-card__title a { color: var(--accent-dark); }
.home-card__title a:focus-visible { outline: none; }
.home-card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-card__excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-card__more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent-dark); }
.home-card__more i { margin-left: 0.3rem; transition: transform var(--transition); }
.home-card:hover .home-card__more i { transform: translateX(3px); }

/* ---------- Contact band ---------- */
.home-cta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(10,191,138,0.22), transparent 70%),
    linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
}
.home-cta__title { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 0.4rem; color: #fff; }
.home-cta__text { margin: 0; color: rgba(255,255,255,0.75); max-width: 560px; }
.home-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Section header link ---------- */
.home-section__link { font-weight: 600; font-size: 0.9rem; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.home-section__link:hover { color: var(--navy-light); }
.home-section__link i { margin-left: 0.3rem; transition: transform var(--transition); }
.home-section__link:hover i { transform: translateX(3px); }

/* ---------- Events ---------- */
.home-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.home-event {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition-md), transform var(--transition-md);
}
.home-event:hover { border-color: rgba(10,191,138,0.45); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.home-event__date {
  flex-shrink: 0;
  width: 68px;
  align-self: flex-start;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 1.1;
}
.home-event__month {
  display: block;
  background: var(--navy-dark);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}
.home-event__day { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy-dark); padding-top: 0.3rem; }
.home-event__year { display: block; font-size: 0.72rem; color: var(--text-muted); padding-bottom: 0.4rem; }
.home-event__body { min-width: 0; }
.home-event__status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.home-event__status.is-upcoming { color: var(--accent-dark); }
.home-event__title { font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.45; margin: 0 0 0.55rem; }
.home-event__title a { color: var(--text); text-decoration: none; }
.home-event:hover .home-event__title a { color: var(--accent-dark); }
.home-event__meta { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; font-size: 0.84rem; color: var(--text-muted); }
.home-event__meta i { width: 1rem; color: var(--accent-dark); }

/* ---------- Videos ---------- */
.home-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.home-video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
}
.home-video:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-video__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.home-video__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--transition), transform 0.6s var(--ease); }
.home-video:hover .home-video__thumb img { opacity: 1; transform: scale(1.04); }
.home-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  padding-left: 4px;
  box-shadow: 0 0 0 8px rgba(10,191,138,0.25);
  transition: transform var(--transition);
}
.home-video:hover .home-video__play { transform: scale(1.08); }
.home-video__body { padding: 1rem 1.15rem 1.15rem; }
.home-video__title { font-family: var(--font-heading); font-size: 1rem; line-height: 1.45; margin: 0 0 0.5rem; }
.home-video__title a { color: #fff; text-decoration: none; }
.home-video__meta { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.home-video__meta i { color: #ff4d4d; margin-right: 0.2rem; }
.home-video:has(a:focus-visible), .home-event:has(a:focus-visible), .home-program:has(a:focus-visible), .home-featured:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-video__title a:focus-visible, .home-event__title a:focus-visible, .home-program__title a:focus-visible, .home-featured__title a:focus-visible { outline: none; }

/* ---------- Documents (homepage + /reports) ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.doc-item:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.doc-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(220,53,69,0.08);
  color: #c9302c;
}
.doc-item__icon--doc, .doc-item__icon--docx { background: rgba(43,87,154,0.1); color: #2b579a; }
.doc-item__icon--xls, .doc-item__icon--xlsx { background: rgba(33,115,70,0.1); color: #217346; }
.doc-item__icon--ppt, .doc-item__icon--pptx { background: rgba(209,71,38,0.1); color: #d14726; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 0.2rem; line-height: 1.35; }
.doc-item__meta { margin: 0; font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-item__meta a { color: var(--accent-dark); text-decoration: none; }
.doc-item__meta a:hover { text-decoration: underline; }
.doc-item__download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.doc-item__download:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Share buttons ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.share__btn span:not(.visually-hidden) { font-size: 0.82rem; }
.share__btn:hover { transform: translateY(-1px); color: #fff; text-decoration: none; }
.share__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.share__btn--x:hover { background: #000; border-color: #000; }
.share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; }
.share__btn--email:hover, .share__btn--copy:hover, .share__btn--native:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.share__btn--native { background: var(--accent); border-color: var(--accent); color: #fff; }
.share__btn--copy.is-copied, .share__btn--copy.is-copied:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.share--dark .share__btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.85); }
.share--dark .share__btn--native { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background:
    radial-gradient(ellipse 55% 90% at 90% 0%, rgba(10,191,138,0.16), transparent 70%),
    var(--navy-dark);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero__crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 0.82rem; }
.page-hero__crumbs li { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.55); max-width: 100%; }
.page-hero__crumbs li + li::before { content: '/'; color: rgba(255,255,255,0.3); }
.page-hero__crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-hero__crumbs a:hover { color: var(--accent); }
.page-hero__crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero__row { display: flex; align-items: flex-start; gap: 1.25rem; }
.page-hero__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  background: rgba(10,191,138,0.12);
  border: 1px solid rgba(10,191,138,0.25);
}
.page-hero__text { min-width: 0; max-width: 760px; }
.page-hero__title { font-family: var(--font-heading); font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0.15rem 0 0.75rem; color: #fff; }
.page-hero__lead { font-size: clamp(0.98rem, 1.5vw, 1.08rem); line-height: 1.75; color: rgba(255,255,255,0.75); margin: 0; }

.page-body { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }

/* ---------- Search ---------- */
.search-box { display: flex; gap: 0.5rem; margin-top: 1.5rem; max-width: 620px; }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: rgba(255,255,255,0.12); }
.search-box .home-btn { height: 52px; }
.result-count { color: var(--text-muted); margin-bottom: 1.5rem; }
.result-count strong { color: var(--text); }
.empty-state-card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: var(--bg-card); border: 1px dashed var(--border-dark); border-radius: var(--radius-lg); }
.empty-state-card > i { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; }
.empty-state-card h2 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; }
.empty-state-card p { color: var(--text-muted); margin-bottom: 1.25rem; }
.chip-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.chip-links a { padding: 0.45rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--border-dark); color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.chip-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Content pages (About / Contact) ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.content-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-xs); }
.aside-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 1rem; }
.aside-card--dark { background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark)); border: 0; color: #fff; }
.aside-card--dark h2 { color: rgba(255,255,255,0.6); }
.aside-card--dark p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li + li { border-top: 1px solid var(--border); }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; color: var(--text); font-weight: 600; text-decoration: none; }
.aside-links a:hover { color: var(--accent-dark); }
.aside-links a i { color: var(--accent); }
.contact-line { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0; }
.contact-line__icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-glow); color: var(--accent-dark); flex-shrink: 0; }
.contact-line a { font-weight: 700; color: var(--text); text-decoration: none; word-break: break-all; }
.contact-line a:hover { color: var(--accent-dark); }
.contact-line small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-dark); color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.social-row a:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }

/* ---------- Contact form ---------- */
.contact-form__title { font-family: var(--font-heading); font-size: 1.35rem; color: var(--navy-dark); margin: 0 0 0.3rem; }
.contact-form__intro { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-form .form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.contact-form .form-control { border-radius: var(--radius-sm); border-color: var(--border-dark); padding: 0.65rem 0.85rem; }
.contact-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.contact-form button.home-btn { border: 0; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__done { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius-md); background: var(--accent-glow); color: var(--text); }
.contact-form__done i { color: var(--accent-dark); font-size: 1.5rem; margin-top: 0.15rem; }

/* ---------- Article page ---------- */
.article-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(5.5rem, 9vw, 7rem);
  background:
    radial-gradient(ellipse 55% 90% at 90% 0%, rgba(10,191,138,0.16), transparent 70%),
    var(--navy-dark);
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.article-hero > .container { position: relative; }
.article-hero__inner { max-width: 960px; margin: 0 auto; }
.article-hero__title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0.5rem 0 1.25rem;
}
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.article-hero__meta i { color: var(--accent); margin-right: 0.35rem; }
.article-hero__author { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 600; }
.article-hero__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }

.article-wrap { padding-bottom: 4rem; }
.article-paper {
  position: relative;
  max-width: 960px;
  margin: -4rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.article-paper__figure { margin: 0; background: var(--bg-elevated); }
.article-paper__figure img { display: block; width: 100%; max-height: 440px; object-fit: cover; object-position: top center; }
.article-paper__body { padding: clamp(1.5rem, 4.5vw, 3.25rem) clamp(1.25rem, 5.5vw, 4rem) clamp(1.5rem, 4vw, 2.75rem); }
.article-paper .event-box { margin: 0 0 1.5rem; max-width: none; }
.article-paper__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-paper__share-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.article-share-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(10,191,138,0.08), rgba(0,51,102,0.05));
  border: 1px solid rgba(10,191,138,0.22);
}
.article-share-end__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
}
.article-share-end__text { flex: 1; min-width: 180px; }
.article-share-end__text strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: var(--navy-dark); }
.article-share-end__text span { display: block; font-size: 0.88rem; color: var(--text-muted); margin-top: 0.1rem; }
.related { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Photo viewer (lightbox) ---------- */
html.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  background: rgba(0, 12, 24, 0.94);
  animation: lightbox-in 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__caption { margin-top: 0.85rem; color: rgba(255,255,255,0.8); font-size: 0.92rem; text-align: center; max-width: 720px; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
@media (max-width: 575.98px) {
  .lightbox { padding: 3.5rem 0.75rem 4.5rem; }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; max-width: 640px; margin: 0 auto; }
.not-found__code { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--navy-dark); }
.not-found__code span { color: var(--accent); }
.not-found h1 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1rem 0 0.75rem; }
.not-found p { color: var(--text-muted); margin-bottom: 1.75rem; }
.not-found .search-box { margin: 0 auto 1.5rem; }
.not-found .search-box input { background: #fff; color: var(--text); border-color: var(--border-dark); }
.not-found .search-box input::placeholder { color: var(--text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .home-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-list { grid-template-columns: 1fr; }
  .home-featured { grid-template-columns: 1fr; }
  .home-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
  .home-hero__logo { width: 42%; max-width: 220px; }
}
@media (max-width: 575.98px) {
  .home-grid { grid-template-columns: 1fr; }
  .page-hero__icon { display: none; }
  .search-box { flex-direction: column; }
  .article-paper { margin-top: -3.5rem; border-radius: var(--radius-md); }
  .article-paper__share { flex-direction: column; align-items: flex-start; }
  .article-share-end { padding: 1.1rem; }
  .article-share-end .share { width: 100%; }
  .share__btn--copy span, .share__btn--native span { display: none; }
  .home-videos { grid-template-columns: 1fr; }
  .doc-item { flex-wrap: wrap; align-items: flex-start; }
  .doc-item__body { flex: 1 1 calc(100% - 46px - 1rem); }
  .doc-item__download { margin-left: calc(46px + 1rem); }
  .doc-item__meta { white-space: normal; }
  .home-hero { text-align: left; }
  .home-featured { margin-top: -2.5rem; border-radius: var(--radius-md); }
  .home-featured__cta { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn, .home-featured, .home-program, .home-card, .home-card__media img { transition: none; }
  .home-featured:hover, .home-program:hover, .home-card:hover { transform: none; }
}

/* ---------- Add to calendar ---------- */
.cal-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.cal-links a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none;
}
.cal-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- "In this article" contents ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.article-text .article-subheading { scroll-margin-top: 90px; }
.article-toc {
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f7f9fc;
}
.article-toc__title { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.75rem; }
.article-toc__title i { color: var(--accent); margin-right: 0.3rem; }
.article-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2.5rem; }
.article-toc li { margin-bottom: 0.45rem; break-inside: avoid; font-size: 0.95rem; }
.article-toc li::marker { color: var(--accent-dark); font-weight: 700; }
.article-toc a { color: var(--text); text-decoration: none; }
.article-toc a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 767.98px) { .article-toc ol { columns: 1; } }
