#region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

#region-list li {
  margin-bottom: 15px
}

#region-list li a.card {
  padding: 10px 15px;
}

#other-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

#other-countries li {
  margin-bottom: 10px;
}

#other-countries li a.btn {
  padding: 5px 10px;
  background-color: var(--accent-1);
  color: #333;
  border: 1px solid var(--accent-1-dark);
  border-radius: 5px;
}

#hero {
  padding: 90px 10px 70px;
  margin-bottom: 50px;
  margin-top: 30px;
  background: linear-gradient(rgba(217, 217, 217, 0.9), rgba(217, 217, 217, 0.7)), url(../img/home_banner_02.jpg) no-repeat center center;
  background-size: cover;
}

#hero h2 {
  font-size: 2.4em;
  color: #111;
  max-width: 600px;
  margin: auto;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.7);
}

#hero p {
  width: 80%;
  margin: auto;
  font-size: 1.2em;
  max-width: 450px;
}

#hero .btn {
  font-size: 1.8em;
  padding: 14px 22px;
  margin-top: 20px;
  color: #ffffff;
  background-color: #62979c;
  border: 1px solid var(--neutral-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#hero .btn:hover {
  background-color: #97d1a9;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.content > div.project-directory {
  margin-top: 0 !important;
  width: calc(100% - 40px);
}

.profile-information-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  width: 100%;
} 

.profile-information-row p:last-child {
  text-align: right;
}

.profile-information-row p strong {
  font-size: 0.8em;
  display: block;
  margin-bottom: 0px;
  line-height: 0.7em;
}

/* Unified tree styles */
.tree {
    list-style: none !important;
    padding-left: 0 !important;
    line-height: 1.6em !important;
    width: 80%;
}

.tree li {
    margin-bottom: 0.2em !important;
    font-size: 0.9em;
    color: var(--text-primary);
    border-bottom: 1px dotted var(--neutral-light);
    padding-bottom: 5px;
}

/* Region-specific indentation styles */
.tree li.indent-0 {
    font-weight: 700;
    color: var(--accent-3-dark);
}

.tree li.indent-1 {
    color: var(--accent-3);
}

.tree li.indent-2 {
    color: var(--accent-2-dark);
}

.tree li.indent-3 {
    color: var(--accent-2);
}

.home-expert-list {
  list-style: none;
  padding-left: 0 !important;
  margin-bottom: 5px !important;
}

.home-expert-list div.profile-pic {
  width: 40px;
  height: 40px;
}

.home-expert-list li {
  margin-bottom: 10px;
}

.experts-list > ul{
	list-style: none;
	padding-left: 0;
}

.home-expert-list li div.expert-card-grid {
  grid-template-columns: 40px 1fr;
  gap: 10px;
  grid-gap: 10px;
}

.expert-card {
	list-style: none;
	padding: 10px 10px 10px 10px;
	border: 1px solid var(--neutral-light);
	border-radius: 10px;
	line-height: 1.2em;
	transition: all 0.2s ease;
  margin-bottom: 5px !important;
}

.expert-card:hover {
	border-color: var(--accent-2);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.expert-card-grid {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 5px;
	align-items: start;
}

.expert-info {
	display: flex;
	flex-direction: column;
}

.expert-info-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}

.expert-info-header > div:nth-child(1) {
  line-height: 1.5em;
}

.expert-details {
	display: flex;
	flex-direction: column;
  margin-top: 5px;
}

.expert-card > .location {
	font-size: 0.8em;
	color: var(--accent-3);
	line-height: 0.9em;
	margin-bottom: 5px;
}	

.expert-card > .methods {
	font-size: 0.8em;
	color: var(--accent-3-dark);
	margin-bottom: 5px;
}

.expert-card > .categories {
	font-size: 0.9em;
	color: var(--accent-2-dark);
	margin-bottom: 5px;
}

.expert-name {
    text-align: left;
}

.expert-name strong {
    font-size: 1.2em;
}

.view-btn {
    text-align: right;

}

.view-btn a {
	background-color: var(--accent-3-darker);
	color: var(--primary);
	background-color: #fff;
	border: 1px solid var(--neutral-light);
}	


.content p.location {
    color: var(--accent-3);
    font-size: 0.8em;
    font-weight: 700;
}

.content p.methods {
    color: var(--accent-3-dark);
    font-size: 0.9em;
    line-height: 0.8em;
    margin-bottom: 4px;
}

.content p.categories {
    color: var(--accent-3-dark);
    font-size: 0.9em;
    line-height: 0.9em;
    font-weight: 700;
}

.social-links {
    margin-top: 5px;
}

/* Profile Picture Styles */
.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--neutral-light);
    margin: auto;
    display: flex;
}

.profile-img {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 50%;
}

.profile-img-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 3px 8px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    border-radius: 50%;
}
.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.badge-success {
    background-color: #28a745;
    color: white;
}
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-section {
    display: flex;
    flex-direction: column;
}
.about-section {
    margin-top: 1rem;
}

.expert-profile-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;

}

.expert-info-header > div > .btn, .content .workshop-list div > .btn {
  border: 1px solid var(--neutral-light);
  background-color: #fff;
  color: var(--accent-3-darker);
  margin-bottom: -20px;
  margin-top: -10px;
  margin-right: -5px;
}

.expert-info-header > div > .btn:hover {
  background-color: var(--accent-2);
  color: #fff;
}

.btn-view-all {
  padding: 8px 12px;
  background-color: #fff;
  color: var(--accent-3-darker);
  border: 1px solid;
  border-color: var(--accent-1);
}

.btn-view-all:hover {
  background-color: var(--accent-2);
  color: #fff;
}

/* Admin Tools Menu */
.admin-tools-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
  margin-top: 0;
	margin-bottom: 20px;
}

.admin-tools-menu.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

.admin-tools-toggle {
  cursor: pointer;
  position: relative;
	max-width: calc(var(--max-width-xl) - 40px);
	margin: auto;
}

.admin-tools-toggle:after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.admin-tools-toggle.open:after {
  transform: translateY(-50%) rotate(180deg);
}

.profile-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items:   center;  
}

.profile-header > * {
  margin-bottom: 0;
}

.profile-header > div:first-child {
  text-align: left;
}

.profile-header > div:last-child {
  text-align: right;
}

.profile-pic-container {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.content ul.methods-tree {
  list-style: none;
  padding-left: 0;
  width: 80%;

}

.methods-tree li {
  list-style: none;
  margin-bottom: 5px !important;
  border-bottom: 1px dotted var(--neutral-light);
  padding-bottom:5px;
}

.filters-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 10px;
  font-size: 0.9em;
}



.filters-grid >div > input {
  font-size: 1em !important;
}

.filters-grid > div > select {
  font-size: 1em !important;
}

#experts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

#experts-table th {
  background-color: var(--accent-1);
  color: #111;
  text-align: left;
  padding: 12px;
  font-weight: bold;
}

#experts-table td {
  padding: 12px;
  border-bottom: 1px solid #dddddd;
  word-break: break-word;
}

#experts-table tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

#experts-table tr:last-of-type {
  border-bottom: 2px solid var(--accent-1);
}

#experts-table tr:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

#experts-table td:first-child {
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Workshop Tables */
.workshops-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.workshops-table th {
    background-color: var(--accent-1);
    color: #111;
    text-align: left;
    padding: 12px;
}

.workshops-table td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
}

.workshops-table tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.workshops-table tr:last-of-type {
    border-bottom: 2px solid var(--accent-1);
}

.workshops-table tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.workshops-table .button {
    padding: 6px 12px;
    background-color: #fff;
    color: var(--accent-3-darker);
    border: 1px solid var(--neutral-light);
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
    font-size: 0.9em;
}

.workshops-table .button:hover {
    background-color: var(--accent-2);
    color: #fff;
}

/* Table to Div Conversion Utilities */
.table-grid {
  display: grid;
  gap: 1px;
  background: var(--neutral-light);
  border: 1px solid var(--neutral-light);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.table-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--accent-1);
  gap: 1px;
}

.table-header > div {
  padding: 12px;
  font-weight: bold;
  color: #111;
  background: var(--accent-1);
}

.table-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  gap: 1px;
}

.table-row:nth-child(even) {
  background: #f3f3f3;
}

.table-row:hover {
  background: #f5f5f5;
  cursor: pointer;
}

.table-cell {
  padding: 12px;
  background: inherit;
  padding-bottom: 4px;
}

.table-cell.name {
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content ul.workshop-list {
  list-style: none;
  padding-left: 0;
}

.content ul.workshop-list li {
  margin-bottom: 10px;
}

.workshop-date-label {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--accent-3-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.workshop-date {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0;
}

.workshop-description-preview {
  font-size: 0.9em;
  color: var(--text-primary);
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#workshop-hero {
  background: url(../img/workshop_hero_01.jpg) no-repeat center center;
  background-size: cover;
  height: 400px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  position: relative;
}

#workshop-hero .center {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: var(--accent-3-darker);
  color: white;
  border-radius: 0 0 10px 10px;
}

#workshop-hero .caption {
  font-size: 0.8em;
  color: white;
  margin-bottom: 0 !important;
}

.member-section {
		border-left: 1px dotted var(--accent-1);
		padding-left: 20px;
	}

@media screen and (max-width: 768px) {
 .filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #experts-table {
    width: 100vw;
    margin: 0 -20px;
  }

  #experts-table td {
    word-break: break-word;
    padding: 5px 0 5px 5px;
  }

  .table-header {
    display: none;
  }

  .table-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--accent-1-dark);
  }

  .table-cell {
    padding: 0 0 4px 0;
    border-bottom: dotted 1px rgba(0,0,0,0.1);
    margin-bottom: 6px;
  }

  .table-cell:not(:first-child)::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #666;
    font-size: 0.9em;
  }

  #hero h2 {
    font-size: 2.2em; 
  }

  .member-section {
		border: none;
		padding-left: 0px;
	}

  .expert-profile-header {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }

  .profile-img-container {
    width: 100px;
    height: 100px;
  }
}