/* AGM page banner, using the same assignment pattern as the Ethics Portal. */
.introWrapper {
  background-image: url("/cisiweb2/image/AGM%202026/CISI1895.jpg");
  background-position: right 15% !important;
  background-repeat: no-repeat !important;
  background-size: 50% auto !important;
  height: 260px !important;
  min-height: 260px !important;
  font-family: Nunito, sans-serif;
}
.board-members-section {
  display: none !important;
}

.introWrapper > .container {
  height: 100% !important;
  min-height: 260px !important;
}

@media (max-width: 1199px) {
  .introWrapper {
    position: relative;
    background-color: #052c6e;
    background-position: center !important;
    background-size: cover !important;
  }

  .introWrapper .introText h2 {
    display: inline-block;
    max-width: 100%;
    padding: 14px 20px;
    background: rgba(5, 44, 110, 0.85);
    border-radius: 4px;
    font-size: clamp(44px, 4.5vw, 54px) !important;
    line-height: 1.15;
  }
}

@media (min-width: 1200px) and (max-width: 1700px) {
  .introWrapper .introText h2 { font-size: 50px !important; }
}

/* AGM 2026: CISI colours, with all content styles scoped to the rendered component. */
.agm2026 {
  --agm-navy: #052c6e;
  --agm-teal: #0b8383;
  --agm-dark-teal: #105757;
  --agm-ink: #000000;
  font-family: Nunito, sans-serif;
  color: var(--agm-ink);
  line-height: 1.55;
}

.agm2026 *,
.agm2026 *::before,
.agm2026 *::after { box-sizing: border-box; }

.agm2026 .agm-layout {
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 40px;
}

.agm2026 .agm-hero {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 324px;
  background: #edf5f4;
  border-radius: 14px;
  overflow: hidden;
}

.agm2026 .agm-hero-copy { padding: 44px 30px; }

.agm2026 h2 {
  margin: 0;
  color: var(--agm-teal);
  font-size: 42px !important;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.agm2026 h2 span { color: inherit; }
.agm2026 .agm-hero h2 { margin-bottom: 26px; }
.agm2026 .agm-hero h2 span { display: block; }
.agm2026 .agm-hero p { margin: 0 0 14px; font-size: 15px; }
.agm2026 .agm-hero p:last-child { margin-bottom: 0; }

/* Placeholder image area within the AGM content block. */
.agm2026 .agm-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 324px;
  padding: 32px;
  background: var(--agm-dark-teal) url("/cisiweb2/image/AGM%202026/AdobeStock_705583997.jpeg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.agm2026 .agm-placeholder-year { display: none; }
.agm2026 .agm-placeholder-label { display: none; }

.agm2026 .agm-documents {
  margin-top: 88px;
  padding: 30px;
  background: #f7f8f9;
  border-radius: 14px;
}

.agm2026 .agm-document-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0px 0 0;
  padding: 25px 0 0;
  list-style: none;
}

.agm2026 .agm-document-list li { margin: 0; padding: 0; }
.agm2026 .agm-document-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 120px;
  padding: 12px 16px;
  border: 2px solid var(--agm-teal);
  border-radius: 6px;
  background: #fff;
  color: var(--agm-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.agm2026 .agm-download-icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--agm-teal); }
.agm2026 .agm-document-list a:hover { border-color: var(--agm-navy); background: var(--agm-navy); color: #fff; }
.agm2026 .agm-document-list a:hover .agm-download-icon { color: #fff; }
.agm2026 .agm-document-list a:focus-visible { outline: 2px solid var(--agm-teal); outline-offset: 3px; }

/* Board trustee grid copied from the CISI profile-card pattern. */
.agm2026 .board-members-section { margin-top: 88px; }
.agm2026 .board-members-section + .board-members-section { margin-top: 68px; }
.agm2026 .board-members-section > h2 { margin-bottom: 32px; }

.agm2026 .profileContainer {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px -20px;
}

.agm2026 .profileContainer::before,
.agm2026 .profileContainer::after { display: none; }

.agm2026 .profileContainer .col-md-4 {
  display: flex;
  width: 33.333333%;
  padding: 0 15px;
}

.agm2026 .profileBLock {
  flex: 1;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 50px;
  background-color: rgba(0, 102, 102, 0.13);
  border-radius: 14px;
  text-align: center;
}

.agm2026 .img-profile img,
.agm2026 .profile-placeholder {
  display: inline-block;
  width: 130px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 50%;
}

.agm2026 .profile-placeholder { height: 130px; }

.agm2026 .profileBLock .name,
.agm2026 .profileBLock .title { text-align: center; }
.agm2026 .profileBLock .name { font-size: 22px; cursor: default; }
.agm2026 .profileBLock .name:hover { text-decoration: none; }
.agm2026 .profileBLock .title { font-size: 17px; }

.agm2026 .agm-candidate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 2px solid var(--agm-teal);
  border-radius: 4px;
  background: var(--agm-teal);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.agm2026 .agm-candidate-button:hover { border-color: var(--agm-navy); background: var(--agm-navy); }
.agm2026 .agm-candidate-button:focus-visible { outline: 2px solid var(--agm-navy); outline-offset: 4px; }

@media (max-width: 1100px) {
  .agm2026 .profileContainer .col-md-4 { width: 50%; }
}

@media (max-width: 767px) {
  .introWrapper { background-size: cover !important; }
  .introWrapper,
  .introWrapper > .container {
    height: 320px !important;
    min-height: 320px !important;
  }
  .agm2026 .agm-layout { width: 92%; padding-top: 36px; }
  .agm2026 .agm-hero { grid-template-columns: 1fr; }
  .agm2026 .agm-hero-copy { padding: 32px 24px; }
  .agm2026 .agm-hero h2 { margin-bottom: 28px; }
  .agm2026 .agm-image-placeholder { min-height: 240px; }
  .agm2026 .agm-documents { margin-top: 40px; padding: 28px 24px; }
  .agm2026 .agm-document-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; gap: 12px 20px; }
  .agm2026 .profileContainer { margin: 0 0 -20px; }
  .agm2026 .profileContainer .col-md-4 { width: 100%; padding: 0; }
  .agm2026 .profileBLock { padding: 32px 24px; }
}

@media (max-width: 420px) {
  .agm2026 h2 { font-size: 28px; }
  .agm2026 .agm-document-list { grid-template-columns: 1fr; gap: 4px; }
}

/* Placeholder actions in the introductory block. */
.agm2026 .agm-hero-actions { display: block; margin-top: 26px; }
.agm2026 .agm-button {
  padding: 18px 64px;
  border: 2px solid var(--agm-teal);
  border-radius: 6px;
  font: inherit;
  font-size: 23px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.agm2026 .agm-button-primary { background: var(--agm-teal); color: #fff; display: block; width: 100%; text-align: center;}
.agm2026 .agm-button-secondary { background: transparent; color: var(--agm-teal);font-size: 18px;padding: 10px 24px;display: inline-block;width: 49%; text-align: center; }
.agm2026 .agm-button:hover { background: var(--agm-navy); border-color: var(--agm-navy); color: #fff; }
.agm2026 .agm-button:disabled { cursor: not-allowed; opacity: 0.55; }
.agm2026 .agm-button:focus-visible { outline: 2px solid var(--agm-navy); outline-offset: 4px; }
