:root{
  --brand-blue: #155799;
  --brand-green: #159957;
  --muted: #6c6c6c;
  --bg: #fbfdff;
  --card: #ffffff;
  --maxw: 1100px;
  --radius: 10px;
  --accent: linear-gradient(135deg,var(--brand-blue),var(--brand-green));
  --shadow: 0 6px 18px rgba(20,30,40,0.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, "Helvetica Neue", Arial, sans-serif;
  color:#222;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* header */
.site-header{
  background:var(--accent);
  color:white;
  padding:14px 12px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.header-inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  padding:6px 0;
}
.logo-main{height:60px; width:auto; border-radius:8px; background:rgba(255,255,255,0.06); padding:6px}
.title-block h1{margin:0;font-size:1.25rem;letter-spacing:0.2px}
.tagline{margin:4px 0 0; font-size:0.95rem; opacity:0.95}

/* nav - made items center-aligned and consistent height */
.nav{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:10px;
  flex-wrap:wrap;
  align-items:center; /* ensures equal vertical alignment */
}

/* nav items unified height + larger hit area */
.nav-item{
  color:white;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  height:44px;          /* consistent height */
  padding:8px 14px;     /* larger hit area */
  border-radius:8px;
  font-weight:600;
  opacity:0.98;
  transition:background .18s, transform .08s;
  line-height:1;
}
.nav-item:hover{background:rgba(255,255,255,0.08); transform:translateY(-1px)}
.nav-item.active{background:rgba(255,255,255,0.12)}

/* dropdown container - inline flex to match item heights */
.nav-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}

/* make the toggle match other items exactly */
.dropdown-toggle{
  cursor:pointer;
  background:transparent;
  border:0;
  color:inherit;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  height:44px;
  padding:8px 14px;
  border-radius:8px;
}

/* dropdown menu: placed directly below the nav-item; smooth reveal */
.dropdown-menu{
  position:absolute;
  top: calc(100% + 8px); /* sits below the nav row */
  left:0;
  min-width:220px;
  background:var(--card);
  border-radius:10px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  opacity:0;
  transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease;
  transform-origin:top left;
  z-index:1200;
}

/* visible state */
.dropdown-menu.show{
  display:block;
  opacity:1;
  transform:translateY(0);
}

.dropdown-menu a{
  display:block;
  padding:9px 10px;
  color:#0f1720;
  text-decoration:none;
  border-radius:6px;
  font-weight:600;
}
.dropdown-menu a:hover{background:#f3f7fb}

/* main container */
.container{max-width:var(--maxw); margin:28px auto; padding:0 18px}

/* hero */
.hero{display:grid; grid-template-columns:1fr 420px; gap:24px; align-items:center}
.hero-photo{width:100%; border-radius:12px; box-shadow:var(--shadow)}
.lead{font-size:1.02rem; color:#2b2b2b}

/* cards */
.three-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:22px}
.card{background:var(--card); padding:18px; border-radius:12px; box-shadow:var(--shadow)}

/* partners */
.logo-grid{display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:center; margin-top:12px}
.logo-grid img{max-height:56px; max-width:180px; object-fit:contain; filter:grayscale(10%); opacity:0.95}
.logo-grid img:hover{filter:none; transform:translateY(-2px)}

/* sections */
h2{color:var(--brand-blue); margin-top:0}
.year-block{background:var(--card); padding:12px; border-radius:10px; box-shadow:var(--shadow); margin-bottom:16px}
.group-photo{width:100%; border-radius:8px; margin-top:10px}

/* table */
table{width:100%; border-collapse:collapse; margin-top:12px}
th,td{padding:10px; border:1px solid #eef3f7; text-align:left}
th{background:#f8fbff}

/* footer */
.site-footer{background:#f4f8fb; padding:18px 0; margin-top:30px}
.site-footer p{margin:6px 0; color:var(--muted); text-align:center}

/* buttons */
.btn{display:inline-block; padding:10px 14px; border-radius:8px; text-decoration:none; background:linear-gradient(90deg,#1e73b7,#13b67e); color:white; font-weight:700}
.btn-ghost{background:transparent; color:var(--brand-blue); border:1px solid rgba(20,30,40,0.06)}

/* speaker card */
.speaker-card{background:#fff; border-left:4px solid var(--brand-green); padding:12px; border-radius:8px; margin-bottom:10px; box-shadow:var(--shadow)}

/* responsive tweaks */
@media (max-width:980px){
  .hero{grid-template-columns:1fr; }
  .three-cards{grid-template-columns:1fr; }
  .header-inner{flex-direction:column; gap:8px; text-align:center}
  .nav{justify-content:center}
  .logo-main{height:58px}
}


/* --- 2025 page gallery styles (append to style.css) --- */
/*.photo-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:12px;
}
.gallery-item{
  background:#fff;
  border-radius:10px;
  padding:8px;
  box-shadow:0 6px 18px rgba(20,30,40,0.06);
  text-align:center;
}
.gallery-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
}
.gallery-item figcaption{
  margin-top:8px;
  font-size:0.92rem;
  color:#444;
}
*/

/* Programme table + gallery niceties for 2025 page (append to style.css) */

.prog-table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  font-size:0.96rem;
}
.prog-table thead th{
  background:linear-gradient(90deg,#f4fbff,#ffffff);
  color:#0f2b45;
  padding:10px;
  text-align:left;
  border:1px solid #e9f2f7;
}
.prog-table tbody td{
  padding:10px;
  border:1px solid #f0f6fa;
  vertical-align:top;
}
.prog-table tbody tr:nth-child(even){
  background:#fbfeff;
}

/* Keynotes list */
.keynotes{list-style:disc; padding-left:1.2rem; margin-top:6px; color:#1c2b3a}
.keynotes li{margin:6px 0; line-height:1.45}

/* Photo gallery (responsive) */
.photo-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:12px;
}
.gallery-item{
  background:#fff;
  border-radius:10px;
  padding:8px;
  box-shadow:0 8px 20px rgba(20,30,40,0.06);
  text-align:center;
}
.gallery-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
}
.gallery-item figcaption{
  margin-top:8px;
  font-size:0.92rem;
  color:#374151;
}

/* Smaller screens */
@media (max-width:720px){
  .prog-table thead th, .prog-table tbody td { font-size:0.9rem; padding:8px; }
  .gallery-item img{ height:140px; }
}

/* --- About / Who We Are page --- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.team-card {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(20, 30, 40, 0.08);
  text-align: center;
}

.team-logo {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 8px;
}

.team-logo.small {
  max-height: 60px;
  margin-left: 10px;
}

.team-desc {
  font-size: 0.95rem;
  color: #2e2e2e;
  line-height: 1.5;
}


/* Landing & About page refinements */
.hero-center { align-items:center; }
.hero-left .hero-bullets { margin:12px 0; padding-left:1.1rem; }
.hero-bullets li { margin:6px 0; }

.card-shadow { border-radius:12px; overflow:hidden; box-shadow:0 10px 30px rgba(15,25,40,0.08); }
.card-caption { padding:10px; background:#fff; font-size:0.92rem; color:#444; text-align:center; }

/* Spotlight / quick info */
.spotlight { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px; }
.spot { background:#fff; padding:14px; border-radius:12px; box-shadow:0 8px 18px rgba(20,30,40,0.06); }
.spot h3 { margin-top:0; }

/* Announcements */
.announcements { list-style:disc; padding-left:1.1rem; }

/* People grid & team styles (re-affirmed) */
.people-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:18px;
  margin-top:12px;
}
.person-card { background:#fff; border-radius:12px; padding:12px; text-align:center; box-shadow:0 8px 20px rgba(20,30,40,0.06); }
.person-photo { width:90px; height:90px; object-fit:cover; border-radius:50%; border:3px solid #eef6fb; margin-bottom:10px; }

/* Responsive */
@media (max-width:980px){
  .spotlight{ grid-template-columns:1fr; }
  .hero{ grid-template-columns:1fr; }
}

/* --- Affiliated institutes block (aligned logos, bottom text) --- */
.affiliated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.aff-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(20, 30, 40, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* space between logo and caption */
  height: 170px; /* consistent box height */
}

.aff-card img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  margin: 0 auto;
}

.aff-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #2e3b46;
  line-height: 1.3;
}

/* subtle muted paragraph above section */
.muted {
  font-size: 0.95rem;
  color: #5c6773;
}

/* mobile */
@media (max-width: 720px) {
  .aff-card {
    height: 150px;
    padding: 12px;
  }
  .aff-caption {
    font-size: 0.9rem;
  }
}


/* --- Organising committee as rows (one row per institute) --- */
.people-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;              /* vertical spacing between institute rows */
  margin-top: 14px;
  align-items: stretch;
}

/* Each institute row: title then horizontal people area */
.inst-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;    /* center the people block */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;     /* ensure inline/inline-block children are centered */
}

/* Institute title (centered above row) */
.inst-title {
  margin: 0 0 8px;
  color: #155799;
  font-size: 1.05rem;
  display: inline-block;  /* shrink-wrap to text width */
  text-align: center;
  align-self: center;     /* defensive: center in the flex column */
  padding-left: 0;
}

/* People container: horizontal list of person cards, centered and wrapping */
.inst-people {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center; /* center cards horizontally within the row */
  flex-wrap: wrap;         /* wrap on small screens */
  width: 100%;
  padding: 6px 0 12px 0;
}

/* Person card */
.person-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: 220px;
  box-shadow: 0 8px 20px rgba(20,30,40,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Person photo and text */
.person-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #eef6fb;
}
.person-card h4 { margin: 0; font-size: 1rem; color: #123b58; }
.person-card p { margin: 0; font-size: 0.9rem; color: #444; line-height: 1.3; }

/* Responsive adjustments */
@media (max-width: 980px) {
  .person-card { width: 200px; }
  .inst-title { /* keep centered and readable on medium screens */
    font-size: 1.02rem;
  }
}

/* Mobile: stack everything vertically; card width becomes fluid */
@media (max-width: 640px) {
  .inst-people { justify-content: center; gap: 12px; }
  .person-card { width: 100%; max-width: 320px; }
  .inst-title { text-align: center; }
}
