/* ========== GLOBAL ==========
   EDIT HERE: base font, text color, spacing
================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #606c71;
}

a { color: #1e6bb8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessibility skip link */
#skip-to-content {
  position: absolute;
  top: -10px;
  height: 1px; width: 1px; overflow: hidden;
}
#skip-to-content:focus {
  position: fixed; top: 10px; left: 10px;
  height: auto; width: auto;
  background: #159957; outline: thick solid #159957;
}

/* Buttons in header */
.btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.85);
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.3rem;
  transition: 0.2s;
}
.btn + .btn { margin-left: 1rem; }
.btn:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.35);
}

/* ========== HEADER (HERO) ==========
   EDIT HERE: change header background image path
   Replace URL below with your image (keep center/cover/no-repeat)
===================================== */
.page-header {
  color: #fff;
  text-align: center;
  background: url("assets/G8.jpg") center/cover no-repeat; /* EDIT HERE */
  padding: 5rem 6rem;
}
.project-name { margin: 0 0 0.1rem; font-size: 2.5rem; }
.project-tagline { margin: 0; opacity: 0.9; font-size: 1.5rem; }

/* Header tagline + single logo */
.project-tagline-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.header-logos { display: flex; justify-content: center; align-items: center; }
.moratuwa-logo {
  height: 80px; width: auto;
  opacity: 0.95; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: 0.3s;
}
.moratuwa-logo:hover { opacity: 1; transform: scale(1.05); }

/* ========== MAIN CONTENT WRAPPER ========== */
.main-content { max-width: 64rem; margin: 0 auto; padding: 2rem 6rem; word-wrap: break-word; }
.main-content img { max-width: 100%; }

/* Headings */
.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 {
  margin: 2rem 0 1rem; font-weight: 600; color: rgb(2, 112, 85);
}
.main-content h2 { border-bottom: 2px solid #dce6f0; padding-bottom: 0.5rem; }
.main-content p { margin-bottom: 1em; }

/* Code blocks (if any) */
.main-content code, .main-content pre > code {
  font-family: Consolas, Menlo, monospace; font-size: 0.9rem; color: #567482;
  background: #f3f6fa; border-radius: 0.3rem; padding: 2px 4px;
}

.agenda-container {
  overflow-x: auto; /* horizontal scroll on small screens */
  margin-top: 1rem;
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.agenda-table th,
.agenda-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}

.agenda-table th {
  background-color: #f0fdf4; /* very light green */
  font-weight: 600;
}

.agenda-table tr:nth-child(even) td {
  background-color: #f9fafb; /* alternate row color */
}

/* Mobile-friendly stacking (for very narrow screens) */
@media (max-width: 600px) {
  .agenda-table, .agenda-table thead, .agenda-table tbody, .agenda-table th, .agenda-table td, .agenda-table tr {
    display: block;
  }
  .agenda-table thead {
    display: none; /* hide header */
  }
  .agenda-table tr {
    margin-bottom: 1rem;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 0.5rem;
    background: #f0fdf4;
  }
  .agenda-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .agenda-table td:last-child {
    border-bottom: none;
  }
  .agenda-table td::before {
    content: attr(data-label);
    font-weight: 600;
    flex-basis: 50%;
  }
}

/* ========== FACILITATORS GRID (Updated to match organizers) ========== */
.photo-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* First row - 2 facilitators centered */
.row:nth-child(1) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-content: center;
  max-width: 650px; /* Slightly bigger */
  margin: 0 auto;
}

/* Second row - 3 facilitators */
.row:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
  max-width: 950px; /* Slightly bigger */
  margin: 0 auto;
}

.facilitator-card {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 20px; /* Increased from 15px */
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.facilitator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Default image styling for all facilitator cards */
.facilitator-card img {
  width: 100%;
  height: 180px; /* Increased from 160px */
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 12px; /* Increased from 10px */
}

/* Individual image size controls - EDIT THESE to adjust each image */
/* First row - 2 facilitators */
.row:nth-child(1) .facilitator-card:nth-child(1) img { width: 160px; height: 175px; } /* Dr. Dinuka */
.row:nth-child(1) .facilitator-card:nth-child(2) img { width: 140px; height: 190px; } /* Dr. Nushara */

/* Second row - 3 facilitators */
.row:nth-child(2) .facilitator-card:nth-child(1) img { width: 200px; height: 190px; } /* Ms. Madusha */
.row:nth-child(2) .facilitator-card:nth-child(2) img { width: 150px; height: 180px; } /* Mr. Asiri */
.row:nth-child(2) .facilitator-card:nth-child(3) img { width: 150px; height: 160px; } /* Mr. Sanka */

.facilitator-card .name {
  font-weight: 700;
  color: #00856f;
  margin-bottom: 6px; /* Increased from 5px */
  font-size: 1.1rem; /* Increased from 1.05rem */
}

.facilitator-card .affiliation {
  font-size: 0.95rem; /* Increased from 0.9rem */
  color: #555;
  margin-bottom: 6px; /* Increased from 5px */
}

.facilitator-card .email a {
  color: #666;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem; /* Increased from 0.9rem */
}

/* Mobile responsiveness for facilitators */
@media (max-width: 768px) {
  .row:nth-child(1),
  .row:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
}

@media (max-width: 480px) {
  .row:nth-child(1),
  .row:nth-child(2) {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}
/* ========== ORGANIZERS GRID ========== */
.organizer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 organizers per row */
  gap: 20px;
  margin-bottom: 25px;
}

.organizer-card {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.organizer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Default image styling for all organizer cards */
.organizer-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Individual image size controls - EDIT THESE to adjust each image */
/* Just change the width and height values for each organizer */
.organizer-card:nth-child(1) img { width: 110px; height: 150px; }
.organizer-card:nth-child(2) img { width: 110px; height: 140px; }
.organizer-card:nth-child(3) img { width: 115px; height: 145px; }
.organizer-card:nth-child(4) img { width: 100px; height: 155px; }
.organizer-card:nth-child(5) img { width: 110px; height: 140px; }
.organizer-card:nth-child(6) img { width: 130px; height: 150px; }
.organizer-card:nth-child(7) img { width: 130px; height: 135px; }
.organizer-card:nth-child(8) img { width: 90px; height: 130px; }

.organizer-card .name {
  font-weight: 700;
  color: #00856f;
  margin-bottom: 4px;
}

.organizer-card .affiliation {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.organizer-card .email a {
  color: #666;
  font-weight: 700;
  text-decoration: none;
}

/* Mobile responsiveness for organizers */
@media (max-width: 768px) {
  .organizer-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .organizer-row {
    grid-template-columns: 1fr;
  }
}
/* ========== ORGANIZERS GRID ========== */
.organizer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 organizers per row */
  gap: 20px;
  margin-bottom: 25px;
}

.organizer-card {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.organizer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.organizer-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.organizer-card .name {
  font-weight: 700;
  color: #00856f;
  margin-bottom: 4px;
}

.organizer-card .affiliation {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.organizer-card .email a {
  color: #666;
  font-weight: 700;
  text-decoration: none;
}
.organizer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 20px;
  margin-bottom: 25px;
}


/* ========== PARTNER LOGOS ==========
   EDIT HERE: logo sizes via .logo-size-* max-width
===================================== */
.logos-container {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px; margin-top: 1.5rem;
}
.logos {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: nowrap;
}
.logos-row-1 { gap: 30px; }
.logos-row-2 { gap: 60px; }

.logo-link { display: inline-block; transition: transform 0.3s ease; }
.logo-link:hover { transform: scale(1.05); }
.logo-link img { display: block; width: 100%; height: auto; }

/* Individual logo widths */
.logo-size-1 { max-width: 120px; }
.logo-size-2 { max-width: 130px; }
.logo-size-3 { max-width: 230px; }
.logo-size-4 { max-width: 160px; }
.logo-size-5 { max-width: 130px; }
  .logo-size-6 { max-width: 150px; }
  .logo-size-7 { max-width: 300px; }

@media (max-width: 480px) {
  .project-name { font-size: 1.6rem; }
  .project-tagline { font-size: 1.05rem; }
  .btn { font-size: 0.85rem; padding: 0.6rem 0.8rem; margin: 0.3rem; }
  .main-content h2 { font-size: 1.25rem; }
  .main-content h3 { font-size: 1.05rem; }

  /* Table readability */
  .main-content table { font-size: 0.7rem; margin: 1rem 0; }
  .main-content table th, .main-content table td { padding: 0.3rem 0.5rem; white-space: normal; }

  .center-image { max-width: 95%; }
  .moratuwa-logo { height: 60px; }
}
/* Links in the footer */
.site-info a {
    color: #0969da;
    text-decoration: underline;
    font-weight: normal;
}

.site-info a:hover {
    color: #0550ae;
}

/* Links in the footer */
.site-info a {
    color: #0969da;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}
.site-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: solid 3px #eff0f1;
    color: #5c676b;
    line-height: 1.4;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}



.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}


/* Text blocks */
p {
  margin: 0 0 1rem;
}

.meta {
  font-size: 0.95rem;
  color: #374151;
}

ul {
  margin: .25rem 0 1rem 1.25rem;
}

/* Highlighted big card */
.highlight-card {
  
  border-radius: 14px;
  padding: 1rem;
  background: #d1fae5; /* light green highlight */
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Smaller cards grid */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.mini-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem;
  background: #ffffff;
  font-size: 0.95rem;
  color: #374151; /* neutral gray */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}



/* Figures */
figure {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

figcaption {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: .5rem;
}

/* ========== QR CODES ========== */
.qr-section {
  text-align: center;
  margin: 3rem 0;
}

.qr-section h2 {
  color: #027055; /* matches headings */
  margin-bottom: 1rem;
}

.qr-section p {
  margin-bottom: 2rem;
  font-weight: 500;
}

.qr-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.qr-card {
  background: #f0fdf4; /* light green highlight similar to .highlight-card */
  border-radius: 12px;
  padding: 1rem;
  width: 180px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.qr-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.qr-card p {
  font-weight: 600;
  color: #00856f;
  font-size: 0.95rem;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .qr-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
