/*
Theme Name: African Biomed Group
*/

:root {
  --flavor-color-green: #007a4c;
  --flavor-color-yellow: #ffb812;
  --hover-color-yellow: #ffc847;
  --flavor-color-light-yellow: #FFCE5C;
  --footer-background-color: #eeeeee;
  --call-to-action-color: #007EA7;
  --call-to-action-hover-color: #00a7d9;
}

* {
  margin: 0;
}

html {
  margin: 0 !important;
}

body {
  background: white;
  margin: 0;
}

header {
  position: relative;
  z-index: 2;

  display: flex;
  flex-flow: row nowrap;

  align-items: center;
  justify-content: space-between;

  padding: 1rem;
  padding-bottom: 0;
}

header::after {
  content: "";
  position: absolute;

  inset-inline: 0;
  bottom: 0;
  height: clamp(40px, 6vw, 100px);

  transform: translateY(98%);

  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1000 0 H0 V10 C150 20 200 50 450 30 S750 30 1000 15 V0 Z" fill="%23fff"></path></svg>');
  
  
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 3;
}

header a, header img {
  max-width: 150px;
}

header a.donation-button {
  font-family: ABGnormal, Fira Sans;
  text-decoration: none;
  padding: .8em 1.6em; 

  color: white;
  background-color: var(--call-to-action-color);
  border-radius: 10px;

  text-align: right;
}

/*END OF HEADER CSS*/

section {
  padding: 2rem;
  padding-top: 3rem;
}

section h2 {
  font-family: 'ABGnormal';
}

section p {
  font-family: 'ABGnormal';
  padding: 1rem;
}

section .front-page-frames {
  padding: 2rem .5rem;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;

  gap: 3rem;
}

section .front-page-frame {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-content: center;

  background-color: var(--flavor-color-yellow);
  border-radius: 10px;
  padding: 1.3rem;
  font-family: 'ABGnormal', 'Fira Sans';

  max-width: min(300px, 70vw);
}

section .front-page-frame a {
  color: black;
  text-decoration: none;
}

.front-page-frame a img {
  width: min(300px, 70vw);
  border-radius: 10px;
}

section a.link-show-more {
  background-color: var(--flavor-color-yellow);
  padding: .5rem;
  border-radius: 10px;
  text-decoration: none;
  color: black;
}

/*END OF GENERAL SECTION*/

section#front-mission {
  position: relative;
  z-index: 1;

  padding: 0;

  min-height: 250px;
  height: 60vw;

  background-position: 80% 20%;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 1)), url( http://african-biomed-group.local/wp-content/uploads/2026/03/zambia-equipment.jpg);
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* BOTTOM boundary */
section#front-mission::after {
  content: "";
  position: absolute;

  inset-inline: 0;
  bottom: -1px;
  height: clamp(40px, 6vw, 100px);

  rotate: 180deg;
  /* transform: translateX(98%); */

  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1000 0 H0 V10 C150 20 200 50 450 30 S750 30 1000 15 V0 Z" fill="%23fff"></path></svg>');
  
  
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 3;
}

section#front-mission h1 {
  padding: 4rem 1rem 2rem 1rem;
  width: 65%;

  font-family: 'ABGnormal', 'Fira Sans';
  font-size: 1.4rem;

  text-align: left;
}

section#front-mission a {
  text-decoration: none;
  color: black;

  font-family: 'ABGnormal', 'Fira Sans';

  background-color: var(--flavor-color-yellow);
  border-radius: 10px;
  padding: .5em .75em;
}

section#front-mission #contribution-links {
  margin-top: 0rem;

  display: flex;
  flex-flow: row nowrap;

  align-items: center;
  justify-content: space-around;

  gap: 0;
}

/*END OF FRONT MISSION SECTION*/

section#mission-statement {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  

  background-color: #fff;
  padding: 1rem 1rem .5rem 1rem;
}

section#mission-statement a{
  width: fit-content;

  text-decoration: none;
  color: black;

  font-family: 'ABGnormal', 'Fira Sans';

  background-color: var(--flavor-color-yellow);
  border-radius: 10px;
  padding: .5em .75em;
  margin-right: 2rem;

  align-self: flex-end;
}

/*END OF MISSION STATEMENT SECTION*/

section#projects-realizations {
  position: relative;
  overflow: visible;

  font-family: 'ABGnormal', 'Fira Sans';

  background-color: var(--flavor-color-green);
}

section#projects-realizations::before {
  content: "";
  position: absolute;

  inset-inline: 0;
  top: 0;
  height: clamp(40px, 6vw, 100px);

  /* transform: translateY(98%); */

  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1000 0 H0 V10 C150 20 200 50 450 30 S750 30 1000 15 V0 Z" fill="%23fff"></path></svg>');
  
  
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 3;
}

section#projects-realizations::after {
  content: "";
  position: absolute;

  inset-inline: 0;
  bottom: 0;
  height: clamp(40px, 6vw, 100px);

  transform: translateY(98%);

  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" transform="matrix(-1, 0, 0, 1, 0, 0)" preserveAspectRatio="none" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1000 0 H0 V10 C150 20 200 50 450 30 S750 30 1000 15 V0 Z" fill="%23007a4c"></path></svg>');
  
  
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 3;
}

/*END OF PROJECTS SECTION*/

section.section-team {
  padding-bottom: 3rem;

  font-family: 'ABGnormal', 'Fira Sans';
}

/* END OF TEAM SECTION */

section.post-content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;

  padding: 3rem 1rem;

  background-color: var(--flavor-color-light-yellow);
}

section.post-content img {
  width: min(300px, 70vw);
  border-radius: 10px;
}

section.post-content * {
  font-family: 'ABGnormal', 'Fira Sans';
}

section.post-content p {

  text-indent: 30px;
  width: min(325px, 80vw);
  padding-left: 1em;

  align-self: flex-start;
}

section.post-content li {
  padding: 1rem 0;
}

section.post-content .post-date-and-time p{
  display: inline;
  font-size: .9rem;
}

/* END OF SINGLE.PHP*/

footer {
  background-color: var(--footer-background-color);
  padding: 2em;

  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;

  gap: 1rem;

  box-shadow: 0 -10px 5px 5px var(--footer-background-color);  
}

footer a img {
  width: 150px;
}

#footer-links {
  display: flex;
  flex-flow: row wrap;

  justify-content: flex-end;
}

#footer-links a.logo {
  background-color: none;
}

#footer-links a.footer-link {
  background-color: var(--flavor-color-yellow);
  border-radius: 4px;
  margin-right: 1em;
  padding: 4px 8px;
  margin-top: 10px;

  font-size: 1.25em;

  transition: background-color .25s;
  box-shadow: 2px 1px 9px grey;

  text-decoration: none;
  color: black;

  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;

  font-family: 'ABGnormal', 'Fira Sans';
  
}

#footer-links a:hover {
  background-color: var(--hover-color-yellow);
}

/*END OF FOOTER SECTION

/*START DESKTOP STYLES*/
@media all and (min-width: 700px) {


  section .front-page-frames {
    flex-flow: row wrap;
  }

  /*END OF GENERAL SECTION*/

  section#front-mission {
    height: 45vw;
  }

}