@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700;1,900&display=swap');

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f5fa;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 48px 0;
}

/* ===================== HEADER ===================== */
.site-header {
  background-color: #ffffff;
  padding: 20px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .logo-left img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.site-header .logo-right img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ===================== BACK LINK ===================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176a8e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: #003b4a;
}

.back-link svg {
  flex-shrink: 0;
}

/* ===================== PROFILE HERO ===================== */
.profile-hero {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-top: 8px;
}

.photo-panel {
  width: 30%;
  min-height: 350px;
  max-height: 420px;
  border: 3px solid #fcbc24;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f9f4e8;
  flex-shrink: 0;
  overflow: hidden;
}

.initials-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #fcbc24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 60px;
  font-weight: 900;
  color: #003b4a;
  letter-spacing: -2px;
  user-select: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.info-panel {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  gap: 8px;
}

.info-panel h1.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 900;
  font-style: italic;
  color: #003b4a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.info-panel h2.profile-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 400;
  font-style: normal;
  color: #fcbc24;
  line-height: 1.3;
}

.info-panel h2.profile-org {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 400;
  font-style: normal;
  color: #003b4a;
  line-height: 1.3;
}

.info-panel h2.profile-country {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: #176a8e;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

/* ===================== PROFILE DETAILS ===================== */
.profile-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #003b4a;
}

.detail-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #176a8e;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.detail-link:hover {
  color: #003b4a;
  text-decoration: underline;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expertise-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #003b4a;
  background: #e8f4f8;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===================== LINKEDIN BUTTON ===================== */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #003b4a;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
  padding: 8px 16px;
  border: 2px solid #003b4a;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  width: fit-content;
}

.linkedin-btn:hover {
  background-color: #003b4a;
  color: #ffffff;
}

.linkedin-btn svg {
  flex-shrink: 0;
}

.connections-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #003b4a;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  margin-left: 8px;
  padding: 8px 16px;
  background: #fcbc24;
  border: 2px solid #fcbc24;
  border-radius: 4px;
  transition: all 0.2s;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(252,188,36,.3);
}
.connections-btn:hover {
  background-color: #e8a800;
  border-color: #e8a800;
  transform: translateY(-1px);
}
.connections-btn svg { flex-shrink: 0; }

/* ===================== ACCORDION ===================== */
.accordion {
  border-top: 2px solid #d5d5d5;
  margin-top: 0;
}

.accordion-item {
  border-bottom: 2px solid #d5d5d5;
}

.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #176a8e;
  cursor: pointer;
  padding: 16px 0;
  user-select: none;
  transition: color 0.2s;
  gap: 12px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.accordion-title:hover {
  color: #003b4a;
}

.accordion-title.active {
  color: #003b4a;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s;
}

.accordion-title.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  padding: 16px 0 32px 0;
}

.accordion-content.active {
  display: block;
}

.accordion-content p {
  margin-bottom: 12px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background-color: #ffffff;
  padding: 32px;
  margin-top: 48px;
  border-top: 3px solid #fcbc24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ===================== INDEX PAGE ===================== */
.index-header {
  background-color: #ffffff;
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 0;
}

.index-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.index-hero {
  background: linear-gradient(135deg, #003b4a 0%, #176a8e 100%);
  padding: 48px 32px;
  text-align: center;
  color: #ffffff;
}

.index-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  font-style: italic;
  color: #fcbc24;
  margin-bottom: 12px;
  line-height: 1.1;
}

.index-hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

.index-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.participants-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #003b4a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.participant-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-top: 4px solid #fcbc24;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.participant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.card-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fcbc24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #003b4a;
  flex-shrink: 0;
}

.card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 3px solid #fcbc24;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #003b4a;
  line-height: 1.2;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #fcbc24;
  line-height: 1.3;
}

.card-org {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #003b4a;
  line-height: 1.3;
  margin-top: 2px;
}

.card-country {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: #176a8e;
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e0e0e0;
  flex-shrink: 0;
}
.card-flag[src*="idblogo"], .country-flag[src*="idblogo"] {
  border-radius: 4px;
  object-fit: contain;
  border: none;
  width: 24px;
  height: 18px;
}

.card-arrow {
  font-size: 12px;
  color: #176a8e;
  font-weight: 700;
  margin-top: 4px;
  transition: color 0.2s;
}

.participant-card:hover .card-arrow {
  color: #003b4a;
}

/* Section dividers for country groups */
.section-divider {
  grid-column: 1 / -1;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #003b4a;
  border-bottom: 3px solid #fcbc24;
  padding: 12px 0 8px 0;
  margin-top: 16px;
}

.section-divider:first-child {
  margin-top: 0;
}

.section-divider.observers {
  color: #176a8e;
  border-bottom-color: #176a8e;
  margin-top: 32px;
}

.section-divider .section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #003b4a;
  display: block;
  margin-bottom: 2px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .site-header .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .profile-hero {
    flex-direction: column;
  }

  .photo-panel {
    width: 100%;
    min-height: 220px;
    border: none;
    border-bottom: 3px solid #fcbc24;
  }

  .initials-circle {
    width: 120px;
    height: 120px;
    font-size: 42px;
  }

  .info-panel {
    width: 100%;
    padding: 28px 24px;
  }

  .info-panel h1.profile-name {
    font-size: 32px;
  }

  .info-panel h2.profile-title {
    font-size: 20px;
  }

  .info-panel h2.profile-org {
    font-size: 17px;
  }

  .info-panel h2.profile-country {
    font-size: 16px;
  }

  .accordion-title {
    font-size: 20px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .index-hero h1 {
    font-size: 28px;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .info-panel h1.profile-name {
    font-size: 26px;
  }

  .accordion-title {
    font-size: 18px;
  }

  .index-main {
    padding: 32px 20px;
  }
}

/* ===== DESKTOP FONT SIZE BOOST (+6px total) ===== */
@media (min-width: 769px) {
  html { font-size: 22px; }
}

/* ===== FORCE DARK TEAL ON ALL TEXT (no grays) ===== */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, li, label, small {
  color: #003b4a;
}
[style*="color:#888"], [style*="color: #888"],
[style*="color:#999"], [style*="color: #999"],
[style*="color:#666"], [style*="color: #666"],
[style*="color:#555"], [style*="color: #555"],
[style*="color:#aaa"], [style*="color: #aaa"],
[style*="color:#747474"], [style*="color: #747474"],
[style*="color:#777"], [style*="color: #777"] {
  color: #003b4a !important;
}

/* ===== GRAY TEXT -> DARK TEAL ===== */
body { color: #003b4a; }
.card-org,
.org-org,
.detail-label,
.event-desc,
.timeline-desc,
.section-subtitle { color: #003b4a !important; }
.card-title,
.timeline-title { color: #003b4a; }
