/* AGCON 2027 brand layer — loaded after main.css, overrides the SAFECON palette. */
:root {
  --td-theme-primary: #12307a;   /* AGCON navy */
  --td-theme-secondary: #0c7a54; /* AGCON green */
  --td-common-blue: #0b1f55;
  --td-common-yellow: #f5be1e;   /* AGCON gold */
  --agcon-navy: #12307a;
  --agcon-navy-dark: #0b1f55;
  --agcon-green: #0c7a54;
  --agcon-green-light: #e6f4ee;
  --agcon-gold: #f5be1e;
  --agcon-sky: #eaf2fc;
}

/* hard-coded SAFECON colours in main.css */
.loader::after { --c: no-repeat radial-gradient(farthest-side, var(--agcon-navy) 92%, #0000); }
.td-section-subtitle-3 { border-color: var(--agcon-navy); }
.td-schedule-team-border,
.td-gallery-thumb::before { background: var(--agcon-navy); }
.td-postbox-blockquote { border-left-color: var(--agcon-navy); }
.td-counter-2-icon i { color: var(--agcon-green); }
.td-hero-6-blur-2,
.group-badge { background-color: var(--agcon-green); }
.td-hero-4-blur { background: #d6e4fb; }
.td-hero-4-blur-2 { background: #d4efe3; }

/* hero wordmark: AGCON in navy with a globe-blue "O", year in green */
.multi span:nth-child(1),
.multi span:nth-child(2),
.multi span:nth-child(3),
.multi span:nth-child(5) { color: var(--agcon-navy); }
.multi span:nth-child(4) { color: #1d5fc4; }
.multi span.agcon-year { color: var(--agcon-green); }

/* ---------- shared AGCON components ---------- */
.agcon-pill {
  display: inline-block;
  background: var(--agcon-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}
.agcon-pill.gold { background: var(--agcon-gold); color: var(--agcon-navy-dark); }
.agcon-pill.navy { background: var(--agcon-navy); }

.agcon-marquee {
  background: var(--agcon-gold);
  color: var(--agcon-navy-dark);
  padding: 6px 0;
  margin: 0 10px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.agcon-theme-box {
  border: 2px solid var(--agcon-green);
  border-radius: 16px;
  padding: 28px 24px;
  background: #fff;
  text-align: center;
  height: 100%;
}
.agcon-theme-box h3 { color: var(--agcon-green); font-size: 30px; margin-bottom: 12px; }
.agcon-theme-box p { color: var(--agcon-navy); margin: 0; font-weight: 500; }

.agcon-highlight {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  border: 1px solid #dce6f3;
}
.agcon-highlight .icon {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--agcon-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.agcon-highlight h5 { color: var(--agcon-navy); margin-bottom: 6px; }
.agcon-highlight p { margin: 0; }

.agcon-poster {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 31, 85, .15);
  background: #fff;
}
.agcon-poster img { width: 100%; height: auto; display: block; }

.agcon-soon {
  border: 2px dashed #b9cbe6;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: var(--agcon-sky);
}
.agcon-soon .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--agcon-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.agcon-soon h3 { color: var(--agcon-navy); margin-bottom: 10px; }
.agcon-soon p { margin: 0 auto; max-width: 560px; }

.agcon-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.agcon-partners img { height: 110px; width: auto; }

.agcon-accent { color: var(--agcon-green); }

.td-pricing-4-item .agcon-fee-note { color: var(--agcon-navy); font-size: 14px; margin-top: -10px; }

@media (max-width: 767px) {
  .agcon-theme-box h3 { font-size: 24px; }
  .agcon-partners img { height: 80px; }
}

/* sponsors CTA + contact band: SAFECON pink/purple -> AGCON navy/green */
.team-cta-box { background: linear-gradient(135deg, var(--agcon-navy), var(--agcon-green)); }
.team-cta-btn .td-btn { color: var(--agcon-navy); }
#contact.td-location-area {
  background-image: linear-gradient(135deg, rgba(11, 31, 85, .95), rgba(12, 122, 84, .9)), url(../img/location/bg.jpg) !important;
}

/* inner-page banner: the photo has a purple tint baked in, so cover it with the AGCON gradient */
.td-breadcrumb-area {
  background-image: linear-gradient(135deg, rgba(11, 31, 85, .92), rgba(12, 122, 84, .82)), url(../img/breadcrumb/breadcrumb.jpg) !important;
}

/* header logos (AGCON + APICE Foundation) share one white chip so they stay legible on dark banners */
.agcon-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
}
.agcon-logos .logo-1 img { display: block; }
.agcon-logo-apice {
  height: 54px;
  width: auto;
  padding-left: 12px;
  border-left: 1px solid #dce3ee;
}

/* ---------- poster popup (home page, on load) ---------- */
.agcon-popup .modal-dialog {
  max-width: min(520px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}
.agcon-popup .modal-content {
  position: relative;
  border: 0;
  border-radius: 16px;
  background: #fff;
  padding: 12px 12px 16px;
  box-shadow: 0 20px 60px rgba(11, 31, 85, .35);
}
.modal-backdrop.show { opacity: .75; }

.agcon-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background-color: #fff;
  background-size: 12px;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.agcon-popup-close:hover { opacity: 1; transform: scale(1.06); }

.agcon-popup-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /* .modal-content is a flex column; without these the slider grows to its content width */
  width: 100%;
  min-width: 0;
}
.agcon-popup-track {
  display: flex;
  will-change: transform;
}
.agcon-popup-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fc;
}
/* posters are portrait: cap height so the Register button always stays on screen */
.agcon-popup-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  height: auto;
}

.agcon-popup-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--agcon-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agcon-popup-nav:hover { background: var(--agcon-navy); color: #fff; }
.agcon-popup-prev { left: 10px; }
.agcon-popup-next { right: 10px; }

.agcon-popup-action {
  text-align: center;
  padding-top: 14px;
}
.agcon-popup-action .td-btn { min-width: 220px; justify-content: center; }

@media (max-width: 575px) {
  .agcon-popup-close { top: -12px; right: -6px; }
  .agcon-popup-nav { width: 34px; height: 34px; margin-top: -17px; }
}

/* the AGCON logo is wider than SAFECON's: shrink it on mid-size desktops so the menu stays on one line */
@media (min-width: 1200px) and (max-width: 1499px) {
  .logo-1 img { width: 165px !important; }
  .agcon-logo-apice { height: 44px; }
}
@media (max-width: 575px) {
  .agcon-logos .logo-1 img { width: 150px !important; }
  .agcon-logo-apice { height: 38px; padding-left: 8px; }
  .agcon-logos { gap: 8px; padding: 5px 8px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .logo-1 img { width: 140px !important; }
  .agcon-logo-apice { height: 38px; padding-left: 10px; }
  .agcon-logos { gap: 10px; padding: 5px 10px; }
  .tdmenu-2 .tdmenu__navbar-wrap ul li a { margin: 0 7px; font-size: 14px; }
  .td-btn-square { white-space: nowrap; padding-left: 18px; padding-right: 18px; }
}

/* ---------- home banner carousel (full width, under the transparent header) ---------- */
.agcon-banner-wrap {
  padding-top: 120px; /* header height: the theme header floats over the page */
}
.agcon-banner {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 45vw, 640px);
  background: var(--agcon-navy-dark);
}
.agcon-banner-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.agcon-banner-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* bottom-left caption over a gradient so the text stays readable on any photo */
.agcon-banner-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 31, 85, 0) 35%, rgba(11, 31, 85, .85) 100%);
  pointer-events: none;
}
.agcon-banner-caption .container > * { pointer-events: auto; }
.agcon-banner-caption h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 48px);
  margin: 12px 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.agcon-banner-caption p {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(14px, 1.3vw, 18px);
  margin-bottom: 20px;
}
/* the hero below no longer needs room for the header */
.agcon-banner-wrap + .td-hero-area { padding-top: 50px; }

@media (max-width: 1199px) {
  .agcon-banner-wrap { padding-top: 85px; }
}
@media (max-width: 575px) {
  .agcon-banner-caption { padding-bottom: 20px; }
  .agcon-banner-caption p,
  .agcon-banner-caption .agcon-pill { display: none; }
  .agcon-banner-caption h2 { font-size: 22px; margin: 0 0 12px; }
}

/* venue map */
.agcon-venue-map {
  height: 100%;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dce6f3;
  box-shadow: 0 10px 30px rgba(11, 31, 85, .08);
}
.agcon-venue-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
/* theme pulls .td-schedule-3-content left to sit beside a thumbnail; the venue card has none */
.agcon-venue-card .td-schedule-3-content { margin-left: 0; padding: 36px; }

/* venue card photo */
.agcon-venue-card { overflow: hidden; }
.agcon-venue-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  object-fit: cover;
}
.agcon-venue-card .td-schedule-3-content { padding: 26px 30px 30px; }

/* captioned photo cards (programme section) */
.agcon-photo-card {
  margin: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f3;
  box-shadow: 0 10px 30px rgba(11, 31, 85, .08);
}
.agcon-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.agcon-photo-card figcaption {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--agcon-navy);
  text-align: center;
}

/* ---------- scientific programme (day tabs + time slots) ---------- */
.agcon-schedule { max-width: 980px; margin: 0 auto; }
.agcon-day-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.agcon-day-tabs .nav-link {
  border: 2px solid var(--agcon-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--agcon-navy);
  padding: 12px 8px;
  text-align: center;
  line-height: 1.25;
  transition: background .2s, color .2s;
}
.agcon-day-tabs .nav-link .day { display: block; font-weight: 800; font-size: 18px; text-transform: uppercase; }
.agcon-day-tabs .nav-link .date { display: block; font-size: 14px; opacity: .85; }
.agcon-day-tabs .nav-link:hover { background: var(--agcon-sky); }
.agcon-day-tabs .nav-link.active { background: var(--agcon-navy); color: #fff; }

.agcon-slot {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-left: 5px solid var(--agcon-navy);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(11, 31, 85, .06);
}
.agcon-slot-time {
  flex: 0 0 140px;
  font-weight: 800;
  color: var(--agcon-navy);
  font-size: 16px;
  padding-top: 2px;
}
.agcon-slot-body { flex: 1; min-width: 0; }
.agcon-slot-body h4 { font-size: 19px; margin: 0; color: var(--agcon-navy-dark); }
.agcon-slot-body p { margin: 4px 0 0; color: #555; }
.agcon-slot-tag {
  display: inline-block;
  background: var(--agcon-green-light);
  color: var(--agcon-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 50px;
  padding: 2px 10px;
  margin-bottom: 6px;
}
.agcon-slot-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: #555; }
.agcon-slot-meta i { color: var(--agcon-green); margin-right: 4px; }
.agcon-slot-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agcon-slot-chips li {
  background: var(--agcon-sky);
  color: var(--agcon-navy);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
}
.agcon-slot.is-break { background: #f6f7f9; border-left-color: #b8bfcc; box-shadow: none; padding-top: 12px; padding-bottom: 12px; }
.agcon-slot.is-break h4 { font-size: 16px; color: #555; font-weight: 600; }
.agcon-slot.is-break .agcon-slot-time { color: #6b7280; font-weight: 700; }
.agcon-slot.is-highlight { border-left-color: var(--agcon-green); }
.agcon-slot.is-social { border-left-color: var(--agcon-gold); background: #fffaeb; }

@media (max-width: 767px) {
  .agcon-day-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .agcon-day-tabs .nav-link .day { font-size: 16px; }
  .agcon-slot { flex-direction: column; gap: 6px; padding: 14px 16px; }
  .agcon-slot-time { flex-basis: auto; font-size: 15px; }
  .agcon-slot-body h4 { font-size: 17px; }
}

/* ISA logo after "Contact" in the main menu, on its own white chip like the header logos */
.tdmenu__navbar-wrap ul li.agcon-nav-isa {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}
.agcon-nav-isa img {
  display: block;
  height: 44px;
  width: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}
@media (min-width: 1200px) and (max-width: 1499px) {
  .agcon-nav-isa img { height: 38px; padding: 3px 6px; }
  .tdmenu__navbar-wrap ul li.agcon-nav-isa { margin-left: 4px; }
}
.tdmobile__menu li.agcon-nav-isa { padding: 14px 25px; border: 0; }
.tdmobile__menu li.agcon-nav-isa img { height: 48px; padding: 0; }
/* make room for the ISA logo: keep the menu on one line */
@media (min-width: 1200px) {
  .tdmenu__navbar-wrap > ul { flex-wrap: nowrap; }
  .tdmenu-2 .tdmenu__navbar-wrap > ul > li > a { margin: 0 10px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .tdmenu-2 .tdmenu__navbar-wrap > ul > li > a { margin: 0 5px; font-size: 13px; }
  .tdmenu__navbar-wrap > ul { margin-left: 16px; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .agcon-nav-isa img { height: 32px; padding: 2px 4px; }
  .tdmenu-2 .tdmenu__navbar-wrap > ul > li > a { margin: 0 4px; }
}

/* ---------- faculty page (APICE Foundation board + faculty leads) ---------- */
.apice-faculty-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto 50px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 32px;
  box-shadow: 0 6px 24px rgba(11, 31, 85, .07);
}
.apice-faculty-intro img { width: 120px; height: auto; flex-shrink: 0; }
.apice-faculty-intro p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--agcon-navy-dark); font-weight: 600; }

.apice-faculty-heading {
  text-align: center;
  color: var(--agcon-navy);
  font-size: 28px;
  margin: 10px 0 28px;
  position: relative;
  padding-bottom: 14px;
}
.apice-faculty-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70px;
  height: 4px;
  margin-left: -35px;
  border-radius: 4px;
  background: var(--agcon-green);
}

.apice-person {
  height: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 26px 16px 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(11, 31, 85, .07);
  transition: transform .25s, box-shadow .25s;
}
.apice-person:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11, 31, 85, .12); }
.apice-person img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--agcon-sky);
  margin-bottom: 14px;
}
.apice-person h4 { font-size: 18px; margin: 0 0 4px; color: var(--agcon-navy-dark); }
.apice-person span { font-size: 14px; color: var(--agcon-green); font-weight: 600; }
.apice-person-chair { border-top: 5px solid var(--agcon-gold); }
.apice-person-chair img { width: 150px; height: 150px; border-color: #fdf0c4; }

.apice-lead-card {
  height: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 5px solid var(--agcon-navy);
  box-shadow: 0 4px 16px rgba(11, 31, 85, .06);
}
.apice-lead-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.apice-lead-head i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--agcon-green-light);
  color: var(--agcon-green);
  font-size: 17px;
  flex-shrink: 0;
}
.apice-lead-head h5 { margin: 0; font-size: 18px; color: var(--agcon-navy-dark); }
.apice-lead-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.apice-lead-card li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #333; }
.apice-lead-card li img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.apice-lead-card li.support { color: #6b7280; font-weight: 500; }

@media (max-width: 767px) {
  .apice-faculty-intro { flex-direction: column; text-align: center; padding: 20px; gap: 14px; }
  .apice-faculty-intro p { font-size: 17px; }
  .apice-faculty-heading { font-size: 23px; }
  .apice-person img { width: 96px; height: 96px; }
  .apice-person-chair img { width: 120px; height: 120px; }
  .apice-person h4 { font-size: 16px; }
}

/* ---------- gallery page ---------- */
.agcon-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.agcon-gallery-item {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--agcon-sky);
  box-shadow: 0 4px 14px rgba(11, 31, 85, .08);
}
.agcon-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.agcon-gallery-item:hover img,
.agcon-gallery-item:focus-visible img { transform: scale(1.05); }
@media (max-width: 575px) {
  .agcon-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
/* one more menu item (Gallery): tighten the 1200–1299 range further */
@media (min-width: 1200px) and (max-width: 1299px) {
  .tdmenu-2 .tdmenu__navbar-wrap > ul > li > a { margin: 0 3px; font-size: 12.5px; }
  .tdmenu__navbar-wrap > ul { margin-left: 10px; }
  .agcon-logos .logo-1 img { width: 125px !important; }
  .agcon-logo-apice { height: 34px; padding-left: 8px; }
  .agcon-logos { gap: 8px; padding: 5px 8px; }
  .td-btn-square { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Organising committee (index.php#committee) ---------- */
.agcon-committee-card {
    display: block;
    height: calc(100% - 30px);
    padding: 18px 14px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(18, 48, 122, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.agcon-committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(18, 48, 122, 0.14);
}
.agcon-committee-card .td-team-3-thumb { margin: 0 0 16px; border-radius: 14px; }
.agcon-committee-card .td-team-3-thumb img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; }
.agcon-committee-card .td-title { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.agcon-committee-card:hover .td-title { color: var(--agcon-navy); }
.agcon-committee-card .td-position {
    display: block;
    font-size: 13.5px;
    line-height: 1.45;
    text-transform: none;
}
.agcon-committee-degrees {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--agcon-green);
}
.agcon-committee-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--agcon-navy);
}
.agcon-committee-more i { font-size: 11px; margin-left: 4px; transition: transform 0.3s ease; }
.agcon-committee-card:hover .agcon-committee-more i { transform: translateX(3px); }
@media (max-width: 575px) {
    .agcon-committee-card { padding: 10px 8px 14px; }
    .agcon-committee-card .td-title { font-size: 15px; }
    .agcon-committee-card .td-position { font-size: 12px; }
    .agcon-committee-degrees, .agcon-committee-more { font-size: 11.5px; }
}

/* highlight photos (hands-on workshops) */
.agcon-highlight-photos .agcon-photo-card a { display: block; overflow: hidden; }
.agcon-highlight-photos .agcon-photo-card img { transition: transform .4s ease; }
.agcon-highlight-photos .agcon-photo-card a:hover img { transform: scale(1.05); }

/* faculty photos are 3:4 portraits: keep the face inside the circle */
.apice-person img,
.apice-lead-card li img { object-position: 50% 18%; }

/* committee groups (Patron / Scientific Chairman / Organising Secretary) */
.agcon-committee-group { margin: 10px 0 22px; }
.agcon-committee-grid > .row + .agcon-committee-group { margin-top: 20px; }
.agcon-committee-position {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #fdf0c4;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.agcon-committee-card .td-team-3-thumb { background: #eef3fb; }

/* faculty page cards: areas of interest */
.agcon-faculty-card { display: flex; flex-direction: column; }
.agcon-faculty-card .td-team-3-content { display: flex; flex-direction: column; align-items: center; flex: 1; }
.agcon-faculty-interests {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.agcon-faculty-interests li {
    padding: 3px 10px;
    border-radius: 20px;
    background: #eef3fb;
    color: var(--agcon-navy);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
}
.agcon-faculty-card .agcon-committee-more { margin-top: auto; padding-top: 12px; }

/* registration fee cards: what's covered */
.agcon-fee-features ul { list-style: none; padding: 0; margin: 0; }
.agcon-fee-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
}
.agcon-fee-features li i { color: var(--agcon-green); margin-top: 4px; }
#registration-fee .td-pricing-4-item { height: 100%; display: flex; flex-direction: column; }
#registration-fee .td-pricing-4-item > .td-btn { margin-top: auto; }

/* simulation videos (highlights) */
.agcon-video-card {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(11, 31, 85, .12);
}
.agcon-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

/* home page: glimpses from past events (6 gallery photos) */
.agcon-home-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 767px) {
    .agcon-home-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* contact details: links keep the surrounding text colour */
.agcon-contact a,
.agcon-footer-contact a { color: inherit; text-decoration: none; }
.agcon-contact a:hover,
.agcon-footer-contact a:hover { text-decoration: underline; }
.agcon-footer-contact { font-size: 14px; line-height: 1.9; }
.agcon-footer-contact i { margin: 0 4px 0 2px; opacity: .85; }
.agcon-footer-contact .sep { margin: 0 8px; opacity: .6; }

/* compact committee cards: 5 per row on desktop, 4 on laptop, 3 on tablet, 2 on phone */
@media (min-width: 1200px) {
    .agcon-committee-col { flex: 0 0 auto; width: 20%; }
}
.agcon-committee-grid .agcon-committee-card { padding: 12px 10px 14px; border-radius: 14px; }
.agcon-committee-grid .agcon-committee-card .td-team-3-thumb { margin-bottom: 10px; border-radius: 10px; }
.agcon-committee-grid .agcon-committee-card .td-team-3-thumb img { border-radius: 10px; }
.agcon-committee-grid .agcon-committee-card .td-title { font-size: 16px; margin-bottom: 4px; }
.agcon-committee-grid .agcon-committee-card .td-position { font-size: 12px; line-height: 1.4; }
.agcon-committee-grid .agcon-committee-degrees { font-size: 11.5px; margin-top: 4px; }
.agcon-committee-grid .agcon-committee-more { font-size: 12px; margin-top: 8px; }
.agcon-committee-grid .agcon-committee-position { font-size: 10.5px; padding: 2px 10px; margin-bottom: 6px; }
@media (max-width: 575px) {
    .agcon-committee-grid .agcon-committee-card .td-title { font-size: 14px; }
    .agcon-committee-grid .agcon-committee-card .td-position { font-size: 11px; }
}

/* committee headings (ISA Committee, then APICE Committee, one after another) */
.agcon-committee-grid + .agcon-committee-grid { margin-top: 40px; }
.agcon-committee-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 26px;
}
.agcon-committee-heading::before,
.agcon-committee-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(12, 122, 84, .45));
}
.agcon-committee-heading::after { background: linear-gradient(90deg, rgba(12, 122, 84, .45), transparent); }
.agcon-committee-heading h3 {
    margin: 0;
    padding: 8px 26px;
    border-radius: 30px;
    background: var(--agcon-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
@media (max-width: 575px) {
    .agcon-committee-heading { gap: 10px; }
    .agcon-committee-heading h3 { font-size: 15px; padding: 7px 18px; }
}

/* sponsors page (managed in admin > Sponsors) */
.agcon-sponsor-group + .agcon-sponsor-group { margin-top: 50px; }
.agcon-sponsors .td-brands-item a { overflow: hidden; }
.agcon-sponsors .td-brands-item a[href] { cursor: pointer; }
.agcon-sponsors .td-brands-item a img {
    max-width: 100%;
    max-height: 157px;
    object-fit: contain;
    vertical-align: middle;
}
.agcon-sponsor-name {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3;
    padding: 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--agcon-navy);
}
.agcon-sponsors-empty { font-size: 18px; color: #6b7280; }
@media (max-width: 575px) {
    .agcon-sponsors .td-brands-item a img { max-height: 100px; }
    .agcon-sponsor-name { font-size: 15px; }
}

