/* ---- */

.main {

     padding: 0px!important; 
     margin-bottom: 0px!important; 
}

img, picture {
    width: 100%;
}

.container .un-section.container-fluid {
    margin-left: calc(-50vw + 50%)!important;
    margin-right: calc(-50vw + 50%)!important;
    padding-left: calc(15px + -50vw + 50%)!important;
    padding-right: calc(15px + -50vw + 50%)!important;
}
	
.content-title span {
    border-bottom: 3px solid #009edb !important;
}
h2.content-title {
  text-align: left !important;
  text-transform: none !important;
  margin-top: 1.5em!important;
  margin-bottom: .5em!important;
}
.un-section {
 padding-top: 0px !important; 
padding-bottom: 0px !important; 
}
.un-section .container {
	padding-bottom: 2em;
	}
.container .un-section.container-fluid {
 /* margin-top: 0px !important; */
}

.header {
    margin-bottom: 2px!important;
}
/* ---- */

/* Make all <li> the same height */
#hero .glide__slides {
  display: flex;            /* Glide usually sets this, but ensure it */
  align-items: stretch;     /* stretch children to same height */
}
#hero .glide__slide {       /* each li */
  display: flex;            /* so inner fills height */
}
#hero .glide__slide .frame,
#hero .glide__slide .slide-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
	margin-bottom: 5em;
}
/* Optional: consistent media area */
#hero .slide-image-wrapper {
	aspect-ratio: 16/9;
}
#hero .slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Optional: push CTA to bottom if present */
#hero .caption { margin-bottom: 1rem; }
#hero .slide-image-wrapper { margin-top: auto; }

/* START css fofr why matters cta */
.field_un_column_two .link-title-top {
  white-space: normal;      /* allow wrapping */
  word-break: break-word;   /* break long strings if needed */
  overflow-wrap: anywhere;  /* modern fallback */
}
/* END css fofr why matters cta */

/* START glide slider */
#hero .glide__track{
	overflow:visible;
	perspective:1200px;
}
#hero .glide__slides{
	align-items:center;
	will-change:transform;
}
#hero .glide__slide{ 
  transition: transform 800ms cubic-bezier(.165,.84,.44,1), box-shadow 800ms cubic-bezier(.165,.84,.44,1);
  transform-origin:center center;
 /*  box-shadow:0 10px 24px rgba(0,0,0,.08); */
}
#hero .glide__slide img{
  width:100%;
	/* height:60vh; */
	object-fit:cover;
	display:block;
	border-radius:12px;
  transition: opacity 800ms cubic-bezier(.165,.84,.44,1);
  opacity:.65; /* default dim */
}
#hero .glide__slide.is-center{
	transform: translateZ(80px) scale(1.06);
	z-index:3;
/*	box-shadow:0 18px 36px rgba(0,0,0,.16); */
}
#hero .glide__slide.is-left{ 
	transform: rotateY(12deg) translateX(-4%) scale(.92);
	z-index:2;
	opacity:.5 !important;
	box-shadow: none !important;
	filter: grayscale(70%);
}
#hero .glide__slide.is-right{
	transform: rotateY(-12deg) translateX(4%)  scale(.92);
	z-index:2;
	opacity:.5 !important;
	box-shadow: none !important;
	filter: grayscale(70%);
}
#hero .glide__slide.is-dim{
	transform: scale(.86);
	z-index:1;
	opacity:.5 !important;
	box-shadow: none !important;
	filter: grayscale(70%);
}
#hero .glide__slide.is-center img{ opacity:1 !important; }
#hero .glide__slide.is-dim img{ 
	opacity:.5 !important;
	/* filter: grayscale(80%); */
}

#hero .glide__track{ overflow:hidden; touch-action: pan-y; }
#hero .glide__slide img{ -webkit-user-drag:none; user-select:none; pointer-events:none; }

.glide__bullet {
    box-shadow: 1px 0em 1em 3px rgb(1 0 0 / 50%)!important;
}


/* after glide.css */
.glide__bullet {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.glide__bullet .bullet-thumb {
   width: 24px !important;    /* adjust size */
   height: 24px !important;   /* or use auto to keep ratio */
	border-radius:.2em!important;
  display: block !important;
  object-fit: cover !important;
}
/* END glide slider */





/* START slide box */
.slide-box {
  background: #fff;
	border: 2px solid #737373;
  border-radius: 16px;
  box-shadow: 0 3px 3px rgba(0,0,0,.50);
  position: relative;
  will-change: transform;
  padding: 1em;
	margin-top: 4em;
	margin-bottom: 4em;
  width: 100%!important;
	/* margin-left: 5%!important; */
}

@media (max-width: 768px) {
  .slide-box {
    width: 80% !important;
	margin-left: 10%!important;
	  margin-bottom: 7em;
  }
}


/* Optional rounding for image bottom */
.slide-image-wrapper, .slide-image {
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
}
/* END slide box */



/* START -- Projects list table styling */
.project-view-wrapper {
  all: unset;
  width: 100%;
}

.project-view {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.project-view__item {
  display: table-row;
  width: 100%;
}

.project-view__item > div {
  display: table-cell;
  border: 1px solid #ccc;
  padding: 8px;
  vertical-align: top;
}

#views-view-projects-project_page_view table tbody tr td {
  padding: 4px;
}


td.views-field-field-project-area a {
  display: inline-block;
  padding: 0.25em 0.5em;
  background-color: #e0eaf6 !important;
  /* border-radius: 0.5em; */
  color: #000;
  text-align: center;
	width: 100%;
}
td.views-field-name a {
  display: inline-block;
  padding: 0.25em 0.5em;
  background-color: #e0eaf6 !important;
  /* border-radius: 0.5em; */
  color: #000;
  text-align: center;
	width: 100%;
}


#views-view-projects-project_page_view table tbody tr td.views-field.views-field-title a {
/*  font-weight: bold !important; */
/*	color: #000; */
  text-decoration: none;
}

#views-view-projects-project_page_view table tbody tr td {
    vertical-align: top !important;
}
/* END -- Projects list table styling */






/*  Icon positioning (centered on top of card) */
.slide-icon-wrapper {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 75px; height: 75px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /* box-shadow: 0 8px 8px rgba(0,0,0,.25); */
	z-index: 5; 
}
.slide-icon { border-radius: 1em; border: 2px solid #737373; object-fit: cover; }
.slide-image { display: block; margin: 0 auto; }


/* 9) Arrows */

.glide__arrow {
  position: absolute;
	display: block;
	top: 90%;
	/* z-index: 2; */
  color: black;
	font-size: 1rem;
	font-weight: bold;
	padding: 16px;
  background: #fff;
	border: none;
	border-radius: 5px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 1;
	cursor: pointer;
	transition: opacity 150ms ease;
	transform: translateY(-50%);
	line-height: 1;
}



/* START -- Areas boxes above list projects list view inside un-links-icons-container */
.un-links-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px; /* vertical and horizontal spacing */
}
.un-links-icons-container .link-item--display-card,
.un-links-icons-container .link-item--display-button {
  background-color: #e0eaf6 !important;
}
.un-links-icons-container .link-item--display-card .link-title,
.un-links-icons-container .link-item--display-button .link-title {
  color: #000 !important;
}
.un-links-icons-container .link-item--display-card {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.un-links-icons-container a.link-item {
  display: flex;
  align-items: center;
  /* margin: 0 12.5px; */
  border: none !important;
  width: auto !important;
}
.un-links-icons-container .link-item--type-icon.link-item--display-button {
  border: none !important;
}
.un-links-icons-container figure {
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
  max-height: 4em; /* adjust max height as needed */
  flex-shrink: 0;
}
.un-links-icons-container .area-icon {
  height: 100%;
  width: auto;
  max-height: 4em;
  object-fit: contain;
  flex-shrink: 0;
}
/* cancel hover style from un theme */
.un-links-icons-container .link-title:hover,
.un-links-icons-container .link-title a:hover {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
}
.un-links-icons-container a.link-item:hover {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  cursor: default;
}
.link-item--display-button figure {
    padding:2px !important;
}
/* END -- Areas boxes above list projects list view inside un-links-icons-container */


/* start  HERO OVERLAY */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.hero-overlay {
  position: absolute;
  bottom: 2em;
  left: 2em;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: .5rem;
  font-size: 2.5rem;
  /* max-width: 40%; */
  text-align: left;
  z-index: 2;
}
.hero-overlay--right {
  position: absolute !important;
  top: 2em !important;
  right: 2em !important;
  left: auto !important;
  bottom: auto !important;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: .5rem;
  /* max-width: 40%; */
  text-align: left;
  z-index: 2;
}
.hero-overlay--right h2 {
  font-size: 3rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding-top: 0 !important;
}
@media (max-width: 1024px) {
  .hero-overlay,
  .hero-overlay--right {
    font-size: 2rem;
  }
  .hero-overlay--right {
    top: 1.5em !important;
    right: 1.5em !important;
  }
  .hero-overlay--right h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .hero-overlay,
  .hero-overlay--right {
    font-size: 1.5rem;
  }
  .hero-overlay--right {
    top: 1em !important;
    right: 1em !important;
  }
  .hero-overlay--right h2 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-overlay,
  .hero-overlay--right {
    font-size: 1rem;
  }
  .hero-overlay {
    left: 0.5em !important;
    right: auto !important;
    top: auto !important;
  }
  .hero-overlay--right {
    position: absolute !important;
    top: 0.5em !important;
    right: 0.5em !important;
    left: auto !important;
    bottom: auto !important;
  }
  .hero-overlay--right {
    top: 0.5em !important;
    right: 0.5em !important;
  }
  .hero-overlay--right h2 {
    font-size: 1rem !important;
  }
}
/* end HERO OVERLAY */

/* start EXPOSED FILTERS */
/* ===== filter area boxes ===== */
[id^="edit-term-node-tid-depth"] .form-item .form-item__label {
	
	 height: 3em;
  line-height: 3em;     /* vertically center single-line text */
  display: flex;        /* better for multi-line wrapping */
  align-items: center;  /* vertical centering */
  justify-content: center;
	
   /* display: block; */
    border: 1px solid #d0d7de;
	 box-shadow: 0 3px 6px rgba(0,0,0,.16);
     border-radius: 0!important;
    background: #fff;
    padding: .85rem 1rem;
    cursor: pointer;
    line-height: 1.25;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    user-select: none;
    background-color: #e0eaf6 !important;
  /*  color: black !important; */
    text-align: center !important;
}
[id^="edit-term-node-tid-depth"] .form-item > input:checked + .form-item__label {
    background: #009edb !important;
	border-color: white !important;
	color: #fff !important;
}
fieldset[id^="edit-term-node-tid-depth"] {
    border: 0px; 
    padding: 0px; 
}
.form-item {
    margin-bottom: 0px !important;
    max-width: 100% !important;
}
.form-checkboxes.bef-checkboxes {
  flex-wrap: wrap;
  justify-content: center;   /* horizontal center */
  gap: 1rem;                 /* spacing between items */
  text-align: center;        /* center labels if block */
}
.form-checkboxes.bef-checkboxes .form-item {
  /*
	display: flex;
  align-items: center;
  justify-content: center;
  height: 3em;        
  min-height: 3em;     
  flex: 1 1 auto;    
	*/
}
.bef-exposed-form .form--inline > .form-item,
.bef-exposed-form .form--inline .js-form-wrapper > .form-item {
  float: none !important; /* LRT */
}

.form-actions .button {
	border-radius: 0px !important;
    background: #e0eaf6 !important;
}
.donate-privacy.un-section.container-fluid {
  margin-top: 1em !important;
  padding-top: 2em!important;
}
.js-form-item.form-item {
 /* display: inline-flex; */
  align-items: center;
  gap: 0.5em; /* space between label and select */
}
#edit-items-per-page, select[name="items_per_page"] {
     inline-size: min-content; 
    /* max-width: 100%; */
}
#merge-link.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
/* end EXPOSED FILTERS */


/* start MOBILE list view */
.button.reset-button {
  position: absolute;
  right: 1em;
  z-index: 10;
}
table {
  border-collapse: collapse;
}
thead {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   margin-top: 2em; /* adjust as needed */
  display: table-header-group; /* ensure proper display */
}
thead th {
  border-top: 1px solid #888888 !important;
 /* border-bottom: 2px solid #888888 !important; */
}
/* end MOBILE list view  */



/* START - score card css */
.project-detail-custom {
  font-family: 'Arial', sans-serif;
  margin: 40px;
  color: #000;
}
.project-detail-custom .container {
  display: flex;
  gap: 40px;
  max-width: 900px;
}
.project-detail-custom .left {
  flex: 1;
}



.project-detail-custom .right {
    flex: 0 0 320px;
    background-color: #1d3465;
    color: white;
    border-radius: 2em;
    padding: 2em!important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}


.project-detail-custom .right img {
  border-radius: 24px;
    object-fit: cover;
    margin-bottom: 2em;
    align-self: center; /* center the image */
}


.project-detail-custom h1 {
  font-weight: 900;
  font-size: 28px;
  color: #1d3465;
  margin-bottom: 0.5em;
  line-height: 1.1;
}
.project-detail-custom .sustainability {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d3465;
  font-weight: 900;
/*  font-size: 14px; */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}
.project-detail-custom .sustainability-icon {
  background: #1d3465;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}






.project-detail-custom .left p {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 0.8em;
}
.project-detail-custom .dotted-line {
  border-top: 2px dotted #cd4a57;
  margin: 20px 0;
}
.project-detail-custom .impact-box {
  border: 2px dotted #cd4a57;
  border-radius: 2em;
  padding: 1em 1em;
  position: relative;
    margin-top: 2em;
}
.project-detail-custom .impact-label {
  background: #1d3465;
  color: white;
  font-weight: 900;
 	padding: .5em 1em;
    border-radius: 1em;
    position: absolute;
    top: -1.3em;
    left: 20px;
    font-size: 1em;
}






.project-detail-custom .impact-content {
  padding-left: 10px;
}
.project-detail-custom .impact-content p {
  margin: 8px 0;
  font-size: 15px;
}
.project-detail-custom .impact-content p::before {
  content: "○";
  margin-right: 10px;
  color: black;
}
.project-detail-custom .right strong {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
}
.project-detail-custom .right span {
  font-weight: normal;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 12px;
  display: block;
}
.project-detail-custom button {
  margin-top: 30px;
  padding: 12px 25px;
  border: 2px solid #1d3465;
  background: transparent;
  color: #1d3465;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}
.project-detail-custom button:hover {
  background-color: #1d3465;
  color: white;
}
.project-detail-custom .footer {
  margin-top: 60px;
  background-color: #f1f1f1;
  padding: 20px 40px;
  text-align: center;
  font-size: 14px;
}
.project-detail-custom .footer strong {
  display: block;
  font-weight: 900;
  margin-bottom: 5px;
}
.project-detail-custom .footer a {
  text-decoration: none;
  color: black;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-detail-custom .footer a svg {
  width: 18px;
  height: 18px;
}
/* END - score card css */






/* START - area check boxes */
/* Grid layout for the boxes */
/* ===== Generic form wrapper ===== */
.views-exposed-form.bef-exposed-form {
  --accent: #0a84ff;
  --radius: .75rem;
  --gap: 1rem;
  display: grid;
  align-items: start;
  gap: var(--gap);
  padding: 1rem 0;
}

/* ===== Fieldset (Categories) ===== */
fieldset[id^="edit-term-node-tid-depth"] {
  /* border: 1px solid #e6e6e6; */
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}
fieldset[id^="edit-term-node-tid-depth"] > legend {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0 .25rem;
}

/* Container inside fieldset */
fieldset[id^="edit-term-node-tid-depth"] .fieldset-container {
  margin-top: .5rem;
}

/* ===== Checkbox grid (BEF output) ===== */
[id^="edit-term-node-tid-depth"] .bef-checkboxes {
  /* kill inline layout from BEF */
  display: grid !important;
	
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	 /*  display: flex !important; */
  gap: .75rem;
}

/* Hide “Select All/None” or restyle it */
[id^="edit-term-node-tid-depth"] .bef-toggle {
  display: none; /* or style it below instead of hiding */
  /* display:inline-block;margin-bottom:.5rem;font-size:.875rem; */
}

/* Visually hide native checkbox (keeps a11y) */
[id^="edit-term-node-tid-depth"] .form-item > input.form-checkbox {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

/* Clickable “box” label */
[id^="edit-term-node-tid-depth"] .form-item .form-item__label {
  /* display: block; */
  border: 1px solid #d0d7de;
  border-radius: var(--radius);
  background: #fff;
  padding: .85rem 1rem;
  cursor: pointer;
  line-height: 1.25;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}

/* Hover/Focus */
[id^="edit-term-node-tid-depth"] .form-item .form-item__label:hover {
  border-color: #b6c2cd;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
[id^="edit-term-node-tid-depth"] .form-item > input:focus-visible + .form-item__label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Checked state */
[id^="edit-term-node-tid-depth"] .form-item > input:checked + .form-item__label {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Optional “highlight” class support from your markup */
[id^="edit-term-node-tid-depth"] .form-item.highlight .form-item__label {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10,132,255,.15) inset;
}

/* ===== Items-per-page select ===== */
#edit-items-per-page,
select[name="items_per_page"] {
  inline-size: 200px;
  max-width: 100%;
}
label[for^="edit-items-per-page"] {
  display: inline-block;
  margin-bottom: .25rem;
  font-weight: 500;
}

/* ===== Actions row ===== */
.form-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.form-actions .button {
  border-radius: .5rem;
  padding: .6rem 1rem;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
}
.form-actions .button:hover {
  background: #fff !important;
color: #000 !important
}
.form-actions #edit-submit-projects--qmR_HJvvQTQ {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.form-actions #edit-submit-projects--qmR_HJvvQTQ:hover {
  filter: brightness(0.95);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
  [id^="edit-term-node-tid-depth"] .bef-checkboxes {
    grid-template-columns: 1fr;
  }
  #edit-items-per-page, select[name="items_per_page"] {
    inline-size: 100%;
  }
}



/* START - Base checkbox + radio reset */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #000;   
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input[type="checkbox"]::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: #ed2224;   
  transform: scale(0);
  transition: transform .12s ease-in-out;
}

input[type="checkbox"]:checked::after {
  transform: scale(1);
}
/* END - Base checkbox + radio reset */



/* start - IMPACT BOXES */
.impact-text {
  font-weight: normal;
  margin: 1em !important;
}

.donate-impact-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
	flex-direction: unset !important;
}

.donate-impact-row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

@media (min-width: 768px) { /* md */
  .donate-impact-row > .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

@media (min-width: 992px) { /* lg */
  .donate-impact-row > .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}
/* end - IMPACT BOXES */


/* START - resposive changes for project view on mobile */
@media (max-width: 640px) {
  /* break native table */
  table, thead, tbody, tr, th, td { display: block !important; }

  /* HEADER as grid */
  thead {
   /* display: grid !important; */
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "sel title volume"
      "sel area  volume"
      "desc desc  desc";
    gap: .5rem .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #e5e5e5;
    /* optional sticky */
    position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
  }
  thead > tr { display: contents !important; } /* let THs be grid items */

  /* map header cells */
  th#view-nothing-table-column            { grid-area: sel; }
  th#view-title-table-column              { grid-area: title; }
  th#view-field-project-area-table-column { grid-area: area; }
  th#view-field-volume-table-column       { grid-area: volume; }
  th#view-field-description-table-column  { grid-area: desc; }

  /* ROWS as grid */
  tbody > tr {
    display: block !important;
   /* grid-template-columns: auto 1fr auto;  */
    
	  grid-template-areas:
      "sel title volume"
      "sel area  volume"
      "sel desc  desc"; 
	 
	    grid-template-columns: none !important;
  		/* grid-template-areas: none !important; */
	  
    gap: .5rem .75rem;
    padding: .5rem 0;
    border-top: 1px solid #e5e5e5;
  }

  /* map body cells by headers attr */
  td[headers="view-nothing-table-column"]            { grid-area: sel; }
  td[headers="view-title-table-column"]              { grid-area: title; }
  td[headers="view-field-project-area-table-column"] { grid-area: area; }
  td[headers="view-field-volume-table-column"]       { grid-area: volume; }
  td[headers="view-field-description-table-column"]  { grid-area: desc; }

  /* tidy spacing */
  th, td { border: 0; padding: .25rem 0; }
}
/* END - resposive changes for project view on mobile */








/* === Projects view exposed form (project_page_view) === */
.views-exposed-form.flex-wrapper {
  display: grid;
  grid-template-rows: auto auto; /* top row = filters, bottom row = controls */
  width: 100%;
  gap: 1rem;
}

/* Row 1: area filters full width */
.views-exposed-form.flex-wrapper fieldset[id^="edit-term-node-tid-depth"] {
  grid-row: 1;
  width: 100% !important;
  max-width: 100% !important;
}

/* Row 2: items per page (left) + remove filters (right) */
.views-exposed-form.flex-wrapper .controls-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

/* Reset margins */
.views-exposed-form.flex-wrapper .controls-row .form-item,
.views-exposed-form.flex-wrapper .controls-row .form-actions {
  margin: 0;
}

/* === Mobile: stack controls vertically === */
@media (max-width: 640px) {
  .views-exposed-form.flex-wrapper .controls-row {
    flex-direction: column;      /* stack */
    align-items: stretch;        /* full width */
  }
  .views-exposed-form.flex-wrapper .controls-row .form-actions {
    align-self: flex-end;        /* keep remove filters aligned right */
  }
}
/* === End Projects view exposed form === */

/* Hide glide bullets on mobile screens */
@media (max-width: 767px) {
  .glide__bullets {
    display: none!important; /* removes bullet navigation */
  }
}

/* Align thumbnails horizontally with the previous/next buttons */
.glide__bullets {
bottom: 3em!important;
}

/* Text in carousel cards should align to left. */
.slide-box .caption {
  text-align: left;
}

/* Area text in PDF card. */
.text-white,
.text-white a {
  color: #fff !important;
}

/* Override, align text content in project blue box to left. */

.group-right img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid white;
    border-radius: 24px; /* optional, keeps rounded corners */
}

/* ------------ PAST PROJECTS STYLING ----------------- */
/* START - Past Projects Glide carousel: bullets, thumbnails, and 3D slide effects */


/* Shared glide bullets */
.glide__bullets {
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.glide__bullet {
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
}
.glide__bullet .bullet-thumb {
  width:40px;
  height:40px;
  object-fit:cover;
  border-radius:.5rem;
  display:block;
}
.glide__bullet[aria-current="true"] .bullet-thumb {
  outline:2px solid currentColor;
}
.glide__bullet .bullet-fallback {
  display:inline-block;
  min-width:2rem;
  line-height:2rem;
  text-align:center;
  border-radius:999px;
  border:1px solid #ddd;
  padding:0 .5rem;
}

/* 3D effect */
.glide__slide.is-center { transform:scale(1.05); z-index:3; }
.glide__slide.is-left,
.glide__slide.is-right { transform:scale(0.9); opacity:.8; z-index:2; }
.glide__slide.is-dim { transform:scale(0.8); opacity:.5; z-index:1; }

/* END -  Past Projects Glide carousel: bullets, thumbnails, and 3D slide effects */

/* === Past Projects Glide 3D carousel styles === */
#past-projects .glide__track {
  overflow: hidden;
  perspective: 1200px;
}
#past-projects .glide__slides {
  align-items: center;
  will-change: transform;
  display: flex;            /* keep slides aligned */
}
#past-projects .glide__slide {
  display: flex;
  transition: transform 800ms cubic-bezier(.165,.84,.44,1),
              box-shadow 800ms cubic-bezier(.165,.84,.44,1);
  transform-origin: center center;
}
#past-projects .glide__slide .frame,
#past-projects .glide__slide .slide-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin-bottom: 5em;
}

/* Consistent media area */
#past-projects .slide-image-wrapper {
 /*  aspect-ratio: 16/9; */
  margin-top: auto;
}
#past-projects .slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  display: block;
  border-radius: 12px;
  transition: opacity 800ms cubic-bezier(.165,.84,.44,1);
  opacity: .65; /* default dim */
}

/* 3D slide states */
#past-projects .glide__slide.is-center {
  transform: translateZ(80px) scale(1.06);
  z-index: 3;
}
#past-projects .glide__slide.is-left {
  transform: rotateY(12deg) translateX(-4%) scale(.92);
  z-index: 2;
  opacity: .5 !important;
  filter: grayscale(70%);
}
#past-projects .glide__slide.is-right {
  transform: rotateY(-12deg) translateX(4%) scale(.92);
  z-index: 2;
  opacity: .5 !important;
  filter: grayscale(70%);
}
#past-projects .glide__slide.is-dim {
  transform: scale(.86);
  z-index: 1;
  opacity: .5 !important;
  filter: grayscale(70%);
}

#past-projects .glide__slide.is-center img { opacity: 1 !important; }
#past-projects .glide__slide.is-dim img { opacity: .5 !important; }

/* === Past Projects Glide carousel: bullets + arrows === */

/* Bullets */
#past-projects .glide__bullets {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  bottom: 3em !important; 
  position: relative;
	margin-bottom: .7em;
}
#past-projects .glide__bullet {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  box-shadow: 1px 0em 1em 3px rgba(0,0,0,.5) !important;
}
#past-projects .glide__bullet .bullet-thumb {
  width: 24px;
  height: 24px;
  border-radius: .2em;
  object-fit: cover;
  display: block;
}
#past-projects .glide__bullet[aria-current="true"] .bullet-thumb {
  outline: 2px solid currentColor;
}

/* Arrows */
#past-projects .glide__arrow {
  position: absolute;
  /* top: 50%;  */
  transform: translateY(-50%);
  z-index: 10!important;
  color: black;
  font-size: 1rem;
  font-weight: bold;
  padding: 16px;
  background: #fff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: pointer;
  opacity: 1;
  transition: opacity 150ms ease;
  line-height: 1;
}

#past-projects .glide__arrow--left {
  left: 0.5rem;
}

#past-projects .glide__arrow--right {
  right: 0.5rem;
}

/* START slide box (Past Projects) */
#past-projects .slide-box {
  background: #fff;
  border: 2px solid #737373;
  border-radius: 16px;
  box-shadow: 0 3px 3px rgba(0,0,0,.50);
  position: relative;
  will-change: transform;
  padding: 1em;
  margin-top: 4em;
  margin-bottom: 4em;
  width: 100% !important;
}

@media (max-width: 768px) {
  #past-projects .slide-box {
    width: 80% !important;
    margin-left: 10% !important;
    margin-bottom: 7em;
  }
}

/* Optional rounding for image bottom */
#past-projects .slide-image-wrapper,
#past-projects .slide-image {
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
}
/* END slide box (Past Projects) */

/* START -  display no projects found svg */
.no-projects {
  max-width: 50%;
  margin: auto;
}

/* START -  CSS overrides for FAQ panels */
.panel {
    margin-bottom: 1em!important;
}

.panel-body {
    padding:5px
}

.panel-title > a[role=button] {
     height:10px!important; 
}

/* END -  CSS overrides for FAQ panels */

.donate-faq {
  margin-top: 1em;
}


.field--label.field_customization {
  margin-top: 1em;
  margin-bottom: 1em;
}

/* https://rtce-jira.unog.ch/browse/WEBM-1267 */
.video video {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* area taxonomy selector on project list page*/
.area-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-box {
  padding: 18px;
  background: #e8f1fa;
  border: 1px solid #cfd8e3;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.area-box.is-active {
    background: #009edb;
    border-color: #009edb;
    color: white;

}